signal: Define sighandler_t.
[gnulib.git] / ChangeLog
1 2011-05-05  Bruno Haible  <bruno@clisp.org>
2
3         signal: Define sighandler_t.
4         * lib/signal.in.h (sighandler_t): New type.
5         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6         whether sighandler_t is defined.
7         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
8         * modules/signal (Depends-on): Add extensions.
9         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12
13 2011-05-05  Eric Blake  <eblake@redhat.com>
14
15         maint: remove useless REPLACE_*_H macros
16         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
23         * m4/btowc.m4: Update callers.
24         * m4/dirfd.m4: Likewise.
25         * m4/duplocale.m4: Likewise.
26         * m4/fchdir.m4: Likewise.
27         * m4/fdopendir.m4: Likewise.
28         * m4/inet_ntop.m4: Likewise.
29         * m4/inet_pton.m4: Likewise.
30         * m4/ioctl.m4: Likewise.
31         * m4/mbrlen.m4: Likewise.
32         * m4/mbrtowc.m4: Likewise.
33         * m4/mbsinit.m4: Likewise.
34         * m4/mbsnrtowcs.m4: Likewise.
35         * m4/mbsrtowcs.m4: Likewise.
36         * m4/poll.m4: Likewise.
37         * m4/setlocale.m4: Likewise.
38         * m4/wcrtomb.m4: Likewise.
39         * m4/wcsnrtombs.m4: Likewise.
40         * m4/wcsrtombs.m4: Likewise.
41         * m4/wctob.m4: Likewise.
42         * m4/wcwidth.m4: Likewise.
43         * modules/posix_spawn: Likewise.
44         * modules/posix_spawn_file_actions_addclose: Likewise.
45         * modules/posix_spawn_file_actions_adddup2: Likewise.
46         * modules/posix_spawn_file_actions_addopen: Likewise.
47         * modules/posix_spawn_file_actions_destroy: Likewise.
48         * modules/posix_spawn_file_actions_init: Likewise.
49         * modules/posix_spawnattr_destroy: Likewise.
50         * modules/posix_spawnattr_getflags: Likewise.
51         * modules/posix_spawnattr_getpgroup: Likewise.
52         * modules/posix_spawnattr_getschedparam: Likewise.
53         * modules/posix_spawnattr_getschedpolicy: Likewise.
54         * modules/posix_spawnattr_getsigdefault: Likewise.
55         * modules/posix_spawnattr_getsigmask: Likewise.
56         * modules/posix_spawnattr_init: Likewise.
57         * modules/posix_spawnattr_setflags: Likewise.
58         * modules/posix_spawnattr_setpgroup: Likewise.
59         * modules/posix_spawnattr_setschedparam: Likewise.
60         * modules/posix_spawnattr_setschedpolicy: Likewise.
61         * modules/posix_spawnattr_setsigdefault: Likewise.
62         * modules/posix_spawnattr_setsigmask: Likewise.
63         * modules/posix_spawnp: Likewise.
64
65 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
66
67         Add option to do-release-commit-and-tag to specify branch.
68         * build-aux/do-release-commit-and-tag: Add --branch.
69
70 2011-05-03  Bruno Haible  <bruno@clisp.org>
71
72         Avoid unnecessary compilation units, through conditional dependencies.
73         * modules/accept (Depends-on): Add conditions to the dependencies.
74         * modules/acosl (Depends-on): Likewise.
75         * modules/argz (Depends-on): Likewise.
76         * modules/asinl (Depends-on): Likewise.
77         * modules/atanl (Depends-on): Likewise.
78         * modules/atoll (Depends-on): Likewise.
79         * modules/bind (Depends-on): Likewise.
80         * modules/btowc (Depends-on): Likewise.
81         * modules/canonicalize-lgpl (Depends-on): Likewise.
82         * modules/ceil (Depends-on): Likewise.
83         * modules/ceilf (Depends-on): Likewise.
84         * modules/ceill (Depends-on): Likewise.
85         * modules/chdir-long (Depends-on): Likewise.
86         * modules/chown (Depends-on): Likewise.
87         * modules/close (Depends-on): Likewise.
88         * modules/connect (Depends-on): Likewise.
89         * modules/cosl (Depends-on): Likewise.
90         * modules/dirfd (Depends-on): Likewise.
91         * modules/dprintf (Depends-on): Likewise.
92         * modules/dprintf-posix (Depends-on): Likewise.
93         * modules/error (Depends-on): Likewise.
94         * modules/euidaccess (Depends-on): Likewise.
95         * modules/expl (Depends-on): Likewise.
96         * modules/faccessat (Depends-on): Likewise.
97         * modules/fchdir (Depends-on): Likewise.
98         * modules/fclose (Depends-on): Likewise.
99         * modules/fcntl (Depends-on): Likewise.
100         * modules/fdopendir (Depends-on): Likewise.
101         * modules/fflush (Depends-on): Likewise.
102         * modules/floor (Depends-on): Likewise.
103         * modules/floorf (Depends-on): Likewise.
104         * modules/floorl (Depends-on): Likewise.
105         * modules/fnmatch (Depends-on): Likewise.
106         * modules/fopen (Depends-on): Likewise.
107         * modules/fprintf-posix (Depends-on): Likewise.
108         * modules/frexp (Depends-on): Likewise.
109         * modules/frexp-nolibm (Depends-on): Likewise.
110         * modules/frexpl (Depends-on): Likewise.
111         * modules/frexpl-nolibm (Depends-on): Likewise.
112         * modules/fseek (Depends-on): Likewise.
113         * modules/fsusage (Depends-on): Likewise.
114         * modules/ftell (Depends-on): Likewise.
115         * modules/ftello (Depends-on): Likewise.
116         * modules/futimens (Depends-on): Likewise.
117         * modules/getcwd (Depends-on): Likewise.
118         * modules/getcwd-lgpl (Depends-on): Likewise.
119         * modules/getdelim (Depends-on): Likewise.
120         * modules/getdomainname (Depends-on): Likewise.
121         * modules/getgroups (Depends-on): Likewise.
122         * modules/gethostname (Depends-on): Likewise.
123         * modules/getline (Depends-on): Likewise.
124         * modules/getlogin_r (Depends-on): Likewise.
125         * modules/getopt-posix (Depends-on): Likewise.
126         * modules/getpeername (Depends-on): Likewise.
127         * modules/getsockname (Depends-on): Likewise.
128         * modules/getsockopt (Depends-on): Likewise.
129         * modules/getsubopt (Depends-on): Likewise.
130         * modules/getusershell (Depends-on): Likewise.
131         * modules/glob (Depends-on): Likewise.
132         * modules/grantpt (Depends-on): Likewise.
133         * modules/iconv_open (Depends-on): Likewise.
134         * modules/iconv_open-utf (Depends-on): Likewise.
135         * modules/inet_ntop (Depends-on): Likewise.
136         * modules/inet_pton (Depends-on): Likewise.
137         * modules/ioctl (Depends-on): Likewise.
138         * modules/isapipe (Depends-on): Likewise.
139         * modules/isfinite (Depends-on): Likewise.
140         * modules/isinf (Depends-on): Likewise.
141         * modules/lchown (Depends-on): Likewise.
142         * modules/ldexpl (Depends-on): Likewise.
143         * modules/link (Depends-on): Likewise.
144         * modules/linkat (Depends-on): Likewise.
145         * modules/listen (Depends-on): Likewise.
146         * modules/logl (Depends-on): Likewise.
147         * modules/lstat (Depends-on): Likewise.
148         * modules/mbrlen (Depends-on): Likewise.
149         * modules/mbrtowc (Depends-on): Likewise.
150         * modules/mbsinit (Depends-on): Likewise.
151         * modules/mbsnrtowcs (Depends-on): Likewise.
152         * modules/mbsrtowcs (Depends-on): Likewise.
153         * modules/mbtowc (Depends-on): Likewise.
154         * modules/memcmp (Depends-on): Likewise.
155         * modules/mkdir (Depends-on): Likewise.
156         * modules/mkdtemp (Depends-on): Likewise.
157         * modules/mkfifo (Depends-on): Likewise.
158         * modules/mkfifoat (Depends-on): Likewise.
159         * modules/mknod (Depends-on): Likewise.
160         * modules/mkostemp (Depends-on): Likewise.
161         * modules/mkostemps (Depends-on): Likewise.
162         * modules/mkstemp (Depends-on): Likewise.
163         * modules/mkstemps (Depends-on): Likewise.
164         * modules/mktime (Depends-on): Likewise.
165         * modules/nanosleep (Depends-on): Likewise.
166         * modules/open (Depends-on): Likewise.
167         * modules/openat (Depends-on): Likewise.
168         * modules/perror (Depends-on): Likewise.
169         * modules/poll (Depends-on): Likewise.
170         * modules/popen (Depends-on): Likewise.
171         * modules/posix_spawn (Depends-on): Likewise.
172         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
173         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
174         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
175         * modules/posix_spawnp (Depends-on): Likewise.
176         * modules/pread (Depends-on): Likewise.
177         * modules/printf-posix (Depends-on): Likewise.
178         * modules/ptsname (Depends-on): Likewise.
179         * modules/putenv (Depends-on): Likewise.
180         * modules/pwrite (Depends-on): Likewise.
181         * modules/readline (Depends-on): Likewise.
182         * modules/readlink (Depends-on): Likewise.
183         * modules/readlinkat (Depends-on): Likewise.
184         * modules/recv (Depends-on): Likewise.
185         * modules/recvfrom (Depends-on): Likewise.
186         * modules/regex (Depends-on): Likewise.
187         * modules/remove (Depends-on): Likewise.
188         * modules/rename (Depends-on): Likewise.
189         * modules/renameat (Depends-on): Likewise.
190         * modules/rmdir (Depends-on): Likewise.
191         * modules/round (Depends-on): Likewise.
192         * modules/roundf (Depends-on): Likewise.
193         * modules/roundl (Depends-on): Likewise.
194         * modules/rpmatch (Depends-on): Likewise.
195         * modules/select (Depends-on): Likewise.
196         * modules/send (Depends-on): Likewise.
197         * modules/sendto (Depends-on): Likewise.
198         * modules/setenv (Depends-on): Likewise.
199         * modules/setlocale (Depends-on): Likewise.
200         * modules/setsockopt (Depends-on): Likewise.
201         * modules/shutdown (Depends-on): Likewise.
202         * modules/sigaction (Depends-on): Likewise.
203         * modules/signbit (Depends-on): Likewise.
204         * modules/sigprocmask (Depends-on): Likewise.
205         * modules/sinl (Depends-on): Likewise.
206         * modules/sleep (Depends-on): Likewise.
207         * modules/snprintf (Depends-on): Likewise.
208         * modules/snprintf-posix (Depends-on): Likewise.
209         * modules/socket (Depends-on): Likewise.
210         * modules/sprintf-posix (Depends-on): Likewise.
211         * modules/sqrtl (Depends-on): Likewise.
212         * modules/stat (Depends-on): Likewise.
213         * modules/strchrnul (Depends-on): Likewise.
214         * modules/strdup-posix (Depends-on): Likewise.
215         * modules/strerror (Depends-on): Likewise.
216         * modules/strerror_r-posix (Depends-on): Likewise.
217         * modules/strndup (Depends-on): Likewise.
218         * modules/strnlen (Depends-on): Likewise.
219         * modules/strptime (Depends-on): Likewise.
220         * modules/strsep (Depends-on): Likewise.
221         * modules/strsignal (Depends-on): Likewise.
222         * modules/strstr-simple (Depends-on): Likewise.
223         * modules/strtod (Depends-on): Likewise.
224         * modules/strtoimax (Depends-on): Likewise.
225         * modules/strtok_r (Depends-on): Likewise.
226         * modules/strtoumax (Depends-on): Likewise.
227         * modules/symlink (Depends-on): Likewise.
228         * modules/symlinkat (Depends-on): Likewise.
229         * modules/tanl (Depends-on): Likewise.
230         * modules/tcgetsid (Depends-on): Likewise.
231         * modules/tmpfile (Depends-on): Likewise.
232         * modules/trunc (Depends-on): Likewise.
233         * modules/truncf (Depends-on): Likewise.
234         * modules/truncl (Depends-on): Likewise.
235         * modules/uname (Depends-on): Likewise.
236         * modules/unlink (Depends-on): Likewise.
237         * modules/unlockpt (Depends-on): Likewise.
238         * modules/unsetenv (Depends-on): Likewise.
239         * modules/usleep (Depends-on): Likewise.
240         * modules/utimensat (Depends-on): Likewise.
241         * modules/vasprintf (Depends-on): Likewise.
242         * modules/vdprintf (Depends-on): Likewise.
243         * modules/vdprintf-posix (Depends-on): Likewise.
244         * modules/vfprintf-posix (Depends-on): Likewise.
245         * modules/vprintf-posix (Depends-on): Likewise.
246         * modules/vsnprintf (Depends-on): Likewise.
247         * modules/vsnprintf-posix (Depends-on): Likewise.
248         * modules/vsprintf-posix (Depends-on): Likewise.
249         * modules/wcrtomb (Depends-on): Likewise.
250         * modules/wcscasecmp (Depends-on): Likewise.
251         * modules/wcscspn (Depends-on): Likewise.
252         * modules/wcsdup (Depends-on): Likewise.
253         * modules/wcsncasecmp (Depends-on): Likewise.
254         * modules/wcsnrtombs (Depends-on): Likewise.
255         * modules/wcspbrk (Depends-on): Likewise.
256         * modules/wcsrtombs (Depends-on): Likewise.
257         * modules/wcsspn (Depends-on): Likewise.
258         * modules/wcsstr (Depends-on): Likewise.
259         * modules/wcstok (Depends-on): Likewise.
260         * modules/wcswidth (Depends-on): Likewise.
261         * modules/wctob (Depends-on): Likewise.
262         * modules/wctomb (Depends-on): Likewise.
263         * modules/wctype (Depends-on): Likewise.
264         * modules/wcwidth (Depends-on): Likewise.
265         * modules/write (Depends-on): Likewise.
266
267 2011-05-03  Bruno Haible  <bruno@clisp.org>
268
269         Support for conditional dependencies.
270         * doc/gnulib.texi (Module description): Document the syntax of
271         conditional dependencies.
272         * gnulib-tool: New option --conditional-dependencies.
273         (func_usage): Document it.
274         (cond_dependencies): New variable.
275         (func_get_automake_snippet_conditional,
276         func_get_automake_snippet_unconditional): New functions, extracted from
277         func_get_automake_snippet.
278         (func_get_automake_snippet): Use them.
279         (sed_first_32_chars): New variable.
280         (func_module_shellfunc_name): New function.
281         (func_module_shellvar_name): New function.
282         (func_module_conditional_name): New function.
283         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
284         func_cond_module_condition): New functions.
285         (func_modules_transitive_closure): Add support for conditional
286         dependencies.
287         (func_emit_lib_Makefile_am): For a conditional module, enclose the
288         conditional automake snippet in an automake conditional.
289         (func_emit_autoconf_snippets): Emit shell functions that contain the
290         code for conditional modules.
291         (func_import, func_create_testdir): Update specification.
292
293 2011-05-03  Eric Blake  <eblake@redhat.com>
294
295         test-getaddrinfo: report error information
296         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
297
298 2011-05-03  Jim Meyering  <meyering@redhat.com>
299
300         bootstrap: avoid build failure when $GZIP is set
301         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
302         program name.  If defined at all, it is supposed to list gzip options.
303         Reported by Alan Curry in http://debbugs.gnu.org/8609
304
305 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
306
307         readme-release: new module with release instructions
308         * modules/readme-release: New module.
309         * top/README-release: New file, from coreutils, grep, diffutils.
310         * MODULES.html.sh (Support for maintaining and releasing): Add it.
311
312 2011-05-02  Eric Blake  <eblake@redhat.com>
313
314         fflush: also replace fclose when fixing fflush
315         * modules/fflush (Depends-on): Add fclose.
316         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
317         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
318         memstreams with no backing fd.
319         * doc/posix-functions/fclose.texi (fclose): Document the use of
320         fflush module to fix the bug.
321         * tests/test-fclose.c (main): Relax test when fclose is used in
322         isolation.
323
324         fclose: add some tests
325         * modules/fclose-tests: New test module.
326         * tests/test-fclose.c: New file.
327         * doc/posix-functions/fclose.texi (fclose): Document the bug.
328
329         fclose: reduced dependencies
330         * modules/fclose (Depends-on): Switch from fflush/fseeko to
331         simpler lseek.
332         * lib/fclose.c (rpl_fclose): Likewise.
333         Reported by Simon Josefsson.
334
335         exit: drop remaining clients
336         * modules/argmatch (Depends-on): Replace exit with stdlib.
337         * modules/copy-file (Depends-on): Likewise.
338         * modules/execute (Depends-on): Likewise.
339         * modules/exitfail (Depends-on): Likewise.
340         * modules/obstack (Depends-on): Likewise.
341         * modules/pagealign_alloc (Depends-on): Likewise.
342         * modules/pipe-filter-gi (Depends-on): Likewise.
343         * modules/pipe-filter-ii (Depends-on): Likewise.
344         * modules/savewd (Depends-on): Likewise.
345         * modules/spawn-pipe (Depends-on): Likewise.
346         * modules/wait-process (Depends-on): Likewise.
347         * modules/xsetenv (Depends-on): Likewise.
348         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
349         * modules/git-merge-changelog (Depends-on): Likewise.
350         * modules/long-options (Depends-on): Likewise.
351         * modules/pt_chown (Depends-on): Likewise.
352         * modules/sysexits (Depends-on): Likewise.
353
354         freading: relax license from LGPLv3+ to LGPLv2+
355         * modules/freading (License): Relax LGPL version.
356
357 2011-05-02  Bruno Haible  <bruno@clisp.org>
358
359         fchdir: Remove unused dependencies.
360         * modules/fchdir (Depends-on): Remove include_next.
361
362 2011-05-02  Bruno Haible  <bruno@clisp.org>
363
364         gnulib-tool: Refactor.
365         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
366         from func_emit_autoconf_snippets.
367         (func_emit_autoconf_snippets): Use it.
368
369 2011-05-02  Simon Josefsson  <simon@josefsson.org>
370
371         * NEWS: Document removal of 'exit'.
372         * modules/exit: Remove file.
373
374 2011-05-01  Bruno Haible  <bruno@clisp.org>
375
376         Update DEPENDENCIES.
377         * DEPENDENCIES (gettext): Recommend the newest release.
378         Reported by Simon Josefsson.
379
380 2011-05-01  Bruno Haible  <bruno@clisp.org>
381
382         gnulib-tool: Reduce code duplication.
383         * gnulib-tool (func_emit_autoconf_snippets): New function.
384         (func_import, func_create_testdir): Use it.
385
386 2011-04-30  Eric Blake  <eblake@redhat.com>
387
388         fclose: don't fail on non-seekable input stream
389         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
390         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
391         since fflush is allowed to fail in that case.
392
393 2011-04-30  Bruno Haible  <bruno@clisp.org>
394
395         dup3: cleanup
396         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
397
398 2011-04-30  Bruno Haible  <bruno@clisp.org>
399
400         netdb: Make it work in C++ mode.
401         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
402         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
403         module.
404         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
405         gl_MODULE_INDICATOR_FOR_TESTS.
406         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
407         * modules/netdb-c++-tests: New file.
408         * tests/test-netdb-c++.cc: New file.
409
410 2011-04-30  Bruno Haible  <bruno@clisp.org>
411
412         New modules 'vfscanf', 'vscanf'.
413         * modules/vfscanf: New file.
414         * modules/vscanf: New file.
415         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
416         here.
417         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
418         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
419
420 2011-04-30  Bruno Haible  <bruno@clisp.org>
421
422         passfd: Add comments.
423         * lib/passfd.c: Add comments about platforms.
424
425 2011-04-30  Bruno Haible  <bruno@clisp.org>
426
427         sys_uio: Make <sys/uio.h> self-contained.
428         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
429         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
430
431 2011-04-30  Bruno Haible  <bruno@clisp.org>
432
433         sys_socket: Ensure 'struct iovec' definition.
434         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
435         <sys/socket.h>.
436         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
437
438 2011-04-30  Bruno Haible  <bruno@clisp.org>
439
440         sys_uio: Protect definition of 'struct iovec'.
441         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
442         it as a C struct.
443
444 2011-04-30  Bruno Haible  <bruno@clisp.org>
445
446         manywarnings: fix indentation
447         * m4/manywarnings.m4: Indent by 2 spaces consistently.
448
449 2011-04-30  Pádraig Brady <P@draigBrady.com>
450
451         manywarnings: add -Wno-missing-field-initializers if needed.
452         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
453         option if it's needed to allow initialization with { 0, }
454
455 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
456
457         announce-gen: cosmetic improvement
458         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
459
460 2011-04-29  Jim Meyering  <meyering@redhat.com>
461
462         vc-list-files: indent with spaces, not TABs
463         * build-aux/vc-list-files: Convert leading TABs to spaces,
464         to match the style of most other files in gnulib.
465
466         announce-gen: indent with spaces, not TABs
467         * build-aux/announce-gen: Convert all TABs to spaces, to match
468         the style of most other files in gnulib.
469
470 2011-04-29  Eric Blake  <eblake@redhat.com>
471
472         quotearg: avoid uninitialized variable use
473         * lib/quotearg.c (quoting_options_from_style): Initialize
474         remaining fields, and ensure that custom styles are only used via
475         quoting_options rather than quoting_style.
476
477 2011-04-29  Jim Meyering  <meyering@redhat.com>
478
479         maint.mk: remove unused VC-tag variable
480         * top/maint.mk (VC-tag): Remove unused variable.
481
482 2011-04-29  Bruno Haible  <bruno@clisp.org>
483
484         netdb: fix gai_strerror replacements
485         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
486         * modules/netdb: Substitute it.
487
488 2011-04-29  Jim Meyering  <meyering@redhat.com>
489
490         test-getcwd.c: avoid new set-but-not-used warning
491         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
492         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
493         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
494         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
495
496         test-hash.c: avoid a new shadowing warning
497         * tests/test-hash.c (main): Don't shadow "dup".
498
499 2011-04-28  Eric Blake  <eblake@redhat.com>
500
501         getaddrinfo: fix gai_strerror signature
502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
503         and work around mingw with UNICODE defined.
504         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
505         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
506         * modules/netdb (Makefile.am): Substitute it.
507         * lib/netdb.in.h (gai_strerror): Declare replacement.
508         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
509         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
510         the fix.
511
512         getsockopt: avoid compiler warning
513         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
514         Reported by Matthias Bolte.
515
516         tests: drop unused link dependency
517         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
518         * modules/dirent-safer-tests (Makefile.am): Likewise.
519         * modules/fdopendir-tests (Makefile.am): Likewise.
520         * modules/mkfifoat-tests (Makefile.am): Likewise.
521         * modules/openat-safer-tests (Makefile.am): Likewise.
522         * modules/openat-tests (Makefile.am): Likewise.
523         * modules/readlinkat-tests (Makefile.am): Likewise.
524         * modules/symlinkat-tests (Makefile.am): Likewise.
525         * modules/linkat-tests (Makefile.am): Likewise.
526         (Depends-on): Switch to filenamecat-lgpl.
527         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
528         LIBINTL.
529         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
530         * tests/test-linkat.c (main): Don't require xalloc.
531
532         hash, mgetgroups: drop xalloc dependency
533         * lib/hash.c (includes): Adjust includes.
534         * lib/mgetgroups.c (includes): Likewise.
535         (xgetgroups): Move...
536         * lib/xgetgroups.c: ...to new file.
537         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
538         * modules/xgetgroups: New file, split from...
539         * modules/mgetgroups: ...here.
540         (Depends-on): Add xalloc-oversized.
541         * modules/hash (Depends-on): Likewise.
542         * modules/hash-tests (Depends-on): Drop xalloc.
543         (test_hash_LDADD): Drop unused library.
544         * tests/test-hash.c (main): Break xalloc dependency.
545         (includes): Drop unused include.
546
547         xalloc-oversized: new module
548         * modules/xalloc-oversized: New module.
549         * modules/xalloc (Depends-on): Add it.
550         * lib/xalloc.h (xalloc_oversized): Move...
551         * lib/xalloc-oversized.h: ...into new file.
552
553         utimecmp: drop dependency on xmalloc
554         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
555         due to memory pressure.
556         * modules/utimecmp (Depends-on): Drop xalloc.
557
558 2011-04-27  Eric Blake  <eblake@redhat.com>
559
560         getcwd: fix mingw bugs
561         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
562         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
563         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
564
565 2011-04-27  Bruno Haible  <bruno@clisp.org>
566
567         mkstemps: Ensure declaration on MacOS X 10.5.
568         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
569         * doc/glibc-functions/mkstemps.texi: Document header file problem on
570         MacOS X.
571
572 2011-04-27  Bruno Haible  <bruno@clisp.org>
573
574         mkstemp: More documentation.
575         * doc/posix-functions/mkstemp.texi: Document header file problem on
576         MacOS X.
577
578 2011-04-27  Bruno Haible  <bruno@clisp.org>
579
580         mkstemp: Tweak configure message when cross-compiling.
581         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
582         result as a guess.
583
584 2011-04-27  Bruno Haible  <bruno@clisp.org>
585
586         clean-temp: Clarify what it does.
587         * lib/clean-temp.h: Add more comments.
588         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
589         module.
590         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
591         * doc/glibc-functions/mkstemps.texi: Likewise.
592         * doc/glibc-functions/mkostemps.texi: Likewise.
593
594 2011-04-27  Eric Blake  <eblake@redhat.com>
595
596         fchdir: avoid extra chdir and fix test
597         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
598         getcwd-lgpl.
599         * lib/fchdir.c (get_name): Any absolute name will do; it does not
600         have to be canonical.
601         (canonicalize_file_name): Drop unused macro.
602         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
603
604         filenamecat-lgpl: fix licence
605         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
606         when it was first created.
607
608         linkat, renameat: add missing dependency
609         * modules/linkat (Depends-on): Require getcwd-lgpl.
610         * modules/renameat (Depends-on): Likewise.
611
612         tests: reduce dependencies
613         * tests/test-linkat.c (main): Use lighter-weight getcwd.
614         * tests/test-renameat.c (main): Likewise.
615         * modules/linkat-tests (Depends-on): Relax dependency.
616         * modules/renameat-tests (Depends-on): Likewise.
617         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
618         dependency explicit.
619
620         save-cwd: reduce default dependency
621         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
622         * lib/save-cwd.c: Update comments.
623         * NEWS: Document the semantic change.
624
625         getcwd: enhance tests
626         * tests/test-getcwd-lgpl.c: New file, taken from...
627         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
628         repeat long path stress tests from m4 probe.
629         * modules/getcwd-lgpl-tests: New module.
630         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
631         * m4/getcwd-abort-bug.m4: Update comment.
632         * m4/getcwd-path-max.m4: Likewise.
633
634         getcwd-lgpl: new module
635         * modules/getcwd-lgpl: New module.
636         * lib/getcwd-lgpl.c: New file.
637         * doc/posix-functions/getcwd.texi (getcwd): Document it.
638         * MODULES.html.sh (lacking POSIX:2008): Likewise.
639         * modules/getcwd (configure.ac): Set C witness.
640         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
641
642         getcwd: tweak comments
643         * m4/getcwd-abort-bug.m4: Fix comments.
644         * m4/getcwd-path-max.m4: Likewise.
645         * m4/getcwd.m4: Likewise.
646
647 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
648         and Eric Blake  <eblake@redhat.com>
649
650         mkstemp: replace if system version uses wrong permissions
651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
652         read/write mode bits set in file created by mkstemp.
653         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
654
655 2011-04-27  Eric Blake  <eblake@redhat.com>
656
657         passfd: avoid compiler warning
658         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
659         Reported by Laine Stump.
660
661 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
662
663         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
664         required by the NetBSD (and perhaps other 4.4BSD derived) join.
665
666 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
667         and Eric Blake  <eblake@redhat.com>
668
669         mkstemp: mention clean-temp module
670         * lib/mkstemp.c: Add comment.
671         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
672
673 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
674
675         inttypes: also provide default values for 32-bit tests
676         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
677         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
678
679 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
680
681         strtoumax: remove dependency on strtoimax
682         This is like the strtoull change of yesterday.
683         * modules/strtoumax (Files): Add lib/strtoimax.c.
684         (Depends-on): Remove strtoimax and add verify.
685
686         inttypes-incomplete: new module
687         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
688         all but the PRI* and SCN* parts of gl_INTTYPES_H.
689         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
690         of gl_INTTYPES_H.
691         (gl_INTTYPES_H): Rewrite in terms of these new macros.
692         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
693         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
694         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
695         * modules/strtoumax, modules/xstrtol (Depends-on):
696         Depend on inttypes-incomplete, not inttypes.
697         * modules/inttypes-incomplete: New module, containing the contents
698         of the old modules/inttypes module, except that the Files: section
699         omits m4/inttypes-pri.m4, and the configure.ac section invokes
700         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
701         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
702         (Depends-on): Depend only on inttypes-incomplete.
703         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
704
705         inttypes: omit now-redundant strtoimax and strtoumax work
706         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
707         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
708
709         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
710         This supports apps that need pointers to strtoimax and strtoumax,
711         and ports to HP-UX 11.00 64.bit, which has macros that expand to
712         nonexistent functions.  See
713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
714         et seq.
715         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
716         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
717         a macro.
718         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
719
720 2011-04-25  Simon Josefsson  <simon@josefsson.org>
721
722         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
723
724 2011-04-25  Bruno Haible  <bruno@clisp.org>
725
726         strtol, strtoul: Mark modules as obsolete.
727         * modules/strtol (Status, Notice): New sections.
728         * modules/strtoul (Status, Notice): New sections.
729
730 2011-04-25  Bruno Haible  <bruno@clisp.org>
731
732         strtod: Remove check for strtod, unless supporting old platforms.
733         * modules/strtod-obsolete: New file.
734         * m4/strtod-obsolete.m4: New file.
735         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
736         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
737         * modules/strtod (Depends-on): Add strtod-obsolete.
738         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
739
740 2011-04-25  Bruno Haible  <bruno@clisp.org>
741
742         strcase: Make module obsolete.
743         * modules/strcase (Status, Notice): New sections.
744
745 2011-04-25  Bruno Haible  <bruno@clisp.org>
746
747         dup2: Remove check for dup2, unless supporting old obsolete platforms.
748         * modules/dup2-obsolete: New file.
749         * m4/dup2-obsolete.m4: New file.
750         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
751         gl_FUNC_DUP2_OBSOLETE is not also defined.
752         * modules/dup2 (Depends-on): Add dup2-obsolete.
753         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
754
755 2011-04-25  Bruno Haible  <bruno@clisp.org>
756
757         strnlen: Avoid memchr related link error on old obsolete platforms.
758         * modules/memchr-obsolete: New file.
759         * m4/memchr-obsolete.m4: New file.
760         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
761         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
762         * modules/memchr (Depends-on): Add memchr-obsolete.
763         * modules/strnlen (Depends-on): Likewise.
764         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
765
766 2011-04-25  Jim Meyering  <meyering@redhat.com>
767
768         maint.mk: makefile_at_at_check extend and clean up
769         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
770         in addition to */Makefile.am.
771         Exempt legitimate uses of @VAR@ notation, e.g.,
772         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
773         Remove obsolete coreutils-specific comment.
774         Prompted by discussion here:
775         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
776
777 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
778
779         strtoul: remove dependency on strtol
780         This is so that 'configure' need not check for strtol merely because
781         the application needs strtoul.
782         * modules/strtoul (Files): Add lib/strtol.c.
783         (Depends-on): Remove strtol.
784
785         strtoull: remove dependency on strtoul
786         This is like the strtoll change.
787         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
788         (Depends-on): Remove strtoul.
789
790         strtoll: remove dependency on strtol
791         This is so that 'configure' need not check for strtol merely because
792         the application needs strtoll.
793         * modules/strtoll (Files): Add lib/strtol.c.
794         (Depends-on): Remove strtol.
795
796 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
797
798         inttypes: Move some configure check to module 'imaxdiv'.
799         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
800         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
801         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
802
803 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
804
805         inttypes: Move some configure check to module 'imaxabs'.
806         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
807         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
808         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
809
810 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
811
812         inttypes: Remove configure tests that are not needed since 2009-12-31.
813         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
814         gl_cv_header_working_inttypes_h.
815
816 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
817
818         * modules/strnlen (Depends-on): Remove memchr.
819         The strnlen implementation doesn't need the memchr module's fixes; see
820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
821
822         strtol: remove dependency on wchar
823         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
824         * modules/strtol (Depends-on): Remove wchar.
825
826 2011-04-21  Eric Blake  <eblake@redhat.com>
827
828         passfd: fix test regression on Linux
829         * modules/passfd-tests (configure.ac): Correct socketpair check.
830
831         passfd: speed up configure and drop unused code
832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
833         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
834         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
835         Instead of probing at configure for unix_scm_rights_bsd44_way,
836         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
837         check to a struct member probe.
838         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
839         (sendfd, recvfd): Update preprocessor checks.
840         * modules/passfd (Files): Reflect rename, and drop unused file.
841         (Depends-on): Drop unused dependency.
842
843         passfd: allow compilation on mingw
844         * modules/sys_socket (Depends-on): Add sys_uio.
845         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
846         iovec and a minimal struct msghdr.
847         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
848         * tests/test-sys_socket.c (main): Enhance test.
849         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
850         guaranteed to provide what we need.
851         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
852         * modules/passfd-tests (Depends-on): Add sys_wait.
853         * tests/test-passfd.c (main): Skip test on mingw, for now.
854         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
855         partial 'struct msghdr' implementation.
856
857         sys_uio: new module
858         * modules/sys_uio: New module.
859         * modules/sys_uio-tests: Likewise.
860         * lib/sys_uio.in.h: New file.
861         * m4/sys_uio_h.m4: Likewise.
862         * tests/test-sys_uio.c: Likewise.
863         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
864         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
865
866 2011-04-20  Jim Meyering  <meyering@redhat.com>
867
868         useless-if-before-free: avoid false-positive
869         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
870         disjunct so that it too requires a terminating ";".  Without that,
871         this script would identify as useless one statement from gcc that
872         was not:
873           if (aligned_ptr)
874             free (((void **) aligned_ptr) [-1]);
875
876 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
877
878         doc: update users.txt.
879         * users.txt: Add barcode.
880
881 2011-04-19  Bruno Haible  <bruno@clisp.org>
882
883         ioctl: Remove link dependency on native Windows.
884         * lib/fd-hook.h: Renamed from lib/close-hook.h.
885         (gl_close_fn, gl_ioctl_fn): New types.
886         (struct fd_hook): Renamed from struct close_hook. Change type of
887         private_close_fn field. Add private_ioctl_fn field.
888         (close_hook_fn): Add parameter for primary close method.
889         (execute_close_hooks, execute_all_close_hooks): Likewise.
890         (ioctl_hook_fn): New type.
891         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
892         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
893         argument.
894         (unregister_fd_hook): Renamed from unregister_close_hook.
895         * lib/fd-hook.c: Renamed from lib/close-hook.c.
896         Don't include <unistd.h>.
897         (close): Remove undef.
898         (anchor): Update.
899         (execute_close_hooks): Add argument for primary close method.
900         (execute_all_close_hooks): Likewise.
901         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
902         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
903         argument. Allow each argument to be NULL.
904         (unregister_fd_hook): Renamed from unregister_close_hook.
905         * lib/close.c (rpl_close): Pass 'close' function pointer to
906         execute_all_close_hooks.
907         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
908         (primary_ioctl): New function.
909         (ioctl): Don't call ioctlsocket here. Instead, call
910         execute_all_ioctl_hooks.
911         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
912         close method.
913         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
914         (fd_sockets_hook): Renamed from close_sockets_hook.
915         (gl_sockets_startup, gl_sockets_cleanup): Update.
916         * modules/fd-hook: Renamed from modules/close-hook. Update.
917         * modules/close (Depends-on): Add fd-hook, remove close-hook.
918         * modules/sockets (Depends-on): Likewise.
919         * modules/ioctl (Depends-on): Add fd-hook.
920         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
921         GNULIB_SOCKET.
922
923 2011-04-19  Bruno Haible  <bruno@clisp.org>
924
925         Move the support of O_NONBLOCK in open() to the 'open' module.
926         * modules/nonblocking (Depends-on): Remove 'open'.
927         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
928         gl_cv_have_open_O_NONBLOCK.
929         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
930         O_NONBLOCK support.
931         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
932
933 2011-04-17  Bruno Haible  <bruno@clisp.org>
934
935         pipe2: Simplify code.
936         * lib/pipe2.c (pipe2): Reduce code duplication.
937
938 2011-04-17  Bruno Haible  <bruno@clisp.org>
939
940         nonblocking: Add comment.
941         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
942
943 2011-04-17  Bruno Haible  <bruno@clisp.org>
944
945         nonblocking: Add tests for sockets.
946         * tests/test-nonblocking-socket.sh: New file.
947         * tests/test-nonblocking-socket-main.c: New file.
948         * tests/test-nonblocking-socket-child.c: New file.
949         * tests/test-nonblocking-socket.h: New file.
950         * tests/socket-server.h: New file.
951         * tests/socket-client.h: New file.
952         * modules/nonblocking-socket-tests: New file.
953         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
954
955 2011-04-17  Bruno Haible  <bruno@clisp.org>
956
957         nonblocking: Add tests for pipes.
958         * tests/test-nonblocking-pipe.sh: New file.
959         * tests/test-nonblocking-pipe-main.c: New file.
960         * tests/test-nonblocking-pipe-child.c: New file.
961         * tests/test-nonblocking-pipe.h: New file.
962         * tests/test-nonblocking-writer.h: New file.
963         * tests/test-nonblocking-reader.h: New file.
964         * tests/test-nonblocking-misc.h: New file.
965         * modules/nonblocking-pipe-tests: New file.
966         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
967
968 2011-04-16  Bruno Haible  <bruno@clisp.org>
969
970         gettext: Clarify the needed programmer actions.
971         * modules/gettext (Notice): New field.
972         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
973
974 2011-04-16  Bruno Haible  <bruno@clisp.org>
975
976         strchrnul: Tweak last commit.
977         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
978         bug.
979         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
980         as in _GL_FUNCDECL_SYS.
981         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
982         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
983
984 2011-04-15  Eric Blake  <eblake@redhat.com>
985
986         strchrnul: work around cygwin bug
987         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
988         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
990         * modules/string (Makefile.am): Substitute it.
991         * lib/string.in.h (strchrnul): Use it.
992
993 2011-04-15  Bruno Haible  <bruno@clisp.org>
994
995         Don't require lib/stdio-write.c when only module 'stdio' is used.
996         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
997         invocation.
998         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
999
1000 2011-04-14  Bruno Haible  <bruno@clisp.org>
1001
1002         Support non-blocking pipe I/O in read() on native Windows.
1003         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1004         (read): New declaration.
1005         * lib/read.c: New file.
1006         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1007         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1008         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1009         vscanf): New declarations.
1010         * lib/stdio-read.c: New file.
1011         * m4/read.m4: New file.
1012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1013         REPLACE_READ.
1014         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1015         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1016         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1017         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1018         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1019         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1020         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1021         * modules/read: New file.
1022         * modules/nonblocking (Files): Add lib/stdio-read.c.
1023         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1024         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1025         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1026         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1027         * modules/pread (Depends-on): Add read.
1028         * modules/safe-read (Depends-on): Likewise.
1029         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1030         gets, scanf, vfscanf, vscanf): Verify signatures.
1031         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1032         problem with non-blocking pipes.
1033         * doc/posix-functions/fgetc.texi: Likewise.
1034         * doc/posix-functions/fgets.texi: Likewise.
1035         * doc/posix-functions/fread.texi: Likewise.
1036         * doc/posix-functions/fscanf.texi: Likewise.
1037         * doc/posix-functions/getc.texi: Likewise.
1038         * doc/posix-functions/getchar.texi: Likewise.
1039         * doc/posix-functions/gets.texi: Likewise.
1040         * doc/posix-functions/scanf.texi: Likewise.
1041         * doc/posix-functions/vfscanf.texi: Likewise.
1042         * doc/posix-functions/vscanf.texi: Likewise.
1043
1044 2011-04-14  Bruno Haible  <bruno@clisp.org>
1045
1046         Support non-blocking pipe I/O in write() on native Windows.
1047         * lib/write.c (rpl_write): Split a write request that failed merely
1048         because the byte count was larger than the pipe buffer's size.
1049         * doc/posix-functions/write.texi: Mention the problem with large byte
1050         counts.
1051
1052 2011-04-14  Bruno Haible  <bruno@clisp.org>
1053
1054         wchar: Ensure that wchar_t gets defined on uClibc.
1055         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1056         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1057
1058 2011-04-13  Bruno Haible  <bruno@clisp.org>
1059
1060         safe-write, full-read: Avoid unnecessary compilation units.
1061         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1062         (Depends-on): Remove safe-read. Add ssize_t.
1063         * modules/full-read (Files): Add lib/full-write.c.
1064         (Depends-on): Add full-write.
1065
1066 2011-04-13  Bruno Haible  <bruno@clisp.org>
1067
1068         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1069         * modules/pwrite (Depends-on): Add 'write'.
1070
1071 2011-04-13  Bruno Haible  <bruno@clisp.org>
1072
1073         Support non-blocking pipe I/O in write() on native Windows.
1074         * lib/unistd.in.h (write): Enable replacement also if
1075         GNULIB_UNISTD_H_NONBLOCKING is 1.
1076         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1077         (rpl_write): When failing to write on a non-blocking pipe, change
1078         errno from ENOSPC to EAGAIN.
1079         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1080         putchar, puts, vfprintf, vprintf): Enable replacement also if
1081         GNULIB_STDIO_H_NONBLOCKING is 1.
1082         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1083         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1084         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1085         CALL_WITH_SIGPIPE_EMULATION.
1086         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1087         * m4/nonblocking.m4: New file.
1088         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1089         for non-blocking I/O support.
1090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1091         GNULIB_UNISTD_H_NONBLOCKING.
1092         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1093         required for non-blocking I/O support.
1094         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1095         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1096         lib/stdio-write.c, m4/asm-underscore.m4.
1097         (Depends-on): Add stdio, unistd.
1098         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1099         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1100         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1101         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1102         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1103         problem with non-blocking pipes.
1104         * doc/posix-functions/fputc.texi: Likewise.
1105         * doc/posix-functions/fputs.texi: Likewise.
1106         * doc/posix-functions/fwrite.texi: Likewise.
1107         * doc/posix-functions/printf.texi: Likewise.
1108         * doc/posix-functions/putc.texi: Likewise.
1109         * doc/posix-functions/putchar.texi: Likewise.
1110         * doc/posix-functions/puts.texi: Likewise.
1111         * doc/posix-functions/vfprintf.texi: Likewise.
1112         * doc/posix-functions/vprintf.texi: Likewise.
1113         * doc/posix-functions/write.texi: Likewise.
1114
1115 2011-04-10  Jim Meyering  <meyering@redhat.com>
1116
1117         maint.mk: prohibit doubled words
1118         Detect them also when they're separated by a newline.
1119         There are 3 ways to customize it:
1120           - disable the test on a per file basis, as usual with rules using
1121             $(VC_LIST_EXCEPT)
1122           - replace the default doubled-word-selecting regexp (affects all files)
1123           - ignore a particular file-vs-doubled-word match
1124         I nearly used that last one to ignore the "is is" match in
1125         coreutils' NEWS file, since the text was "ls -is is ..."
1126         To do that, I would have added this line to cfg.mk:
1127           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1128         but it would have ignored any "is is" match in NEWS.
1129         Low probability, but still...
1130         Instead, I changed the text, slightly:
1131           -  ls -is is now consistent with ls -lis in ignoring values returned
1132           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1133         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1134         (prohibit_doubled_word_): Define.
1135         (sc_prohibit_doubled_word): New rule.
1136         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1137
1138 2011-04-10  Jim Meyering  <meyering@redhat.com>
1139
1140         maint: fix doubled-word typo in comment
1141         * m4/gethostname.m4: s/is is/it is/
1142         * m4/getdomainname.m4: Likewise.
1143
1144 2011-04-10  Jim Meyering  <meyering@redhat.com>
1145
1146         maint: remove doubled word: s/it it/it/
1147         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1148
1149 2011-04-10  Jim Meyering  <meyering@redhat.com>
1150
1151         maint.mk: remove useless semicolon and backslash
1152         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1153         semicolon and backslash.
1154
1155 2011-04-10  Bruno Haible  <bruno@clisp.org>
1156
1157         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1158         * modules/stdint-tests (Depends-on): Add wchar.
1159
1160 2011-04-10  Jim Meyering  <meyering@redhat.com>
1161
1162         maint: remove doubled words in comments, e.g., s/a a/a/
1163         * lib/strptime.c (day_of_the_week): s/the the/the/
1164         * tests/test-chown.h (test_chown): s/a a/a/
1165
1166         test-chown.h: correct a cast
1167         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1168         when the destination is a stat.st_gid.
1169
1170 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1171
1172         getaddrinfo: Fix test for sa_len member.
1173         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1174         include <sys/types.h> before <sys/socket.h>.
1175
1176 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1177
1178         maint: change "can not" to "cannot"
1179         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1180         boundaries.
1181
1182 2011-04-09  Jim Meyering  <meyering@redhat.com>
1183
1184         maint: change "a a" to "a"
1185         * tests/test-lchown.h (test_lchown): s/a a/a/
1186
1187         maint.mk: prohibit \<the the\>
1188         * top/maint.mk (sc_prohibit_the_the): New rule.
1189
1190         maint: fix "the the" in comment
1191         * lib/count-one-bits.h: s/the the/the/
1192
1193         maint: change "can not" to "cannot"
1194         But do not change the occurrences in maintain.texi or in
1195         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1196         * doc/gnulib-tool.texi: s/can not/cannot/
1197         * doc/posix-functions/accept.texi (accept): Likewise.
1198         * doc/posix-functions/socket.texi (socket): Likewise.
1199         * lib/mbrtowc.c: Likewise.
1200
1201         maint.mk: prohibit use of "can not"
1202         * top/maint.mk (sc_prohibit_can_not): New rule.
1203         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1204
1205 2011-04-09  Bruno Haible  <bruno@clisp.org>
1206
1207         careadlinkat: Guard against misuse of careadlinkatcwd.
1208         * lib/careadlinkat.c: Include <stdlib.h>.
1209         (careadlinkatcwd): Check that the fd argument is as expected.
1210
1211 2011-04-09  Bruno Haible  <bruno@clisp.org>
1212
1213         careadlinkat: Use common coding style.
1214         * lib/careadlinkat.c: Move gnulib includes after system includes.
1215
1216 2011-04-09  Bruno Haible  <bruno@clisp.org>
1217
1218         careadlinkat: Clarify specification.
1219         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1220         (careadlinkatcwd): Add comment.
1221         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
1222
1223 2011-04-09  Bruno Haible  <bruno@clisp.org>
1224
1225         areadlinkat: Avoid link error on many platforms.
1226         * modules/areadlinkat (Depends-on): Add areadlink.
1227
1228 2011-04-09  Bruno Haible  <bruno@clisp.org>
1229
1230         allocator, careadlinkat: Fix double-inclusion guard.
1231         * lib/allocator.h: Fix double-inclusion guard.
1232         * lib/careadlinkat.h: Likewise.
1233
1234 2011-04-09  Bruno Haible  <bruno@clisp.org>
1235
1236         relocatable-prog-wrapper: Update after module 'areadlink' changed.
1237         * lib/relocwrapper.c: Update dependencies hierarchy.
1238         * build-aux/install-reloc: Update list of files to be compiled.
1239         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
1240         lib/allocator.[hc].
1241
1242 2011-04-08  Eric Blake  <eblake@redhat.com>
1243
1244         strftime: silence gnulib-tool warning
1245         * modules/strftime-tests (Depends-on): Drop automatic dependency.
1246
1247 2011-04-08  Bruno Haible  <bruno@clisp.org>
1248
1249         verify: Fix syntax error with GCC 4.6 in C++ mode.
1250         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
1251         (HAVE_STATIC_ASSERT): New macro.
1252         (verify_true, verify): Use 'static_assert' if it is supported and
1253         '_Static_assert' is not supported.
1254
1255 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1256
1257         allocator: New module.
1258         * modules/allocator, lib/allocator.c: New files.
1259         * lib/allocator.h (stdlib_allocator): New decl.
1260         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
1261         Remove.  Do not include <stdlib.h>.
1262         (careadlinkat): Use stdlib_allocator instead of rolling our own.
1263         * modules/careadlinkat (Files): Remove lib/allocator.h.
1264         (Depends-on): Add allocator.
1265
1266         stdlib: let modules use system malloc, realloc
1267         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
1268         if !_GL_USE_STDLIB_ALLOC.
1269         (malloc, realloc): Limit this change to a smaller scope.
1270
1271         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
1272         (malloc, realloc): Don't #undef; no longer needed.
1273         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1274         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1275         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1276         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1277         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1278         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1279         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1280         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1281
1282         careadlinkat: rename members to avoid problem
1283         * lib/allocator.h (struct allocator): Rename members from
1284         malloc/realloc to allocate/reallocate, to avoid problems if malloc
1285         and realloc are #define'd.  Reported by Eric Blake in
1286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
1287         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
1288
1289 2011-04-08  Eric Blake  <eblake@redhat.com>
1290
1291         nonblocking: reduce dependency
1292         * tests/test-nonblocking.c: Only test sockets when in use.
1293         * modules/nonblocking-tests (Depends-on): Drop socket.
1294         (Makefile.am): Link even if sockets are not present.
1295         * modules/pipe2-tests (Makefile.am): Likewise.
1296         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
1297
1298         pipe2: fix O_NONBLOCK support on mingw
1299         * modules/pipe2 (Depends-on): Add nonblocking.
1300         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
1301         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
1302         * tests/test-nonblocking.c (main): Likewise.
1303         * modules/pipe2-tests (Makefile.am): Avoid link failure.
1304
1305         fcntl-h: fix O_ACCMODE on cygwin
1306         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
1307         * lib/fcntl.in.h (O_ACCMODE): Fix it.
1308
1309         pipe-filter: drop O_NONBLOCK workarounds
1310         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
1311         * modules/pipe-filter-ii (Depends-on): Likewise.
1312         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
1313
1314         nonblocking: provide O_NONBLOCK for mingw
1315         * modules/nonblocking (Depends-on): Add open.
1316         (configure.ac): Set new witness macro.
1317         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
1318         * modules/fcntl-h (Makefile.am): Substitute it.
1319         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
1320         nonblocking module is in use.
1321         * lib/nonblocking.c: Adjust portability test.
1322         * lib/open.c (open): Don't let native open see gnulib flag.
1323         * tests/test-fcntl-h.c (main): Enhance test.
1324         * tests/test-open.h (test_open): Likewise.
1325         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
1326
1327         careadlinkat: fix compilation error on mingw
1328         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
1329         within struct allocator.
1330
1331 2011-04-06  Eric Blake  <eblake@redhat.com>
1332
1333         binary-io: relicense under LGPLv2+
1334         * modules/binary-io (License): Relax to LGPLv2+.
1335         Requested for libvirt, and required by pipe2.
1336
1337 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1338
1339         verify: use _Static_assert if available
1340         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
1341         (verify_true, verify): Use it if available.  This generates better
1342         diagnostics with GCC 4.6.0 and later.
1343
1344 2011-04-05  Bruno Haible  <bruno@clisp.org>
1345
1346         Remove leftover generated .h files after config.status changed.
1347
1348         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
1349         GL_GENERATE_ALLOCA_H.
1350         * modules/alloca-opt (Makefile.am): Remove alloca.h if
1351         GL_GENERATE_ALLOCA_H evaluates to false.
1352
1353         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
1354         GL_GENERATE_ARGZ_H.
1355         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
1356         evaluates to false.
1357
1358         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
1359         GL_GENERATE_BYTESWAP_H.
1360         * modules/byteswap (Makefile.am): Remove byteswap.h if
1361         GL_GENERATE_BYTESWAP_H evaluates to false.
1362
1363         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
1364         GL_GENERATE_ERRNO_H.
1365         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
1366         evaluates to false.
1367
1368         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
1369         GL_GENERATE_FLOAT_H.
1370         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
1371         evaluates to false.
1372
1373         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
1374         GL_GENERATE_FNMATCH_H.
1375         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
1376         GL_GENERATE_FNMATCH_H evaluates to false.
1377
1378         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
1379         GL_GENERATE_GLOB_H.
1380         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
1381         evaluates to false.
1382
1383         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
1384         automake conditional GL_GENERATE_ICONV_H.
1385         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
1386         evaluates to false.
1387
1388         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
1389         GL_GENERATE_NETINET_IN_H.
1390         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
1391         GL_GENERATE_NETINET_IN_H evaluates to false.
1392
1393         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
1394         conditional GL_GENERATE_PTHREAD_H.
1395         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
1396         * modules/pthread (Makefile.am): Remove pthread.h if
1397         GL_GENERATE_PTHREAD_H evaluates to false.
1398
1399         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
1400         GL_GENERATE_SCHED_H.
1401         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
1402         evaluates to false.
1403
1404         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
1405         conditional GL_GENERATE_SELINUX_CONTEXT_H.
1406         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
1407         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
1408
1409         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
1410         GL_GENERATE_STDARG_H.
1411         * modules/stdarg (Makefile.am): Remove stdarg.h if
1412         GL_GENERATE_STDARG_H evaluates to false.
1413
1414         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
1415         GL_GENERATE_STDBOOL_H.
1416         * modules/stdbool (Makefile.am): Remove stdbool.h if
1417         GL_GENERATE_STDBOOL_H evaluates to false.
1418
1419         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
1420         conditional GL_GENERATE_STDDEF_H.
1421         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
1422         * modules/stddef (Makefile.am): Remove stddef.h if
1423         GL_GENERATE_STDDEF_H evaluates to false.
1424
1425         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
1426         GL_GENERATE_STDINT_H.
1427         * modules/stdint (Makefile.am): Remove stdint.h if
1428         GL_GENERATE_STDINT_H evaluates to false.
1429
1430         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
1431         GL_GENERATE_SYSEXITS_H.
1432         * modules/sysexits (Makefile.am): Remove sysexits.h if
1433         GL_GENERATE_SYSEXITS_H evaluates to false.
1434
1435         Reported by Karl Berry and Ralf Wildenhues.
1436
1437 2011-04-05  Bruno Haible  <bruno@clisp.org>
1438
1439         Ensure to rebuild generated .h files when config.status has changed.
1440         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
1441         config.status.
1442         * modules/ctype (Makefile.am): Likewise.
1443         * modules/dirent (Makefile.am): Likewise.
1444         * modules/errno (Makefile.am): Likewise.
1445         * modules/fcntl-h (Makefile.am): Likewise.
1446         * modules/float (Makefile.am): Likewise.
1447         * modules/getopt-posix (Makefile.am): Likewise.
1448         * modules/glob (Makefile.am): Likewise.
1449         * modules/iconv-h (Makefile.am): Likewise.
1450         * modules/inttypes (Makefile.am): Likewise.
1451         * modules/langinfo (Makefile.am): Likewise.
1452         * modules/locale (Makefile.am): Likewise.
1453         * modules/math (Makefile.am): Likewise.
1454         * modules/netdb (Makefile.am): Likewise.
1455         * modules/netinet_in (Makefile.am): Likewise.
1456         * modules/poll-h (Makefile.am): Likewise.
1457         * modules/pthread (Makefile.am): Likewise.
1458         * modules/pty (Makefile.am): Likewise.
1459         * modules/sched (Makefile.am): Likewise.
1460         * modules/search (Makefile.am): Likewise.
1461         * modules/selinux-h (Makefile.am): Likewise.
1462         * modules/signal (Makefile.am): Likewise.
1463         * modules/spawn (Makefile.am): Likewise.
1464         * modules/stdarg (Makefile.am): Likewise.
1465         * modules/stdbool (Makefile.am): Likewise.
1466         * modules/stddef (Makefile.am): Likewise.
1467         * modules/stdint (Makefile.am): Likewise.
1468         * modules/stdio (Makefile.am): Likewise.
1469         * modules/stdlib (Makefile.am): Likewise.
1470         * modules/string (Makefile.am): Likewise.
1471         * modules/strings (Makefile.am): Likewise.
1472         * modules/sys_file (Makefile.am): Likewise.
1473         * modules/sys_ioctl (Makefile.am): Likewise.
1474         * modules/sys_select (Makefile.am): Likewise.
1475         * modules/sys_socket (Makefile.am): Likewise.
1476         * modules/sys_stat (Makefile.am): Likewise.
1477         * modules/sys_time (Makefile.am): Likewise.
1478         * modules/sys_times (Makefile.am): Likewise.
1479         * modules/sys_utsname (Makefile.am): Likewise.
1480         * modules/sys_wait (Makefile.am): Likewise.
1481         * modules/sysexits (Makefile.am): Likewise.
1482         * modules/termios (Makefile.am): Likewise.
1483         * modules/time (Makefile.am): Likewise.
1484         * modules/unistd (Makefile.am): Likewise.
1485         * modules/wchar (Makefile.am): Likewise.
1486         * modules/wctype-h (Makefile.am): Likewise.
1487         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
1488
1489 2011-04-05  Bruno Haible  <bruno@clisp.org>
1490
1491         pipe2: Relicense under LGPLv2+.
1492         * modules/pipe2 (License): Change to LGPLv2+.
1493         Requested by Eric Blake, for libvirt.
1494
1495 2011-04-05  Bruce Korb  <bkorb@gnu.org>
1496
1497         bootstrap: compute gnulib_extra_files after updating build_aux
1498         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
1499         change build_aux or also supply gnulib_extra_files.  Handle correctly.
1500
1501 2011-04-05  Eric Blake  <eblake@redhat.com>
1502
1503         bootstrap: preserve git whitelist item sorting
1504         * build-aux/bootstrap (sort_patterns): New function.
1505         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
1506
1507 2011-04-05  Simon Josefsson  <simon@josefsson.org>
1508
1509         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
1510         sc_space_tab check.
1511
1512 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1513
1514         areadlink, areadlinkat: rewrite in terms of careadlinkat
1515         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
1516         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
1517         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
1518         (malloc, realloc): Remove #undefs.
1519         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
1520         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
1521         readlink, ssize_t, stdint, unistd.
1522         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
1523         areadlink, stdint.
1524
1525         careadlinkat: new module
1526         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
1527         * modules/careadlinkat: New files, written by me with
1528         a review and feedback from Ben Pfaff in
1529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
1530
1531 2011-04-01  Bruno Haible  <bruno@clisp.org>
1532
1533         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
1534         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
1535         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
1536         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1537         Reported by Bruce Korb <bruce.korb@gmail.com>.
1538
1539 2011-04-01  Bruno Haible  <bruno@clisp.org>
1540
1541         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
1542         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
1543         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
1544         * modules/wcpcpy (Depends-on): Add extensions.
1545         * modules/wcpncpy (Depends-on): Likewise.
1546         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
1547         systems.
1548         * doc/posix-functions/wcpncpy.texi: Likewise.
1549         * doc/posix-functions/wcwidth.texi: Likewise.
1550
1551 2011-03-31  Eric Blake  <eblake@redhat.com>
1552
1553         nonblocking: fix mingw test failures
1554         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
1555         non-blocking flag on regular file.
1556         (get_nonblocking_flag): Set errno on invalid fd.
1557         * tests/test-nonblocking.c (main): Avoid test failure on
1558         directories if fchdir is not active.
1559         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1560
1561 2011-03-31  Bruno Haible  <bruno@clisp.org>
1562
1563         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1564         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1565         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1566         Reported by Simon Josefsson <simon@josefsson.org>.
1567
1568 2011-03-31  Bruno Haible  <bruno@clisp.org>
1569         and Eric Blake  <eblake@redhat.com>
1570
1571         nonblocking: new module
1572         * modules/nonblocking: New module.
1573         * modules/nonblocking-tests: Likewise.
1574         * lib/nonblocking.h: New file.
1575         * lib/nonblocking.c: Likewise.
1576         * tests/test-nonblocking.c: New test.
1577         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1578
1579 2011-03-30  Bruno Haible  <bruno@clisp.org>
1580
1581         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1582         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1583         instead of 'printf' format for GCC >= 4.4.
1584         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1585         (fprintf, printf, vfprintf, vprintf): Declare with
1586         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1587         the system's vfprintf() function.
1588         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1589
1590 2011-03-30  Eric Blake  <eblake@redhat.com>
1591
1592         passfd: fix scoping bug
1593         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1594         before sendmsg/recvmsg.
1595
1596         passfd: standardize coding conventions
1597         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1598         can be learned at compile time.
1599         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1600         ifdefs.
1601         (sendfd, recvfd): Follow gnulib code conventions.
1602
1603         passfd: fix incorrect sendmsg arguments
1604         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1605         incorrect msg_controllen value.
1606         * modules/passfd-tests (Depends-on): Check for alarm.
1607         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1608         Reported by Bastien ROUCARIES.
1609
1610 2011-03-30  Bruno Haible  <bruno@clisp.org>
1611
1612         c-strcasestr: Relicense under LGPLv2+.
1613         * modules/c-strcasestr (License): Change to LGPLv2+.
1614         Requested by Eric Blake, for libvirt.
1615
1616 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1617
1618         * users.txt: Add libidn2.  Fix libtasn1 link.
1619
1620 2011-03-30  Jim Meyering  <meyering@redhat.com>
1621
1622         tests: readlink* ("",... fails with EINVAL on newer kernels
1623         readlink and readlinkat have typically failed with ENOENT for
1624         the invalid, empty file name,  "".  However, with the advent
1625         of linux-2.6.39, they fail with EINVAL.
1626         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1627         when operating on the empty file name.
1628         * tests/test-readlink.h (test_readlink): Likewise.
1629
1630 2011-03-29  Bruno Haible  <bruno@clisp.org>
1631
1632         Relicense some modules under LGPLv2+, for libidn2.
1633         * modules/array-mergesort (License): Change to LGPLv2+.
1634         * modules/c-strcaseeq (License): Likewise.
1635         * modules/striconveh (License): Likewise.
1636         * modules/striconveha (License): Likewise.
1637         * modules/uniconv/base (License): Likewise.
1638         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1639         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1640         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1641         * modules/unictype/base (License): Likewise.
1642         * modules/unictype/bidiclass-of (License): Likewise.
1643         * modules/unictype/category-M (License): Likewise.
1644         * modules/unictype/category-none (License): Likewise.
1645         * modules/unictype/category-of (License): Likewise.
1646         * modules/unictype/category-test (License): Likewise.
1647         * modules/unictype/category-test-withtable (License): Likewise.
1648         * modules/unictype/combining-class (License): Likewise.
1649         * modules/unictype/joiningtype-of (License): Likewise.
1650         * modules/unictype/scripts (License): Likewise.
1651         * modules/uninorm/base (License): Likewise.
1652         * modules/uninorm/canonical-decomposition (License): Likewise.
1653         * modules/uninorm/composition (License): Likewise.
1654         * modules/uninorm/decompose-internal (License): Likewise.
1655         * modules/uninorm/decomposition-table (License): Likewise.
1656         * modules/uninorm/nfc (License): Likewise.
1657         * modules/uninorm/nfd (License): Likewise.
1658         * modules/uninorm/u32-normalize (License): Likewise.
1659         * modules/unistr/base (License): Likewise.
1660         * modules/unistr/u32-cpy (License): Likewise.
1661         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1662         * modules/unistr/u32-to-u8 (License): Likewise.
1663         * modules/unistr/u32-uctomb (License): Likewise.
1664         * modules/unistr/u8-check (License): Likewise.
1665         * modules/unistr/u8-mblen (License): Likewise.
1666         * modules/unistr/u8-mbtouc (License): Likewise.
1667         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1668         * modules/unistr/u8-mbtoucr (License): Likewise.
1669         * modules/unistr/u8-prev (License): Likewise.
1670         * modules/unistr/u8-strlen (License): Likewise.
1671         * modules/unistr/u8-to-u32 (License): Likewise.
1672         * modules/unistr/u8-uctomb (License): Likewise.
1673         * modules/unitypes (License): Likewise.
1674         Requested by Simon Josefsson.
1675
1676 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1677
1678         lib-symbol-visibility: Add a notice.
1679         * modules/lib-symbol-visibility (Notice): New field.
1680
1681 2011-03-29  Bruno Haible  <bruno@clisp.org>
1682
1683         getaddrinfo: Doc fix.
1684         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1685         section "fixed in Gnulib".
1686
1687 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1688
1689         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1690         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1691
1692 2011-03-26  Bruno Haible  <bruno@clisp.org>
1693
1694         unictype/property-byname: Reduce the number of load-time relocations.
1695         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1696         (UC_PROPERTY_INDEX_*): New enumeration values.
1697         (uc_property_byname): Convert an index from the lookup table to an
1698         uc_property_t.
1699         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1700         values.
1701
1702 2011-03-26  Bruno Haible  <bruno@clisp.org>
1703
1704         unictype/property-byname: Allow omitted word separators and aliases.
1705         * lib/unictype/pr_byname.gperf: Add property names without word
1706         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1707         for 'space'.
1708
1709 2011-03-26  Bruno Haible  <bruno@clisp.org>
1710
1711         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1712         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1713         also hyphens to space.
1714         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1715         without spaces.
1716         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1717
1718 2011-03-26  Bruno Haible  <bruno@clisp.org>
1719
1720         unictype/joiningtype-byname: Recognize long names as well.
1721         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1722         a long name.
1723         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1724         unictype/joiningtype_byname.h.
1725         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1726         * lib/unictype/joiningtype_byname.gperf: New file.
1727         * modules/unictype/joiningtype-byname (Files): Add
1728         lib/unictype/joiningtype_byname.gperf.
1729         (Depends-on): Add gperf.
1730         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1731         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1732         long names.
1733
1734         Tests for module 'unictype/joiningtype-longname'.
1735         * modules/unictype/joiningtype-longname-tests: New file.
1736         * tests/unictype/test-joiningtype_longname.c: New file.
1737
1738         New module 'unictype/joiningtype-longname'.
1739         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1740         * lib/unictype/joiningtype_longname.c: New file.
1741         * modules/unictype/joiningtype-longname: New file.
1742         * modules/unictype/joiningtype-all (Depends-on): Add
1743         unictype/joiningtype-longname.
1744
1745 2011-03-26  Bruno Haible  <bruno@clisp.org>
1746
1747         unictype/bidiclass-byname: Recognize long names as well.
1748         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1749         name.
1750         * lib/unictype/bidi_byname.c: Include <string.h>,
1751         unictype/bidi_byname.h.
1752         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1753         * lib/unictype/bidi_byname.gperf: New file.
1754         * modules/unictype/bidiclass-byname (Files): Add
1755         lib/unictype/bidi_byname.gperf.
1756         (Depends-on): Add gperf.
1757         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1758         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1759         long names.
1760
1761         Tests for module 'unictype/bidiclass-longname'.
1762         * modules/unictype/bidiclass-longname-tests: New file.
1763         * tests/unictype/test-bidi_longname.c: New file.
1764
1765         New module 'unictype/bidiclass-longname'.
1766         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1767         * lib/unictype/bidi_longname.c: New file.
1768         * modules/unictype/bidiclass-longname: New file.
1769         * modules/unictype/bidiclass-all (Depends-on): Add
1770         unictype/bidiclass-longname.
1771
1772 2011-03-26  Bruno Haible  <bruno@clisp.org>
1773
1774         unictype/bidi*: Rename modules.
1775         * modules/unictype/bidiclass-all: Renamed from
1776         modules/unictype/bidicategory-all.
1777         * modules/unictype/bidiclass-name: Renamed from
1778         modules/unictype/bidiclass-name.
1779         (Description): Update.
1780         * modules/unictype/bidiclass-name-tests: Renamed from
1781         modules/unictype/bidicategory-name-tests.
1782         * modules/unictype/bidiclass-byname: Renamed from
1783         modules/unictype/bidicategory-byname.
1784         (Description): Update.
1785         * modules/unictype/bidiclass-byname-tests: Renamed from
1786         modules/unictype/bidicategory-byname-tests.
1787         * modules/unictype/bidiclass-of: Renamed from
1788         modules/unictype/bidicategory-of.
1789         (Description): Update.
1790         * modules/unictype/bidiclass-of-tests: Renamed from
1791         modules/unictype/bidicategory-of-tests.
1792         * modules/unictype/bidiclass-test: Renamed from
1793         modules/unictype/bidicategory-test.
1794         (Description): Update.
1795         * modules/unictype/bidiclass-test-tests: Renamed from
1796         modules/unictype/bidicategory-test-tests.
1797         * modules/unictype/bidicategory-all: New file, a simple redirection.
1798         * modules/unictype/bidicategory-name: Likewise.
1799         * modules/unictype/bidicategory-byname: Likewise.
1800         * modules/unictype/bidicategory-of: Likewise.
1801         * modules/unictype/bidicategory-test: Likewise.
1802         * modules/unictype/property-bidi-* (Dependencies): Update.
1803         * lib/unictype/bidi_*.c: Update comment.
1804
1805 2011-03-26  Bruno Haible  <bruno@clisp.org>
1806
1807         unictype/bidi*: Rename functions, part 2.
1808         * modules/unictype/bidicategory-name (configure.ac): Update required
1809         libunistring version.
1810         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1811
1812 2011-03-25  Bruno Haible  <bruno@clisp.org>
1813
1814         New module 'unictype/combining-class-all'.
1815         * modules/unictype/combining-class-all: New file.
1816
1817         Tests for module 'unictype/combining-class-byname'.
1818         * modules/unictype/combining-class-byname-tests: New file.
1819         * tests/unictype/test-combiningclass_byname.c: New file.
1820
1821         New module 'unictype/combining-class-byname'.
1822         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1823         * lib/unictype/combiningclass_byname.c: New file.
1824         * lib/unictype/combiningclass_byname.gperf: New file.
1825         * modules/unictype/combining-class-byname: New file.
1826
1827         Tests for module 'unictype/combining-class-longname'.
1828         * modules/unictype/combining-class-longname-tests: New file.
1829         * tests/unictype/test-combiningclass_longname.c: New file.
1830
1831         New module 'unictype/combining-class-longname'.
1832         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1833         * lib/unictype/combiningclass_longname.c: New file.
1834         * modules/unictype/combining-class-longname: New file.
1835
1836         Tests for module 'unictype/combining-class-name'.
1837         * modules/unictype/combining-class-name-tests: New file.
1838         * tests/unictype/test-combiningclass_name.c: New file.
1839
1840         New module 'unictype/combining-class-name'.
1841         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1842         * lib/unictype/combiningclass_name.c: New file.
1843         * modules/unictype/combining-class-name: New file.
1844
1845 2011-03-25  Bruno Haible  <bruno@clisp.org>
1846
1847         unictype/combining-class: Rename source files.
1848         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1849         of unictype/combining.h.
1850         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1851         Update.
1852         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1853         * modules/unictype/combining-class (Description): Fix.
1854         (Files, Makefile.am): Update.
1855         * tests/unictype/test-combiningclass.c: Renamed from
1856         tests/unictype/test-combining.c.
1857         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1858
1859 2011-03-25  Bruno Haible  <bruno@clisp.org>
1860
1861         unictype: Update list of canonical combining classes.
1862         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1863
1864 2011-03-25  Bruno Haible  <bruno@clisp.org>
1865
1866         unictype/category-byname: Recognize long names as well.
1867         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1868         a long name.
1869         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1870         unictype/categ_byname.h.
1871         (UC_CATEGORY_INDEX_*): New enumeration values.
1872         (uc_general_category_byname): Use uc_general_category_lookup and
1873         convert from index to value.
1874         * lib/unictype/categ_byname.gperf: New file.
1875         * modules/unictype/category-byname (Files): Add
1876         lib/unictype/categ_byname.gperf.
1877         (Depends-on): Add gperf.
1878         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1879         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1880         long names.
1881
1882         Tests for module 'unictype/category-longname'.
1883         * modules/unictype/category-longname-tests: New file.
1884         * tests/unictype/test-categ_longname.c: New file.
1885
1886         New module 'unictype/category-longname'.
1887         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1888         * lib/unictype/categ_longname.c: New file.
1889         * modules/unictype/category-longname: New file.
1890         * modules/unictype/category-all (Depends-on): Add it.
1891
1892 2011-03-25  Bruno Haible  <bruno@clisp.org>
1893
1894         Tests for module 'unictype/category-LC'.
1895         * modules/unictype/category-LC-tests: New file.
1896         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1897
1898         New module 'unictype/category-LC'.
1899         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1900         (UC_CATEGORY_LC): New declaration.
1901         (UC_CASED_LETTER): New macro.
1902         * lib/gen-uni-tables.c (is_category_LC): New function.
1903         (output_categories): Also handle category LC.
1904         (UC_CATEGORY_MASK_LC): New enumeration value.
1905         (general_category_byname): Also handle category LC.
1906         * lib/unictype/categ_LC.c: New file.
1907         * lib/unictype/categ_LC.h: New file, automatically generated.
1908         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1909         category LC.
1910         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1911         * modules/unictype/category-LC: New file.
1912         * modules/unictype/category-byname (Depends-on): Add
1913         unictype/category-LC.
1914         * modules/unictype/category-all (Depends-on): Likewise.
1915
1916 2011-03-25  Eric Blake  <eblake@redhat.com>
1917
1918         xmalloc: revert yesterday's regression
1919         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1920         realloc's underlying behavior (allowing allocation of zero-size
1921         objects, especially if malloc-gnu is also in use).
1922
1923 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1924
1925         maint.mk: add missing version to VC-tag
1926         * top/maint.mk: git tag was missing actual tag name; add it.
1927
1928         valgrind: do leak checking, and exit with code 1 on error (not 0)
1929         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1930         to VALGRIND.
1931
1932 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1933
1934         posix-modules: say what it does.
1935         * posix-modules: Add a line to the --help output saying what it does.
1936
1937 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1938
1939         xmalloc: Do not leak if underlying realloc is C99 compatible.
1940         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1941         This avoids a leak on C99-based systems.  See
1942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1943
1944 2011-03-24  Eric Blake  <eblake@redhat.com>
1945
1946         realloc: document portability problem
1947         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1948         passing 0 size to realloc.
1949
1950 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1951
1952         doc: update users.txt
1953         * users.txt: Add cvsps, tmpwatch
1954
1955 2011-03-23  Matt Rice  <ratmice@gmail.com>
1956
1957         doc: update users.txt
1958         * users.txt: Add gdb.
1959
1960 2011-03-23  Jim Meyering  <meyering@redhat.com>
1961
1962         doc: update users.txt
1963         Looking through matches up to the following URL (there are still
1964         several more pages), I found several projects that use gnulib:
1965         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1966         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1967         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1968
1969 2011-03-22  Bruno Haible  <bruno@clisp.org>
1970
1971         unictype/bidi*: Rename functions.
1972         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1973         uc_bidi_class, uc_is_bidi_class): New declarations.
1974         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1975         uc_bidi_category_byname.
1976         (uc_bidi_category_byname): New function.
1977         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1978         u_bidi_category_name.
1979         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1980         (uc_bidi_category_name): New function.
1981         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1982         uc_bidi_category.
1983         (uc_bidi_category): New function.
1984         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1985         uc_is_bidi_category. Invoke uc_bidi_class.
1986         (uc_is_bidi_category): New function.
1987         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1988         instead of uc_bidi_category_byname.
1989         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1990         instead of uc_bidi_category_name.
1991         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1992         uc_bidi_category.
1993         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1994         instead of uc_is_bidi_category.
1995
1996 2011-03-21  Bruno Haible  <bruno@clisp.org>
1997
1998         New module 'unictype/joininggroup-all'.
1999         * modules/unictype/joininggroup-all: New file.
2000
2001         Tests for module 'unictype/joininggroup-of'.
2002         * modules/unictype/joininggroup-of-tests: New file.
2003         * tests/unictype/test-joininggroup_of.c: New file.
2004         * tests/unictype/test-joininggroup_of.h: New file, automatically
2005         generated by gen-uni-tables.
2006
2007         New module 'unictype/joininggroup-of'.
2008         * modules/unictype/joininggroup-of: New file.
2009         * lib/unictype/joininggroup_of.c: New file.
2010         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2011         gen-uni-tables.
2012
2013         Tests for module 'unictype/joininggroup-byname'.
2014         * modules/unictype/joininggroup-byname-tests: New file.
2015         * tests/unictype/test-joininggroup_byname.c: New file.
2016
2017         New module 'unictype/joininggroup-byname'.
2018         * modules/unictype/joininggroup-byname: New file.
2019         * lib/unictype/joininggroup_byname.c: New file.
2020         * lib/unictype/joininggroup_byname.gperf: New file.
2021
2022         Tests for module 'unictype/joininggroup-name'.
2023         * modules/unictype/joininggroup-name-tests: New file.
2024         * tests/unictype/test-joininggroup_name.c: New file.
2025
2026         New module 'unictype/joininggroup-name'.
2027         * modules/unictype/joininggroup-name: New file.
2028         * lib/unictype/joininggroup_name.c: New file.
2029         * lib/unictype/joininggroup_name.h: New file.
2030
2031         New module 'unictype/joiningtype-all'.
2032         * modules/unictype/joiningtype-all: New file.
2033
2034         Tests for module 'unictype/joiningtype-of'.
2035         * modules/unictype/joiningtype-of-tests: New file.
2036         * tests/unictype/test-joiningtype_of.c: New file.
2037         * tests/unictype/test-joiningtype_of.h: New file, automatically
2038         generated by gen-uni-tables.
2039
2040         New module 'unictype/joiningtype-of'.
2041         * modules/unictype/joiningtype-of: New file.
2042         * lib/unictype/joiningtype_of.c: New file.
2043         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2044         gen-uni-tables.
2045
2046         Tests for module 'unictype/joiningtype-byname'.
2047         * modules/unictype/joiningtype-byname-tests: New file.
2048         * tests/unictype/test-joiningtype_byname.c: New file.
2049
2050         New module 'unictype/joiningtype-byname'.
2051         * modules/unictype/joiningtype-byname: New file.
2052         * lib/unictype/joiningtype_byname.c: New file.
2053
2054         Tests for module 'unictype/joiningtype-name'.
2055         * modules/unictype/joiningtype-name-tests: New file.
2056         * tests/unictype/test-joiningtype_name.c: New file.
2057
2058         New module 'unictype/joiningtype-name'.
2059         * modules/unictype/joiningtype-name: New file.
2060         * lib/unictype/joiningtype_name.c: New file.
2061
2062         unictype: Add support for Arabic shaping properties.
2063         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2064         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2065         declarations.
2066         (UC_JOINING_GROUP_*): New enumeration values.
2067         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2068         declarations.
2069         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2070         (unicode_joining_type): New variable.
2071         (UC_JOINING_GROUP_*): New enumeration values.
2072         (unicode_joining_group): New variable.
2073         (fill_arabicshaping, joining_type_as_c_identifier,
2074         output_joining_type_test, output_joining_type,
2075         joining_group_as_c_identifier, output_joining_group_test,
2076         output_joining_group): New functions.
2077         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2078         fill_arabicshaping and output_joining_type_test, output_joining_type,
2079         output_joining_group_test, output_joining_group.
2080         Reported by Simon Josefsson.
2081
2082 2011-03-21  Jim Meyering  <meyering@redhat.com>
2083
2084         strftime: fix a bug in yesterday's change
2085         * lib/strftime.c (add): Accommodate width's initial value of -1.
2086         Otherwise, nstrftime would copy uninitialized data into
2087         the result buffer.
2088
2089 2011-03-21  Jim Meyering  <meyering@redhat.com>
2090
2091         tests: add strftime-tests module
2092         * tests/test-strftime.c: New file.
2093         * modules/strftime-tests: New module.
2094
2095 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2096
2097         strftime: don't assume a byte count fits in 'int'
2098         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2099         found this problem by static analysis, using gcc -Wstrict-overflow
2100         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2101         on an integer overflow having undefined behavior, but it turns out
2102         that the argument is a size, which might not fit in 'int' anyway,
2103
2104 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2105
2106         stdio: don't require ignore_value around fwrite
2107
2108         This patch works around libc bug 11959
2109         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2110         Without this patch, applications must often write
2111         ignore_value (fwrite (...)) even though the ignore_value is
2112         not helpful here.  It's common to write many objects, using
2113         fwrite/printf/etc., and then use ferror to detect output error.
2114
2115         I considered making this patch optional, but decided against it,
2116         because libc is obviously being inconsistent here: there is no
2117         reason libc should insist that user code must inspect fwrite
2118         return's value without also insisting that it inspect printf's,
2119         putchar's, etc.  If user code wants to have a strict style where
2120         all these functions' values are checked (so that ferror need not
2121         be checked), we could add support for that style in a new gnulib
2122         module, but in the meantime it's better to be consistent and to
2123         support common usage.
2124
2125         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2126         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2127         that we are compiling in checking mode, and if not C++, and
2128         if not already wrapping fwrite for some other reason.
2129         (fwrite): #define to rpl_fwrite if the latter is defined.
2130
2131 2011-03-20  Bruno Haible  <bruno@clisp.org>
2132
2133         verror: Fix compilation error introduced on 2011-02-13.
2134         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2135         instead of __attribute__.
2136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2137
2138 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2139             Bruno Haible  <bruno@clisp.org>
2140
2141         socklen: do not depend on sys_socket
2142         While trying to modify Emacs to use gnulib's socklen module,
2143         I discovered a circular dependency: socklen depends on sys_socket
2144         and vice versa.  Emacs can use socklen, but it does not need
2145         sys_socket because it has its own substitute for sys/socket.h.
2146         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2147         gl_TYPE_SOCKLEN_T.
2148         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2149         gl_PREREQ_SYS_H_SOCKET.
2150         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2151         gl_PREREQ_SYS_H_SOCKET.
2152         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2153         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2154         * modules/socklen (Depends-on): Do not depend on sys_socket.
2155         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2156
2157 2011-03-20  Jim Meyering  <meyering@redhat.com>
2158
2159         maint.mk: sort file names *after* new transformation
2160         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2161         prefix would have led to an unwarranted failure in GNU parted.
2162         Sort after that transformation.
2163
2164 2011-03-19  Jim Meyering  <meyering@redhat.com>
2165
2166         maint.mk: fix po-file syntax-check rule
2167         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2168         Patch by Bruno Haible.
2169
2170 2011-03-19  Bruno Haible  <bruno@clisp.org>
2171
2172         socklen: Update comment.
2173         * m4/socklen.m4: Update comment about platforms.
2174
2175 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2176             Bruno Haible  <bruno@clisp.org>
2177
2178         inet_ntop, inet_pton: Simplify.
2179         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2180         documented to provide socklen_t and we already depend on sys_socket.
2181         * modules/inet_pton (Depends-on): Likewise.
2182         * lib/arpa_inet.in.h: Adjust comment.
2183
2184 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2185             Bruno Haible  <bruno@clisp.org>
2186
2187         netdb: Simplify.
2188         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2189         documented to provide socklen_t and we already depend on sys_socket.
2190         * lib/netdb.in.h: Adjust comment.
2191
2192 2011-03-19  Bruno Haible  <bruno@clisp.org>
2193
2194         sys_socket, netdb: Document problem with socklen_t.
2195         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2196         platforms.
2197         * doc/posix-headers/netdb.texi: Likewise.
2198
2199 2011-03-18  Eric Blake  <eblake@redhat.com>
2200
2201         maint.mk: let po check work in VPATH build
2202         * top/maint.mk (po_file): Allow cfg.mk override.
2203         (sc_po_check): Allow VPATH use.
2204         Reported by Jiri Denemark.
2205
2206 2011-03-16  Jim Meyering  <meyering@redhat.com>
2207
2208         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2209         Before, you would have had to create one .x-sc_ file per rule in order
2210         to exempt offending files.  Now, you may instead use a Make variable --
2211         usually defined in cfg.mk -- whose name identifies the affected rule.
2212         * top/maint.mk (_sc_excl): Define.
2213         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2214         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2215
2216 2011-03-13  Bruno Haible  <bruno@clisp.org>
2217
2218         ignore-value tests: Avoid warnings.
2219         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2220         empty for gcc < 3.4.
2221
2222 2011-03-13  Bruno Haible  <bruno@clisp.org>
2223
2224         passfd: Fix link error on Solaris.
2225         * modules/passfd (Description): Correct.
2226         (Depends-on): Add socketlib.
2227         (Link): New section.
2228         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
2229
2230 2011-03-13  Bruno Haible  <bruno@clisp.org>
2231
2232         passfd: Fix link error on AIX 5.2.
2233         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
2234
2235 2011-03-13  Bruno Haible  <bruno@clisp.org>
2236
2237         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
2238         * lib/sys_socket.in.h: Include <stddef.h>.
2239         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
2240         CMSG_FIRSTHDR. Remove unused variable.
2241
2242 2011-03-13  Bruno Haible  <bruno@clisp.org>
2243
2244         passfd: Fix compilation error on OpenBSD.
2245         * lib/passfd.c: Include <sys/uio.h>.
2246
2247 2011-03-13  Bruno Haible  <bruno@clisp.org>
2248
2249         passfd test: Fix warnings.
2250         * tests/test-passfd.c: Include <sys/wait.h>.
2251         (main): Fix typo.
2252
2253 2011-03-13  Bruno Haible  <bruno@clisp.org>
2254
2255         passfd module, part 4, tweaks.
2256         * tests/test-passfd.c: Reorder includes.
2257         (main): Fix perror and printf calls.
2258
2259 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2260
2261         passfd module, part 4.
2262         * modules/passfd-tests: New file.
2263         * tests/test-passfd.c: New file.
2264
2265 2011-03-13  Jim Meyering  <meyering@redhat.com>
2266
2267         Makefile: rely on GNU make; derive syntax-check rule names
2268         Rather than requiring that each sc_ rule be listed as a dependent
2269         of "check", use features of GNU make to derive the list.
2270         * Makefile (syntax-check-rules): Define.
2271         (check): Depend on the new variable, not the hard-coded list.
2272
2273 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2274             Bruno Haible  <bruno@clisp.org>
2275
2276         passfd module, part 3.
2277         * lib/passfd.h (recvfd): Add a flags argument.
2278         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
2279         (recvfd): Add a flags argument.
2280         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
2281         exists.
2282         * modules/passfd (Depends-on): Add cloexec.
2283         Suggested by Eric Blake.
2284
2285 2011-03-13  Bruno Haible  <bruno@clisp.org>
2286
2287         passfd module, part 2, tweaks.
2288         * modules/passfd (Files): Reorder.
2289         (Depends-on): Remove errno.
2290         (Include): Remove <sys/socket.h>, <sys/un.h>.
2291         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
2292         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
2293         specification header. Include <sys/socket.h> always. Don't include
2294         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
2295         (sendfd): Clarify that it sets errno when it fails.
2296         (recvfd): Fix specification.
2297
2298 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2299
2300         passfd module, part 2.
2301         * modules/passfd: New file.
2302         * lib/passfd.h: New file.
2303         * lib/passfd.c: New file.
2304
2305 2011-03-12  Bruno Haible  <bruno@clisp.org>
2306
2307         wcswidth, mbswidth: Avoid integer overflow.
2308         * lib/wcswidth.c: Include <limits.h>.
2309         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
2310         * lib/mbswidth.c: Include <limits.h>.
2311         (mbsnwidth): Avoid 'int' overflow.
2312         Reported by Jim Meyering.
2313
2314 2011-03-12  Bruno Haible  <bruno@clisp.org>
2315
2316         futimens, utimensat: Avoid endless recursion on Solaris 10.
2317         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
2318         Solaris.
2319         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
2320         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
2321
2322 2011-03-11  Jim Meyering  <meyering@redhat.com>
2323
2324         maint.mk: relax a regexp to accommodate other formatting styles
2325         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
2326         between "ngettext" and the following "(".
2327
2328 2011-03-11  Pádraig Brady <P@draigBrady.com>
2329
2330         maint.mk: suppress a false positive warning
2331         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
2332         diagnostics are marked with ngettext.
2333
2334 2011-03-10  Eric Blake  <eblake@redhat.com>
2335
2336         wchar: add explicit dependencies, for Tru64
2337         * modules/mbmemcasecoll (Depends-on): Add wchar.
2338         * modules/mbtowc (Depends-on): Likewise.
2339         * modules/vasnprintf (Depends-on): Likewise.
2340         * modules/unistdio/u-printf-args (Depends-on): Likewise.
2341         * modules/wctomb (Depends-on): Likewise.
2342         Reported by Peter O'Gorman.
2343
2344 2011-03-08  Bruno Haible  <bruno@clisp.org>
2345
2346         passfd module, part 1, tweaks.
2347         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
2348         Improve indentation. Improve AC_MSG_CHECKING messages.
2349         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
2350         gl_SOCKET_FAMILIES.
2351
2352 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2353
2354         passfd module, part 1.
2355         * m4/afunix.m4: New file.
2356         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
2357         sockets.
2358
2359 2011-03-08  Bruno Haible  <bruno@clisp.org>
2360
2361         regex-quote: New API.
2362         * lib/regex-quote.h: Include <stdbool.h>.
2363         (struct regex_quote_spec): New type.
2364         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2365         New declarations.
2366         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2367         'const struct regex_quote_spec *' argument.
2368         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
2369         (pcre_special): New constant.
2370         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2371         New functions.
2372         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2373         'const struct regex_quote_spec *' argument.
2374         * modules/regex-quote (Depends-on): Add stdbool.
2375         * tests/test-regex-quote.c (check): Update for new API. Add test for
2376         anchored results.
2377         * NEWS: Mention the API change.
2378         Reported by Reuben Thomas and Eric Blake.
2379
2380 2011-03-06  Bruno Haible  <bruno@clisp.org>
2381
2382         regex-quote: Fix creation of POSIX extended regular expressions.
2383         * lib/regex-quote.c (ere_special): Add grouping and alternation
2384         operators.
2385
2386 2011-03-05  Bruno Haible  <bruno@clisp.org>
2387
2388         doc: Improve doc regarding autopoint vs. gnulib.
2389         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
2390         disable autopoint while running autoreconf.
2391         Suggested by Ralf Wildenhues.
2392
2393 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2394
2395         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
2396         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
2397
2398 2011-03-03  Bruce Korb  <bkorb@gnu.org>
2399
2400         parse-duration: remove xalloc.h dependency
2401         * lib/parse-duration.c (parse_period): handle NULL return from
2402         strdup instead of calling xstrdup().
2403         * modules/parse-duration: remove "xalloc" dependency
2404
2405 2011-03-03  Matthew Booth  <mbooth@redhat.com>
2406
2407         bootstrap: honor m4_base when running aclocal
2408         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
2409
2410 2011-03-02  Jim Meyering  <meyering@redhat.com>
2411
2412         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
2413         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
2414         on request from Matt Booth.
2415
2416 2011-03-01  Eric Blake  <eblake@redhat.com>
2417
2418         test-link: work on Hurd
2419         * tests/test-link.h (test_link): Hurd rejects linking directories
2420         with EISDIR instead of the POSIX-mandated EPERM.
2421
2422 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2423
2424         stdio: simplify by moving files to printf-posix, sigpipe
2425         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
2426         since this symbol is needed only if printf is replaced.
2427         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
2428         Require gl_ASM_SYMBOL_PREFIX.
2429         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
2430         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
2431         (Depends-on): Add 'raise'.
2432         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
2433         * modules/stdio (Files): Remove lib/stdio-write.c,
2434         m4/asm-underscore.m4.
2435         (Depends-on): Remove 'raise'.
2436
2437         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
2438         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
2439         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
2440         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
2441
2442 2011-02-28  Bruno Haible  <bruno@clisp.org>
2443
2444         localcharset: Assume ANSI C behaviour of free().
2445         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
2446         calling free().
2447         Suggested by Simon Josefsson <simon@josefsson.org>.
2448
2449 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
2450             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
2451             Bruno Haible  <bruno@clisp.org>  (tiny change)
2452
2453         On Cygwin, use /proc file system instead of win32 API.
2454         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
2455         Win32 file names.
2456         (DllMain): Simplify by removing Cygwin specific code.
2457         (find_shared_library_fullname): Use Linux specific implementation also
2458         for Cygwin.
2459         (get_shared_library_fullname): Update accordingly.
2460         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
2461         Win32 file names.
2462         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
2463         Cygwin specific code.
2464
2465 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
2466             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
2467
2468         Fix OpenMP flag detection for various Fortran compilers.
2469         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
2470         OpenMP-conditional compilation construct, to force compile
2471         failure with missing OpenMP flag.
2472         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
2473
2474 2011-02-25  Eric Blake  <eblake@redhat.com>
2475
2476         strstr: expand test coverage
2477         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
2478         compilation.
2479         * tests/test-memmem.c (main): Duplicate tests.
2480         * tests/test-strcasestr.c (main): Likewise.
2481         * tests/test-c-strcasestr.c (main): Likewise.
2482
2483 2011-02-25  Jim Meyering  <meyering@redhat.com>
2484
2485         maint.mk: detect missing-NL-at-EOF, too
2486         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
2487         it also detects when a file lacks a newline at EOF.
2488         (require_exactly_one_NL_at_EOF_): Renamed from
2489         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
2490         since people may well have .x-sc_... file names tied to the
2491         existing name.  Suggested by Eric Blake.
2492
2493 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2494
2495         dirname: move m4/dos.m4 functionality into lib/dosname.h
2496
2497         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
2498         extracts symbols from it, puts them into config.h; but it's much
2499         easier to use the symbols directly.  filename.h already does this,
2500         but it disagrees with dos.m4 in some respects.  This patch
2501         introduces a different include file dosname.h that packages up
2502         dos.m4, and then later we can work on merging filename.h and
2503         dosname.h.  Applications that need only the easy-to-configure
2504         symbols should consider including dosname.h rather than dirname.h.
2505         * NEWS: Mention incompatible changes.
2506         * m4/dos.m4: Remove.
2507         * lib/dosname.h, modules/dosname: New files.
2508         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
2509         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
2510         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
2511         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
2512         Include dosname.h, not dirname.h.
2513         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
2514         Include dosname.h, for definitions of symbols like ISSLASH
2515         that used to be in config.h.
2516         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
2517         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2518         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2519         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2520         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
2521         * modules/rmdir (Files): Likewise.
2522         * modules/stat (Files): Likewise.
2523         * modules/unlink (Files): Likewise.
2524         * modules/dirname-lgpl (Depends-on): Add dosname.
2525         * modules/lstat (Depends-on): Likewise.
2526         * modules/openat (Depends-on): Likewise.
2527         * modules/rmdir (Depends-on): Likewise.
2528         * modules/savewd (Depends-on): Likewise.
2529         * modules/stat (Depends-on): Likewise.
2530         * modules/unlink (Depends-on): Likewise.
2531         * modules/openat (Depends-on): Remove dirname-lgpl.
2532         * modules/savewd (Depends-on): Likewise.
2533         * tests/test-dirname.c: Do not use removed symbols like
2534         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
2535         the remaining symbols, e.g., ISSLASH ('\\').
2536
2537 2011-02-25  Eric Blake  <eblake@redhat.com>
2538
2539         strstr: revert patches that introduced bug and pessimization
2540         * lib/str-two-way.h: Add another reference.
2541         (two_way_short_needle, two_way_long_needle): Revert changes from
2542         2011-02-24; they pessimize search speed.
2543         (critical_factorization): Partially revert changes from
2544         2010-06-22; they violate the requirement that the left half of the
2545         needle be smaller than the period of the needle.
2546
2547 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2548
2549         filenamecat: remove unnecessary dependency on dirname-lgpl
2550         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
2551         is no direct dependency, just an indirect one via filenamecat-lgpl.
2552
2553         remove: remove unnecessary use of m4/dos.m4
2554         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
2555         * modules/remove (FILES): Remove m4/dos.m4.
2556
2557         * lib/openat-proc.c: Don't include dirname.h; not needed.
2558
2559         backupfile: remove unnecessary use of m4/dos.m4
2560         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2561         of its symbols are used by the backupfile code.  backupfile.c does
2562         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2563         for the rare case of programs that want all their backup file
2564         names to live within 8+3 limits, and dos.m4 doesn't address that.
2565         * modules/backupfile (Files): Remove m4/dos.m4.
2566
2567 2011-02-24  Jim Meyering  <meyering@redhat.com>
2568
2569         strstr: fix a bug whereby strstr would mistakenly return NULL
2570         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2571         in period calculation.
2572         (two_way_long_needle): Likewise.
2573         The original problem was reported by Mike Stump in
2574         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2575         Ralf Wildenhues provided the short needle and haystack.
2576         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2577         Add a more involved test to trigger the bug in two_way_long_needle.
2578
2579 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2580
2581         gnulib-tool: remove use of bold display in help screen
2582         * gnulib-tool (func_usage): Do not use bold display anymore in the
2583         help screen.  That was just meant to be a temporary emphasis for a
2584         backward-incompatible change.
2585
2586 2011-02-23  Bruno Haible  <bruno@clisp.org>
2587
2588         Fix misindentation of preprocessor directives.
2589         * lib/argp-namefrob.h: Reindent preprocessor directives.
2590         * lib/getopt_int.h (struct _getopt_data): Likewise.
2591         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2592         * lib/vasnprintf.c (decode_long_double): Likewise.
2593         * tests/test-argmatch.c: Insert blank lines, for clarity.
2594         * tests/test-exclude.c: Likewise.
2595
2596 2011-02-22  Bruno Haible  <bruno@clisp.org>
2597
2598         ioctl: Fix for MacOS X in 64-bit mode.
2599         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2600         value.
2601         Suggested by Eric Blake.
2602         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2603
2604 2011-02-22  Jim Meyering  <meyering@redhat.com>
2605
2606         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2607         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2608         in lib/.
2609
2610 2011-02-22  Eric Blake  <eblake@redhat.com>
2611
2612         maint: avoid any CDPATH issue
2613         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2614
2615         maint: adjust cpp indentation for my modules, as well
2616         * Makefile (sc_cpp_indent_check): Add my name.
2617         * lib/fbufmode.c: Filter through cppi.
2618         * lib/fpurge.c: Likewise.
2619         * lib/freadable.c: Likewise.
2620         * lib/freading.c: Likewise.
2621         * lib/fwritable.c: Likewise.
2622         * lib/fwriting.c: Likewise.
2623         * lib/sigaction.c: Likewise.
2624
2625 2011-02-22  Jim Meyering  <meyering@redhat.com>
2626
2627         maint: adjust cpp indentation to reflect nesting depth
2628         I.e., in a block of code that begins with an unnested "#if",
2629         put one space between the "#" in column 1 and following token.
2630         For example,
2631         -#include <sys/vfs.h>
2632         +# include <sys/vfs.h>
2633         Do this only in .c files that are part of a module I maintain.
2634         * lib/linkat.c: Filter through cppi.
2635         * lib/nanosleep.c: Likewise.
2636         * lib/openat.c: Likewise.
2637         * lib/openat-die.c: Likewise.
2638         * lib/dup3.c: Likewise.
2639         * lib/fchownat.c: Likewise.
2640         * lib/flock.c: Likewise.
2641         * lib/fsync.c: Likewise.
2642         * lib/fts.c: Likewise.
2643         * lib/getpass.c: Likewise.
2644         * lib/gettimeofday.c: Likewise.
2645         * lib/userspec.c: Likewise.
2646         * Makefile (sc_cpp_indent_check): New rule, to check this.
2647
2648 2011-02-22  Bruno Haible  <bruno@clisp.org>
2649
2650         New module 'wctomb'.
2651         * lib/stdlib.in.h (wctomb): New declaration.
2652         * lib/wctomb.c: New file.
2653         * lib/wctomb-impl.h: New file.
2654         * m4/wctomb.m4: New file.
2655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2656         REPLACE_WCTOMB.
2657         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2658         REPLACE_WCTOMB.
2659         * modules/wctomb: New file.
2660         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2661         * doc/posix-functions/wctomb.texi: Mention the new module.
2662         * modules/wctob (Depends-on): Add wctomb.
2663
2664 2011-02-22  Bruno Haible  <bruno@clisp.org>
2665
2666         New module 'mbtowc'.
2667         * lib/stdlib.in.h (mbtowc): New declaration.
2668         * lib/mbtowc.c: New file.
2669         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2670         * m4/mbtowc.m4: New file.
2671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2672         REPLACE_MBTOWC.
2673         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2674         REPLACE_MBTOWC.
2675         * modules/mbtowc: New file.
2676         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2677         * doc/posix-functions/mbtowc.texi: Mention the new module.
2678         * modules/btowc (Depends-on): Add mbtowc.
2679
2680 2011-02-22  Bruno Haible  <bruno@clisp.org>
2681
2682         wcrtomb: Add more tests for native Windows platforms.
2683         * tests/test-wcrtomb-w32-1.sh: New file.
2684         * tests/test-wcrtomb-w32-2.sh: New file.
2685         * tests/test-wcrtomb-w32-3.sh: New file.
2686         * tests/test-wcrtomb-w32-4.sh: New file.
2687         * tests/test-wcrtomb-w32-5.sh: New file.
2688         * tests/test-wcrtomb-w32.c: New file.
2689         * modules/wcrtomb-tests (Files): Add them.
2690         (Makefile.am): Arrange to run these tests.
2691         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2692         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2693
2694 2011-02-20  Bruno Haible  <bruno@clisp.org>
2695
2696         wcrtomb: Enhance test.
2697         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2698
2699 2011-02-20  Bruno Haible  <bruno@clisp.org>
2700
2701         mbrtowc: Tiny optimization.
2702         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2703
2704 2011-02-20  Jim Meyering  <meyering@redhat.com>
2705
2706         test-exclude.c: remove unmatched #endif
2707         * tests/test-exclude.c: Remove stray #endif, left over from
2708         the change of a week ago.
2709
2710 2011-02-19  Jim Meyering  <meyering@redhat.com>
2711
2712         git-version-gen: skip "-dirty" check when appropriate
2713         * build-aux/git-version-gen: Don't run any git commands when the
2714         version string comes from .tarball-version.  Prior to this, we
2715         would run git update-index --refresh even from a just-unpacked
2716         tarball directory, and that could affect a .git/ directory in a
2717         parent of the build directory.  Reported by Mike Frysinger.
2718
2719 2011-02-19  Bruno Haible  <bruno@clisp.org>
2720
2721         unictype/property-byname: Reduce the size of the 'data' segment.
2722         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2723
2724 2011-02-19  Bruno Haible  <bruno@clisp.org>
2725
2726         unictype/scripts: Reduce the size of the 'data' segment.
2727         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2728         '%pic'.
2729         * lib/unictype/scripts_byname.gperf: Regenerated.
2730
2731 2011-02-19  Bruno Haible  <bruno@clisp.org>
2732
2733         stdint: Update documentation.
2734         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2735
2736 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2737
2738         stdint: omit redundant check for wchar.h
2739         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2740         always tests whether wchar.h exists, so remove the now-redundant test.
2741
2742 2011-02-18  Bruno Haible  <bruno@clisp.org>
2743
2744         stdint: Cut dependency to module 'wchar'.
2745         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2746         include the necessary prerequisites.
2747         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2748         * modules/stdint (Depends-on): Remove wchar.
2749         (Makefile.am): Substitute HAVE_WCHAR_H.
2750         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2751
2752 2011-02-18  Eric Blake  <eblake@redhat.com>
2753
2754         longlong: skip, rather than fail, on cross-compilation
2755         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2756         when cross-compiling; regression from 2011-02-16.
2757
2758 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2759
2760         * NEWS: Mention 2011-02-08 change to stdlib.
2761
2762 2011-02-17  Bruno Haible  <bruno@clisp.org>
2763
2764         getloadavg: Add comments about platforms.
2765         * m4/getloadavg.m4: Add comment.
2766         * lib/getloadavg.c: Likewise.
2767
2768 2011-02-17  Bruno Haible  <bruno@clisp.org>
2769
2770         getloadavg: Fix link error on Solaris 2.6.
2771         * modules/getloadavg (Link): New section.
2772         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2773         linking test-getloadavg.
2774         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2775         getloadavg.
2776
2777 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2778
2779         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2780         It was 'int', but this doesn't match the IRIX 6.5 manual.
2781         Suggested by Bruno Haible in
2782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2783
2784 2011-02-17  Bruno Haible  <bruno@clisp.org>
2785
2786         havelib: Fix comments.
2787         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2788         change.
2789
2790 2011-02-17  Bruno Haible  <bruno@clisp.org>
2791
2792         havelib: Update config.rpath.
2793         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2794
2795 2011-02-17  Bruno Haible  <bruno@clisp.org>
2796
2797         getloadavg test: Add some plausibility checks.
2798         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2799         is improbable.
2800
2801 2011-02-16  Eric Blake  <eblake@redhat.com>
2802
2803         maintainer-makefile: make syntax-check a no-op from tarballs
2804         * top/maint.mk (no-vc-detected): New rule.
2805         (local-checks-available): Use it to avoid hanging if someone tries
2806         'make syntax-check' from a tarball.  Also append to any non-syntax
2807         checks already defined in cfg.mk.
2808
2809 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2810
2811         longlong: tune, particularly for common case of c99
2812
2813         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2814         or running anything if c99, or if unsigned long long int does not
2815         work.  In either case, we know the answer without further tests.
2816         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2817         it at most once, and use its results for both long long int and
2818         unsigned long long int.  This is more likely to be efficient in
2819         the common case where the program wants to check for both long
2820         long int and unsigned long long int.
2821         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2822         since the answer is already known.
2823
2824 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2825
2826         getloadavg: set errno
2827         * lib/getloadavg.c: Set errno when returning -1.  If no other
2828         error number looks appropriate, set it to ENOSYS if the getloadavg
2829         looks like it can't possibly ever work, ENOTSUP otherwise.
2830         Suggested by Bruno Haible in
2831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2832
2833         getloadavg: trim unused parts and speed up 'configure'
2834         * NEWS: Document this.
2835         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2836         always compiled if getloadavg is absent.
2837         Move test code to ...
2838         * tests/test-getloadavg.c: New file, containing previous
2839         contents of test from lib/getloadavg.c.  It also contains
2840         suggestions by Bruno Haible in
2841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2842         * modules/getloadavg-tests: New file.
2843         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2844         Do tests in the same order as they're needed for getloadavg.c.
2845         Omit setgid-related tests that generate symbols KMEM_GROUP,
2846         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2847         Do only the tests that are needed to see whether the system has
2848         getloadavg, moving the other tests into ...
2849         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2850         NLIST_NAME_UNION; nobody should be using it.  Do not define
2851         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2852         relevant, as the user of this module shouldn't care how getloadavg
2853         is implemented.
2854
2855         getloadavg: omit unused var
2856         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2857
2858 2011-02-15  Jim Meyering  <meyering@redhat.com>
2859
2860         doc: update users.txt
2861         * users.txt: Update iwhd's URL.
2862
2863 2011-02-13  Bruno Haible  <bruno@clisp.org>
2864
2865         Consistent macro naming for macros that use GCC __attribute__.
2866         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2867         _ATTRIBUTE_NONNULL_.
2868         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2869         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2870         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2871         ATTRIBUTE_DEPRECATED.
2872         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2873         ATTRIBUTE_NORETURN.
2874         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2875         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2876         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2877         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2878         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2879         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2880         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2881         ATTRIBUTE_SENTINEL.
2882         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2883         ATTRIBUTE_RETURN_CHECK.
2884         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2885         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2886         ATTRIBUTE_NORETURN.
2887         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2888         Reported by Paul Eggert.
2889
2890 2011-02-13  Bruno Haible  <bruno@clisp.org>
2891
2892         Don't interfere with a program's definition of __attribute__.
2893         * lib/argp.h (__attribute__): Remove definition.
2894         (_GL_ATTRIBUTE_FORMAT): New macro.
2895         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2896         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2897         (_GL_ATTRIBUTE_FORMAT): New macro.
2898         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2899         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2900         GCC 3 or newer.
2901         * lib/error.h (__attribute__): Remove definition.
2902         (_GL_ATTRIBUTE_FORMAT): New macro.
2903         (error, error_at_line): Use it.
2904         * lib/hash.h (__attribute__): Remove definition.
2905         (ATTRIBUTE_WUR): Update definition. Define always.
2906         * lib/openat.h (__attribute__): Remove definition.
2907         (ATTRIBUTE_NORETURN): Update definition. Define always.
2908         * lib/sigpipe-die.h (__attribute__): Remove definition.
2909         (ATTRIBUTE_NORETURN): Update definition. Define always.
2910         * lib/vasnprintf.h (__attribute__): Remove definition.
2911         (_GL_ATTRIBUTE_FORMAT): New macro.
2912         (asnprintf, vasnprintf): Use it.
2913         * lib/xalloc.h (__attribute__): Remove definition.
2914         (ATTRIBUTE_NORETURN): Update definition. Define always.
2915         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2916         * lib/xmemdup0.h (__attribute__): Remove definition.
2917         (ATTRIBUTE_NORETURN): Update definition. Define always.
2918         * lib/xprintf.h (__attribute__): Remove definition.
2919         (_GL_ATTRIBUTE_FORMAT): New macro.
2920         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2921         * lib/xstrtol.h (__attribute__): Remove definition.
2922         (ATTRIBUTE_NORETURN): Update definition. Define always.
2923         * lib/xvasprintf.h (__attribute__): Remove definition.
2924         (_GL_ATTRIBUTE_FORMAT): New macro.
2925         (xasprintf, xvasprintf): Use it.
2926         * tests/test-argmatch.c (__attribute__): Remove definition.
2927         (ATTRIBUTE_NORETURN): Update definition. Define always.
2928         * tests/test-exclude.c (__attribute__): Remove definition.
2929         (ATTRIBUTE_NORETURN): Update definition. Define always.
2930         Reported by Paul Eggert.
2931
2932 2011-02-13  Bruno Haible  <bruno@clisp.org>
2933
2934         mbrtowc: Add more tests for native Windows platforms.
2935         * tests/test-mbrtowc-w32-1.sh: New file.
2936         * tests/test-mbrtowc-w32-2.sh: New file.
2937         * tests/test-mbrtowc-w32-3.sh: New file.
2938         * tests/test-mbrtowc-w32-4.sh: New file.
2939         * tests/test-mbrtowc-w32-5.sh: New file.
2940         * tests/test-mbrtowc-w32.c: New file.
2941         * modules/mbrtowc-tests (Files): Add them.
2942         (Makefile.am): Arrange to run these tests.
2943         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2944         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2945
2946 2011-02-13  Bruno Haible  <bruno@clisp.org>
2947
2948         mbrtowc: Work around native Windows bug.
2949         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2950         guess when no suitable locale for testing was found.
2951         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2952
2953 2011-02-13  Bruno Haible  <bruno@clisp.org>
2954
2955         mbsinit: Work around mingw bug.
2956         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2957         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2958         Windows.
2959         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2960
2961 2011-02-13  Bruno Haible  <bruno@clisp.org>
2962
2963         mbsinit: Don't crash for a NULL argument.
2964         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2965         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2966
2967 2011-02-13  Bruno Haible  <bruno@clisp.org>
2968
2969         Don't interfere with a program's definition of __attribute__.
2970         * lib/stdio.in.h (__attribute__): Remove definition.
2971         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2972         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2973         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2974         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2975         * lib/string.in.h (__attribute__): Remove definition.
2976         Reported by Paul Eggert.
2977
2978 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2979
2980         stdlib: don't get in the way of non-GCC __attribute__
2981         See thread starting at
2982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2983         Revert previous stdlib change, installing the following instead:
2984         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2985         to get in the way of a non-GCC compiler that supports __attribute__.
2986         (_GL_ATTRIBUTE_RETURN): New macro.
2987         (_Exit): Use it instead of __attribute__.
2988
2989 2011-02-12  Bruno Haible  <bruno@clisp.org>
2990
2991         quotearg test: Avoid test failure on mingw.
2992         * tests/test-quotearg.sh: Convert the locale identifier from native
2993         Windows syntax to Unix syntax.
2994
2995 2011-02-12  Bruno Haible  <bruno@clisp.org>
2996
2997         setlocale: Prefer gnulib's override over libintl's override.
2998         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2999         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3000         GNULIB_defined_setlocale is set.
3001
3002 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3003
3004         stdlib: support non-GCC __attribute__
3005
3006         Fix a serious and tricky problem encountered when attempting to
3007         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3008         5.5, but it crashed due to memory corruption on Solaris 10 with
3009         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3010         bits that are otherwise zero.  This tagging is optional inside
3011         Emacs but is preferred and is used when __attribute__ ((__aligned
3012         (8))) works, as it does with both recent-enough GCC and with Sun C
3013         5.11.  However, Sun C 5.11 is not GCC and does not #define
3014         __GNUC__ and __GNUC_MINOR__.
3015
3016         When I added the getloadavg module to Emacs, it brought in
3017         stdlib.in.h, which contained this fragment:
3018
3019            #ifndef __attribute__
3020            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3021            #  define __attribute__(Spec)   /* empty */
3022            # endif
3023            #endif
3024
3025         When files that include <stdlib.h> were compiled with Sun C 5.11,
3026         the above code disabled __attribute__ ((__aligned (8))), which
3027         caused variables to not be properly aligned, which eventually led
3028         to the pointer corruption mentioned above.  (This was a bit hard
3029         to diagnose, unfortunately.)
3030
3031         Several "#define __attribute__(X) /* empty */" code snippets need
3032         to be eradicated from Gnulib to work with non-GCC compilers that
3033         support __attribute__.  The Autoconf way to do this is to test for
3034         each kind of attribute that we want support for, and selectively
3035         enable that in source code.
3036
3037         Fix this problem just for stdlib.h, by adding a test for the
3038         __noreturn__ attribute, and change stdlib.in.h to use that test
3039         when needed.  This technique can be easily generalized to the
3040         other *.in.h files and attributes, and a similar technique can be
3041         used for *.h and *.c files.  This patch is enough to solve the
3042         problem for Emacs + getloadavg, and I thought I'd publish it for
3043         feedback before undertaking further, similar fixes in other
3044         modules.
3045
3046         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3047         because it's not needed for stdlib.h.  It merely substitutes the
3048         value directly into stdlib.h.  We may well need to #define it, or
3049         similar symbols, for other modules, but it's nice to also have an
3050         option to not #define it for applications like Emacs that do not
3051         need it.
3052
3053         * lib/stdlib.in.h (__attribute__): Do not #define.
3054         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3055         be defined only if the _Exit module is also used.
3056         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3058         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3059         platforms.
3060         * modules/_Exit (Files): Add m4/attribute.m4.
3061         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3062         * m4/attribute.m4: New file.
3063
3064 2011-02-12  Bruno Haible  <bruno@clisp.org>
3065
3066         wcsrtombs: Work around bug on native Windows.
3067         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3068         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3069         instead of len.
3070         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3071
3072 2011-02-12  Bruno Haible  <bruno@clisp.org>
3073
3074         mbsrtowcs: Work around bug on native Windows.
3075         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3076         against mingw bug.
3077         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3078
3079 2011-02-12  Bruno Haible  <bruno@clisp.org>
3080
3081         Avoid setlocale bugs in tests.
3082         * modules/btowc (Dependencies): Add setlocale.
3083         * modules/c-strcase (Dependencies): Likewise.
3084         * modules/mbmemcasecmp (Dependencies): Likewise.
3085         * modules/mbmemcasecoll (Dependencies): Likewise.
3086         * modules/mbrtowc (Dependencies): Likewise.
3087         * modules/mbscasecmp (Dependencies): Likewise.
3088         * modules/mbscasestr (Dependencies): Likewise.
3089         * modules/mbschr (Dependencies): Likewise.
3090         * modules/mbscspn (Dependencies): Likewise.
3091         * modules/mbsinit (Dependencies): Likewise.
3092         * modules/mbsncasecmp (Dependencies): Likewise.
3093         * modules/mbsnrtowcs (Dependencies): Likewise.
3094         * modules/mbspbrk (Dependencies): Likewise.
3095         * modules/mbspcasecmp (Dependencies): Likewise.
3096         * modules/mbsrchr (Dependencies): Likewise.
3097         * modules/mbsrtowcs (Dependencies): Likewise.
3098         * modules/mbsspn (Dependencies): Likewise.
3099         * modules/mbsstr (Dependencies): Likewise.
3100         * modules/nl_langinfo (Dependencies): Likewise.
3101         * modules/quotearg (Dependencies): Likewise.
3102         * modules/unicase/locale-language (Dependencies): Likewise.
3103         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3104         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3105         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3106         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3107         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3108         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3109         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3110         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3111         * modules/vasnprintf-posix (Dependencies): Likewise.
3112         * modules/wcrtomb (Dependencies): Likewise.
3113         * modules/wcsnrtombs (Dependencies): Likewise.
3114         * modules/wcsrtombs (Dependencies): Likewise.
3115
3116 2011-02-12  Bruno Haible  <bruno@clisp.org>
3117
3118         setlocale: Workaround native Windows bug.
3119         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3120         succeeds but sets LC_CTYPE to "C", report a failure.
3121         * tests/test-setlocale2.sh: New file.
3122         * tests/test-setlocale2.c: New file.
3123         * modules/setlocale-tests (Files): Add the new files.
3124         (Makefile.am): Enable test-setlocale2.sh test.
3125         * doc/posix-functions/setlocale.texi: Mention workaround.
3126
3127 2011-02-11  Bruno Haible  <bruno@clisp.org>
3128
3129         Tests for module 'setlocale'.
3130         * modules/setlocale-tests: New file.
3131         * tests/test-setlocale1.sh: New file.
3132         * tests/test-setlocale1.c: New file.
3133
3134         New module 'setlocale'.
3135         * lib/locale.in.h (setlocale): New declaration.
3136         * lib/setlocale.c: New file, based on
3137         gettext/gettext-runtime/intl/setlocale.c.
3138         * m4/setlocale.m4: New file.
3139         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3140         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3141         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3142         REPLACE_SETLOCALE.
3143         * modules/setlocale: New file.
3144         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3145         * doc/posix-functions/setlocale.texi: Mention the new module.
3146
3147 2011-02-11  Bruno Haible  <bruno@clisp.org>
3148
3149         Prepare for locale dependent tests on mingw.
3150         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3151         because it has the wrong locale encoding.
3152         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3153         French_France.1252 instead of "fr".
3154         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3155         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3156         because it has the wrong locale encoding.
3157         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3158         native Windows, try Turkish_Turkey.65001.
3159         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3160         Chinese_China.54936.
3161
3162         Prepare for locale dependent tests on mingw.
3163         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3164         differently.
3165         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3166         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3167         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3168         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3169
3170 2011-02-11  Eric Blake  <eblake@redhat.com>
3171
3172         strptime: avoid compiler warnings
3173         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3174         compiler warnings about dead code.
3175         Reported by Daniel P. Berrange.
3176
3177 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3178
3179         doc: update users.txt
3180         * users.txt: Add rcs.
3181
3182 2011-02-10  John W. Eaton  <jwe@gnu.org>
3183
3184         doc: update users.txt
3185         * users.txt: Add octave.
3186
3187 2011-02-10  Jim Meyering  <meyering@redhat.com>
3188
3189         doc: update users.txt
3190         * users.txt: Add iwhd.
3191
3192 2011-02-09  Bruno Haible  <bruno@clisp.org>
3193
3194         gnulib-tool: Make copyright notice adjustment more robust.
3195         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3196         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3197         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3198         License".
3199         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3200
3201 2011-02-06  Bruno Haible  <bruno@clisp.org>
3202
3203         New module 'towctrans'.
3204         * modules/towctrans: New file.
3205         * lib/wctype.in.h (towctrans): New declaration.
3206         * lib/towctrans.c: New file.
3207         * lib/towctrans-impl.h: New file.
3208         * m4/towctrans.m4: New file.
3209         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3210         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3211         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3212         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3213         * doc/posix-functions/towctrans.texi: Mention the new module.
3214
3215 2011-02-06  Bruno Haible  <bruno@clisp.org>
3216
3217         New module 'wctrans'.
3218         * modules/wctrans: New file.
3219         * lib/wctype.in.h (wctrans): New declaration.
3220         * lib/wctrans.c: New file.
3221         * lib/wctrans-impl.h: New file.
3222         * m4/wctrans.m4: New file.
3223         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
3224         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
3225         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
3226         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
3227         * doc/posix-functions/wctrans.texi: Mention the new module.
3228
3229 2011-02-06  Bruno Haible  <bruno@clisp.org>
3230
3231         New module 'iswctype'.
3232         * modules/iswctype: New file.
3233         * lib/wctype.in.h (iswctype): New declaration.
3234         * lib/iswctype.c: New file.
3235         * lib/iswctype-impl.h: New file.
3236         * m4/iswctype.m4: New file.
3237         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
3238         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
3239         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
3240         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
3241         * doc/posix-functions/iswctype.texi: Mention the new module and the
3242         HP-UX 11.00 problem.
3243
3244 2011-02-06  Bruno Haible  <bruno@clisp.org>
3245
3246         New module 'wctype'.
3247         * modules/wctype: Change to represent the wctype() substitute.
3248         * lib/wctype.in.h (wctype): New declaration.
3249         * lib/wctype.c: New file.
3250         * lib/wctype-impl.h: New file.
3251         * m4/wctype.m4: New file.
3252         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
3253         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
3254         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
3255         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
3256         * doc/posix-functions/wctype.texi: Mention the new module and the
3257         HP-UX 11.00 problem.
3258
3259 2011-02-06  Bruno Haible  <bruno@clisp.org>
3260
3261         wctype-h: Ensure wctype_t and wctrans_t are defined.
3262         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
3263         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3264         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3265         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
3266         HAVE_WCTRANS_T.
3267         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
3268
3269 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3270
3271         flock: fix license typo
3272
3273         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
3274         omitted.
3275
3276 2011-02-08  Bruno Haible  <bruno@clisp.org>
3277
3278         Split large sed scripts, for HP-UX sed.
3279         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
3280         to avoid HP-UX limit of 99 commands, in the near future.
3281         * modules/stdlib (Makefile.am): Likewise.
3282         * modules/unistd (Makefile.am): Likewise.
3283         * modules/wchar (Makefile.am): Likewise.
3284         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3285         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
3286         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
3287
3288 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3289             Bruno Haible  <bruno@clisp.org>
3290
3291         stdlib: improve random_r modularization
3292         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
3293         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
3294         you also need the random_r module to get this material right.
3295         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
3296         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
3297         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
3298
3299 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3300
3301         stdlib: don't depend on stdint
3302         * lib/stdlib.in.h: Don't include <stdint.h> merely because
3303         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
3304         be independent of whether stdint.h is needed.
3305         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
3306         here, instead of ...
3307         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
3308         struct random_data should be using the random_r module, not just
3309         the stdlib module (which wouldn't make sense: what package needs
3310         just struct random_data without also needing random_r?).
3311         * modules/stdlib (Depends-on): Remove stdint.
3312
3313         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
3314         See the thread rooted at
3315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
3316         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
3317         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
3318         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
3319         __VMS)); previously it was always included (via fcntl--.h).
3320         (getloadavg): Do not use c_strtod.  Instead, approximate it by
3321         hand; this is good enough for load averages.  Also, do not use
3322         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
3323         flags directly if available and don't bother otherwise.  (Packages
3324         that need the extra reliability should use the modules that define
3325         these flags on older platforms that lack them.)
3326         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
3327         fcntl-safer.
3328
3329 2011-02-08  Jim Meyering  <meyering@redhat.com>
3330
3331         di-set.h, ino-map.h: add multiple-inclusion guard
3332         Technically, the guard is required only for ino-map.h, due to its
3333         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
3334         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
3335         * lib/ino-map.h: Likewise.
3336
3337 2011-02-06  Bruno Haible  <bruno@clisp.org>
3338
3339         iswblank: Ensure declaration on glibc systems.
3340         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
3341         * modules/iswblank (Dependencies): Add 'extensions'.
3342         * doc/posix-functions/iswblank.texi: Document the glibc problem.
3343
3344 2011-02-06  Bruno Haible  <bruno@clisp.org>
3345
3346         New module 'iswblank'.
3347         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
3348         * modules/iswblank: New file.
3349         * modules/wctype-h (Files): Remove lib/iswblank.c.
3350         (Makefile.am): Substitute GNULIB_ISWBLANK.
3351         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
3352         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
3353         (gl_WCTYPE_H_DEFAULTS): New macro.
3354         (gl_WCTYPE_H): Require it. Remove iswblank related code.
3355         * modules/iswblank-tests: New file.
3356         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
3357         * tests/test-wctype-h.c (main): Remove iswblank tests.
3358         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
3359         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
3360         of 'wctype-h'.
3361         * NEWS: Mention the change.
3362         * modules/mbchar (Depends-on): Add iswblank.
3363
3364 2011-02-08  Bruno Haible  <bruno@clisp.org>
3365
3366         di-set tests: Refactor.
3367         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
3368         unnecessary includes.
3369         (ASSERT): Remove macro.
3370         (main): Make C90 compliant by avoiding variable declaration after
3371         statement.
3372         * modules/di-set-tests (Files): Add tests/macros.h.
3373
3374 2011-02-08  Bruno Haible  <bruno@clisp.org>
3375
3376         ino-map tests: Refactor.
3377         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
3378         unnecessary includes.
3379         (ASSERT): Remove macro.
3380         (main): Make C90 compliant by avoiding variable declaration after
3381         statement.
3382         * modules/ino-map-tests (Files): Add tests/macros.h.
3383
3384 2011-02-08  Jim Meyering  <meyering@redhat.com>
3385
3386         di-set: add "const" to a cast
3387         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
3388         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
3389
3390 2011-02-06  Bruno Haible  <bruno@clisp.org>
3391
3392         Rename module 'wctype' to 'wctype-h'.
3393         * modules/wctype-h: Renamed from modules/wctype.
3394         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
3395         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
3396         (Files, Depends-on, Makefile.am): Update.
3397         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
3398         (Files, Makefile.am): Update.
3399         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
3400         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
3401         * doc/posix-headers/wctype.texi: Update.
3402         * doc/posix-functions/iswalnum.texi: Update.
3403         * doc/posix-functions/iswalpha.texi: Update.
3404         * doc/posix-functions/iswblank.texi: Update.
3405         * doc/posix-functions/iswcntrl.texi: Update.
3406         * doc/posix-functions/iswdigit.texi: Update.
3407         * doc/posix-functions/iswgraph.texi: Update.
3408         * doc/posix-functions/iswlower.texi: Update.
3409         * doc/posix-functions/iswprint.texi: Update.
3410         * doc/posix-functions/iswpunct.texi: Update.
3411         * doc/posix-functions/iswspace.texi: Update.
3412         * doc/posix-functions/iswupper.texi: Update.
3413         * doc/posix-functions/iswxdigit.texi: Update.
3414         * doc/posix-functions/towlower.texi: Update.
3415         * doc/posix-functions/towupper.texi: Update.
3416         * NEWS: Mention the change.
3417         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
3418         * modules/mbchar (Dependencies): Likewise.
3419         * modules/mbswidth (Dependencies): Likewise.
3420         * modules/quotearg (Dependencies): Likewise.
3421         * modules/regex (Dependencies): Likewise.
3422         * modules/wcscasecmp (Dependencies): Likewise.
3423         * modules/wcsncasecmp (Dependencies): Likewise.
3424         * modules/wcwidth (Dependencies): Likewise.
3425
3426 2011-02-06  Bruno Haible  <bruno@clisp.org>
3427
3428         New module 'wcswidth'.
3429         * modules/wcswidth: New file.
3430         * lib/wchar.in.h (wcswidth): New declaration.
3431         * lib/wcswidth.c: New file.
3432         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
3433         * m4/wcswidth.m4: New file.
3434         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
3435         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
3436         REPLACE_WCSWIDTH.
3437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
3438         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
3439         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
3440         * doc/posix-functions/wcswidth.texi: Mention the new module.
3441
3442 2011-02-06  Bruno Haible  <bruno@clisp.org>
3443
3444         New module 'wcstok'.
3445         * modules/wcstok: New file.
3446         * lib/wchar.in.h (wcstok): New declaration.
3447         * lib/wcstok.c: New file.
3448         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
3449         * m4/wcstok.m4: New file.
3450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
3451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
3452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
3453         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
3454         * doc/posix-functions/wcstok.texi: Mention the new module.
3455
3456 2011-02-06  Bruno Haible  <bruno@clisp.org>
3457
3458         New module 'wcsstr'.
3459         * modules/wcsstr: New file.
3460         * lib/wchar.in.h (wcsstr): New declaration.
3461         * lib/wcsstr.c: New file.
3462         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
3463         * m4/wcsstr.m4: New file.
3464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
3465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
3466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
3467         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
3468         * doc/posix-functions/wcsstr.texi: Mention the new module.
3469
3470 2011-02-06  Bruno Haible  <bruno@clisp.org>
3471
3472         New module 'wcspbrk'.
3473         * modules/wcspbrk: New file.
3474         * lib/wchar.in.h (wcspbrk): New declaration.
3475         * lib/wcspbrk.c: New file.
3476         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
3477         * m4/wcspbrk.m4: New file.
3478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
3479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
3480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
3481         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
3482         * doc/posix-functions/wcspbrk.texi: Mention the new module.
3483
3484 2011-02-06  Bruno Haible  <bruno@clisp.org>
3485
3486         New module 'wcsspn'.
3487         * modules/wcsspn: New file.
3488         * lib/wchar.in.h (wcsspn): New declaration.
3489         * lib/wcsspn.c: New file.
3490         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
3491         * m4/wcsspn.m4: New file.
3492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
3493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
3494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
3495         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
3496         * doc/posix-functions/wcsspn.texi: Mention the new module.
3497
3498 2011-02-06  Bruno Haible  <bruno@clisp.org>
3499
3500         New module 'wcscspn'.
3501         * modules/wcscspn: New file.
3502         * lib/wchar.in.h (wcscspn): New declaration.
3503         * lib/wcscspn.c: New file.
3504         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
3505         * m4/wcscspn.m4: New file.
3506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
3507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
3508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
3509         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
3510         * doc/posix-functions/wcscspn.texi: Mention the new module.
3511
3512 2011-02-06  Bruno Haible  <bruno@clisp.org>
3513
3514         New module 'wcsrchr'.
3515         * modules/wcsrchr: New file.
3516         * lib/wchar.in.h (wcsrchr): New declaration.
3517         * lib/wcsrchr.c: New file.
3518         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
3519         * m4/wcsrchr.m4: New file.
3520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
3521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
3522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
3523         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
3524         * doc/posix-functions/wcsrchr.texi: Mention the new module.
3525
3526 2011-02-06  Bruno Haible  <bruno@clisp.org>
3527
3528         New module 'wcschr'.
3529         * modules/wcschr: New file.
3530         * lib/wchar.in.h (wcschr): New declaration.
3531         * lib/wcschr.c: New file.
3532         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
3533         * m4/wcschr.m4: New file.
3534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
3535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
3536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
3537         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
3538         * doc/posix-functions/wcschr.texi: Mention the new module.
3539
3540 2011-02-06  Bruno Haible  <bruno@clisp.org>
3541
3542         New module 'wcsdup'.
3543         * modules/wcsdup: New file.
3544         * lib/wchar.in.h (wcsdup): New declaration.
3545         * lib/wcsdup.c: New file.
3546         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
3547         * m4/wcsdup.m4: New file.
3548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
3549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
3550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
3551         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
3552         * doc/posix-functions/wcsdup.texi: Mention the new module.
3553
3554 2011-02-06  Bruno Haible  <bruno@clisp.org>
3555
3556         New module 'wcsxfrm'.
3557         * modules/wcsxfrm: New file.
3558         * lib/wchar.in.h (wcsxfrm): New declaration.
3559         * lib/wcsxfrm.c: New file.
3560         * lib/wcsxfrm-impl.h: New file.
3561         * m4/wcsxfrm.m4: New file.
3562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3565         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3566         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3567
3568 2011-02-06  Bruno Haible  <bruno@clisp.org>
3569
3570         New module 'wcscoll'.
3571         * modules/wcscoll: New file.
3572         * lib/wchar.in.h (wcscoll): New declaration.
3573         * lib/wcscoll.c: New file.
3574         * lib/wcscoll-impl.h: New file.
3575         * m4/wcscoll.m4: New file.
3576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3579         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3580         * doc/posix-functions/wcscoll.texi: Mention the new module.
3581
3582 2011-02-06  Bruno Haible  <bruno@clisp.org>
3583
3584         New module 'wcsncasecmp'.
3585         * modules/wcsncasecmp: New file.
3586         * lib/wchar.in.h (wcsncasecmp): New declaration.
3587         * lib/wcsncasecmp.c: New file.
3588         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3589         * m4/wcsncasecmp.m4: New file.
3590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3593         HAVE_WCSNCASECMP.
3594         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3595         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3596
3597 2011-02-06  Bruno Haible  <bruno@clisp.org>
3598
3599         New module 'wcscasecmp'.
3600         * modules/wcscasecmp: New file.
3601         * lib/wchar.in.h (wcscasecmp): New declaration.
3602         * lib/wcscasecmp.c: New file.
3603         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3604         * m4/wcscasecmp.m4: New file.
3605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3608         HAVE_WCSCASECMP.
3609         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3610         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3611
3612 2011-02-05  Bruno Haible  <bruno@clisp.org>
3613
3614         New module 'wcsncmp'.
3615         * modules/wcsncmp: New file.
3616         * lib/wchar.in.h (wcsncmp): New declaration.
3617         * lib/wcsncmp.c: New file.
3618         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3619         * m4/wcsncmp.m4: New file.
3620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3623         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3624         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3625
3626 2011-02-05  Bruno Haible  <bruno@clisp.org>
3627
3628         New module 'wcscmp'.
3629         * modules/wcscmp: New file.
3630         * lib/wchar.in.h (wcscmp): New declaration.
3631         * lib/wcscmp.c: New file.
3632         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3633         * m4/wcscmp.m4: New file.
3634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3637         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3638         * doc/posix-functions/wcscmp.texi: Mention the new module.
3639
3640 2011-02-05  Bruno Haible  <bruno@clisp.org>
3641
3642         New module 'wcsncat'.
3643         * modules/wcsncat: New file.
3644         * lib/wchar.in.h (wcsncat): New declaration.
3645         * lib/wcsncat.c: New file.
3646         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3647         * m4/wcsncat.m4: New file.
3648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3651         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3652         * doc/posix-functions/wcsncat.texi: Mention the new module.
3653
3654 2011-02-05  Bruno Haible  <bruno@clisp.org>
3655
3656         New module 'wcscat'.
3657         * modules/wcscat: New file.
3658         * lib/wchar.in.h (wcscat): New declaration.
3659         * lib/wcscat.c: New file.
3660         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3661         * m4/wcscat.m4: New file.
3662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3665         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3666         * doc/posix-functions/wcscat.texi: Mention the new module.
3667
3668 2011-02-05  Bruno Haible  <bruno@clisp.org>
3669
3670         New module 'wcpncpy'.
3671         * modules/wcpncpy: New file.
3672         * lib/wchar.in.h (wcpncpy): New declaration.
3673         * lib/wcpncpy.c: New file.
3674         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3675         * m4/wcpncpy.m4: New file.
3676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3678         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3679         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3680         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3681
3682 2011-02-05  Bruno Haible  <bruno@clisp.org>
3683
3684         New module 'wcsncpy'.
3685         * modules/wcsncpy: New file.
3686         * lib/wchar.in.h (wcsncpy): New declaration.
3687         * lib/wcsncpy.c: New file.
3688         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3689         * m4/wcsncpy.m4: New file.
3690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3693         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3694         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3695
3696 2011-02-05  Bruno Haible  <bruno@clisp.org>
3697
3698         New module 'wcpcpy'.
3699         * modules/wcpcpy: New file.
3700         * lib/wchar.in.h (wcpcpy): New declaration.
3701         * lib/wcpcpy.c: New file.
3702         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3703         * m4/wcpcpy.m4: New file.
3704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3706         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3707         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3708         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3709
3710 2011-02-05  Bruno Haible  <bruno@clisp.org>
3711
3712         New module 'wcscpy'.
3713         * modules/wcscpy: New file.
3714         * lib/wchar.in.h (wcscpy): New declaration.
3715         * lib/wcscpy.c: New file.
3716         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3717         * m4/wcscpy.m4: New file.
3718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3721         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3722         * doc/posix-functions/wcscpy.texi: Mention the new module.
3723
3724 2011-02-05  Bruno Haible  <bruno@clisp.org>
3725
3726         New module 'wcsnlen'.
3727         * modules/wcsnlen: New file.
3728         * lib/wchar.in.h (wcsnlen): New declaration.
3729         * lib/wcsnlen.c: New file.
3730         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3731         * m4/wcsnlen.m4: New file.
3732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3735         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3736         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3737
3738 2011-02-05  Bruno Haible  <bruno@clisp.org>
3739
3740         New module 'wcslen'.
3741         * modules/wcslen: New file.
3742         * lib/wchar.in.h (wcslen): New declaration.
3743         * lib/wcslen.c: New file.
3744         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3745         * m4/wcslen.m4: New file.
3746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3749         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3750         * doc/posix-functions/wcslen.texi: Mention the new module.
3751
3752 2011-02-05  Bruno Haible  <bruno@clisp.org>
3753
3754         New module 'wmemset'.
3755         * modules/wmemset: New file.
3756         * lib/wchar.in.h (wmemset): New declaration.
3757         * lib/wmemset.c: New file.
3758         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3759         * m4/wmemset.m4: New file.
3760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3762         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3763         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3764         * doc/posix-functions/wmemset.texi: Mention the new module.
3765
3766 2011-02-05  Bruno Haible  <bruno@clisp.org>
3767
3768         New module 'wmemmove'.
3769         * modules/wmemmove: New file.
3770         * lib/wchar.in.h (wmemmove): New declaration.
3771         * lib/wmemmove.c: New file.
3772         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3773         * m4/wmemmove.m4: New file.
3774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3776         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3777         HAVE_WMEMMOVE.
3778         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3779         * doc/posix-functions/wmemmove.texi: Mention the new module.
3780
3781 2011-02-05  Bruno Haible  <bruno@clisp.org>
3782
3783         New module 'wmemcpy'.
3784         * modules/wmemcpy: New file.
3785         * lib/wchar.in.h (wmemcpy): New declaration.
3786         * lib/wmemcpy.c: New file.
3787         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3788         * m4/wmemcpy.m4: New file.
3789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3791         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3792         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3793         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3794
3795 2011-02-05  Bruno Haible  <bruno@clisp.org>
3796
3797         New module 'wmemcmp'.
3798         * modules/wmemcmp: New file.
3799         * lib/wchar.in.h (wmemcmp): New declaration.
3800         * lib/wmemcmp.c: New file.
3801         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3802         * m4/wmemcmp.m4: New file.
3803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3805         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3806         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3807         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3808
3809 2011-02-07  Jim Meyering  <meyering@redhat.com>
3810
3811         di-set, ino-map: new modules, from coreutils
3812         * lib/di-set.c: New file.
3813         * lib/di-set.h: Likewise.
3814         * lib/ino-map.c: Likewise.
3815         * lib/ino-map.h: Likewise.
3816         * modules/di-set: Likewise.
3817         * modules/di-set-tests: Likewise.
3818         * modules/ino-map: Likewise.
3819         * modules/ino-map-tests: Likewise.
3820         * tests/test-di-set.c: Likewise.
3821         * tests/test-ino-map.c: Likewise.
3822
3823 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3824
3825         getloadavg: merge minor changes from Emacs
3826
3827         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3828         (getloadavg): Use memset, not bzero.
3829
3830         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3831         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3832         clash (bug#86).
3833
3834 2010-11-14  Bruno Haible  <bruno@clisp.org>
3835
3836         Allow multiple gnulib generated replacements to coexist.
3837         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3838         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3839         * lib/langinfo.in.h (nl_item): Likewise.
3840         * lib/math.in.h (_NaN, NAN): Likewise.
3841         * lib/netdb.in.h (struct addrinfo): Likewise.
3842         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3843         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3844         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3845         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3846         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3847         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3848         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3849         pthread_mutexattr_init, pthread_mutexattr_settype,
3850         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3851         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3852         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3853         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3854         * lib/sched.in.h (struct sched_param): Likewise.
3855         * lib/se-selinux.in.h (security_class_t, security_context_t,
3856         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3857         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3858         lsetfilecon, fsetfilecon, security_check_context,
3859         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3860         Likewise.
3861         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3862         Likewise.
3863         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3864         _gl_function_taking_int_returning_void_t, union sigval,
3865         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3866         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3867         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3868         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3869         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3870         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3871         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3872         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3873         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3874         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3875         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3876         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3877         socklen_t, rpl_fd_isset): Likewise.
3878         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3879         * lib/sys_time.in.h (struct timeval): Likewise.
3880         * lib/sys_times.in.h (struct tms): Likewise.
3881         * lib/sys_utsname.in.h (struct utsname):
3882         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3883         * lib/unistd.in.h (getpagesize): Likewise.
3884         * lib/wchar.in.h (mbstate_t): Likewise.
3885         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3886         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3887         towlower, towupper): Likewise.
3888         Reported by Sam Steingold <sds@gnu.org>.
3889
3890 2011-02-05  Eric Blake  <eblake@redhat.com>
3891
3892         unsetenv: work around Haiku issues
3893         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3894         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3895
3896 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3897
3898         libposix: avoid calling error() within libposix
3899         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3900         is defined.
3901
3902 2011-02-05  Eric Blake  <eblake@redhat.com>
3903
3904         strerror_r-posix: port to cygwin
3905         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3906         implementation.
3907         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3908         * tests/test-strerror_r.c (main): Fix test.
3909         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3910         issue.
3911
3912 2011-02-05  Bruno Haible  <bruno@clisp.org>
3913
3914         New module 'wmemchr'.
3915         * modules/wmemchr: New file.
3916         * lib/wchar.in.h (wmemchr): New declaration.
3917         * lib/wmemchr.c: New file.
3918         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3919         * m4/wmemchr.m4: New file.
3920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3922         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3923         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3924         * doc/posix-functions/wmemchr.texi: Mention the new module.
3925
3926 2011-02-04  Eric Blake  <eblake@redhat.com>
3927
3928         fdopendir: detect FreeBSD bug
3929         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3930         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3931
3932 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3933
3934         stdbool: do not define HAVE_STDBOOL_H
3935         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
3936         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3937         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3938         imported from the latest Autoconf git.  It was motivated by Emacs,
3939         which uses gnulib but does not need HAVE_STDBOOL_H.
3940
3941 2011-02-04  Bruno Haible  <bruno@clisp.org>
3942
3943         wcsnrtombs: Prepare for new module wwcsnrtombs.
3944         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3945         * lib/wcsnrtombs.c: Include it.
3946         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3947
3948         wcsrtombs: Prepare for new module wwcsrtombs.
3949         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3950         * lib/wcsrtombs.c: Include it.
3951         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3952
3953         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3954         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3955         * lib/mbsnrtowcs.c: Include it.
3956         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3957
3958         mbsrtowcs: Prepare for new module mbsrtowwcs.
3959         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3960         * lib/mbsrtowcs.c: Include it.
3961         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3962
3963 2011-02-04  Bruno Haible  <bruno@clisp.org>
3964
3965         vasnprintf: Reduce use of malloc for small format strings.
3966         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3967         (arguments): Add room for the first 7 arguments.
3968         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3969         (char_directives, u8_directives, u16_directives, u32_directives): Add
3970         room for the first 7 directives.
3971         * lib/printf-parse.c: Include <string.h>.
3972         (PRINTF_PARSE): Change memory handling code so that it uses the first
3973         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3974         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3975         Reported by Pádraig Brady <P@draigbrady.com>.
3976
3977 2011-01-31  Eric Blake  <eblake@redhat.com>
3978
3979         dup2: work around Haiku bug
3980         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3981         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3982         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3983         * tests/test-dup2.c (main): Enhance test.
3984
3985 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3986
3987         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3988         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3989         declared by eglibc 2.11.2.
3990         * lib/stdio.in.h: Likewise.
3991
3992 2011-01-31  Eric Blake  <eblake@redhat.com>
3993
3994         ignore-value: add missing test dependency
3995         * tests/test-ignore-value.c: Revert previous change; stdio.h
3996         provides off_t.
3997         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3998
3999 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4000
4001         mktime: clarify long_int width checking
4002         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4003         the top level, to make it clearer that the assumption about
4004         long_int width is being checked.  See
4005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4006
4007 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4008
4009         ignore-value: Fix self-test.
4010         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4011
4012 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4013
4014         TYPE_MAXIMUM: avoid theoretically undefined behavior
4015         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4016         negative number, which the C Standard says has undefined behavior.
4017         In practice this is not a problem, but might as well do it by the book.
4018         Reported by Rich Felker and Eric Blake; see
4019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4020         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4021         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4023         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4024         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4025         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4026
4027         mktime: #undef mktime before #defining it
4028         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4029
4030         mktime: systematically normalize tm_isdst comparisons
4031         * lib/mktime.c (isdst_differ): New function.
4032         (__mktime_internal): Use it systematically for all isdst comparisons.
4033         This completes the fix for libc BZ #6723, and removes the need for
4034         normalizing tm_isdst.  See
4035         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4036         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4037
4038         mktime: fix some integer overflow issues and sidestep the rest
4039
4040         This was prompted by a bug report by Benjamin Lindner for MinGW
4041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4042         His bug is due to signed integer overflow (0 - INT_MIN), and I
4043         I scanned through mktime.c looking for other integer overflow
4044         problems, fixing all the bugs I found.
4045
4046         Although the C Standard says the resulting code is still not safe
4047         in the presence of integer overflow, in practice it should be good
4048         enough for all real-world two's-complement implementations, except
4049         for debugging environments that deliberately trap on integer
4050         overflow (e.g., gcc -ftrapv).
4051
4052         * lib/mktime.c (WRAPV): New macro.
4053         (SHR): Also check that long_int and time_t shift right in the
4054         usual way, before using the fast-but-unportable method.
4055         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4056         used.  The code already assumed two's complement, so there's
4057         no need to test for alternatives.  All uses removed.
4058         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4059         the C standard.  Problem reported by Rich Felker in
4060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4061         (twos_complement_arithmetic): Also check long_int and time_t.
4062         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4063         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4064         (__mktime_internal): Avoid integer overflow with unary subtraction
4065         in two instances where -1 - X is an adequate replacement for -X,
4066         since the calculations are approximate.
4067
4068 2011-01-29  Eric Blake  <eblake@redhat.com>
4069
4070         mktime: avoid infinite loop
4071         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4072         type; behavior is still undefined but portable to all known targets.
4073         Reported by Rich Felker.
4074
4075 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4076
4077         rename, unlink, same-inode: Relicense.
4078         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4079         * modules/unlink (License): Likewise.
4080         * modules/same-inode (License): Likewise.
4081
4082 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4083
4084         mktime: avoid problems on NetBSD 5 / i386
4085         * lib/mktime.c (long_int): New type.  This works around a problem
4086         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4087         but time_t is 64 bits, and where I expect the existing code is
4088         wrong in some cases.
4089         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4090         (ydhms_diff): Bring back the compile-time check for wide-enough
4091         year and yday.
4092
4093         mktime: fix misspelling in comment
4094         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4095         This merges all recent glibc changes of importance.
4096
4097 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4098
4099         move-if-change: cope with concurrent mv of identical file.
4100         * build-aux/move-if-change (CMPPROG): Accept environment
4101         variable as an override for `cmp'.
4102         (usage): Document CMPPROG.
4103         Adjust comparison to drop stdout.  Cope with failure of mv if
4104         the target file exists and is identical to the source, for
4105         parallel builds.
4106         Report from H.J. Lu against binutils in PR binutils/12283.
4107
4108 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4109
4110         * users.txt: Mention sharutils.
4111
4112 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4113
4114         * users.txt: Mention OATH Toolkit.
4115
4116 2011-01-27  Bruno Haible  <bruno@clisp.org>
4117
4118         Prepare for supporting FreeBSD 10.
4119         * build-aux/config.libpath: Remove handling of freebsd1*.
4120
4121 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4122
4123         Prepare for supporting FreeBSD 10.
4124         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4125         match FreeBSD 10.0.
4126
4127 2011-01-27  Bruno Haible  <bruno@clisp.org>
4128
4129         vma-iter, get-rusage-as: Add OpenBSD support.
4130         * modules/vma-iter (configure.ac): Test for mquery.
4131         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4132         * lib/vma-iter.c: Include <sys/mman.h>.
4133         (vma_iterate): Add an implementation based on mquery().
4134         * lib/resource-ext.h (get_rusage_as): Update comments.
4135         * lib/get-rusage-as.c: Likewise.
4136         * lib/get-rusage-data.c: Likewise.
4137
4138 2011-01-26  Karl Berry  <karl@gnu.org>
4139
4140         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4141         variables to make it easier to override the makeinfo program used.
4142
4143 2011-01-26  Eric Blake  <eblake@redhat.com>
4144
4145         fcntl: work around Haiku F_DUPFD bugs
4146         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4147         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4148         cloexec bit on duplication.
4149         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4150
4151 2011-01-26  Bruno Haible  <bruno@clisp.org>
4152
4153         Enable memory leak tests on AIX.
4154         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4155         * tests/test-fprintf-posix3.c (main): Likewise.
4156
4157 2011-01-26  Bruno Haible  <bruno@clisp.org>
4158
4159         Tests for module 'get-rusage-data'.
4160         * modules/get-rusage-data-tests: New file.
4161         * tests/test-get-rusage-data.c: New file.
4162
4163         New module 'get-rusage-data'.
4164         * lib/resource-ext.h (get_rusage_data): New declaration.
4165         * lib/get-rusage-data.c: New file.
4166         * modules/get-rusage-data: New file.
4167
4168 2011-01-25  Bruno Haible  <bruno@clisp.org>
4169
4170         get-rusage-as: Allow for easier testing.
4171         * lib/resource-ext.h (get_rusage_as): Add comment.
4172         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4173         (main): New function for interactive testing.
4174
4175 2011-01-25  Bruno Haible  <bruno@clisp.org>
4176
4177         vma-iter: Treat Haiku like BeOS.
4178         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4179         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4180
4181 2011-01-25  Eric Blake  <eblake@redhat.com>
4182
4183         c-stack: fix regression on cygwin when libsigsegv is present
4184         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4185
4186 2011-01-24  Bruno Haible  <bruno@clisp.org>
4187
4188         vma-iter: Avoid empty intervals.
4189         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4190         on an empty interval.
4191
4192 2011-01-24  Jim Meyering  <meyering@redhat.com>
4193
4194         u64: remove unnecessary #include
4195         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4196
4197 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4198
4199         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4200         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4201
4202 2011-01-23  Bruno Haible  <bruno@clisp.org>
4203
4204         New module 'vma-iter'.
4205         * lib/vma-iter.h: New file.
4206         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4207         * modules/vma-iter: New file.
4208         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4209         for get_rusage_as_via_iterator.
4210         (vma_iterate_callback): New function.
4211         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4212         * modules/get-rusage-as (Depends-on): Add vma-iter.
4213
4214 2011-01-23  Bruno Haible  <bruno@clisp.org>
4215
4216         uninorm: Tweak includes.
4217         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4218         Reported by Jim Meyering.
4219
4220 2011-01-23  Bruno Haible  <bruno@clisp.org>
4221
4222         get-rusage-as: Improve on NetBSD.
4223         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
4224         /proc, like on FreeBSD.
4225
4226 2011-01-23  Jim Meyering  <meyering@redhat.com>
4227
4228         xreadlink.h: remove unnecessary #include
4229         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
4230
4231         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
4232         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
4233
4234 2011-01-23  Bruno Haible  <bruno@clisp.org>
4235
4236         get-rusage-as: Fix bug.
4237         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
4238         original limit when aborting the first loop.
4239
4240 2011-01-23  Bruno Haible  <bruno@clisp.org>
4241
4242         wctype: Ensure valid C syntax.
4243         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
4244         unconditionally, instead of gl_NEXT_HEADERS conditionally.
4245
4246 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4247
4248         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
4249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
4250         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
4251         as they are needed only for configure's test case.
4252         This removes two unnecessary symbols from config.h.
4253
4254         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
4255         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
4256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
4257         AC_CHECK_HEADERS_ONCE on a header that we also invoke
4258         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
4259         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
4260         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
4261         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4262         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4263         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4264         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4266         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4267         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4268         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4269         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4270         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4271         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4272
4273 2011-01-21  Eric Blake  <eblake@redhat.com>
4274
4275         maintainer-makefile: work with older git for submodule check
4276         * top/maint.mk (public-submodule-commit): Rewrite to avoid
4277         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
4278         Reported by Matthias Bolte.
4279
4280         bootstrap: minor portability fixes
4281         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
4282         (usage): Omit leading capital and trailing . on help phrases, per
4283         GNU Coding Standards.
4284         (check_versions, top level): Prefix messages with script name.
4285
4286 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
4287
4288         bootstrap: support --no-git option
4289         * build-aux/bootstrap: Add --no-git option, to be used when
4290         --gnulib-srcdir points to the exact desired checkout.
4291
4292 2011-01-21  Eric Blake  <eblake@redhat.com>
4293
4294         strerror_r-posix: work with glibc 2.13
4295         * lib/strerror_r.c (strerror_r): Fix return type.
4296
4297 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4298             Bruno Haible  <bruno@clisp.org>
4299
4300         uN_strstr: New unit tests.
4301         * modules/unistr/u8-strstr-tests: New file.
4302         * modules/unistr/u16-strstr-tests: New file.
4303         * modules/unistr/u32-strstr-tests: New file.
4304         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
4305         * tests/unistr/test-u8-strstr.c: New file.
4306         * tests/unistr/test-u16-strstr.c: New file.
4307         * tests/unistr/test-u32-strstr.c: New file.
4308
4309 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4310             Bruno Haible  <bruno@clisp.org>
4311
4312         Make uN_strstr functions O(n) worst-case.
4313         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
4314         16-bit and 32-bit unit cases, use the unibyte algorithm from
4315         lib/mbsstr.c.
4316         * lib/unistr/u8-strstr.c: Include <string.h>.
4317         (UNIT_IS_UINT8_T): New macro.
4318         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
4319         (U_STRLEN, U_STRNLEN): New macros.
4320         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
4321         (U_STRLEN, U_STRNLEN): New macros.
4322         * modules/unistr/u8-strstr (Depends-on): Add strstr.
4323         (configure.ac): Update required libunistring version.
4324         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
4325         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
4326         malloca.
4327         (configure.ac): Update required libunistring version.
4328         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
4329         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
4330         malloca.
4331         (configure.ac): Update required libunistring version.
4332
4333 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4334             Bruno Haible  <bruno@clisp.org>
4335
4336         Prepare for faster uN_strstr functions.
4337         * lib/str-kmp.h: Support definable UNITs.
4338         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
4339         needle_len argument.
4340         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
4341         * lib/mbscasestr.c (mbscasestr): Likewise.
4342
4343 2011-01-21  Pádraig Brady <P@draigBrady.com>
4344
4345         malloca-tests: make faster by unsetting MALLOC_PERTURB_
4346         * tests/test-malloca.c (main): Unset the environment variable
4347         to greatly speed up the test.
4348         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
4349         * modules/malloca-tests: Depend on unsetenv.
4350
4351 2011-01-21  Pádraig Brady <P@draigBrady.com>
4352
4353         ignore-value: remove stdint dependency
4354         * lib/ignore-value.h: Remove <stdint.h>
4355         * modules/ignore-value: Remove stdint dependency.
4356
4357 2011-01-21  Jim Meyering  <meyering@redhat.com>
4358
4359         maint.mk: adjust variable name to be consistent with other gl_ vars
4360         * top/maint.mk (gl_public_submodule_commit): Rename the variable
4361         to be lower case.
4362
4363 2011-01-20  Jim Meyering  <meyering@redhat.com>
4364
4365         maint.mk: make "check" depend on public-submodule-commit by default
4366         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
4367
4368 2011-01-20  Bruno Haible  <bruno@clisp.org>
4369
4370         mbfile, mbiter: Complete change from 2008-12-21.
4371         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
4372         * m4/mbiter.m4 (gl_MBITER): Likewise.
4373
4374 2011-01-20  Jim Meyering  <meyering@redhat.com>
4375
4376         init.sh: insert space between each function name and "()"
4377         * tests/init.sh: Make it a little easier to see that a function's
4378         name is "warn_", and not "warn" when looking at the first part of
4379         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
4380
4381 2011-01-20  Jim Meyering  <meyering@redhat.com>
4382
4383         mountlist: clean up code formatting
4384         * lib/mountlist.c (read_file_system_list): Split a long line,
4385         correct bracing style, use NULL in place of "(struct statfs *)0",
4386         don't parenthesize return value, add spaces around "=" and after
4387         ";-in-for-stmt".
4388
4389 2011-01-14  Markus Duft <mduft@gentoo.org>
4390
4391         mountlist: add support for Interix
4392         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
4393         Apply statvfs to all entries of /dev/fs.
4394         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
4395         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
4396
4397 2011-01-20  Jim Meyering  <meyering@redhat.com>
4398
4399         maint.mk: improve the public-submodule-commit rule
4400         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
4401         to suppress printing of its commands... unless V=1.
4402         Add git submodule's --quiet option to suppress printing of e.g.,
4403         "Entering gnulib" output.
4404         "cd" into $(srcdir) before running git submodule.
4405
4406 2011-01-20  Bruno Haible  <bruno@clisp.org>
4407
4408         include_next: Fix bug introduced on 2011-01-18.
4409         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
4410         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
4411         ac_cv_header_... variable if the second argument is not 'check'.
4412         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
4413         gl_NEXT_HEADERS_INTERNAL.
4414
4415 2011-01-20  Bruno Haible  <bruno@clisp.org>
4416
4417         Allow the user to avoid the GNULIB_TEST_* macros.
4418         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
4419         Suggested by Paul Eggert.
4420
4421 2011-01-14  Jim Meyering  <meyering@redhat.com>
4422
4423         bootstrap: avoid failure when there is no .gitmodules file
4424         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
4425         has been assigned to, even when its value is the empty string.
4426         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
4427         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
4428         Reported by John W. Eaton <jwe@gnu.org>.
4429
4430 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4431
4432         assume <ctype.h>, ..., <time.h> exist
4433         For years gnulib has been assuming the existence of the headers
4434         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
4435         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
4436         them, since they don't appear to be needed.
4437         * README (Portability guidelines): Document this.
4438         * lib/flock.c: Assume <fcntl.h> exists.
4439         * lib/regex_internal.h: Assume <locale.h> exists.
4440         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
4441         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
4442         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
4443         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
4444         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
4445         * m4/regex.m4 (gl_REGEX): Likewise.
4446         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
4447         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
4448         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
4449         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
4450         * tests/test-argp.c: Likewise.
4451         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
4452
4453         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
4454         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
4455         AA_APPLE_UNIVERSAL_BUILD.  See
4456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
4457         * NEWS: Document this.
4458
4459 2011-01-19  Eric Blake  <eblake@redhat.com>
4460
4461         c-stack: assume stack overflow if SA_SIGINFO unsupported
4462         * lib/c-stack.c (SIGACTION_WORKS): Rename...
4463         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
4464         sigaction will work.
4465         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
4466         behavior match Linux.
4467         * tests/test-c-stack.c (main): Prefer NULL for pointers.
4468
4469         stdbool-tests: accomodate Haiku
4470         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
4471
4472         binary-io: fix O_TEXT on Haiku
4473         * modules/binary-io (Depends-on): Add fcntl-h.
4474         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
4475         than blindly undefining O_TEXT.
4476         Reported by Scott McCreary.
4477
4478 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4479
4480         include_next: do not check for standard headers like stddef.h
4481
4482         I found this problem when modifying Emacs to use gnulib.
4483         I noticed that it added HAVE_STDDEF_H to config.h, even though
4484         gnulib always assumes <stddef.h> exists as per README and this
4485         symbol is unnecessary.
4486         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
4487         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
4488         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
4489         faster for headers like stddef.h that are known to exist.
4490         (gl_CHECK_NEXT_HEADERS): Use it.
4491         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
4492         rather than gl_CHECK_NEXT_HEADERS.
4493         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
4494         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
4495
4496 2011-01-18  Eric Blake  <eblake@redhat.com>
4497
4498         ansi-c++-opt: skip C++ dependency style if C++ is unused
4499         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
4500         tests when we know C++ compilation is not desired.
4501         Reported by Scott McCreary.
4502
4503 2011-01-18  Bruno Haible  <bruno@clisp.org>
4504
4505         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
4506         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
4507         (main): Perform test also when getrlimit and setrlimit don't exist or
4508         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
4509         limiting the address space size using setrlimit, compare the address
4510         space size before and after the the test.
4511         * tests/test-dprintf-posix2.c: Likewise.
4512         * tests/test-fprintf-posix3.sh: Update skip messages.
4513         * tests/test-dprintf-posix2.sh: Likewise.
4514         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
4515         * modules/dprintf-posix-tests (Depends-on): Likewise.
4516         Reported by Bruce Korb <bkorb@gnu.org> and
4517         Gary V. Vaughan <gary@gnu.org>.
4518
4519 2011-01-18  Bruno Haible  <bruno@clisp.org>
4520
4521         get-rusage-as: Improvement for Cygwin.
4522         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
4523         areas that are merely reserved.
4524
4525 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4526
4527         strftime: remove dependencies on multibyte modules
4528
4529         strftime depended on mbrlen, mbsinit, and wchar, but these modules
4530         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
4531         only if __osf__ is defined, and I suspect OSF doesn't need these
4532         other modules.  If my guess is wrong, we'll need to come up with a
4533         variant of strftime that doesn't need the multibyte modules.
4534
4535         I discovered this problem when attempting modify Emacs to use the
4536         strftime module.  With the previous gnulib, this caused Emacs to
4537         need 31 new files, ranging from lib/config.charset to
4538         m4/wint_t.m4.  This was overkill and I expect would be offputting
4539         to the Emacs maintainers.  After this change, only 6 new files are
4540         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
4541         stdbool.m4, and tm_gmtoff.m4.
4542
4543         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
4544         Suggested by Bruno Haible in
4545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
4546         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
4547         and do not check for wchar.h.
4548         * modules/strftime (Files): Remove m4/mbstate_t.m4.
4549         (Depends-on): Remove mbrlen, mbsinit, wchar.
4550
4551 2011-01-18  Bruno Haible  <bruno@clisp.org>
4552
4553         Tests for module 'get-rusage-as'.
4554         * modules/get-rusage-as-tests: New file.
4555         * tests/test-get-rusage-as.c: New file.
4556
4557         New module 'get-rusage-as'.
4558         * modules/get-rusage-as: New file.
4559         * lib/resource-ext.h: New file.
4560         * lib/get-rusage-as.c: New file.
4561
4562 2011-01-17  Eric Blake  <eblake@redhat.com>
4563
4564         sigaction: relax license from LGPLv3+ to LGPLv2+
4565         * modules/sigaction (License): Relax to LGPLv2+.
4566
4567 2011-01-14  Bruno Haible  <bruno@clisp.org>
4568
4569         filemode: Make function declarations usable in C++ mode.
4570         * lib/filemode.h: Enclose function declarations in extern "C" block.
4571         Reported by John W. Eaton <jwe@gnu.org>.
4572
4573 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4574
4575         save-cwd: no longer include "xgetcwd.h"
4576         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4577         This avoids a compilation failure in projects that use save-cwd
4578         without also using the xgetcwd module.
4579
4580 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4581
4582         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4583         This is so that a program like Emacs, which needs only dtoastr,
4584         does not have to bother with distributing and compiling ftoastr
4585         and ldtoastr.
4586         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4587         * modules/dtoastr, modules/ldtoastr: New files.
4588         * modules/ftoastr: Now works just for 'float'.
4589         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4590         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4591         dtoastr.c, ldtoastr.c.
4592
4593 2011-01-11  Jim Meyering  <meyering@redhat.com>
4594
4595         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4596         There is no need to work around the lack of the fchdir function,
4597         since gnulib can now provide a replacement when required.
4598         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4599         * modules/save-cwd (Depends-on): Add fchdir.
4600
4601 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4602
4603         openat, save-cwd: avoid xmalloc
4604
4605         This removes a direct (but undocumented) dependency of openat on
4606         xalloc, along with an indirect dependency via save-cwd.  It also
4607         removes a dependency of save-cwd on xgetcwd, and thereby
4608         indirectly on xalloc.  This change causes the openat substitute
4609         to fall back on save_cwd when memory is tight, and for save_cwd to
4610         fail instead of dying when memory is tight, but that's good enough.
4611         Problem and initial idea for fix reported by Bastien Roucaries in
4612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4613
4614         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4615         xalloc.h (for xmalloc).
4616         (openat_proc_name): Use malloc, not xmalloc.
4617         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4618         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4619
4620         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4621         This avoids heap allocation for file names whose lengths are in
4622         the range 512..1023, with the upper bound increasing to at most
4623         4031 depending on the platform's PATH_MAX.  (We do not want
4624         pathmax.h here as it might supply a non-constant PATH_MAX.)
4625         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4626         Perhaps they should be moved to malloca.h?
4627         (OPENAT_BUFFER_SIZE): Use them.
4628
4629 2011-01-10  Bruno Haible  <bruno@clisp.org>
4630
4631         doc: Update users.txt.
4632         * users.txt: Add recutils.
4633
4634 2011-01-09  Karl Berry  <karl@gnu.org>
4635
4636         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4637
4638         * doc/configmake.texi: New file.
4639         * doc/gnulib.texi: Include it.
4640         * modules/configmake: Move documentation from here.
4641
4642 2011-01-09  Bruno Haible  <bruno@clisp.org>
4643
4644         Update to Unicode 6.0.0.
4645         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4646         (get_lbp): Update for Unicode 6.0.0.
4647         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4648         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4649         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4650         U+11001, U+11038..U+11046. Remove U+06DE.
4651         (uc_width): Fix bounds of planes.
4652         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4653         lib/uniwidth/width.c.
4654         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4655         trailing whitespace removed.
4656         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4657         without comments, but with the original copyright notice.
4658         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4659         * lib/unicase/ignorable.h: Likewise.
4660         * lib/unicase/tocasefold.h: Likewise.
4661         * lib/unicase/tolower.h: Likewise.
4662         * lib/unicase/totitle.h: Likewise.
4663         * lib/unicase/toupper.h: Likewise.
4664         * lib/unictype/bidi_of.h: Likewise.
4665         * lib/unictype/blocks.h: Likewise.
4666         * lib/unictype/categ_C.h: Likewise.
4667         * lib/unictype/categ_Cn.h: Likewise.
4668         * lib/unictype/categ_L.h: Likewise.
4669         * lib/unictype/categ_Ll.h: Likewise.
4670         * lib/unictype/categ_Lm.h: Likewise.
4671         * lib/unictype/categ_Lo.h: Likewise.
4672         * lib/unictype/categ_Lu.h: Likewise.
4673         * lib/unictype/categ_M.h: Likewise.
4674         * lib/unictype/categ_Mc.h: Likewise.
4675         * lib/unictype/categ_Me.h: Likewise.
4676         * lib/unictype/categ_Mn.h: Likewise.
4677         * lib/unictype/categ_N.h: Likewise.
4678         * lib/unictype/categ_Nd.h: Likewise.
4679         * lib/unictype/categ_No.h: Likewise.
4680         * lib/unictype/categ_P.h: Likewise.
4681         * lib/unictype/categ_Po.h: Likewise.
4682         * lib/unictype/categ_S.h: Likewise.
4683         * lib/unictype/categ_Sc.h: Likewise.
4684         * lib/unictype/categ_Sk.h: Likewise.
4685         * lib/unictype/categ_Sm.h: Likewise.
4686         * lib/unictype/categ_So.h: Likewise.
4687         * lib/unictype/categ_of.h: Likewise.
4688         * lib/unictype/combining.h: Likewise.
4689         * lib/unictype/ctype_alnum.h: Likewise.
4690         * lib/unictype/ctype_alpha.h: Likewise.
4691         * lib/unictype/ctype_graph.h: Likewise.
4692         * lib/unictype/ctype_lower.h: Likewise.
4693         * lib/unictype/ctype_print.h: Likewise.
4694         * lib/unictype/ctype_punct.h: Likewise.
4695         * lib/unictype/ctype_upper.h: Likewise.
4696         * lib/unictype/decdigit.h: Likewise.
4697         * lib/unictype/digit.h: Likewise.
4698         * lib/unictype/numeric.h: Likewise.
4699         * lib/unictype/pr_alphabetic.h: Likewise.
4700         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4701         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4702         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4703         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4704         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4705         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4706         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4707         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4708         * lib/unictype/pr_case_ignorable.h: Likewise.
4709         * lib/unictype/pr_cased.h: Likewise.
4710         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4711         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4712         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4713         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4714         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4715         * lib/unictype/pr_combining.h: Likewise.
4716         * lib/unictype/pr_composite.h: Likewise.
4717         * lib/unictype/pr_currency_symbol.h: Likewise.
4718         * lib/unictype/pr_decimal_digit.h: Likewise.
4719         * lib/unictype/pr_deprecated.h: Likewise.
4720         * lib/unictype/pr_format_control.h: Likewise.
4721         * lib/unictype/pr_grapheme_base.h: Likewise.
4722         * lib/unictype/pr_grapheme_extend.h: Likewise.
4723         * lib/unictype/pr_grapheme_link.h: Likewise.
4724         * lib/unictype/pr_id_continue.h: Likewise.
4725         * lib/unictype/pr_id_start.h: Likewise.
4726         * lib/unictype/pr_ideographic.h: Likewise.
4727         * lib/unictype/pr_lowercase.h: Likewise.
4728         * lib/unictype/pr_math.h: Likewise.
4729         * lib/unictype/pr_numeric.h: Likewise.
4730         * lib/unictype/pr_other_alphabetic.h: Likewise.
4731         * lib/unictype/pr_other_id_continue.h: Likewise.
4732         * lib/unictype/pr_other_math.h: Likewise.
4733         * lib/unictype/pr_punctuation.h: Likewise.
4734         * lib/unictype/pr_sentence_terminal.h: Likewise.
4735         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4736         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4737         * lib/unictype/pr_unified_ideograph.h: Likewise.
4738         * lib/unictype/pr_uppercase.h: Likewise.
4739         * lib/unictype/pr_xid_continue.h: Likewise.
4740         * lib/unictype/pr_xid_start.h: Likewise.
4741         * lib/unictype/scripts.h: Likewise.
4742         * lib/unictype/scripts_byname.gperf: Likewise.
4743         * lib/unictype/sy_java_ident.h: Likewise.
4744         * lib/unigbrk/gbrkprop.h: Likewise.
4745         * lib/unilbrk/lbrkprop1.h: Likewise.
4746         * lib/unilbrk/lbrkprop2.h: Likewise.
4747         * lib/uninorm/decomposition-table2.h: Likewise.
4748         * lib/uniwbrk/wbrkprop.h: Likewise.
4749         * tests/unicase/test-cased.c: Likewise.
4750         * tests/unicase/test-ignorable.c: Likewise.
4751         * tests/unicase/test-uc_tolower.c: Likewise.
4752         * tests/unicase/test-uc_totitle.c: Likewise.
4753         * tests/unicase/test-uc_toupper.c: Likewise.
4754         * tests/unictype/test-categ_C.c: Likewise.
4755         * tests/unictype/test-categ_Cn.c: Likewise.
4756         * tests/unictype/test-categ_L.c: Likewise.
4757         * tests/unictype/test-categ_Ll.c: Likewise.
4758         * tests/unictype/test-categ_Lm.c: Likewise.
4759         * tests/unictype/test-categ_Lo.c: Likewise.
4760         * tests/unictype/test-categ_Lu.c: Likewise.
4761         * tests/unictype/test-categ_M.c: Likewise.
4762         * tests/unictype/test-categ_Mc.c: Likewise.
4763         * tests/unictype/test-categ_Me.c: Likewise.
4764         * tests/unictype/test-categ_Mn.c: Likewise.
4765         * tests/unictype/test-categ_N.c: Likewise.
4766         * tests/unictype/test-categ_Nd.c: Likewise.
4767         * tests/unictype/test-categ_No.c: Likewise.
4768         * tests/unictype/test-categ_P.c: Likewise.
4769         * tests/unictype/test-categ_Po.c: Likewise.
4770         * tests/unictype/test-categ_S.c: Likewise.
4771         * tests/unictype/test-categ_Sc.c: Likewise.
4772         * tests/unictype/test-categ_Sk.c: Likewise.
4773         * tests/unictype/test-categ_Sm.c: Likewise.
4774         * tests/unictype/test-categ_So.c: Likewise.
4775         * tests/unictype/test-ctype_alnum.c: Likewise.
4776         * tests/unictype/test-ctype_alpha.c: Likewise.
4777         * tests/unictype/test-ctype_graph.c: Likewise.
4778         * tests/unictype/test-ctype_lower.c: Likewise.
4779         * tests/unictype/test-ctype_print.c: Likewise.
4780         * tests/unictype/test-ctype_punct.c: Likewise.
4781         * tests/unictype/test-ctype_upper.c: Likewise.
4782         * tests/unictype/test-decdigit.h: Likewise.
4783         * tests/unictype/test-digit.h: Likewise.
4784         * tests/unictype/test-numeric.h: Likewise.
4785         * tests/unictype/test-pr_alphabetic.c: Likewise.
4786         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4787         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4788         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4789         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4790         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4791         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4792         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4793         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4794         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4795         * tests/unictype/test-pr_cased.c: Likewise.
4796         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4797         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4798         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4799         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4800         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4801         * tests/unictype/test-pr_combining.c: Likewise.
4802         * tests/unictype/test-pr_composite.c: Likewise.
4803         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4804         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4805         * tests/unictype/test-pr_deprecated.c: Likewise.
4806         * tests/unictype/test-pr_format_control.c: Likewise.
4807         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4808         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4809         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4810         * tests/unictype/test-pr_id_continue.c: Likewise.
4811         * tests/unictype/test-pr_id_start.c: Likewise.
4812         * tests/unictype/test-pr_ideographic.c: Likewise.
4813         * tests/unictype/test-pr_lowercase.c: Likewise.
4814         * tests/unictype/test-pr_math.c: Likewise.
4815         * tests/unictype/test-pr_numeric.c: Likewise.
4816         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4817         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4818         * tests/unictype/test-pr_other_math.c: Likewise.
4819         * tests/unictype/test-pr_punctuation.c: Likewise.
4820         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4821         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4822         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4823         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4824         * tests/unictype/test-pr_uppercase.c: Likewise.
4825         * tests/unictype/test-pr_xid_continue.c: Likewise.
4826         * tests/unictype/test-pr_xid_start.c: Likewise.
4827         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4828         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4829         changes.
4830         * lib/unictype/categ_Cc.h: Likewise.
4831         * lib/unictype/categ_Cf.h: Likewise.
4832         * lib/unictype/categ_Co.h: Likewise.
4833         * lib/unictype/categ_Cs.h: Likewise.
4834         * lib/unictype/categ_Lt.h: Likewise.
4835         * lib/unictype/categ_Nl.h: Likewise.
4836         * lib/unictype/categ_Pc.h: Likewise.
4837         * lib/unictype/categ_Pd.h: Likewise.
4838         * lib/unictype/categ_Pe.h: Likewise.
4839         * lib/unictype/categ_Pf.h: Likewise.
4840         * lib/unictype/categ_Pi.h: Likewise.
4841         * lib/unictype/categ_Ps.h: Likewise.
4842         * lib/unictype/categ_Z.h: Likewise.
4843         * lib/unictype/categ_Zl.h: Likewise.
4844         * lib/unictype/categ_Zp.h: Likewise.
4845         * lib/unictype/categ_Zs.h: Likewise.
4846         * lib/unictype/ctype_blank.h: Likewise.
4847         * lib/unictype/ctype_cntrl.h: Likewise.
4848         * lib/unictype/ctype_digit.h: Likewise.
4849         * lib/unictype/ctype_space.h: Likewise.
4850         * lib/unictype/ctype_xdigit.h: Likewise.
4851         * lib/unictype/mirror.h: Likewise.
4852         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4853         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4854         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4855         * lib/unictype/pr_bidi_control.h: Likewise.
4856         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4857         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4858         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4859         * lib/unictype/pr_bidi_pdf.h: Likewise.
4860         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4861         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4862         * lib/unictype/pr_dash.h: Likewise.
4863         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4864         * lib/unictype/pr_diacritic.h: Likewise.
4865         * lib/unictype/pr_extender.h: Likewise.
4866         * lib/unictype/pr_hex_digit.h: Likewise.
4867         * lib/unictype/pr_hyphen.h: Likewise.
4868         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4869         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4870         * lib/unictype/pr_ignorable_control.h: Likewise.
4871         * lib/unictype/pr_iso_control.h: Likewise.
4872         * lib/unictype/pr_join_control.h: Likewise.
4873         * lib/unictype/pr_left_of_pair.h: Likewise.
4874         * lib/unictype/pr_line_separator.h: Likewise.
4875         * lib/unictype/pr_logical_order_exception.h: Likewise.
4876         * lib/unictype/pr_non_break.h: Likewise.
4877         * lib/unictype/pr_not_a_character.h: Likewise.
4878         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4879         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4880         * lib/unictype/pr_other_id_start.h: Likewise.
4881         * lib/unictype/pr_other_lowercase.h: Likewise.
4882         * lib/unictype/pr_other_uppercase.h: Likewise.
4883         * lib/unictype/pr_paired_punctuation.h: Likewise.
4884         * lib/unictype/pr_paragraph_separator.h: Likewise.
4885         * lib/unictype/pr_pattern_syntax.h: Likewise.
4886         * lib/unictype/pr_pattern_white_space.h: Likewise.
4887         * lib/unictype/pr_private_use.h: Likewise.
4888         * lib/unictype/pr_quotation_mark.h: Likewise.
4889         * lib/unictype/pr_radical.h: Likewise.
4890         * lib/unictype/pr_soft_dotted.h: Likewise.
4891         * lib/unictype/pr_space.h: Likewise.
4892         * lib/unictype/pr_titlecase.h: Likewise.
4893         * lib/unictype/pr_variation_selector.h: Likewise.
4894         * lib/unictype/pr_white_space.h: Likewise.
4895         * lib/unictype/pr_zero_width.h: Likewise.
4896         * lib/unictype/sy_c_ident.h: Likewise.
4897         * lib/unictype/sy_c_whitespace.h: Likewise.
4898         * lib/unictype/sy_java_whitespace.h: Likewise.
4899         * lib/uninorm/composition-table.gperf: Likewise.
4900         * lib/uninorm/decomposition-table1.h: Likewise.
4901         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4902         LB8.
4903         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4904         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4905         * modules/unictype/*: Bump version number of expected libunistring
4906         version.
4907
4908 2011-01-09  Bruno Haible  <bruno@clisp.org>
4909
4910         Update to Unicode 5.2.0.
4911         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4912         trailing whitespace removed.
4913
4914 2011-01-09  Bruno Haible  <bruno@clisp.org>
4915
4916         New Unicode character properties, from Unicode 5.2.0.
4917         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4918         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4919         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4920         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4921         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4922         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4923         uc_is_property_cased, uc_is_property_case_ignorable,
4924         uc_is_property_changes_when_lowercased,
4925         uc_is_property_changes_when_uppercased,
4926         uc_is_property_changes_when_titlecased,
4927         uc_is_property_changes_when_casefolded,
4928         uc_is_property_changes_when_casemapped): New declarations.
4929         * lib/unictype/pr_byname.gperf: Add the new properties.
4930         * modules/unictype/property-byname (Depends-on): Depend on the new
4931         properties modules.
4932         * modules/unictype/property-all (Depends-on): Likewise.
4933         * MODULES.html.sh (Unicode string functions): Add
4934         unictype/property-case-ignorable, unictype/property-cased,
4935         unictype/property-changes-when-casefolded,
4936         unictype/property-changes-when-casemapped,
4937         unictype/property-changes-when-lowercased,
4938         unictype/property-changes-when-titlecased,
4939         unictype/property-changes-when-uppercased.
4940
4941         New module 'unictype/property-changes-when-casemapped'.
4942         * modules/unictype/property-changes-when-casemapped: New file.
4943         * lib/unictype/pr_changes_when_casemapped.c: New file.
4944         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4945         generated by gen-uni-tables.
4946         * modules/unictype/property-changes-when-casemapped-tests: New file.
4947         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4948         automatically generated by gen-uni-tables.
4949
4950         New module 'unictype/property-changes-when-casefolded'.
4951         * modules/unictype/property-changes-when-casefolded: New file.
4952         * lib/unictype/pr_changes_when_casefolded.c: New file.
4953         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4954         generated by gen-uni-tables.
4955         * modules/unictype/property-changes-when-casefolded-tests: New file.
4956         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4957         automatically generated by gen-uni-tables.
4958
4959         New module 'unictype/property-changes-when-titlecased'.
4960         * modules/unictype/property-changes-when-titlecased: New file.
4961         * lib/unictype/pr_changes_when_titlecased.c: New file.
4962         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4963         generated by gen-uni-tables.
4964         * modules/unictype/property-changes-when-titlecased-tests: New file.
4965         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4966         automatically generated by gen-uni-tables.
4967
4968         New module 'unictype/property-changes-when-uppercased'.
4969         * modules/unictype/property-changes-when-uppercased: New file.
4970         * lib/unictype/pr_changes_when_uppercased.c: New file.
4971         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4972         generated by gen-uni-tables.
4973         * modules/unictype/property-changes-when-uppercased-tests: New file.
4974         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4975         automatically generated by gen-uni-tables.
4976
4977         New module 'unictype/property-changes-when-lowercased'.
4978         * modules/unictype/property-changes-when-lowercased: New file.
4979         * lib/unictype/pr_changes_when_lowercased.c: New file.
4980         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4981         generated by gen-uni-tables.
4982         * modules/unictype/property-changes-when-lowercased-tests: New file.
4983         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4984         automatically generated by gen-uni-tables.
4985
4986         New module 'unictype/property-case-ignorable'.
4987         * modules/unictype/property-case-ignorable: New file.
4988         * lib/unictype/pr_case_ignorable.c: New file.
4989         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4990         by gen-uni-tables.
4991         * modules/unictype/property-case-ignorable-tests: New file.
4992         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4993         generated by gen-uni-tables.
4994
4995         New module 'unictype/property-cased'.
4996         * modules/unictype/property-cased: New file.
4997         * lib/unictype/pr_cased.c: New file.
4998         * lib/unictype/pr_cased.h: New file, automatically generated by
4999         gen-uni-tables.
5000         * modules/unictype/property-cased-tests: New file.
5001         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5002         gen-uni-tables.
5003
5004 2011-01-09  Bruno Haible  <bruno@clisp.org>
5005
5006         Update to Unicode 5.2.0.
5007         * lib/gen-uni-tables.c (output_predicate, output_category,
5008         output_combclass, output_bidi_category, output_decimal_digit_test,
5009         output_decimal_digit, output_digit_test, output_digit,
5010         output_numeric_test, output_numeric, output_mirror, output_scripts,
5011         output_scripts_byname, output_blocks, output_ident_category): Fix
5012         comment header.
5013         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5014         get_wbp.
5015         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5016         items.
5017         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5018         Changes_When_Lowercased, Changes_When_Uppercased,
5019         Changes_When_Titlecased, Changes_When_Casefolded,
5020         Changes_When_Casemapped.
5021         (is_property_alphabetic, is_property_default_ignorable_code_point):
5022         Update for Unicode 5.2.0.
5023         (is_property_cased, is_property_case_ignorable,
5024         is_property_changes_when_lowercased,
5025         is_property_changes_when_uppercased,
5026         is_property_changes_when_titlecased,
5027         is_property_changes_when_casefolded,
5028         is_property_changes_when_casemapped): New functions.
5029         (output_properties): Output also the properties cased, case_ignorable,
5030         changes_when_lowercased, changes_when_uppercased,
5031         changes_when_titlecased, changes_when_casefolded,
5032         changes_when_casemapped.
5033         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5034         Unicode TR#11 revision 17 -> 19.
5035         (LBP_CP): New enumeration value.
5036         (LBP_*): Adjust values accordingly.
5037         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5038         TR#14 revision 22 -> 24.
5039         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5040         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5041         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5042         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5043         is_WBP_MIDLETTER.
5044         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5045         the code1 and code2 of each composition rule.
5046         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5047         * lib/unicase/ignorable.h: Likewise.
5048         * lib/unicase/tocasefold.h: Likewise.
5049         * lib/unicase/tolower.h: Likewise.
5050         * lib/unicase/totitle.h: Likewise.
5051         * lib/unicase/toupper.h: Likewise.
5052         * lib/unictype/bidi_of.h: Likewise.
5053         * lib/unictype/blocks.h: Likewise.
5054         * lib/unictype/categ_C.h: Likewise.
5055         * lib/unictype/categ_Cf.h: Likewise.
5056         * lib/unictype/categ_Cn.h: Likewise.
5057         * lib/unictype/categ_L.h: Likewise.
5058         * lib/unictype/categ_Ll.h: Likewise.
5059         * lib/unictype/categ_Lm.h: Likewise.
5060         * lib/unictype/categ_Lo.h: Likewise.
5061         * lib/unictype/categ_Lu.h: Likewise.
5062         * lib/unictype/categ_M.h: Likewise.
5063         * lib/unictype/categ_Mc.h: Likewise.
5064         * lib/unictype/categ_Mn.h: Likewise.
5065         * lib/unictype/categ_N.h: Likewise.
5066         * lib/unictype/categ_Nd.h: Likewise.
5067         * lib/unictype/categ_Nl.h: Likewise.
5068         * lib/unictype/categ_No.h: Likewise.
5069         * lib/unictype/categ_P.h: Likewise.
5070         * lib/unictype/categ_Pd.h: Likewise.
5071         * lib/unictype/categ_Po.h: Likewise.
5072         * lib/unictype/categ_S.h: Likewise.
5073         * lib/unictype/categ_Sc.h: Likewise.
5074         * lib/unictype/categ_So.h: Likewise.
5075         * lib/unictype/categ_of.h: Likewise.
5076         * lib/unictype/combining.h: Likewise.
5077         * lib/unictype/ctype_alnum.h: Likewise.
5078         * lib/unictype/ctype_alpha.h: Likewise.
5079         * lib/unictype/ctype_graph.h: Likewise.
5080         * lib/unictype/ctype_lower.h: Likewise.
5081         * lib/unictype/ctype_print.h: Likewise.
5082         * lib/unictype/ctype_punct.h: Likewise.
5083         * lib/unictype/ctype_upper.h: Likewise.
5084         * lib/unictype/decdigit.h: Likewise.
5085         * lib/unictype/digit.h: Likewise.
5086         * lib/unictype/numeric.h: Likewise.
5087         * lib/unictype/pr_alphabetic.h: Likewise.
5088         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5089         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5090         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5091         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5092         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5093         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5094         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5095         * lib/unictype/pr_combining.h: Likewise.
5096         * lib/unictype/pr_composite.h: Likewise.
5097         * lib/unictype/pr_currency_symbol.h: Likewise.
5098         * lib/unictype/pr_dash.h: Likewise.
5099         * lib/unictype/pr_decimal_digit.h: Likewise.
5100         * lib/unictype/pr_deprecated.h: Likewise.
5101         * lib/unictype/pr_diacritic.h: Likewise.
5102         * lib/unictype/pr_extender.h: Likewise.
5103         * lib/unictype/pr_grapheme_base.h: Likewise.
5104         * lib/unictype/pr_grapheme_extend.h: Likewise.
5105         * lib/unictype/pr_grapheme_link.h: Likewise.
5106         * lib/unictype/pr_id_continue.h: Likewise.
5107         * lib/unictype/pr_id_start.h: Likewise.
5108         * lib/unictype/pr_ideographic.h: Likewise.
5109         * lib/unictype/pr_ignorable_control.h: Likewise.
5110         * lib/unictype/pr_logical_order_exception.h: Likewise.
5111         * lib/unictype/pr_lowercase.h: Likewise.
5112         * lib/unictype/pr_numeric.h: Likewise.
5113         * lib/unictype/pr_other_alphabetic.h: Likewise.
5114         * lib/unictype/pr_punctuation.h: Likewise.
5115         * lib/unictype/pr_sentence_terminal.h: Likewise.
5116         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5117         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5118         * lib/unictype/pr_unified_ideograph.h: Likewise.
5119         * lib/unictype/pr_uppercase.h: Likewise.
5120         * lib/unictype/pr_xid_continue.h: Likewise.
5121         * lib/unictype/pr_xid_start.h: Likewise.
5122         * lib/unictype/pr_zero_width.h: Likewise.
5123         * lib/unictype/scripts.h: Likewise.
5124         * lib/unictype/scripts_byname.gperf: Likewise.
5125         * lib/unictype/sy_java_ident.h: Likewise.
5126         * lib/unigbrk/gbrkprop.h: Likewise.
5127         * lib/unilbrk/lbrkprop1.h: Likewise.
5128         * lib/unilbrk/lbrkprop2.h: Likewise.
5129         * lib/unilbrk/lbrktables.h: Likewise.
5130         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5131         LBP_CP. Implement rule LB30.
5132         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5133         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5134         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5135         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5136         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5137         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5138         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5139         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5140         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5141         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5142         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5143         bits instead of 16 bits in the code1 and code2 of each composition
5144         rule.
5145         (uc_composition): Update for Unicode 5.2.0.
5146         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5147         * lib/uninorm/decomposition-table2.h: Likewise.
5148         * lib/uniwbrk/wbrkprop.h: Likewise.
5149         * tests/unicase/test-cased.c: Likewise.
5150         * tests/unicase/test-ignorable.c: Likewise.
5151         * tests/unicase/test-uc_tolower.c: Likewise.
5152         * tests/unicase/test-uc_totitle.c: Likewise.
5153         * tests/unicase/test-uc_toupper.c: Likewise.
5154         * tests/unictype/test-categ_C.c: Likewise.
5155         * tests/unictype/test-categ_Cf.c: Likewise.
5156         * tests/unictype/test-categ_Cn.c: Likewise.
5157         * tests/unictype/test-categ_L.c: Likewise.
5158         * tests/unictype/test-categ_Ll.c: Likewise.
5159         * tests/unictype/test-categ_Lm.c: Likewise.
5160         * tests/unictype/test-categ_Lo.c: Likewise.
5161         * tests/unictype/test-categ_Lu.c: Likewise.
5162         * tests/unictype/test-categ_M.c: Likewise.
5163         * tests/unictype/test-categ_Mc.c: Likewise.
5164         * tests/unictype/test-categ_Mn.c: Likewise.
5165         * tests/unictype/test-categ_N.c: Likewise.
5166         * tests/unictype/test-categ_Nd.c: Likewise.
5167         * tests/unictype/test-categ_Nl.c: Likewise.
5168         * tests/unictype/test-categ_No.c: Likewise.
5169         * tests/unictype/test-categ_P.c: Likewise.
5170         * tests/unictype/test-categ_Pd.c: Likewise.
5171         * tests/unictype/test-categ_Po.c: Likewise.
5172         * tests/unictype/test-categ_S.c: Likewise.
5173         * tests/unictype/test-categ_Sc.c: Likewise.
5174         * tests/unictype/test-categ_So.c: Likewise.
5175         * tests/unictype/test-ctype_alnum.c: Likewise.
5176         * tests/unictype/test-ctype_alpha.c: Likewise.
5177         * tests/unictype/test-ctype_graph.c: Likewise.
5178         * tests/unictype/test-ctype_lower.c: Likewise.
5179         * tests/unictype/test-ctype_print.c: Likewise.
5180         * tests/unictype/test-ctype_punct.c: Likewise.
5181         * tests/unictype/test-ctype_upper.c: Likewise.
5182         * tests/unictype/test-decdigit.h: Likewise.
5183         * tests/unictype/test-digit.h: Likewise.
5184         * tests/unictype/test-numeric.h: Likewise.
5185         * tests/unictype/test-pr_alphabetic.c: Likewise.
5186         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5187         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5188         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5189         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5190         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5191         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5192         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5193         * tests/unictype/test-pr_combining.c: Likewise.
5194         * tests/unictype/test-pr_composite.c: Likewise.
5195         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5196         * tests/unictype/test-pr_dash.c: Likewise.
5197         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5198         * tests/unictype/test-pr_deprecated.c: Likewise.
5199         * tests/unictype/test-pr_diacritic.c: Likewise.
5200         * tests/unictype/test-pr_extender.c: Likewise.
5201         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5202         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5203         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5204         * tests/unictype/test-pr_id_continue.c: Likewise.
5205         * tests/unictype/test-pr_id_start.c: Likewise.
5206         * tests/unictype/test-pr_ideographic.c: Likewise.
5207         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5208         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5209         * tests/unictype/test-pr_lowercase.c: Likewise.
5210         * tests/unictype/test-pr_numeric.c: Likewise.
5211         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5212         * tests/unictype/test-pr_punctuation.c: Likewise.
5213         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5214         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5215         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5216         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5217         * tests/unictype/test-pr_uppercase.c: Likewise.
5218         * tests/unictype/test-pr_xid_continue.c: Likewise.
5219         * tests/unictype/test-pr_xid_start.c: Likewise.
5220         * tests/unictype/test-pr_zero_width.c: Likewise.
5221         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5222         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
5223         changed behaviour: line breaking is now disallowed between a letter
5224         or '=' and '('.
5225         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5226         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5227         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5228         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
5229         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5230         lib/uniwidth/width.c.
5231         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
5232         without comments, but with the original copyright notice.
5233         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5234         changes.
5235         * lib/unictype/categ_Cc.h: Likewise.
5236         * lib/unictype/categ_Co.h: Likewise.
5237         * lib/unictype/categ_Cs.h: Likewise.
5238         * lib/unictype/categ_Lt.h: Likewise.
5239         * lib/unictype/categ_Me.h: Likewise.
5240         * lib/unictype/categ_Pc.h: Likewise.
5241         * lib/unictype/categ_Pe.h: Likewise.
5242         * lib/unictype/categ_Pf.h: Likewise.
5243         * lib/unictype/categ_Pi.h: Likewise.
5244         * lib/unictype/categ_Ps.h: Likewise.
5245         * lib/unictype/categ_Sk.h: Likewise.
5246         * lib/unictype/categ_Sm.h: Likewise.
5247         * lib/unictype/categ_Z.h: Likewise.
5248         * lib/unictype/categ_Zl.h: Likewise.
5249         * lib/unictype/categ_Zp.h: Likewise.
5250         * lib/unictype/categ_Zs.h: Likewise.
5251         * lib/unictype/ctype_blank.h: Likewise.
5252         * lib/unictype/ctype_cntrl.h: Likewise.
5253         * lib/unictype/ctype_digit.h: Likewise.
5254         * lib/unictype/ctype_space.h: Likewise.
5255         * lib/unictype/ctype_xdigit.h: Likewise.
5256         * lib/unictype/mirror.h: Likewise.
5257         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5258         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5259         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5260         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5261         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5262         * lib/unictype/pr_bidi_control.h: Likewise.
5263         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5264         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5265         * lib/unictype/pr_bidi_pdf.h: Likewise.
5266         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5267         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5268         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5269         * lib/unictype/pr_format_control.h: Likewise.
5270         * lib/unictype/pr_hex_digit.h: Likewise.
5271         * lib/unictype/pr_hyphen.h: Likewise.
5272         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5273         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5274         * lib/unictype/pr_iso_control.h: Likewise.
5275         * lib/unictype/pr_join_control.h: Likewise.
5276         * lib/unictype/pr_left_of_pair.h: Likewise.
5277         * lib/unictype/pr_line_separator.h: Likewise.
5278         * lib/unictype/pr_math.h: Likewise.
5279         * lib/unictype/pr_non_break.h: Likewise.
5280         * lib/unictype/pr_not_a_character.h: Likewise.
5281         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5282         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5283         * lib/unictype/pr_other_id_continue.h: Likewise.
5284         * lib/unictype/pr_other_id_start.h: Likewise.
5285         * lib/unictype/pr_other_lowercase.h: Likewise.
5286         * lib/unictype/pr_other_math.h: Likewise.
5287         * lib/unictype/pr_other_uppercase.h: Likewise.
5288         * lib/unictype/pr_paired_punctuation.h: Likewise.
5289         * lib/unictype/pr_paragraph_separator.h: Likewise.
5290         * lib/unictype/pr_pattern_syntax.h: Likewise.
5291         * lib/unictype/pr_pattern_white_space.h: Likewise.
5292         * lib/unictype/pr_private_use.h: Likewise.
5293         * lib/unictype/pr_quotation_mark.h: Likewise.
5294         * lib/unictype/pr_radical.h: Likewise.
5295         * lib/unictype/pr_soft_dotted.h: Likewise.
5296         * lib/unictype/pr_space.h: Likewise.
5297         * lib/unictype/pr_titlecase.h: Likewise.
5298         * lib/unictype/pr_variation_selector.h: Likewise.
5299         * lib/unictype/pr_white_space.h: Likewise.
5300         * lib/unictype/sy_c_ident.h: Likewise.
5301         * lib/unictype/sy_c_whitespace.h: Likewise.
5302         * lib/unictype/sy_java_whitespace.h: Likewise.
5303         * modules/uni*/*: Bump version number of expected libunistring version.
5304         Reported by Simon Josefsson.
5305
5306 2011-01-09  Karl Heuer  <kwzh@gnu.org>
5307
5308         useless-if-before-free: fix typo in --help and make the internal,
5309         automatic version date update process work once again.
5310         --help output contained a NUL character instead of the
5311         backslash-zero that was intended.  Also, the "must lie within
5312         the first 8 lines" line is on line 9, and hence not getting
5313         automatically updated.
5314         * build-aux/useless-if-before-free: Fix the former by adding a
5315         backslash, and the latter by condensing the three lines of what-it-does
5316         to a single line, leaving one line of slack for the future.
5317
5318 2011-01-09  Bruno Haible  <bruno@clisp.org>
5319
5320         uniwidth/width: Fix width of U+1D173..U+1D17A.
5321         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
5322         symbolic_width, output_width_property_test): New functions.
5323         (main): Invoke output_nonspacing_property, output_width_property_test.
5324         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
5325         U+1D173..U+1D17A.
5326         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
5327         1.
5328         * modules/uniwidth/*: Bump version number of expected libunistring
5329         version.
5330         * modules/unilbrk/*: Likewise.
5331
5332 2011-01-08  Bruno Haible  <bruno@clisp.org>
5333
5334         uninorm tests: Preserve copyright of Unicode data file.
5335         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
5336         Mention modifications.
5337
5338 2011-01-08  Bruno Haible  <bruno@clisp.org>
5339
5340         gen-uni-tables: Prepare for Unicode 5.2.0.
5341         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
5342         (debug_output_lbp, output_lbp): Update.
5343
5344 2011-01-08  Bruno Haible  <bruno@clisp.org>
5345
5346         unilbrk: Clarify gen-uni-tables.c code.
5347         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
5348         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
5349         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
5350
5351 2011-01-07  Bruno Haible  <bruno@clisp.org>
5352
5353         strtod: Restore errno when successfully parsing Infinity or NaN.
5354         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
5355         restore the original errno.
5356
5357 2011-01-07  Bruno Haible  <bruno@clisp.org>
5358
5359         remove test: Avoid failure on HP-UX 11.
5360         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
5361
5362 2011-01-07  Bruno Haible  <bruno@clisp.org>
5363
5364         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
5365         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
5366         error code.
5367
5368 2011-01-07  Pádraig Brady <P@draigBrady.com>
5369
5370         ignore-value: fixup comments, and add Eric Blake
5371         as an author since he rewrote the macros.
5372         * lib/ignore-value.h (ignore_value):  State that
5373         we now support aggregates.  Also specify exactly
5374         when the GCC warn_unused_result feature was added.
5375
5376 2011-01-06  Eric Blake  <eblake@redhat.com>
5377
5378         ignore-value: support aggregate types
5379         * lib/ignore-value.h (ignore_value): Provide separate gcc
5380         definition.
5381         * modules/ignore-value-tests: New test module.
5382         * tests/test-ignore-value.c: New test.
5383
5384         maint.mk: improve sc_prohibit_strcmp regex
5385         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
5386         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
5387         definition of STRNEQ.
5388
5389         signal: work around Haiku issue with SIGBUS
5390         * lib/siglist.h: Add comment.
5391         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
5392         strsignal's favoring of SIGSEGV.
5393         * tests/test-signal.c (main): Avoid test failure.
5394         * doc/posix-headers/signal.texi (signal.h): Document the issue.
5395         Reported by Scott McCreary.
5396
5397         maint.mk: add pre-release check to ensure submodule commits are public
5398         * top/maint.mk (public-submodule-commit): New rule.
5399         (submodule-checks): New variable.
5400         (alpha beta stable): Depend on the variable.
5401
5402 2011-01-05  Pádraig Brady <P@draigBrady.com>
5403         and Jim Meyering  <meyering@redhat.com>
5404
5405         ignore-value: make ignore_value more generic; deprecate ignore_ptr
5406         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
5407         (ATTRIBUTE_DEPRECATED): Define.
5408         (_ignore_case): New function.
5409         (ignore_value): New macro, to replace the old function.
5410         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
5411         * modules/ignore-value (Depends-on): Add stdint.
5412
5413 2011-01-04  Eric Blake  <eblake@redhat.com>
5414
5415         doc: regenerate INSTALL
5416         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
5417         @firstparagraphindent support, now that autoconf dropped it.
5418         (INSTALL_PRELUDE): Reinstate old macro.
5419         * doc/install.texi: Resync from autoconf.
5420         * doc/INSTALL: Reflect recent autoconf update.
5421         * doc/INSTALL.ISO: Likewise.
5422         * doc/INSTALL.UTF-8: Likewise.
5423         Reported by Karl Berry.
5424
5425 2011-01-04  Bruce Korb  <address@hidden>
5426
5427         git-version-gen: avoid a sub-shell
5428         * build-aux/git-version-gen: Redirect stderr in `...` via
5429         "exec 2>...", rather than via an added sub-shell.
5430
5431 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
5432
5433         git-version-gen: use (...) rather than sh -c '...'
5434         * build-aux/git-version-gen: Rather than hard-coding a shell's name
5435         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
5436
5437 2011-01-03  Jim Meyering  <meyering@redhat.com>
5438
5439         git-version-gen: convert leading TABs to spaces
5440         * build-aux/git-version-gen: Expand leading TABs.
5441
5442         git-version-gen: handle failed "git rev-list"
5443         * build-aux/git-version-gen: Rather than leaking a "fatal" error
5444         from git and proceeding as if it had succeeded but printed no SHA1
5445         checksums, suppress the diagnostic and handle the failure.
5446         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
5447
5448         git-version-gen: include command name in one more diagnostic
5449         * build-aux/git-version-gen: When the required .tarball-version file
5450         was missing or unreadable, you might see the diagnostic from "cat",
5451         but no trace of the name of the invoking script.  Now, you still see
5452         the diagnostic from cat, but also get one from "git-version-gen: ".
5453         Inspired by a patch from Bruce Korb.
5454
5455         update-copyright: adjust test to match changed code
5456         * tests/test-update-copyright.sh: Change test's expected output
5457         to match new actual output.
5458
5459 2011-01-02  Bruno Haible  <bruno@clisp.org>
5460
5461         getlogin_r: Avoid test failure on HP-UX 11.
5462         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
5463         ERANGE when the second argument is zero.
5464         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
5465         portability problem.
5466
5467 2011-01-02  Bruce Korb  <bkorb@gnu.org>
5468
5469         * build-aux/update-copyright: doc Simon's changes
5470
5471 2011-01-02  Simon Josefsson  <simon@josefsson.org>
5472
5473         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
5474         environment variable.
5475
5476 2011-01-02  Bruno Haible  <bruno@clisp.org>
5477
5478         unigbrk: Avoid gcc warnings.
5479         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
5480         unused variable.
5481         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
5482         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
5483         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
5484         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
5485         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
5486         Change type of first argument to 'const char *'.
5487         (main): Remove unused variable.
5488         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
5489         type of first argument to 'const char *'.
5490         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
5491         Likewise.
5492         (main): Change type of variable 's'.
5493         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
5494         to 'int'.
5495
5496 2011-01-02  Bruno Haible  <bruno@clisp.org>
5497
5498         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
5499         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
5500         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
5501         bug.
5502         * lib/pwrite.c: Undo 2010-12-31 patch.
5503         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
5504
5505 2011-01-02  Bruno Haible  <bruno@clisp.org>
5506
5507         pread: Fix test whether it works.
5508         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
5509
5510 2011-01-02  Bruno Haible  <bruno@clisp.org>
5511
5512         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
5513         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
5514         ends in "6". Don't require a specific month name. Try also the locale
5515         names found on HP-UX 11 and Solaris 7.
5516
5517 2011-01-02  Bruno Haible  <bruno@clisp.org>
5518
5519         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
5520         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5521         C linkage.
5522         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
5523
5524 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5525
5526         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
5527         for consistency, since the "cluster" term is not used elsewhere.
5528         * lib/unigbrk.in.h: Update name.
5529         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
5530         * lib/unigbrk/u16-grapheme-next.c: Update name.
5531         * lib/unigbrk/u16-grapheme-prev.c: Update name.
5532         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
5533         * lib/unigbrk/u32-grapheme-next.c: Update name.
5534         * lib/unigbrk/u32-grapheme-prev.c: Update name.
5535         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
5536         * lib/unigbrk/u8-grapheme-next.c: Update name.
5537         * lib/unigbrk/u8-grapheme-prev.c: Update name.
5538         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
5539         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
5540         Suggested by Bruno Haible.
5541
5542 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5543
5544         Remove module 'u8-grapheme-len' as too redundant with
5545         'u8-grapheme-next'.
5546         * modules/unigbrk/u8-grapheme-len: Delete file.
5547         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
5548         * lib/unigbrk.in.h: Remove prototype for deleted function.
5549         * lib/unigbrk/u8-grapheme-len.c: Delete file.
5550         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
5551
5552         Remove module 'u16-grapheme-len' as too redundant with
5553         'u16-grapheme-next'.
5554         * modules/unigbrk/u16-grapheme-len: Delete file.
5555         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
5556         * lib/unigbrk.in.h: Remove prototype for deleted function.
5557         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5558         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5559
5560         Remove module 'u32-grapheme-len' as too redundant with
5561         'u32-grapheme-next'.
5562         * modules/unigbrk/u32-grapheme-len: Delete file.
5563         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5564         * lib/unigbrk.in.h: Remove prototype for deleted function.
5565         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5566         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5567
5568         Suggested by Bruno Haible.
5569
5570 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5571
5572         * unigbrk.in.h: Fix typo: "ben" => "been".
5573         Reported by Bruno Haible.
5574
5575 2011-01-01  Jim Meyering  <meyering@redhat.com>
5576
5577         maint: update almost all copyright ranges to include 2011
5578         Run the new "make update-copyright" rule.
5579
5580 2011-01-01  Jim Meyering  <meyering@redhat.com>
5581
5582         maint: update-copyright: exempt doc/INSTALL*
5583         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5584         since they are generated.  Suggested by Bruno Haible.
5585
5586 2011-01-01  Jim Meyering  <meyering@redhat.com>
5587
5588         maint: refine the update-copyright rule
5589         * Makefile (update-copyright): Also exclude any file that includes
5590         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5591         code that merely generates the comment.
5592
5593 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5594
5595         New module 'u8-grapheme-len'.
5596         * modules/unigbrk/u8-grapheme-len: New file.
5597         * modules/unigbrk/u8-grapheme-len-tests: New file.
5598         * lib/unigbrk.in.h: Add prototype for new function.
5599         * lib/unigbrk/u8-grapheme-len.c: New file.
5600         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5601
5602         New module 'u16-grapheme-len'.
5603         * modules/unigbrk/u16-grapheme-len: New file.
5604         * modules/unigbrk/u16-grapheme-len-tests: New file.
5605         * lib/unigbrk.in.h: Add prototype for new function.
5606         * lib/unigbrk/u16-grapheme-len.c: New file.
5607         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5608
5609         New module 'u32-grapheme-len'.
5610         * modules/unigbrk/u32-grapheme-len: New file.
5611         * modules/unigbrk/u32-grapheme-len-tests: New file.
5612         * lib/unigbrk.in.h: Add prototype for new function.
5613         * lib/unigbrk/u32-grapheme-len.c: New file.
5614         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5615
5616         New module 'u8-grapheme-next'.
5617         * modules/unigbrk/u8-grapheme-next: New file.
5618         * modules/unigbrk/u8-grapheme-next-tests: New file.
5619         * lib/unigbrk.in.h: Add prototype for new function.
5620         * lib/unigbrk/u8-grapheme-next.c: New file.
5621         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5622
5623         New module 'u16-grapheme-next'.
5624         * modules/unigbrk/u16-grapheme-next: New file.
5625         * modules/unigbrk/u16-grapheme-next-tests: New file.
5626         * lib/unigbrk.in.h: Add prototype for new function.
5627         * lib/unigbrk/u16-grapheme-next.c: New file.
5628         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5629
5630         New module 'u32-grapheme-next'.
5631         * modules/unigbrk/u32-grapheme-next: New file.
5632         * modules/unigbrk/u32-grapheme-next-tests: New file.
5633         * lib/unigbrk.in.h: Add prototype for new function.
5634         * lib/unigbrk/u32-grapheme-next.c: New file.
5635         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5636
5637         New module 'u8-grapheme-prev'.
5638         * modules/unigbrk/u8-grapheme-prev: New file.
5639         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5640         * lib/unigbrk.in.h: Add prototype for new function.
5641         * lib/unigbrk/u8-grapheme-prev.c: New file.
5642         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5643
5644         New module 'u16-grapheme-prev'.
5645         * modules/unigbrk/u16-grapheme-prev: New file.
5646         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5647         * lib/unigbrk.in.h: Add prototype for new function.
5648         * lib/unigbrk/u16-grapheme-prev.c: New file.
5649         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5650
5651         New module 'u32-grapheme-prev'.
5652         * modules/unigbrk/u32-grapheme-prev: New file.
5653         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5654         * lib/unigbrk.in.h: Add prototype for new function.
5655         * lib/unigbrk/u32-grapheme-prev.c: New file.
5656         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5657
5658         New module 'u8-grapheme-breaks'.
5659         * modules/unigbrk/u8-grapheme-breaks: New file.
5660         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5661         * lib/unigbrk.in.h: Add prototype for new function.
5662         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5663         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5664
5665         New module 'u16-grapheme-breaks'.
5666         * modules/unigbrk/u16-grapheme-breaks: New file.
5667         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5668         * lib/unigbrk.in.h: Add prototype for new function.
5669         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5670         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5671
5672         New module 'u32-grapheme-breaks'.
5673         * modules/unigbrk/u32-grapheme-breaks: New file.
5674         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5675         * lib/unigbrk.in.h: Add prototype for new function.
5676         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5677         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5678
5679         New module 'ulc-grapheme-breaks'.
5680         * modules/unigbrk/ulc-grapheme-breaks: New file.
5681         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5682         * m4/locale-ar.m4: New file.
5683         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5684         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5685         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5686
5687 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5688
5689         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5690         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5691         modified how this file was generated before I initially submitted
5692         the module, but failed to regenerate it.  This meant that several
5693         of the level2 entries were wrong.
5694         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5695         Remove the division-by-2 that is folded into the table now that
5696         gbrkprop.h has been regenerated properly.  Now -1 entries are
5697         handled correctly.
5698
5699         New module 'unigbrk/uc-gbrk-prop-tests'.
5700         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5701         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5702         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5703         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5704
5705 2011-01-01  Bruno Haible  <bruno@clisp.org>
5706
5707         Avoid use of hexadecimal escapes.
5708         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5709         instead of hexadecimal escapes.
5710
5711 2011-01-01  Jim Meyering  <meyering@redhat.com>
5712
5713         maint: new rule to update copyright year ranges
5714         * Makefile (update-copyright): New rule.
5715
5716         maint: indent with TABs in Makefile
5717         * Makefile: Expand leading sequences of spaces to TABs
5718
5719         version-etc: update the copyright year it reports
5720         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5721
5722 2010-12-31  Bruno Haible  <bruno@clisp.org>
5723
5724         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5725         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5726         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5727         zero.
5728
5729 2010-12-31  Bruno Haible  <bruno@clisp.org>
5730
5731         pwrite: Work around HP-UX 11.11 bug.
5732         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5733         works and set REPLACE_PWRITE if not.
5734         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5735         function.
5736         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5737
5738 2010-12-31  Bruno Haible  <bruno@clisp.org>
5739
5740         pread: Work around HP-UX 11 bugs.
5741         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5742         and set REPLACE_PREAD if not.
5743         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5744
5745 2010-12-31  Eric Blake  <eblake@redhat.com>
5746
5747         nl_langinfo: fix YESEXPR on Irix 6.5
5748         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5749         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5750         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5751         it.
5752
5753 2010-12-31  Bruno Haible  <bruno@clisp.org>
5754
5755         iconv: Document HP-UX 11 bug.
5756         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5757
5758 2010-12-31  Bruno Haible  <bruno@clisp.org>
5759
5760         ldexpl: Fix link error on HP-UX 11.
5761         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5762         LDEXPL_LIBM, using $ISNANL_LIBM.
5763
5764 2010-12-31  Eric Blake  <eblake@redhat.com>
5765
5766         ftello: avoid compilation failure with SunStudio c89
5767         * lib/ftello.c (ftello): Use lseek, not llseek.
5768
5769         tests: avoid failing coreutils tests on cygwin
5770         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5771         (create_exe_shims_): Return 0 when skipping.
5772
5773 2010-12-31  Bruno Haible  <bruno@clisp.org>
5774
5775         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5776         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5777
5778 2010-12-31  Bruno Haible  <bruno@clisp.org>
5779
5780         waitpid: Fix link error in C++ mode.
5781         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5782
5783 2010-12-31  Bruno Haible  <bruno@clisp.org>
5784
5785         isnan: Use GCC built-ins when possible.
5786         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5787         __builtin_isnan.
5788         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5789         (isnan): Define using GCC built-ins for GCC >= 4.0.
5790
5791 2010-12-31  Bruno Haible  <bruno@clisp.org>
5792
5793         isnand: Fix mistake.
5794         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5795         __builtin_isnand.
5796
5797 2010-12-31  Bruno Haible  <bruno@clisp.org>
5798
5799         open: Avoid C++ error on HP-UX 11.
5800         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5801
5802 2010-12-31  Bruno Haible  <bruno@clisp.org>
5803
5804         time_r: Add missing declarations on HP-UX 11.
5805         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5806         instead of HAVE_LOCALTIME_R.
5807         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5808         HAVE_LOCALTIME_R always.
5809         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5810         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5811         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5812         HAVE_LOCALTIME_R.
5813         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5814         * doc/posix-functions/localtime_r.texi: Likewise.
5815
5816 2010-12-29  Eric Blake  <eblake@redhat.com>
5817
5818         mountlist: tweak previous commit
5819         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5820         Reported by Paul Eggert.
5821
5822         mountlist: fix local drive detection on cygwin
5823         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5824         that works for cygwin.
5825
5826 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5827
5828         ftoastr, snprintf: ftoastr + snprintf module
5829         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5830         since the snprintf module now should be good enough here.
5831         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5832         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5833         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5834         GNULIB_SNPRINTF only for the test directory, and the latter
5835         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5836         seems to suffice by itself.
5837
5838 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5839
5840         alloca: one step towards thread-safety
5841         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5842         need for a static variable.  All callers changed.  This does not
5843         make the alloca replacement thread-safe, but it's one step.
5844
5845         tests: minor indenting change
5846         * tests/init.sh: Sync from coreutils housekeeping patch
5847         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5848         to keep lines within 80 columns.
5849
5850 2010-12-28  Jim Meyering  <meyering@redhat.com>
5851
5852         regex: don't infloop on persistent failing calloc
5853         * lib/regexec.c (build_trtable): Return failure indication upon
5854         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5855         In glibc, this was fixed for version 2.13:
5856         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5857
5858 2010-12-28  Bruno Haible  <bruno@clisp.org>
5859             Paul Eggert <eggert@cs.ucla.edu>
5860
5861         linkat: Make implementation robust against system behaviour variations.
5862         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5863         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5864         way, and to -2 if it needs a generic runtime test.
5865         * lib/linkat.c (solaris_optimized_link_immediate,
5866         solaris_optimized_link_follow): New functions.
5867         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5868         (check_same_link): Use it.
5869
5870 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5871
5872         New module 'unigbrk/base'.
5873         * modules/unigbrk/base: New file.
5874         * lib/unigbrk.in.h: New file.
5875
5876         New module 'unigbrk/uc-gbrk-prop'.
5877         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5878         * modules/unigbrk/uc-gbrk-prop: New file.
5879         * lib/unigbrk/gbrkprop.h: New file.
5880         * lib/unigbrk/uc-gbrk-prop.c: New file.
5881
5882         New module 'unigbrk/uc-is-grapheme-break'.
5883         * modules/unigbrk/uc-is-grapheme-break: New file.
5884         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5885         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5886         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5887         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5888         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5889
5890         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5891
5892 2010-12-27  Bruno Haible  <bruno@clisp.org>
5893
5894         linkat test: Avoid failure on Solaris 11 2010-11.
5895         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5896
5897 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5898
5899         utimens: work around glibc rounding bug on more platforms
5900         * lib/utimens.c (fdutimens): Work around rounding bug even if
5901         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5902         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5903
5904 2010-12-27  Bruno Haible  <bruno@clisp.org>
5905
5906         select tests: Improve comments.
5907         * tests/test-select.c (do_select): Add comments.
5908
5909 2010-12-27  Bruno Haible  <bruno@clisp.org>
5910
5911         select tests: Safer way of handling timeout.
5912         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5913         at every invocation.
5914
5915 2010-12-27  Bruno Haible  <bruno@clisp.org>
5916
5917         select tests: Use 'bool' where appropriate.
5918         * tests/test-select.c (connect_to_socket): Change argument type to
5919         'bool'.
5920
5921 2010-12-27  Bruno Haible  <bruno@clisp.org>
5922
5923         select tests: Use existing modules.
5924         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5925         (configure.ac): Don't test for unistd.h.
5926         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5927         declared in <unistd.h>.
5928
5929 2010-12-27  Bruno Haible  <bruno@clisp.org>
5930
5931         mbrtowc: Work around a Solaris 7 bug.
5932         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5933         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
5934         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
5935         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
5936         MBRTOWC_NULL_ARG1_BUG.
5937         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5938         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5939         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5940         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5941
5942 2010-12-27  Jim Meyering  <meyering@redhat.com>
5943
5944         read-file.c: tweak syntax
5945         * lib/read-file.c (fread_file): Remove space after "*" in function
5946         definitions.
5947
5948 2010-12-27  Bruno Haible  <bruno@clisp.org>
5949
5950         times test: Avoid gcc warnings on OSF/1.
5951         * tests/test-times.c (main): Cast printf arguments from clock_t to
5952         'long int'.
5953
5954 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5955
5956         utimens: work around glibc rounding bug on older Linux kernels
5957         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5958         on Linux with a glibc whose utimes might not work, then work
5959         around a longstanding glibc bug involving rounding rather than
5960         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5961         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5962
5963 2010-12-26  Bruno Haible  <bruno@clisp.org>
5964
5965         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5966         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5967         _GL_CXXALIAS_SYS.
5968         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5969
5970 2010-12-26  Bruno Haible  <bruno@clisp.org>
5971
5972         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5973         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5974         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5975         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5976         looking for the declaration.
5977         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5978         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5979         problem.
5980         * doc/posix-functions/inet_pton.texi: Likewise.
5981
5982 2010-12-26  Bruno Haible  <bruno@clisp.org>
5983
5984         arpa_inet: Use the common idioms with C++ support.
5985         * lib/arpa_inet.in.h: Include c++defs.h.
5986         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5987         support.
5988         * modules/arpa_inet (Depends-on): Add c++defs.
5989         (Makefile.am): Substitute the contents of c++defs.h.
5990         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5991         * modules/arpa_inet-c++-tests: New file.
5992         * tests/test-arpa_inet-c++.cc: New file.
5993
5994 2010-12-25  Bruno Haible  <bruno@clisp.org>
5995
5996         Fix more C++ link errors on Solaris 8.
5997         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5998         $(LIB_EACCESS).
5999         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6000         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6001         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6002         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6003         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6004
6005 2010-12-25  Bruno Haible  <bruno@clisp.org>
6006
6007         printf-posix: Fix link error when a non-GCC compiler is used.
6008         * lib/stdio.in.h (printf): When not using GCC, override printf
6009         correctly.
6010         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6011
6012 2010-12-25  Bruno Haible  <bruno@clisp.org>
6013
6014         strerror_r-posix: Update doc.
6015         * doc/posix-functions/strerror_r.texi: Update doc about the return
6016         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6017
6018 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6019
6020         utimens: simplify the logic of the previous change
6021         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6022         This should not affect whether the test succeeds or fails.
6023
6024         utimens: configure better on hosts with NFS clock skew
6025         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6026         uses the clock of the local host.  It might use the clock of the
6027         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6029
6030 2010-12-25  Bruno Haible  <bruno@clisp.org>
6031
6032         ptsname test: Avoid failure on Solaris.
6033         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6034         open a pseudo-terminal; don't use BSD-style ptys.
6035         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6036
6037 2010-12-25  Bruno Haible  <bruno@clisp.org>
6038
6039         ptsname: Avoid ERANGE failure on some systems.
6040         * lib/ptsname.c (buffer): Increase size.
6041
6042 2010-12-25  Bruno Haible  <bruno@clisp.org>
6043
6044         rename, renameat: Avoid test failures at NFS mounted locations.
6045         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6046         so that subsequent mkdir calls succeed.
6047
6048 2010-12-25  Bruno Haible  <bruno@clisp.org>
6049
6050         iswblank: Fix C++ link error on Solaris 8.
6051         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6052         _GL_FUNCDECL_SYS.
6053
6054 2010-12-25  Bruno Haible  <bruno@clisp.org>
6055
6056         unistd: Fix C++ link error on Solaris 8.
6057         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6058
6059 2010-12-25  Bruno Haible  <bruno@clisp.org>
6060
6061         readlink doc: Mention an old glibc bug.
6062         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6063
6064 2010-12-25  Bruno Haible  <bruno@clisp.org>
6065
6066         fcntl-h: Fix for use of C++ on glibc systems.
6067         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6068         also on glibc systems in C++ mode.
6069         Reported by Gary V. Vaughan <gary@gnu.org>.
6070
6071 2010-12-25  Bruno Haible  <bruno@clisp.org>
6072
6073         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6074         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6075
6076 2010-12-25  Bruno Haible  <bruno@clisp.org>
6077
6078         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6079         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6080         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6081         test whether truncl works according to ISO C 99 with IEC 60559.
6082         * m4/truncl-ieee.m4: New file.
6083         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6084         m4/signbit.m4.
6085         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6086
6087 2010-12-25  Bruno Haible  <bruno@clisp.org>
6088
6089         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6090         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6091         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6092         test whether ceill works according to ISO C 99 with IEC 60559.
6093         * m4/ceill-ieee.m4: New file.
6094         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6095         m4/signbit.m4.
6096         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6097
6098 2010-12-25  Bruno Haible  <bruno@clisp.org>
6099
6100         Ensure all prerequisites of <wchar.h> are included.
6101         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6102         before <wchar.h>.
6103         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6104         gl_MBRLEN_NUL_RETVAL): Likewise.
6105         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6106         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6107         AC_FUNC_MBRTOWC): Likewise.
6108         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6109         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6110         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6111         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6112         Likewise.
6113         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6114         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6115         (gl_WCHAR_H): Improve comments.
6116         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6117
6118 2010-12-25  Bruno Haible  <bruno@clisp.org>
6119
6120         strtok_r: Fix C syntax error in autoconf macro.
6121         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6122         characters in test program.
6123
6124 2010-12-24  Bruno Haible  <bruno@clisp.org>
6125
6126         ceil, trunc, round: Fix gcc warnings.
6127         * lib/ceil.c (MIN): Undefine before redefining.
6128         * lib/trunc.c (MIN): Likewise.
6129         * lib/round.c (MIN): Likewise.
6130         Include <math.h> first.
6131
6132 2010-12-24  Bruno Haible  <bruno@clisp.org>
6133
6134         select tests: Avoid failures on OSF/1 5.1.
6135         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6136         failure of closing the last socket; it may fail with ECONNRESET.
6137
6138 2010-12-24  Eric Blake  <eblake@redhat.com>
6139
6140         stdint: avoid HP-UX 10.20 preprocessor bug
6141         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6142         than #if.
6143         * tests/test-floor2.c (main): Likewise.
6144         Reported by Peter O'Gorman.
6145
6146         pipe: make obsoletion transition easier
6147         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6148         * modules/pipe (Files): Include revived file.
6149         (Include): Drop reference, to mirror getdate's behavior.
6150
6151 2010-12-24  Bruno Haible  <bruno@clisp.org>
6152
6153         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6154         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6155         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6157
6158 2010-12-24  Bruno Haible  <bruno@clisp.org>
6159
6160         gethostname: Ensure declaration on NonStop Kernel.
6161         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6162         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6163
6164 2010-12-24  Bruno Haible  <bruno@clisp.org>
6165
6166         sys_select: Ensure all necessary types on NonStop Kernel.
6167         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6168         include <sys/time.h>.
6169         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6170         NonStop Kernel.
6171         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6172
6173 2010-12-24  Bruno Haible  <bruno@clisp.org>
6174
6175         sys_select: Remove unneeded include.
6176         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6177         have <sys/select.h>.
6178
6179 2010-12-24  Bruno Haible  <bruno@clisp.org>
6180
6181         gethostname: Provide a fallback for HOST_NAME_MAX.
6182         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6183         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6184         instead.
6185         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6186
6187 2010-12-24  Bruno Haible  <bruno@clisp.org>
6188
6189         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6190         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6191         (SA_RESTART): Likewise.
6192         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6193
6194 2010-12-24  Bruno Haible  <bruno@clisp.org>
6195
6196         signal: Define NSIG.
6197         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6198         * tests/test-signal.c (nsig): New variable.
6199         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6200
6201 2010-12-24  Bruno Haible  <bruno@clisp.org>
6202
6203         rename, renameat: Avoid test failures on OSF/1 5.1.
6204         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6205         alternative error codes.
6206         * tests/test-renameat.c (main): Likewise.
6207
6208 2010-12-24  Bruno Haible  <bruno@clisp.org>
6209
6210         *printf: Detect large precisions bug on Solaris 10/SPARC.
6211         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6212         by Paul Eggert.
6213         * tests/test-snprintf-posix.h (test_function): Add this test code here
6214         too.
6215         * tests/test-sprintf-posix.h (test_function): Likewise.
6216         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6217         * tests/test-vasprintf-posix.c (test_function): Likewise.
6218         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6219         around by gnulib.
6220         * doc/posix-functions/printf.texi: Likewise.
6221         * doc/posix-functions/snprintf.texi: Likewise.
6222         * doc/posix-functions/sprintf.texi: Likewise.
6223         * doc/posix-functions/vfprintf.texi: Likewise.
6224         * doc/posix-functions/vprintf.texi: Likewise.
6225         * doc/posix-functions/vsnprintf.texi: Likewise.
6226         * doc/posix-functions/vsprintf.texi: Likewise.
6227         * doc/posix-functions/dprintf.texi: Undo last commit.
6228         * doc/posix-functions/vdprintf.texi: Likewise.
6229
6230 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6231
6232         tests: port test-fdutimensat.c to Solaris 8
6233         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
6234         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
6235         On Solaris 8, it fails with errno == ENOSYS, because there is no
6236         futimens (so it can't use the fd), and there is no lutimens (so it
6237         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
6238
6239         vsnprintf: make more consistent with snprintf; doc fixes
6240
6241         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6242         the byte count return problem was promoted from the snprintf-posix
6243         to the snprintf module.
6244         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6245         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
6246         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
6247         * tests/test-snprintf.c (main): Check the byte count returned.
6248         * tests/test-vsnprintf.c (main): Likewise.
6249
6250 2010-12-23  Eric Blake  <eblake@redhat.com>
6251
6252         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
6253         * modules/sigpipe (License): Relax license.
6254
6255 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6256
6257         doc: document Solaris printf bug with large float precisions
6258         * doc/posix-functions/dprintf.texi (dprintf):
6259         * doc/posix-functions/fprintf.texi (fprintf):
6260         * doc/posix-functions/printf.texi (printf):
6261         * doc/posix-functions/snprintf.texi (snprintf):
6262         * doc/posix-functions/sprintf.texi (sprintf):
6263         * doc/posix-functions/vdprintf.texi (vdprintf):
6264         * doc/posix-functions/vfprintf.texi (vfprintf):
6265         * doc/posix-functions/vprintf.texi (vprintf):
6266         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6267         * doc/posix-functions/vsprintf.texi (vsprintf):
6268         Mention that these functions mishandle large floating point
6269         precisions on Solaris 10.  The same bug is also present in Solaris
6270         8, and I assume earlier.  This causes "cd gnulib-tests; make
6271         check" to fail on Solaris 8 (and I assume, later) when building
6272         the latest coreutils, in test-vasprintf-posix's call to
6273         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
6274         the wide flavors (e.g., wprintf) so this patch just updates the
6275         documentation for the narrow ones.
6276
6277         test-posixtm.c: add two tests
6278         * tests/test-posixtm.c: Add two tests, to highlight the
6279         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
6280         around this bug; this is merely to document it.
6281
6282 2010-12-22  Bruno Haible  <bruno@clisp.org>
6283
6284         getlogin_r: Work around portability problem on OSF/1.
6285         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
6286         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
6287         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
6288         test for a truncated result.
6289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
6290         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
6291         * modules/getlogin_r (Depends-on): Add memchr.
6292         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
6293
6294 2010-12-22  Bruno Haible  <bruno@clisp.org>
6295
6296         ptsname: Avoid test failure on OSF/1 5.1.
6297         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
6298         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
6299         (same_slave): New function.
6300         (main): Use it to compare ptsname's result with the expected file name.
6301
6302 2010-12-22  Bruno Haible  <bruno@clisp.org>
6303
6304         Port extended stdio modules to HP NonStop Kernel.
6305         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
6306         macros.
6307         * lib/fbufmode.c: Update comments.
6308         * lib/fflush.c: Likewise.
6309         * lib/fpurge.c: Likewise.
6310         * lib/freadable.c: Likewise.
6311         * lib/freadahead.c: Likewise.
6312         * lib/freading.c: Likewise.
6313         * lib/freadptr.c: Likewise.
6314         * lib/freadseek.c: Likewise.
6315         * lib/fseeko.c: Likewise.
6316         * lib/fseterr.c: Likewise.
6317         * lib/fwritable.c: Likewise.
6318         * lib/fwriting.c: Likewise.
6319         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6320
6321 2010-12-22  Bruno Haible  <bruno@clisp.org>
6322
6323         ttyname_r: Work around bug on OSF/1 5.1.
6324         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
6325         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
6326         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
6327         present.
6328         * lib/ttyname_r.c (ttyname_r): Update comments.
6329
6330 2010-12-22  Bruno Haible  <bruno@clisp.org>
6331
6332         round: Implement result sign according to IEEE 754.
6333         * lib/round.c (MIN, MINUS_ZERO): New macros.
6334         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
6335         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
6336         * tests/test-round-ieee.c (main): Likewise.
6337         * tests/test-roundl-ieee.c (main): Likewise.
6338
6339         trunc: Implement result sign according to IEEE 754.
6340         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
6341         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
6342         * tests/test-trunc2.c: Include minus-zero.h.
6343         (MINUS_ZERO): New macro.
6344         (trunc_reference): Keep in sync with lib/trunc.c.
6345         * tests/test-truncf2.c: Include minus-zero.h.
6346         (MINUS_ZERO): New macro.
6347         (truncf_reference): Keep in sync with lib/trunc.c.
6348         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
6349         * tests/test-trunc-ieee.c (main): Likewise.
6350         * tests/test-truncl-ieee.c (main): Likewise.
6351
6352         ceil: Implement result sign according to IEEE 754.
6353         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
6354         (FUNC): Return -0.0 for -1 < x < 0.
6355         * tests/test-ceil2.c: Include minus-zero.h.
6356         (MINUS_ZERO): New macro.
6357         (ceil_reference): Keep in sync with lib/ceil.c.
6358         * tests/test-ceilf2.c: Include minus-zero.h.
6359         (MINUS_ZERO): New macro.
6360         (ceilf_reference): Keep in sync with lib/ceil.c.
6361         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
6362         * tests/test-ceil-ieee.c (main): Likewise.
6363         * tests/test-ceill-ieee.c (main): Likewise.
6364
6365         floor: Implement result sign according to IEEE 754.
6366         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
6367         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
6368         * tests/test-floorf2.c (floorf_reference): Likewise.
6369         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
6370         * tests/test-floor-ieee.c (main): Likewise.
6371         * tests/test-floorl-ieee.c (main): Likewise.
6372
6373 2010-12-22  Bruno Haible  <bruno@clisp.org>
6374
6375         getaddrinfo: Update doc.
6376         * doc/posix-functions/gai_strerror.texi: Return type is also different
6377         on AIX and HP-UX.
6378
6379 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6380
6381         getaddrinfo, inet_ntop: Update doc for Solaris.
6382         * doc/posix-functions/gai_strerror.texi: Return type is also an
6383         issue on Solaris 9 and earlier.
6384         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
6385         on Solaris 10 and earlier.
6386
6387 2010-12-21  Bruno Haible  <bruno@clisp.org>
6388
6389         New module 'roundl-ieee'.
6390         * modules/roundl-ieee: New file.
6391         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
6392         test whether roundl works according to ISO C 99 with IEC 60559.
6393         * m4/roundl-ieee.m4: New file.
6394         * modules/roundl-ieee-tests: New file.
6395         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
6396         * tests/test-roundl.c (main): Remove signbit tests.
6397         * modules/roundl-tests (Depends-on): Remove signbit.
6398         * doc/posix-functions/roundl.texi: Mention the new module.
6399
6400 2010-12-21  Bruno Haible  <bruno@clisp.org>
6401
6402         New module 'truncl-ieee'.
6403         * modules/truncl-ieee: New file.
6404         * modules/truncl-ieee-tests: New file.
6405         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
6406         * tests/test-truncl.c (main): Remove signbit tests.
6407         * modules/truncl-tests (Depends-on): Remove signbit.
6408         * doc/posix-functions/truncl.texi: Mention the new module.
6409
6410 2010-12-21  Bruno Haible  <bruno@clisp.org>
6411
6412         New module 'ceill-ieee'.
6413         * modules/ceill-ieee: New file.
6414         * modules/ceill-ieee-tests: New file.
6415         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
6416         * tests/test-ceill.c (main): Remove signbit tests.
6417         * modules/ceill-tests (Depends-on): Remove signbit.
6418         * doc/posix-functions/ceill.texi: Mention the new module.
6419
6420 2010-12-21  Bruno Haible  <bruno@clisp.org>
6421
6422         New module 'floorl-ieee'.
6423         * modules/floorl-ieee: New file.
6424         * modules/floorl-ieee-tests: New file.
6425         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
6426         * tests/test-floorl.c (main): Remove signbit tests.
6427         * modules/floorl-tests (Depends-on): Remove signbit.
6428         * doc/posix-functions/floorl.texi: Mention the new module.
6429
6430 2010-12-21  Bruno Haible  <bruno@clisp.org>
6431
6432         New module 'round-ieee'.
6433         * modules/round-ieee: New file.
6434         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
6435         whether round works according to ISO C 99 with IEC 60559.
6436         * m4/round-ieee.m4: New file.
6437         * modules/round-ieee-tests: New file.
6438         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
6439         * tests/test-round1.c (main): Remove signbit tests.
6440         * modules/round-tests (Depends-on): Remove 'signbit'.
6441         * doc/posix-functions/round.texi: Mention the new module.
6442
6443 2010-12-21  Bruno Haible  <bruno@clisp.org>
6444
6445         New module 'trunc-ieee'.
6446         * modules/trunc-ieee: New file.
6447         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
6448         whether trunc works according to ISO C 99 with IEC 60559.
6449         * m4/trunc-ieee.m4: New file.
6450         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
6451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
6452         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
6453         * modules/trunc-ieee-tests: New file.
6454         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
6455         * tests/test-trunc1.c (main): Remove signbit tests.
6456         * modules/trunc-tests (Depends-on): Remove 'signbit'.
6457         * doc/posix-functions/trunc.texi: Mention the new module.
6458
6459 2010-12-21  Bruno Haible  <bruno@clisp.org>
6460
6461         New module 'ceil-ieee'.
6462         * modules/ceil-ieee: New file.
6463         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
6464         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
6465         ISO C 99 with IEC 60559.
6466         * m4/ceil-ieee.m4: New file.
6467         * modules/ceil (Files): Add lib/ceil.c.
6468         (Depends-on): Add 'float'.
6469         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6470         * lib/math.in.h (ceil): New declaration.
6471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
6472         REPLACE_CEIL.
6473         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
6474         * modules/ceil-ieee-tests: New file.
6475         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
6476         * tests/test-math-c++.cc: Check the signature of 'ceil'.
6477         * doc/posix-functions/ceil.texi: Mention the new module.
6478
6479 2010-12-21  Bruno Haible  <bruno@clisp.org>
6480
6481         New module 'floor-ieee'.
6482         * modules/floor-ieee: New file.
6483         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
6484         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
6485         ISO C 99 with IEC 60559.
6486         * m4/floor-ieee.m4: New file.
6487         * modules/floor (Files): Add lib/floor.c.
6488         (Depends-on): Add 'float'.
6489         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6490         * lib/math.in.h (floor): New declaration.
6491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
6492         REPLACE_FLOOR.
6493         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
6494         * modules/floor-ieee-tests: New file.
6495         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
6496         * tests/test-math-c++.cc: Check the signature of 'floor'.
6497         * doc/posix-functions/floor.texi: Mention the new module.
6498
6499 2010-12-21  Bruno Haible  <bruno@clisp.org>
6500
6501         New module 'roundf-ieee'.
6502         * modules/roundf-ieee: New file.
6503         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
6504         test whether roundf works according to ISO C 99 with IEC 60559.
6505         * m4/roundf-ieee.m4: New file.
6506         * modules/roundf-ieee-tests: New file.
6507         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
6508         * tests/test-roundf1.c (main): Remove signbit tests.
6509         * modules/roundf-tests (Depends-on): Remove 'signbit'.
6510         * doc/posix-functions/roundf.texi: Mention the new module.
6511
6512 2010-12-21  Bruno Haible  <bruno@clisp.org>
6513
6514         New module 'truncf-ieee'.
6515         * modules/truncf-ieee: New file.
6516         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
6517         test whether truncf works according to ISO C 99 with IEC 60559.
6518         * m4/truncf-ieee.m4: New file.
6519         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
6520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
6521         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
6522         * modules/truncf-ieee-tests: New file.
6523         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
6524         * tests/test-truncf1.c (main): Remove signbit tests.
6525         * modules/truncf-tests (Depends-on): Remove 'signbit'.
6526         * doc/posix-functions/truncf.texi: Mention the new module.
6527
6528 2010-12-21  Bruno Haible  <bruno@clisp.org>
6529
6530         New module 'ceilf-ieee'.
6531         * modules/ceilf-ieee: New file.
6532         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
6533         test whether ceilf works according to ISO C 99 with IEC 60559.
6534         * m4/ceilf-ieee.m4: New file.
6535         * modules/ceilf-ieee-tests: New file.
6536         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
6537         * tests/test-ceilf1.c (main): Remove signbit tests.
6538         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
6539         * doc/posix-functions/ceilf.texi: Mention the new module.
6540
6541 2010-12-21  Bruno Haible  <bruno@clisp.org>
6542
6543         New module 'floorf-ieee'.
6544         * modules/floorf-ieee: New file.
6545         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
6546         test whether floorf works according to ISO C 99 with IEC 60559.
6547         * m4/floorf-ieee.m4: New file.
6548         * modules/floorf-ieee-tests: New file.
6549         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
6550         * tests/test-floorf1.c (main): Remove signbit tests.
6551         * modules/floorf-tests (Depends-on): Remove 'signbit'.
6552         * doc/posix-functions/floorf.texi: Mention the new module.
6553
6554 2010-12-21  Bruno Haible  <bruno@clisp.org>
6555
6556         Support for minus zero in autoconf macros.
6557         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6558         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6559         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6560         * tests/minus-zero.h: Update comments.
6561
6562 2010-12-21  Bruno Haible  <bruno@clisp.org>
6563
6564         Tests for module 'ceil'.
6565         * modules/ceil-tests: New file.
6566         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6567         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6568
6569 2010-12-21  Bruno Haible  <bruno@clisp.org>
6570
6571         Tests for module 'floor'.
6572         * modules/floor-tests: New file.
6573         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6574         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6575
6576 2010-12-21  Bruno Haible  <bruno@clisp.org>
6577
6578         math: Fix indentation.
6579         * lib/math.in.h (floorf): Fix indentation.
6580
6581 2010-12-21  Bruno Haible  <bruno@clisp.org>
6582
6583         Fix cross-compilation guesses on Solaris.
6584         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6585         not match "solaris2.10".
6586         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6587         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6588         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6589
6590 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6591
6592         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6593         This fixes a problem observed with the latest coreutils snapshot
6594         that caused a test to fail on Solaris 8.  src/csplit.c's call
6595         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6596         earlier, instead of returning the number of bytes that would have
6597         been generated; this causes csplit to incorrectly report memory
6598         exhaustion.
6599         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6600         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6601         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6602         comments to match.
6603         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6604         Fix typo in matching older versions of Solaris: "solaris2.10"
6605         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6606         only for guessing while cross-compiling.
6607         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6608
6609 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6610
6611         ftoastr: fix comment again
6612         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6613         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6614         Also, simplify example a bit by using flags = 0.
6615
6616 2010-12-20  Bruno Haible  <bruno@clisp.org>
6617
6618         round*, trunc*: Update documentation regarding glibc.
6619         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6620         * doc/posix-functions/round.texi: Likewise.
6621         * doc/posix-functions/roundl.texi: Likewise.
6622         * doc/posix-functions/truncf.texi: Likewise.
6623         * doc/posix-functions/trunc.texi: Likewise.
6624         * doc/posix-functions/truncl.texi: Likewise.
6625
6626 2010-12-20  Bruno Haible  <bruno@clisp.org>
6627
6628         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6629         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6630         * doc/posix-functions/round.texi: Likewise.
6631         * doc/posix-functions/roundl.texi: Likewise.
6632
6633 2010-12-20  Bruno Haible  <bruno@clisp.org>
6634
6635         ttyname_r: Add missing declaration on HP-UX 11.
6636         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6637         HAVE_TTYNAME_R.
6638         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6639         declared. Set HAVE_TTYNAME_R always.
6640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6641         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6642         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6643         HAVE_TTYNAME_R.
6644         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6645
6646 2010-12-20  Bruno Haible  <bruno@clisp.org>
6647
6648         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6649         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6650         * doc/posix-functions/getlogin_r.texi: Likewise.
6651         * tests/test-getlogin.c: Include <errno.h>.
6652         (main): Avoid test failure on HP-UX 11.11.
6653         * tests/test-getlogin_r.c (main): Likewise.
6654
6655 2010-12-20  Bruno Haible  <bruno@clisp.org>
6656
6657         getlogin_r: Add missing declaration on HP-UX 11.
6658         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6659         declared also when it exists as a function.
6660         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6661
6662 2010-12-20  Bruno Haible  <bruno@clisp.org>
6663
6664         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6665         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6666         through wcrtomb.
6667
6668 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6669
6670         ftoastr: fix comment
6671         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6672         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6673
6674 2010-12-19  Bruno Haible  <bruno@clisp.org>
6675
6676         isnan: Ensure it is a macro.
6677         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6678         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6679         Solaris.
6680
6681 2010-12-19  Bruno Haible  <bruno@clisp.org>
6682
6683         ldexpl test: Fix link error on OSF/1 5.1.
6684         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6685
6686 2010-12-19  Bruno Haible  <bruno@clisp.org>
6687
6688         wctype: Make it work in C++ mode on OSF/1 5.1.
6689         * lib/wctype.in.h (iswblank): Declare but not define here.
6690         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6691         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6692         * modules/wctype (Files): Add lib/iswblank.c.
6693
6694 2010-12-19  Bruno Haible  <bruno@clisp.org>
6695
6696         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6697         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6698         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6699
6700 2010-12-19  Bruno Haible  <bruno@clisp.org>
6701
6702         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6703         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6704         _POSIX_PII_SOCKET.
6705         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6706         * doc/posix-functions/recvfrom.texi: Likewise.
6707         * doc/posix-functions/send.texi: Likewise.
6708         * doc/posix-functions/sendto.texi: Likewise.
6709
6710 2010-12-19  Bruno Haible  <bruno@clisp.org>
6711
6712         tcgetsid: Add missing declaration on OSF/1 5.1.
6713         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6714         HAVE_TCGETSID.
6715         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6716         Don't set HAVE_TCGETSID.
6717         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6718         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6719         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6720         HAVE_TCGETSID.
6721         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6722
6723 2010-12-19  Bruno Haible  <bruno@clisp.org>
6724
6725         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6726         * lib/stdio.in.h: During the include_next statement, let recursive
6727         includes of this file include only the system header file.
6728
6729 2010-12-19  Bruno Haible  <bruno@clisp.org>
6730
6731         iconv_open: Fix regression from 2010-12-04.
6732         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6733         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6734
6735 2010-12-19  Bruno Haible  <bruno@clisp.org>
6736
6737         stdbool test: Avoid a gcc warning.
6738         * tests/test-stdbool.c (main): Fail if e1 is false.
6739         Reported by Jim Meyering.
6740
6741 2010-12-19  Jim Meyering  <meyering@redhat.com>
6742
6743         setenv: restore to working order
6744         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6745         mistakenly removed.
6746         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6747         HAVE_SETENV.
6748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6749         HAVE_SETENV.
6750
6751 2010-12-19  Bruno Haible  <bruno@clisp.org>
6752
6753         Document some different function declarations on OSF/1 5.1.
6754         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6755         * doc/posix-functions/inet_ntop.texi: Likewise.
6756         * doc/posix-functions/gethostname.texi: Likewise.
6757         * lib/unistd.in.h (gethostname): Update comment.
6758
6759 2010-12-19  Bruno Haible  <bruno@clisp.org>
6760
6761         doc: Mention vasprintf-posix module.
6762         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6763         the 'vasprintf-posix' module.
6764         * doc/glibc-functions/vasprintf.texi: Likewise.
6765
6766 2010-12-19  Bruno Haible  <bruno@clisp.org>
6767
6768         unsetenv: Add missing declaration on OSF/1 5.1.
6769         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6770         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6771         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6773         not HAVE_UNSETENV.
6774         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6775         HAVE_UNSETENV.
6776         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6777
6778 2010-12-19  Bruno Haible  <bruno@clisp.org>
6779
6780         setenv: Add missing declaration on OSF/1 5.1.
6781         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6782         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6783         declared. Don't set HAVE_SETENV.
6784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6785         not HAVE_SETENV.
6786         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6787         HAVE_SETENV.
6788         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6789
6790 2010-12-19  Bruno Haible  <bruno@clisp.org>
6791
6792         nl_langinfo tests: Avoid gcc warning.
6793         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6794
6795 2010-12-19  Bruno Haible  <bruno@clisp.org>
6796
6797         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6798         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6799         _GL_CXXALIAS_SYS.
6800
6801 2010-12-19  Bruno Haible  <bruno@clisp.org>
6802
6803         stdbool: Relax test.
6804         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6805         address to 'bool' work in static initializer, for compilers other than
6806         GCC.
6807
6808 2010-12-19  Bruno Haible  <bruno@clisp.org>
6809
6810         ftello: Add missing declaration on OSF/1 5.1.
6811         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6812         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6814         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6815         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6816
6817 2010-12-19  Bruno Haible  <bruno@clisp.org>
6818
6819         fseeko: Add missing declaration on OSF/1 5.1.
6820         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6821         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6823         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6824         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6825
6826 2010-12-19  Bruno Haible  <bruno@clisp.org>
6827
6828         fchdir: Add missing declaration on OSF/1 5.1.
6829         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6832         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6833         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6834
6835 2010-12-19  Bruno Haible  <bruno@clisp.org>
6836
6837         relocatable-prog-wrapper: Separate from relocatable-prog.
6838         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6839         uninstall-relocwrapper rule here.
6840         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6841         Reported by Ian Beckwith <ianb@erislabs.net>.
6842
6843 2010-12-19  Bruno Haible  <bruno@clisp.org>
6844
6845         unistr/u8-mbsnlen: Add missing dependency.
6846         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6847         Reported by Ian Beckwith <ianb@erislabs.net>.
6848
6849 2010-12-19  Bruno Haible  <bruno@clisp.org>
6850
6851         iconv: Make it possible again to use this module without 'iconv-h'.
6852         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6853         if it is not defined.
6854         Reported by Ian Beckwith <ianb@erislabs.net>.
6855
6856 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6857
6858         acl: port to Solaris 8 when copying from tmpfs to ufs
6859         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6860         error number.  Problem observed on Solaris 8 with latest
6861         coreutils, with "mv A B", where A is on a tmpfs file system and B
6862         is on a ufs file system.  This caused coreutils' mv/part-symlink
6863         test to fail.
6864
6865         tests: set fail=0 at start
6866         * tests/init.sh (setup_): Move fail=0 initialization here ...
6867         (mktempd_): ... from here, so that tests can rely on fail being
6868         set to 0 initially.  This fixes a problem in coreutils; see:
6869         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6870
6871 2010-12-18  Bruno Haible  <bruno@clisp.org>
6872
6873         memmem-simple: Stylistic changes.
6874         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6875         Fix preprocessor directive indentation.
6876
6877 2010-12-15  Pádraig Brady <P@draigBrady.com>
6878
6879         memmem, memmem-simple: reorganize and expand empty needle check
6880         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6881         functional checks to memmem-simple so that one has a fully functional
6882         memmem by using just this module.
6883         Restrict the performance only check to the memmem module.
6884         Also expand the empty needle check to ensure the correct
6885         pointer is returned, not just a non NULL pointer.
6886         * doc/glibc-functions/memmem.texi: Rearrange the portability
6887         documentation to correlate with the rearranged checks.
6888         Clarify exactly how the memmem and memmem-simple modules
6889         relate to each other.
6890
6891 2010-12-15  Pádraig Brady <P@draigBrady.com>
6892             Bruno Haible  <bruno@clisp.org>
6893
6894         Improve cross-compilation guesses for uClibc.
6895         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6896         that uClibc does not have the glibc bug.
6897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6898         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6899
6900 2010-12-14  Eric Blake  <eblake@redhat.com>
6901
6902         configmake: provide fallbacks for oldest supported autotools
6903         * m4/configmake.m4: New file.
6904         * modules/configmake (Files): Ship it.
6905         (configure.ac): Use it to guarantee fallbacks.
6906
6907 2010-12-13  Pádraig Brady <P@draigBrady.com>
6908
6909         read-file: Improve handling of large files
6910         * lib/read-file.c (fread_file): Minimize realloc()s
6911         for regular files, and better manage sizes around SIZE_MAX.
6912
6913 2010-12-13  Eric Blake  <eblake@redhat.com>
6914
6915         cloexec, fcntl: relax license
6916         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6917         consent from all contributors.
6918         * modules/fcntl (License): Likewise.
6919
6920 2010-12-10  Bruno Haible  <bruno@clisp.org>
6921
6922         Tests for module 'pipe-posix'.
6923         * modules/pipe-posix-tests: New file.
6924         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6925
6926 2010-12-10  Bruno Haible  <bruno@clisp.org>
6927
6928         pipe-posix: Make it work in C++ mode.
6929         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6930         (pipe): Use common idiom, not a macro definition.
6931         * lib/pipe.c: New file.
6932         * m4/pipe.m4: New file.
6933         * modules/pipe-posix (Description): Enhance.
6934         (Files): Add lib/pipe.c, m4/pipe.m4.
6935         (configure.ac): Invoke gl_FUNC_PIPE.
6936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6937         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6938         * tests/test-unistd-c++.cc: Check the signature of pipe.
6939
6940 2010-12-10  Bruno Haible  <bruno@clisp.org>
6941
6942         Rename module 'pipe' to 'spawn-pipe'.
6943         * modules/spawn-pipe: New file, renamed from modules/pipe.
6944         (Files, configure.ac, Makefile.am): Update.
6945         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6946         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6947         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6948         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6949         "spawn-pipe.h" instead of "pipe.h".
6950         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6951         to gl_SPAWN_PIPE.
6952         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6953         (Files, Makefile.am): Update.
6954         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6955         Update.
6956         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6957         Include "spawn-pipe.h" instead of "pipe.h".
6958         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6959         * lib/javacomp.c: Likewise.
6960         * lib/javaversion.c: Likewise.
6961         * lib/pipe-filter-gi.c: Likewise.
6962         * lib/pipe-filter-ii.c: Likewise.
6963         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6964         * modules/javacomp (Depends-on): Likewise.
6965         * modules/javaversion (Depends-on): Likewise.
6966         * modules/pipe-filter-gi (Depends-on): Likewise.
6967         * modules/pipe-filter-ii (Depends-on): Likewise.
6968         * MODULES.html.sh (Executing programs): Update.
6969         * NEWS: Mention the change.
6970
6971 2010-12-10  Eric Blake  <eblake@redhat.com>
6972
6973         pipe-posix: new module
6974         * modules/pipe-posix: New file.
6975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6976         (gl_UNISTD_H): Check for declaration.
6977         * modules/unistd (Makefile.am): Substitute it.
6978         * lib/unistd.in.h (pipe): Provide it for mingw.
6979         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6980         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6981
6982 2010-12-07  Bruno Haible  <bruno@clisp.org>
6983
6984         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6985         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6986         u8_strcmp_gnu.
6987         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6988
6989 2010-12-06  Bruno Haible  <bruno@clisp.org>
6990
6991         Update internal documentation.
6992         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6993
6994 2010-12-04  Bruno Haible  <bruno@clisp.org>
6995
6996         Put more information about failed tests into the test return codes.
6997         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6998         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6999         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7000         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7001         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7002         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7003         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7004         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7005         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7007         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7008         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7009         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7010         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7011         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7012         returns a bit mask.
7013         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7014         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7015         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7016         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7017         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7018         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7021         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7022         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7023         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7024         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7025         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7026         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7027         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7028         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7029         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7030         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7031         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7032         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7033         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7034         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7035         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7036         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7037         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7038         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7039         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7040         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7041         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7042         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7043         gl_PRINTF_PRECISION): Likewise.
7044         * m4/regex.m4 (gl_REGEX): Likewise.
7045         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7046         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7047         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7048         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7049         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7050         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7051         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7052         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7053         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7054         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7055         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7056         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7057         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7058         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7059         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7060         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7061         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7062         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7064         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7065         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7066         enumerated value.
7067         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7068
7069 2010-12-04  Bruno Haible  <bruno@clisp.org>
7070
7071         Update for Solaris 11 2010-11.
7072         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7073         Express, released in November 2010.
7074
7075 2010-12-04  Bruno Haible  <bruno@clisp.org>
7076
7077         nproc: Relax license.
7078         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7079         and Paul Eggert.
7080         Requested by Ludovic Courtès <ludo@gnu.org>.
7081
7082 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7083
7084         utimecmp: fine-grained src to nearby coarse-grained dest
7085
7086         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7087         and the source is on a file system with higher-resolution time
7088         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7089         not work, and the time stamps are close together, the algorithm to
7090         determine the exact resolution from the read-back mtime was buggy:
7091         it had a "!=" where it should have had an "==".  This bug has been
7092         in the code ever since it was introduced to gnulib.
7093         Problem reported by Dan Jacobson in
7094         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7095
7096 2010-11-30  Bruno Haible  <bruno@clisp.org>
7097
7098         strerror_r-posix: Fix autoconf test.
7099         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7100
7101 2010-11-28  Bruno Haible  <bruno@clisp.org>
7102             Paul Eggert  <eggert@cs.ucla.edu>
7103
7104         Tests for module 'getdomainname'.
7105         * modules/getdomainname-tests: New file.
7106         * tests/test-getdomainname.c: New file, based on
7107         tests/test-gethostname.c.
7108
7109 2010-11-28  Bruno Haible  <bruno@clisp.org>
7110             Paul Eggert  <eggert@cs.ucla.edu>
7111
7112         getdomainname: Use the system function when possible.
7113         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7114         (getdomainname): Replace if needed. Provide the declaration if it is
7115         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7116         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7117         (getdomainname): When the system has getdomainname, call the system
7118         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7119         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7120         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7121         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7122         the function if its second argument is of type 'int' or if it is found
7123         in libnsl.
7124         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7125         <sys/systeminfo.h> and sysinfo().
7126         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7128         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7129         HAVE_GETDOMAINNAME.
7130         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7131         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7132         * doc/glibc-functions/getdomainname.texi: Document the problems with
7133         the getdomainname declaration.
7134
7135 2010-11-28  Bruno Haible  <bruno@clisp.org>
7136
7137         sys_socket: Ensure ss_family field on AIX.
7138         * lib/sys_socket.in.h (ss_family): New macro definition.
7139         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7140         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7141         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7142         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7143         * modules/sys_socket (Makefile.am): Substitute
7144         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7145         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7146
7147 2010-11-27  Bruno Haible  <bruno@clisp.org>
7148
7149         readline: Improve configure output.
7150         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7151         "checking for readline..." result understandable.
7152
7153 2010-11-27  Bruno Haible  <bruno@clisp.org>
7154
7155         *printf-posix: Detect a bug on Solaris 10/x86.
7156         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7157         for floating-point output.
7158         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7159         directive.
7160         * tests/test-snprintf-posix.h (test_function): Likewise.
7161         * tests/test-sprintf-posix.h (test_function): Likewise.
7162         * tests/test-vasprintf-posix.c (test_function): Likewise.
7163         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7164         * doc/posix-functions/printf.texi: Likewise.
7165         * doc/posix-functions/snprintf.texi: Likewise.
7166         * doc/posix-functions/sprintf.texi: Likewise.
7167         * doc/posix-functions/vfprintf.texi: Likewise.
7168         * doc/posix-functions/vprintf.texi: Likewise.
7169         * doc/posix-functions/vsnprintf.texi: Likewise.
7170         * doc/posix-functions/vsprintf.texi: Likewise.
7171         * doc/glibc-functions/obstack_printf.texi: Likewise.
7172         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7173
7174 2010-11-27  Bruno Haible  <bruno@clisp.org>
7175
7176         Fix link error when module libunistring-optional is in use.
7177         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7178         * modules/striconveha-tests (Makefile.am): Likewise.
7179
7180 2010-11-27  Bruno Haible  <bruno@clisp.org>
7181
7182         regex: Mention link dependencies.
7183         * modules/regex (Link): New section.
7184         * modules/rpmatch (Link): Likewise.
7185         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7186
7187 2010-11-27  Bruno Haible  <bruno@clisp.org>
7188
7189         ftoastr: Fix compilation error on Solaris.
7190         * lib/ftoastr.c: Include <config.h>.
7191
7192 2010-11-27  Bruno Haible  <bruno@clisp.org>
7193
7194         getloadavg: Update documentation.
7195         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7196
7197 2010-11-27  Bruno Haible  <bruno@clisp.org>
7198
7199         sys_socket: Fix test whether the functions are declared.
7200         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7201         not <sys/select.h>.
7202
7203 2010-11-27  Bruno Haible  <bruno@clisp.org>
7204
7205         getpass: Make sure to get system declaration on some platforms.
7206         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7207         gl_USE_SYSTEM_EXTENSIONS.
7208         * modules/getpass (Depends-on): Add extensions.
7209
7210 2010-11-26  Bruno Haible  <bruno@clisp.org>
7211
7212         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7213         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7214         'iconv' module is present.
7215         (ICONV_CONST): New macro.
7216         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7217         ICONV_CONST.
7218         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7219         set ICONV_CONST.
7220         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
7221         here.
7222         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
7223         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
7224         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
7225         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
7226         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
7227         present.
7228
7229 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7230
7231         ftoastr: comment fix
7232         * lib/ftoastr.c: "little" -> "little or no" in comment
7233
7234 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
7235
7236         stdint: port to GCC 4.3 + OSX + Octave
7237         On this platform, stdint.h is buggy and defines int64_t to long
7238         long int.  The replacement defined it to long int, causing
7239         problems with C++ style name mangling.  Instead, trust the system
7240         definition if INT64_MAX is defined, and likewise for the unsigned
7241         variant.   Problem reported by Jarno Rajahalme in
7242         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
7243         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
7244         and don't mess with int64_t and INT64_MAX in this case.
7245         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
7246
7247 2010-11-24  Bruno Haible  <bruno@clisp.org>
7248
7249         doc: Corrections regarding MacOS X 10.4 and 10.5.
7250         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
7251         MacOS X.
7252         Reported by Simon Josefsson.
7253
7254 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
7255
7256         Uninstall ".bin" files installed by relocwrapper.
7257         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
7258         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
7259         unless it is already there.
7260
7261 2010-11-21  Bruno Haible  <bruno@clisp.org>
7262
7263         Update for NetBSD 5.0.
7264         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7265         NetBSD; the test fails on NetBSD 5.0.
7266         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7267         about NetBSD.
7268
7269 2010-11-21  Bruno Haible  <bruno@clisp.org>
7270
7271         Update for HP-UX 11.23 and HP-UX 11.31.
7272         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
7273         HP-UX.
7274
7275 2010-11-21  Bruno Haible  <bruno@clisp.org>
7276
7277         Update for MacOS X 10.5.
7278         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7279         MacOS X; the test fails on MacOS X 10.5.8.
7280         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7281         about MacOS X.
7282
7283 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
7284
7285         bootstrap: add bootstrap_sync option.
7286         See discussion at
7287         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
7288         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
7289         * build-aux/bootstrap: Accept --bootstrap-sync to update
7290         bootstrap if it is not identical to the local gnulib's
7291         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
7292         enable this by default.  Accept --no-bootstrap-sync to disable
7293         it.
7294
7295 2010-11-20  Bruno Haible  <bruno@clisp.org>
7296
7297         Ensure that <features.h> is included before __GLIBC__ is tested.
7298         * lib/printf-parse.h: Include <features.h>.
7299         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
7300         Reported by Mike Frysinger <vapier@gentoo.org>.
7301
7302         Ensure that <features.h> is included before __GLIBC__ is tested.
7303         * lib/wchar.in.h: Include <features.h>.
7304         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
7305         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
7306         Reported by Mike Frysinger <vapier@gentoo.org>.
7307
7308         Ensure that <features.h> is included before __GLIBC__ is tested.
7309         * lib/arpa_inet.in.h: Include <features.h>.
7310         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
7311         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
7312         Reported by Mike Frysinger <vapier@gentoo.org>.
7313
7314         Ensure that <features.h> is included before __GLIBC__ is tested.
7315         * build-aux/link-warning.h: Include <features.h>.
7316         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
7317         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
7318         Reported by Mike Frysinger <vapier@gentoo.org>.
7319
7320         Ensure that <features.h> is included before __GLIBC__ is tested.
7321         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
7322         Reported by Mike Frysinger <vapier@gentoo.org>.
7323
7324 2010-11-20  Bruno Haible  <bruno@clisp.org>
7325
7326         memmem: Fix autoconf test.
7327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
7328
7329 2010-11-20  Bruno Haible  <bruno@clisp.org>
7330
7331         Port to uClibc.
7332         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
7333         * lib/fcntl.in.h: Likewise.
7334         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
7335         * lib/mbrtowc.c (mbrtowc): Likewise.
7336         * lib/relocatable.c (find_shared_library_fullname): Likewise.
7337         * lib/strerror_r.c: Likewise.
7338         * lib/unistr/u8-strnlen.c: Likewise.
7339         * lib/vasnprintf.c (decimal_point_char): Likewise.
7340         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7341         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7343         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7344         * tests/test-sigaction.c (handler, main): Likewise.
7345         * lib/freading.h: Treat uClibc like a non-glibc platform.
7346         * lib/freading.c: Likewise.
7347         * lib/gettext.h: Likewise.
7348         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
7349         Likewise.
7350         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
7351         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7352         * lib/propername.c (proper_name_utf8): Likewise.
7353         * lib/spawn.in.h: Likewise.
7354         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
7355         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
7356         mem_cd_iconveh_internal): Likewise.
7357         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
7358         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7359         strstr, strcasestr): Likewise.
7360         * lib/unicodeio.c (unicode_to_mb): Likewise.
7361         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
7362         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
7363         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
7364         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
7365         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
7366         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
7367         * lib/unistr/u8-stpncpy.c: Likewise.
7368         * lib/vasnprintf.c (VASNPRINTF): Likewise.
7369         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
7370         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7371         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7372         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7373         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
7374         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
7375         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
7376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7377         Likewise.
7378         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7379         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7383         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7384         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7385         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7386         * tests/test-getopt.h (OPTIND_MIN): Likewise.
7387         * tests/test-striconveha.c (main): Likewise.
7388         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7389         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
7390         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
7391         * doc/posix-functions/getline.texi: Likewise.
7392         Reported by Mike Frysinger <vapier@gentoo.org>.
7393
7394 2010-11-20  Bruno Haible  <bruno@clisp.org>
7395
7396         nproc: Fix condition.
7397         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
7398         HAVE_PTHREAD_AFFINITY_NP.
7399
7400 2010-11-20  Bruno Haible  <bruno@clisp.org>
7401
7402         Fix a comment.
7403         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
7404
7405 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7406
7407         ftoastr: don't assume snprintf
7408         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
7409         Implement a subset of snprintf here, by using sprintf safely.
7410         * modules/ftoastr (Depends-on): Remove snprintf.
7411
7412 2010-11-19  Jim Meyering  <meyering@redhat.com>
7413
7414         test-rename.h: fix compilation failure
7415         * tests/test-rename.h (test_rename): Add omitted "}".
7416
7417 2010-11-17  Jim Meyering  <meyering@redhat.com>
7418
7419         maint.mk: add a URL discussing the no-@acronym policy
7420         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
7421
7422 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7423
7424         ftoastr: depend on snprintf, improve comments
7425         * lib/ftoastr.c: Also mention Loitsch's draft.
7426         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
7427         needed in the current implementation, but it might simplify
7428         speeding up the code later.
7429         * modules/ftoastr: Depend on snprintf; this improves portability.
7430         Suggested by Bruno Haible in the same email.
7431
7432         ftoastr: port to hosts lacking strtof and strtold
7433         Problem reported by Bruno Haible in
7434         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
7435         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
7436         environment and strtold (and presumably strtof) are not available.
7437         * modules/ftoastr (Files): Add m4/c-strtod.m4.
7438         (configure.ac): Require gl_C99_STRTOLD.
7439
7440 2010-11-18  Bruno Haible  <bruno@clisp.org>
7441
7442         c-strtold: Avoid link error on AIX 7.
7443         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
7444         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
7445         (gl_C_STRTOLD): Test whether strtold_l exists.
7446         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7447
7448 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7449
7450         intprops: new macro INT_BITS_STRLEN_BOUND
7451         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
7452         ftoastr.h.  This exposes an internal of intprops.h that was formerly
7453         not exposed.  Also, it uses a slightly tighter bound than before;
7454         though this makes no practical difference, we might as well be as
7455         tight as we easily can.
7456
7457         ftoastr: new module, for lossless conversion of floats to short strings
7458         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
7459         * modules/ftoastr: New files.
7460
7461 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7462
7463         bootstrap: port to Solaris sed
7464         * build-aux/bootstrap (get_version): Port to Solaris sed.
7465         See Ralf Wildenhues's note in
7466         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
7467
7468 2010-11-14  Jim Meyering  <meyering@redhat.com>
7469
7470         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
7471         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
7472         and move definition closer to sole use.
7473
7474 2010-11-13  Jim Meyering  <meyering@redhat.com>
7475
7476         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
7477         Now we require at least autoconf-2.59, which means the work-around
7478         is no longer needed.
7479         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
7480         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7481         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7482         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
7483         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7484
7485 2010-11-13  Bruno Haible  <bruno@clisp.org>
7486
7487         rename, renameat: Avoid test failures at NFS mounted locations.
7488         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
7489         functions.
7490         (test_rename): Use assert_nonexistent.
7491         * tests/test-rename.c: Include <dirent.h>.
7492         * tests/test-renameat.c: Likewise.
7493         Reported by Gary V. Vaughan <gary@gnu.org>.
7494
7495         rename, renameat: Document Linux bug with NFS
7496         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
7497         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
7498         * doc/posix-functions/renameat.texi: Likewise.
7499         Suggested by Eric Blake.
7500
7501 2010-11-13  Bruno Haible  <bruno@clisp.org>
7502
7503         rename test: Add comments.
7504         * tests/test-rename.h (test_rename): Add structure and comments.
7505
7506 2010-11-13  Eric Blake  <eblake@redhat.com>
7507
7508         maintainer-makefile: cover a few more files
7509         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
7510         scripts generated within C files, for libvirt.
7511
7512 2010-11-13  Bruno Haible  <bruno@clisp.org>
7513
7514         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
7515         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
7516         character, return the number of bytes that belong together, not always
7517         1.
7518         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7519         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7520         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7521         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
7522         number of bytes of an invalid character.
7523         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
7524         (main): Invoke it.
7525         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
7526         results.
7527         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
7528         malformed byte sequences.
7529         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
7530         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
7531         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
7532         Reported by Ben Pfaff and Paolo Bonzini.
7533
7534 2010-11-13  Bruno Haible  <bruno@clisp.org>
7535
7536         openat: Work around glibc bug with fchownat() and empty file names.
7537         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
7538         (gl_FUNC_FCHOWNAT): Invoke it.
7539         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
7540         * doc/posix-functions/fchownat.texi: Document the glibc bug.
7541         Reported by Gary V. Vaughan <gary@gnu.org>.
7542
7543 2010-11-13  Bruno Haible  <bruno@clisp.org>
7544
7545         openat: Ensure autoconf macro ordering.
7546         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
7547         gl_USE_SYSTEM_EXTENSIONS.
7548         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
7549
7550 2010-11-13  Bruno Haible  <bruno@clisp.org>
7551
7552         Update comments.
7553         * lib/unistr/u8-check.c: Update file name in comments.
7554         * lib/unistr/u8-mblen.c: Likewise.
7555         * lib/unistr/u8-prev.c: Likewise.
7556         * lib/unistr/u8-strmblen.c: Likewise.
7557         * lib/unistr/u8-strmbtouc.c: Likewise.
7558
7559 2010-11-13  Jim Meyering  <meyering@redhat.com>
7560
7561         tests: avoid test failure on Solaris 10 due to lack of PATH export
7562         * tests/test-update-copyright.sh: Don't forget to export PATH.
7563
7564         init.sh: ensure that IFS is defined, just in case...
7565         * tests/init.sh (setup_): Ensure that IFS is defined,
7566         so that saving and restoring it works as expected.  This
7567         appears to be useful at least for an old version of dash
7568         from a long time ago (RH 6).  See here for details:
7569         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7570
7571         maint.mk: tighten "test a == b" check
7572         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7573         test to files that contain something like #!/bin/sh.
7574         Without this, coreutils would get two false positives in
7575         the comments of C source files.
7576
7577 2010-11-12  Eric Blake  <eblake@redhat.com>
7578
7579         bootstrap: fix typo in previous attempt
7580         * build-aux/bootstrap (buildreq): Correct the grouping.
7581         Reported by Paul Eggert.
7582
7583         maintainer-makefile: prohibit test x == x
7584         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7585         Based on a report by Matthias Bolte.
7586
7587         bootstrap: allow FreeBSD gzip
7588         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7589         which has no '.' and goes to stderr.
7590         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7591         Reported by Matthias Bolte.
7592
7593         maintainer-makefile: check for i18n setup
7594         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7595         will likely work.
7596
7597 2010-11-12  Bruno Haible  <bruno@clisp.org>
7598
7599         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7600         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7601         * lib/nanosleep.c (nanosleep): Likewise.
7602
7603 2010-11-11  Bruno Haible  <bruno@clisp.org>
7604
7605         fcntl-h: Fix for use of C++ on glibc systems.
7606         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7607         also on glibc systems in C++ mode.
7608         Reported by Gary V. Vaughan <gary@gnu.org>.
7609
7610 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7611
7612         mknod: avoid false failure with dash
7613         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7614
7615 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7616
7617         unlink: Fix "is it should" typo in diagnostic.
7618         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7619         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7620
7621 2010-11-11  Bruno Haible  <bruno@clisp.org>
7622
7623         Tests for module 'strerror_r-posix'.
7624         * modules/strerror_r-posix-tests: New file.
7625         * tests/test-strerror_r.c: New file.
7626         * tests/test-string-c++.cc: Check the signature of strerror_r.
7627
7628         New module 'strerror_r-posix'.
7629         * lib/string.in.h (strerror_r): New declaration.
7630         * lib/strerror_r.c: New file.
7631         * m4/strerror_r.m4: New file.
7632         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7633         of strerror_r.
7634         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7635         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7636         * modules/strerror_r-posix: New file.
7637         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7638         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7639         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7640         portability problems.
7641
7642 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7643
7644         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7645         line is also considered for output. Quoted function name in shell
7646         command, so temporary files for functions like MyClass::operator()
7647         are removed correctly without errors.
7648
7649 2010-11-09  Bruno Haible  <bruno@clisp.org>
7650
7651         * doc/posix-functions/strerror.texi: List more failing platforms.
7652
7653         * doc/posix-functions/strerror.texi: Add a comment.
7654
7655 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7656
7657         fdopendir: fix bug on MacOS X when low on file descriptors
7658
7659         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7660         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7661         All callers changed.
7662         (fdopendir): Invoke save_cwd at the top level, not after using
7663         multiple dup() calls to use up file descriptors.  Then retry
7664         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7665         less than the maximum number of open file descriptors, because
7666         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7667         on Mac OS X 10.6.4 for tar 1.24
7668         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7669         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7670         and for tar 1.25
7671         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7672
7673 2010-11-07  Bruno Haible  <bruno@clisp.org>
7674
7675         vasnprintf: Support I flag on glibc systems.
7676         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7677         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7678         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7679         snprintf function.
7680         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7681         glibc systems.
7682         * tests/test-vasnprintf-posix3.c: New file.
7683         * modules/vasnprintf-posix-tests (Files): Add it.
7684         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7685
7686 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7687
7688         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7689         * MODULES.html.sh: For compiler warnings, use name
7690         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7691
7692 2010-11-05  Eric Blake  <eblake@redhat.com>
7693
7694         ceil, floor: avoid spurious failure with icc
7695         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7696         [denormals-as-zero] when optimizing without -mieee-fp option.
7697         * tests/test-floorf2.c (floorf_reference): Likewise.
7698         * tests/test-ceilf1.c (dummy): New function.
7699         (main): Use it to outsmart icc's optimization.
7700         * tests/test-floorf1.c (dummy, main): Likewise.
7701
7702         tests: require working signbit
7703         * modules/ceilf-tests (Depends-on): Add signbit.
7704         * modules/ceill-tests (Depends-on): Likewise.
7705         * modules/floorf-tests (Depends-on): Likewise.
7706         * modules/floorl-tests (Depends-on): Likewise.
7707         * modules/round-tests (Depends-on): Likewise.
7708         * modules/roundf-tests (Depends-on): Likewise.
7709         * modules/roundl-tests (Depends-on): Likewise.
7710         * modules/trunc-tests (Depends-on): Likewise.
7711         * modules/truncf-tests (Depends-on): Likewise.
7712         * modules/truncl-tests (Depends-on): Likewise.
7713
7714         strtod: work around icc bug
7715         * lib/strtod.c (minus_zero): Define to working value.
7716         (strtod): Use it to avoid icc bug.
7717
7718         copysign: enhance tests
7719         * modules/copysign-tests (Files): Add minus-zero.h.
7720         * tests/test-copysign.c (main): Also test zeros.
7721
7722 2010-11-04  Eric Blake  <eblake@redhat.com>
7723
7724         ceil, floor, round, trunc: enhance tests of -0
7725         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7726         * tests/test-ceill.c (main): Likewise.
7727         * tests/test-floorf1.c (main): Likewise.
7728         * tests/test-floorl.c (main): Likewise.
7729         * tests/test-round1.c (main): Likewise.
7730         * tests/test-roundf1.c (main): Likewise.
7731         * tests/test-roundl.c (main): Likewise.
7732         * tests/test-trunc1.c (main): Likewise.
7733         * tests/test-truncf1.c (main): Likewise.
7734         * tests/test-truncl.c (main): Likewise.
7735
7736 2010-11-04  Eric Blake  <eblake@redhat.com>
7737
7738         frexp, tests: work around ICC bug with -zero
7739         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7740         works with more compilers.
7741         * tests/minus-zero.h: New file.
7742         * modules/ceilf-tests (Files): Include it.
7743         * modules/ceill-tests (Files): Likewise.
7744         * modules/floorf-tests (Files): Likewise.
7745         * modules/floorl-tests (Files): Likewise.
7746         * modules/frexp-nolibm-tests (Files): Likewise.
7747         * modules/frexp-tests (Files): Likewise.
7748         * modules/frexpl-nolibm-tests (Files): Likewise.
7749         * modules/frexpl-tests (Files): Likewise.
7750         * modules/isnan-tests (Files): Likewise.
7751         * modules/isnand-nolibm-tests (Files): Likewise.
7752         * modules/isnand-tests (Files): Likewise.
7753         * modules/isnanf-nolibm-tests (Files): Likewise.
7754         * modules/isnanf-tests (Files): Likewise.
7755         * modules/isnanl-nolibm-tests (Files): Likewise.
7756         * modules/isnanl-tests (Files): Likewise.
7757         * modules/round-tests (Files): Likewise.
7758         * modules/roundf-tests (Files): Likewise.
7759         * modules/roundl-tests (Files): Likewise.
7760         * modules/ldexpl-tests (Files): Likewise.
7761         * modules/signbit-tests (Files): Likewise.
7762         * modules/snprintf-posix-tests (Files): Likewise.
7763         * modules/sprintf-posix-tests (Files): Likewise.
7764         * modules/strtod-tests (Files): Likewise.
7765         * modules/trunc-tests (Files): Likewise.
7766         * modules/truncf-tests (Files): Likewise.
7767         * modules/truncl-tests (Files): Likewise.
7768         * modules/vsnprintf-posix-tests (Files): Likewise.
7769         * modules/vsprintf-posix-tests (Files): Likewise.
7770         * modules/vasnprintf-posix-tests (Files): Likewise.
7771         * modules/vasprintf-posix-tests (Files): Likewise.
7772         * tests/test-ceilf1.c (main): Use it.
7773         * tests/test-ceill.c (main): Likewise.
7774         * tests/test-floorf1.c (main): Likewise.
7775         * tests/test-floorl.c (main): Likewise.
7776         * tests/test-frexp.c (main): Likewise.
7777         * tests/test-frexpl.c (main): Likewise.
7778         * tests/test-isnan.c (main): Likewise.
7779         * tests/test-isnand.h (main): Likewise.
7780         * tests/test-isnanf.h (main): Likewise.
7781         * tests/test-isnanl.h (main): Likewise.
7782         * tests/test-ldexpl.c (main): Likewise.
7783         * tests/test-round.c (main): Likewise.
7784         * tests/test-roundf.c (main): Likewise.
7785         * tests/test-roundl.c (main): Likewise.
7786         * tests/test-signbit.c (test_signbitf, test_signbitd)
7787         (test_signbitl): Likewise.
7788         * tests/test-snprintf-posix.h (test_function): Likewise.
7789         * tests/test-sprintf-posix.h (test_function): Likewise.
7790         * tests/test-strtod.c (main): Likewise.
7791         * tests/test-trunc1.c (main): Likewise.
7792         * tests/test-truncf1.c (main): Likewise.
7793         * tests/test-truncl.c (main): Likewise.
7794
7795         isnanl: work around icc bug
7796         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7797
7798 2010-11-03  Eric Blake  <eblake@redhat.com>
7799
7800         tests: fix compiler warnings
7801         * tests/test-getopt.h (test_getopt): Fix condition.
7802         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7803         * tests/test-pipe2.c (main): Likewise.
7804         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7805
7806         utimens: fix broken m4 test
7807         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7808
7809 2010-10-28  Bruno Haible  <bruno@clisp.org>
7810
7811         posix_spawn*, getdtablesize: Relax license.
7812         * modules/posix_spawn (License): Change to LGPLv2+.
7813         * modules/posix_spawnp (License): Likewise.
7814         * modules/posix_spawn-internal (License): Likewise.
7815         * modules/posix_spawnattr_init (License): Likewise.
7816         * modules/posix_spawnattr_getflags (License): Likewise.
7817         * modules/posix_spawnattr_setflags (License): Likewise.
7818         * modules/posix_spawnattr_getpgroup (License): Likewise.
7819         * modules/posix_spawnattr_setpgroup (License): Likewise.
7820         * modules/posix_spawnattr_getschedparam (License): Likewise.
7821         * modules/posix_spawnattr_setschedparam (License): Likewise.
7822         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7823         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7824         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7825         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7826         * modules/posix_spawnattr_getsigmask (License): Likewise.
7827         * modules/posix_spawnattr_setsigmask (License): Likewise.
7828         * modules/posix_spawnattr_destroy (License): Likewise.
7829         * modules/posix_spawn_file_actions_init (License): Likewise.
7830         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7831         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7832         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7833         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7834         * modules/getdtablesize (License): Likewise.
7835         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7836
7837 2010-10-26  Bruno Haible  <bruno@clisp.org>
7838
7839         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7840         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7841         Cygwin and mingw.
7842         Suggested by Eric Blake.
7843
7844 2010-10-26  Bruno Haible  <bruno@clisp.org>
7845
7846         stdio: Work around compilation error due to renameat() on Solaris 10.
7847         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7848         * lib/renameat.c: Don't include <unistd.h> here.
7849         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7850         Reported by Paul Eggert and Eric Blake.
7851
7852 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7853
7854         renameat: port to Solaris 10, which declares renameat in unistd.h
7855
7856         * lib/renameat.c: Include unistd.h before stdio.h, because
7857         Solaris 10 declares renameat in unistd.h.  Problem encountered
7858         when building GNU tar 1.24 on Solaris 10.
7859
7860 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7861
7862         fdopendir: fix C89 compilation
7863         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7864         compilers.
7865
7866 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7867
7868         inttostr: simplify by removing unnecessary redundancy
7869         * lib/anytostr.c: Don't include verify.h.
7870         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7871         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7872         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7873         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7874         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7875         Likewise.
7876         * modules/inttostr (Depends-on): Remove 'verify'.
7877
7878 2010-10-23  Bruno Haible  <bruno@clisp.org>
7879
7880         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7881         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7882         Reported by Eric Blake.
7883
7884 2010-10-23  Bruno Haible  <bruno@clisp.org>
7885
7886         Tests: Fix LOCALE_JA on MirBSD 10.
7887         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7888         to an UTF-8 locale.
7889         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7890         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7891         Reported by Eric Blake.
7892
7893 2010-10-21  Bruno Haible  <bruno@clisp.org>
7894
7895         nl_langinfo test: Avoid test failure on NetBSD 5.
7896         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7897         Reported by Eric Blake.
7898
7899 2010-10-21  Eric Blake  <eblake@redhat.com>
7900
7901         c-stack: work around libsigsegv 2.8 bug
7902         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7903         overflow on at least PowerPC64.
7904
7905 2010-10-17  Bruno Haible  <bruno@clisp.org>
7906
7907         userspec: Drop redundant file.
7908         * modules/userspec (Files): Remove lib/inttostr.h.
7909
7910 2010-10-17  Bruno Haible  <bruno@clisp.org>
7911
7912         nl_langinfo tests: Silence some warnings.
7913         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7914         Reported by Jim Meyering.
7915
7916 2010-10-17  Bruno Haible  <bruno@clisp.org>
7917
7918         Make use of GCC's attribute __alloc_size__.
7919         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7920         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7921         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7922         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7923         __alloc_size__.
7924         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7925         Suggested by Jim Meyering.
7926
7927 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7928
7929         bootstrap: anchor .gitignore entries.
7930         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7931         with...
7932         (insert_vc_ignore): ... this new function, which prepends `/' to
7933         all .gitignore entries before passing them to
7934         insert_sorted_if_absent.
7935
7936 2010-10-16  Bruno Haible  <bruno@clisp.org>
7937
7938         nextafter: Fix configure check.
7939         * modules/nextafter (configure.ac): Correct expected prototype.
7940
7941 2010-10-16  Bruno Haible  <bruno@clisp.org>
7942
7943         termios: Update documentation.
7944         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7945
7946 2010-10-16  Bruno Haible  <bruno@clisp.org>
7947
7948         tests: Make them compile with TinyCC.
7949         * tests/test-strstr.c (main): Remove parentheses around array
7950         initializer.
7951
7952 2010-10-15  Eric Blake  <eblake@redhat.com>
7953
7954         ignore-value: make header idempotent
7955         * lib/ignore-value.h: Add double-inclusion guards.
7956         Reported by Stefan Berger.
7957
7958 2010-10-15  Jim Meyering  <meyering@redhat.com>
7959
7960         GNUmakefile: handle "stable" target, not "major"
7961         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7962         lists in maint.mk and announce-gen.  Without this, "make stable"
7963         would fail to ensure that $(VERSION) is up to date.
7964
7965 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7966
7967         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7968         & co.
7969
7970 2010-10-14  Bruno Haible  <bruno@clisp.org>
7971
7972         vasnprintf: Don't set errno to 0.
7973         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7974         block that sets it to 0.
7975         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7976
7977 2010-10-14  Bruno Haible  <bruno@clisp.org>
7978
7979         socketlib: Fix.
7980         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7981         gl_PREREQ_SYS_H_WINSOCK2.
7982         Reported by Ian Beckwith <ianb@erislabs.net>.
7983
7984 2010-10-13  Jim Meyering  <meyering@redhat.com>
7985
7986         test-select-stdin.c: avoid warn_unused_result warnings
7987         * tests/test-select-stdin.c: Include "macros.h".
7988         ASSERT that read and fflush succeed.
7989
7990 2010-10-13  Jim Meyering  <meyering@redhat.com>
7991
7992         git-version-gen: do require git-VC'd files in cwd
7993         * build-aux/git-version-gen: Reject a git version string
7994         if there are no commits associated with the current directory.
7995         This avoids an unlikely false-positive (unrelated dir whose parent
7996         repository also contains a tag matching v*), as pointed out
7997         by Giuseppe Scrivano in
7998         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7999
8000 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8001
8002         argv-iter: omit nonconforming declaration
8003         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8004         enum arg_iter_err declaration, which doesn't conform to C99.
8005         Solaris 10 cc warns about this.
8006
8007 2010-10-13  Eric Blake  <eblake@redhat.com>
8008
8009         termios: fix compilation on mingw
8010         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8011         (gl_TERMIOS_H): Adjust it on mingw.
8012         * modules/termios (Makefile.am): Substitute new key.
8013         * lib/termios.in.h (includes): Make include_next conditional.
8014         * doc/posix-headers/termios.texi (termios.h): Update
8015         documentation.
8016         Reported by Daniel P. Berrange.
8017
8018 2010-10-13  Jim Meyering  <meyering@redhat.com>
8019
8020         git-version-gen: don't require that .git/ be in the current dir
8021         * build-aux/git-version-gen: Adjust this script so that it works
8022         when run from any working directory beneath the top-level .git/-
8023         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8024         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8025
8026         test-select: avoid warn_unused_result warnings
8027         * tests/test-select.c: Include "macros.h".
8028         ASSERT that each call to read, write, and pipe succeeds.
8029         While not technically required, also check each "close".
8030         * modules/select-tests (Files): Add tests/macros.h.
8031
8032         test-symlinkat: remove declaration of unused local
8033         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8034
8035         test-inttostr: avoid shadowing warnings
8036         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8037         and use malloc rather than the stack for the same reason as
8038         mentioned in the comment justifying the other allocation.
8039
8040 2010-10-11  Bruno Haible  <bruno@clisp.org>
8041
8042         stdlib: Allow multiple gnulib generated replacements to coexist.
8043         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8044         Reported by Sam Steingold <sds@gnu.org>.
8045
8046 2010-10-11  Jim Meyering  <meyering@redhat.com>
8047
8048         fix a documentation typo
8049         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8050
8051 2010-10-11  Eric Blake  <eblake@redhat.com>
8052
8053         futimens: work around Solaris 11 bug
8054         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8055         * tests/test-futimens.h (test_futimens): Enhance, rather than
8056         weaken test.
8057         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8058
8059 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8060
8061         Indentation.
8062         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8063         higher-level operators more to the left.
8064
8065 2010-10-11  Jim Meyering  <meyering@redhat.com>
8066
8067         test-futimens: avoid unwarranted test failure on Solaris 5.11
8068         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8069         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8070         because it tries to dereference the NULL name argument.
8071
8072 2010-10-11  Bruno Haible  <bruno@clisp.org>
8073
8074         Indentation.
8075         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8076         indentation.
8077
8078 2010-10-11  Jim Meyering  <meyering@redhat.com>
8079
8080         spawn.in.h: make indentation consistent with parentheses
8081         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8082         Make indentation consistent with parentheses.
8083
8084 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8085
8086         Fix mismatched parens in previous commit
8087         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8088         parens.
8089
8090 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8091
8092         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8093
8094         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8095         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8096         * lib/malloca.c: Include "verify.h".
8097         (verify1): Remove, replacing with a verify call.
8098         * lib/relocwrapper.c (verify1): Likewise.
8099         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8100         Likewise.
8101         * modules/malloca (Depends-on): Add 'verify'.
8102         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8103         * modules/vasnprintf (Depends-on): Add 'verify'.
8104         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8105         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8106         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8107         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8108         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8109         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8110         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8111
8112         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8113
8114         Formerly the style was sometimes 2*X - 1, because the C standard
8115         was wrongly thought to disallow ?: in integral constant expressions.
8116         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8117         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8118         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8119         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8120         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8121         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8122         verify that time_t cannot be floating.
8123
8124 2010-10-08  Eric Blake  <eblake@redhat.com>
8125
8126         time: enforce recent POSIX ruling that time_t is integral
8127         * lib/time.in.h (__time_t_must_be_integral): Detect any
8128         problematic systems, allowing the rest of gnulib to assume POSIX.
8129
8130 2010-10-08  Jim Meyering  <meyering@redhat.com>
8131
8132         fdopendir: fix a bug on systems lacking openat and /proc support
8133         OpenBSD 4.7 is one such system.  The most noticeable effect was
8134         failure of any application making nontrivial use of fts: rm, du,
8135         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8136           ./rm: traversal failed: `a': Bad file descriptor
8137         Debugging that, you see that even though FD 6 was closed just
8138         prior to the opendir call in fd_clone_opendir, its resulting
8139         dir->dd_fd was 8, rather than the expected value of 6:
8140
8141         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8142         93                close (fd);
8143         (gdb) n
8144         94                dir = fd_clone_opendir (dupfd);
8145         (gdb) n
8146         95                saved_errno = errno;
8147         (gdb) p dir->dd_fd
8148         $11 = 8
8149
8150         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8151         The problem is that on OpenBSD, fd_clone_opendir has to resort
8152         to using the old-style save/restore CWD mechanism, due to its
8153         lack of openat/proc support, and *that* would steal the FD (6)
8154         that opendir was supposed to use.
8155
8156         The fix is to squirrel away the desired FD so that save_cwd uses a
8157         different one, and then free the dest FD right before calling opendir.
8158         That guarantees opendir will use the required file descriptor.
8159
8160         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8161
8162 2010-10-08  Bruno Haible  <bruno@clisp.org>
8163
8164         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8165         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8166
8167 2010-10-08  Bruno Haible  <bruno@clisp.org>
8168
8169         nanosleep: Make replacement POSIX compliant.
8170         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8171         is out of range.
8172         Reported by Jim Meyering.
8173
8174 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8175
8176         bootstrap: add hook for altering gnulib.mk, for Bison
8177         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8178         the Bison bootstrapping process can rewrite file names and variables
8179         in this file before later parts of 'bootstrap' use the file.
8180         Bison wants to include lib/gnulib.mk from the top-level makefile,
8181         so it needs the file names in this file to be relative to the top
8182         level, not relative to lib; plus it needs variable names to be
8183         rewritten.
8184         (slurp): Use the new function.
8185
8186         bootstrap: reformat for readability
8187         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8188
8189 2010-10-08  Eric Blake  <eblake@redhat.com>
8190
8191         docs: update cygwin progress
8192         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8193         1.7.7.
8194         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8195         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8196         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8197         * doc/posix-functions/carg.texi (carg): Likewise.
8198         * doc/posix-functions/cargf.texi (cargf): Likewise.
8199         * doc/posix-functions/casin.texi (casin): Likewise.
8200         * doc/posix-functions/casinf.texi (casinf): Likewise.
8201         * doc/posix-functions/casinh.texi (casinh): Likewise.
8202         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8203         * doc/posix-functions/catan.texi (catan): Likewise.
8204         * doc/posix-functions/catanf.texi (catanf): Likewise.
8205         * doc/posix-functions/catanh.texi (catanh): Likewise.
8206         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8207         * doc/posix-functions/ccos.texi (ccos): Likewise.
8208         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8209         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8210         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8211         * doc/posix-functions/cexp.texi (cexp): Likewise.
8212         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8213         * doc/posix-functions/cimag.texi (cimag): Likewise.
8214         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8215         * doc/posix-functions/clog.texi (clog): Likewise.
8216         * doc/posix-functions/clogf.texi (clogf): Likewise.
8217         * doc/posix-functions/conj.texi (conj): Likewise.
8218         * doc/posix-functions/conjf.texi (conjf): Likewise.
8219         * doc/posix-functions/cpow.texi (cpow): Likewise.
8220         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
8221         * doc/posix-functions/cproj.texi (cproj): Likewise.
8222         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
8223         * doc/posix-functions/creal.texi (creal): Likewise.
8224         * doc/posix-functions/crealf.texi (crealf): Likewise.
8225         * doc/posix-functions/csin.texi (csin): Likewise.
8226         * doc/posix-functions/csinf.texi (csinf): Likewise.
8227         * doc/posix-functions/csinh.texi (csinh): Likewise.
8228         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
8229         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
8230         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
8231         * doc/posix-functions/ctan.texi (ctan): Likewise.
8232         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
8233         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
8234         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
8235         * doc/posix-headers/complex.texi (complex.h): Likewise.
8236
8237 2010-10-07  Jim Meyering  <meyering@redhat.com>
8238
8239         parse-datetime: avoid compilation failure on OpenBSD 4.7
8240         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
8241         This works around a compilation failure on OpenBSD 4.7:
8242         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
8243
8244 2010-10-07  Eric Blake  <eblake@redhat.com>
8245
8246         docs: update cygwin progress
8247         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
8248         1.7.6.
8249         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8250         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
8251         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
8252         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
8253         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
8254         Likewise.
8255         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
8256         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
8257         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
8258         Likewise.
8259         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
8260         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
8261         Likewise.
8262         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
8263         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
8264         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
8265         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
8266         Likewise.
8267         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
8268         Likewise.
8269         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
8270
8271         docs: update parse-datetime history
8272         * doc/parse-datetime.texi (Authors of parse_datetime): Better
8273         documentation of this function's history and alternatives.
8274
8275         cygwin: use more robust version check
8276         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
8277         exclude an eventual cygwin 1.9.1.
8278         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8280         (gl_FUNC_STRCASESTR): Likewise.
8281         Reported by Bruno Haible.
8282
8283 2010-10-06  Bruno Haible  <bruno@clisp.org>
8284
8285         string, sys_select: Avoid #including large headers unless necessary.
8286         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
8287         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
8288         OSF/1, BeOS, Haiku.
8289         Reported by Jim Meyering.
8290
8291 2010-10-05  Eric Blake  <eblake@redhat.com>
8292
8293         memmem, strstr, strcasestr: fix bug with long periodic needle
8294         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
8295         periodic needle having false positive.
8296         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
8297         and cygwin 1.7.7.
8298         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
8299         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8300         (gl_FUNC_STRCASESTR): Likewise.
8301         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8302         * tests/test-memmem.c (main): Expose the bug.
8303         * tests/test-strcasestr.c (main): Likewise.
8304         * tests/test-strstr.c (main): Likewise.
8305         * tests/test-c-strcasestr.c (main): Likewise.
8306         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
8307         * doc/posix-functions/strstr.texi (strstr): Likewise.
8308         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8309         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
8310
8311 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8312
8313         parse-datetime: do some more renaming
8314         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
8315         parse_datetime, not get_date.  Mention the renaming.
8316         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
8317         in comments.
8318         * m4/bison.m4: Likewise.
8319
8320 2010-10-05  Eric Blake  <eblake@redhat.com>
8321
8322         parse-datetime: better name than get_date
8323         * NEWS: Reword the deprecation notice.
8324         * modules/get_date: Rename to modules/parse-datetime.
8325         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
8326         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
8327         * lib/get_date.y: Rename to lib/parse-datetime.y.
8328         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
8329         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
8330         * doc/getdate.texi: Provide fallback wrapper.
8331         * lib/getdate.h: Move guts, and wrap...
8332         * lib/parse-datetime.h: ...new file.
8333         * lib/parse-datetime.y (get_date): Rename...
8334         (parse_datetime): ...to this.
8335         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
8336         (gl_PARSE_DATETIME): ...to this.
8337         * doc/posix-functions/getdate.texi (get_date): Provide fallback
8338         documentation.
8339         * modules/getdate (Files): Provide fallback docs and header.
8340         (Notice, Depends-on): Update references.
8341         * tests/test-parse-datetime.c: Likewise.
8342         * DEPENDENCIES: Likewise.
8343         * MODULES.html.sh (Date and time <time.h>): Likewise.
8344         * doc/parse-datetime.texi (Date input formats)
8345         (Authors of parse_datetime): Likewise.
8346         * modules/parse-datetime (Files, configure.ac, Makefile.am)
8347         (Include): Likewise.
8348         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
8349         * gnulib-tool: Likewise.
8350         * m4/bison.m4 (gl_BISON): Likewise.
8351         Suggested by Bruno Haible.
8352
8353 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8354
8355         more ports to Solaris tr, which needs [] around ranges
8356         * gnulib-tool: Solaris tr needs [] around ranges.
8357         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8358         * tests/test-pipe-filter-gi1.c (main): Likewise.
8359         * tests/test-pipe-filter-ii1.c (main): Likewise.
8360
8361 2010-10-05  Eric Blake  <eblake@redhat.com>
8362
8363         bootstrap: fix Solaris regression
8364         * build-aux/bootstrap (check_versions): Solaris tr still needs []
8365         around ranges.
8366         Reported by Pádraig Brady.
8367
8368         bootstrap: work with pkg-config
8369         * build-aux/bootstrap (check_versions): Also transliterate - in
8370         prerequisite name.
8371         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
8372         prerequisites that were already found, to avoid confusion.
8373         Reported by Justin Clift.
8374
8375         faccessat: remove unused wrappers
8376         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
8377         presence of these wrappers dragged in -lgen on Solaris.
8378         Reported by Clemens Brogi; fix suggested by Paul Eggert.
8379
8380 2010-10-05  Jim Meyering  <meyering@redhat.com>
8381
8382         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
8383         * Makefile (sc_pragma_columns): New syntax-check rule.
8384
8385 2010-10-04  Bruno Haible  <bruno@clisp.org>
8386
8387         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
8388         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
8389         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
8390         Reported by Bruce Korb and Eric Blake.
8391
8392 2010-10-04  Bruno Haible  <bruno@clisp.org>
8393
8394         threadlib: Make option --with-libpth-prefix work.
8395         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
8396         use $LIBPTH, not just -lpth.
8397
8398 2010-10-04  Bruno Haible  <bruno@clisp.org>
8399
8400         Avoid line length limitation from HP NonStop system header files.
8401         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
8402         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
8403         * lib/ctype.in.h: Likewise.
8404         * lib/dirent.in.h: Likewise.
8405         * lib/errno.in.h: Likewise.
8406         * lib/fcntl.in.h: Likewise.
8407         * lib/float.in.h: Likewise.
8408         * lib/getopt.in.h: Likewise.
8409         * lib/iconv.in.h: Likewise.
8410         * lib/inttypes.in.h: Likewise.
8411         * lib/langinfo.in.h: Likewise.
8412         * lib/locale.in.h: Likewise.
8413         * lib/math.in.h: Likewise.
8414         * lib/netdb.in.h: Likewise.
8415         * lib/netinet_in.in.h: Likewise.
8416         * lib/poll.in.h: Likewise.
8417         * lib/pthread.in.h: Likewise.
8418         * lib/pty.in.h: Likewise.
8419         * lib/sched.in.h: Likewise.
8420         * lib/se-selinux.in.h: Likewise.
8421         * lib/search.in.h: Likewise.
8422         * lib/signal.in.h: Likewise.
8423         * lib/spawn.in.h: Likewise.
8424         * lib/stdarg.in.h: Likewise.
8425         * lib/stddef.in.h: Likewise.
8426         * lib/stdint.in.h: Likewise.
8427         * lib/stdio.in.h: Likewise.
8428         * lib/stdlib.in.h: Likewise.
8429         * lib/string.in.h: Likewise.
8430         * lib/strings.in.h: Likewise.
8431         * lib/sys_file.in.h: Likewise.
8432         * lib/sys_ioctl.in.h: Likewise.
8433         * lib/sys_select.in.h: Likewise.
8434         * lib/sys_socket.in.h: Likewise.
8435         * lib/sys_stat.in.h: Likewise.
8436         * lib/sys_time.in.h: Likewise.
8437         * lib/sys_times.in.h: Likewise.
8438         * lib/sys_utsname.in.h: Likewise.
8439         * lib/sys_wait.in.h: Likewise.
8440         * lib/sysexits.in.h: Likewise.
8441         * lib/termios.in.h: Likewise.
8442         * lib/time.in.h: Likewise.
8443         * lib/unistd.in.h: Likewise.
8444         * lib/wchar.in.h: Likewise.
8445         * lib/wctype.in.h: Likewise.
8446         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
8447         * modules/ctype (Makefile.am): Likewise.
8448         * modules/dirent (Makefile.am): Likewise.
8449         * modules/errno (Makefile.am): Likewise.
8450         * modules/fcntl-h (Makefile.am): Likewise.
8451         * modules/float (Makefile.am): Likewise.
8452         * modules/getopt-posix (Makefile.am): Likewise.
8453         * modules/iconv-h (Makefile.am): Likewise.
8454         * modules/inttypes (Makefile.am): Likewise.
8455         * modules/langinfo (Makefile.am): Likewise.
8456         * modules/locale (Makefile.am): Likewise.
8457         * modules/math (Makefile.am): Likewise.
8458         * modules/netdb (Makefile.am): Likewise.
8459         * modules/netinet_in (Makefile.am): Likewise.
8460         * modules/poll-h (Makefile.am): Likewise.
8461         * modules/pthread (Makefile.am): Likewise.
8462         * modules/pty (Makefile.am): Likewise.
8463         * modules/sched (Makefile.am): Likewise.
8464         * modules/search (Makefile.am): Likewise.
8465         * modules/selinux-h (Makefile.am): Likewise.
8466         * modules/signal (Makefile.am): Likewise.
8467         * modules/spawn (Makefile.am): Likewise.
8468         * modules/stdarg (Makefile.am): Likewise.
8469         * modules/stddef (Makefile.am): Likewise.
8470         * modules/stdint (Makefile.am): Likewise.
8471         * modules/stdio (Makefile.am): Likewise.
8472         * modules/stdlib (Makefile.am): Likewise.
8473         * modules/string (Makefile.am): Likewise.
8474         * modules/strings (Makefile.am): Likewise.
8475         * modules/sys_file (Makefile.am): Likewise.
8476         * modules/sys_ioctl (Makefile.am): Likewise.
8477         * modules/sys_select (Makefile.am): Likewise.
8478         * modules/sys_socket (Makefile.am): Likewise.
8479         * modules/sys_stat (Makefile.am): Likewise.
8480         * modules/sys_time (Makefile.am): Likewise.
8481         * modules/sys_times (Makefile.am): Likewise.
8482         * modules/sys_utsname (Makefile.am): Likewise.
8483         * modules/sys_wait (Makefile.am): Likewise.
8484         * modules/sysexits (Makefile.am): Likewise.
8485         * modules/termios (Makefile.am): Likewise.
8486         * modules/time (Makefile.am): Likewise.
8487         * modules/unistd (Makefile.am): Likewise.
8488         * modules/wchar (Makefile.am): Likewise.
8489         * modules/wctype (Makefile.am): Likewise.
8490
8491 2010-10-04  Bruno Haible  <bruno@clisp.org>
8492
8493         read-file tests: Avoid a test failure on NonStop Kernel.
8494         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
8495         a regular file.
8496         Reported by Joachim Schmitz <schmitz@hp.com>.
8497
8498 2010-10-03  Bruno Haible  <bruno@clisp.org>
8499
8500         gnulib-tool: Fixes for --create-testdir with --libtool.
8501         * gnulib-tool (func_get_automake_snippet): Don't augment
8502         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
8503         an executable.
8504         (func_create_testdir): Handle module 'alloca' like func_import.
8505         Reported by Bruce Korb <bruce.korb@gmail.com>.
8506
8507 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8508
8509         Avoid some lines longer than 80 characters.
8510         * lib/stdint.in.h: Break long comment lines.
8511         * lib/math.in.h: Likewise.
8512         (_GL_NUM_UINT_WORDS): New macro, for readability.
8513         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
8514         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
8515         * lib/stdlib.in.h: Likewise.
8516         * lib/spawn.in.h: Likewise.
8517         * lib/sys_socket.in.h: Update an URL.
8518         * lib/sys_stat.in.h: Break long line.
8519
8520 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
8521
8522         Improve pmccabe2html.
8523         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
8524         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
8525         when the sources change. Remove the line in the HTML about "Used
8526         ranges" (which implied that there might be other unused ranges),
8527         rename "Resume" to "Summary" (easier to understand for more users).
8528         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
8529         styles, and some unnecessary blank lines.
8530
8531 2010-10-03  Bruno Haible  <bruno@clisp.org>
8532             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8533
8534         acl: Add support for ACLs on NonStop Kernel.
8535         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
8536         Check whether the function aclsort() exists.
8537         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8538         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
8539         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8540         (acl_nontrivial [HAVE_ACLSORT]: New function.
8541         (file_has_acl): Implement for NonStop Kernel.
8542         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8543         (qset_acl): Implement for NonStop Kernel.
8544         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
8545         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8546         (main): Implement for NonStop Kernel.
8547         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
8548         Kernel. Handle this flavor.
8549         * tests/test-set-mode-acl.sh: Likewise.
8550         * tests/test-copy-acl.sh: Likewise.
8551         * tests/test-copy-file.sh: Likewise.
8552
8553 2010-10-03  Bruno Haible  <bruno@clisp.org>
8554
8555         Info about ACLs on NonStop Kernel.
8556         * doc/acl-resources.txt: Add info about NonStop Kernel.
8557         References by Joachim Schmitz <schmitz@hp.com>.
8558
8559 2010-10-02  Bruno Haible  <bruno@clisp.org>
8560
8561         Define missing EDQUOT on NonStop Kernel.
8562         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8563         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8564         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8565         missing.
8566         * doc/posix-headers/errno.texi: Mention the NSK bug.
8567         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8568         Reported by Joachim Schmitz <schmitz@hp.com>.
8569
8570 2010-10-02  Bruno Haible  <bruno@clisp.org>
8571
8572         Update doc for POSIX:2008.
8573         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8574         Update URL of POSIX specification.
8575
8576 2010-10-02  Bruno Haible  <bruno@clisp.org>
8577
8578         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8579         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8580         from gnulib, not from Automake.
8581
8582 2010-10-02  Bruno Haible  <bruno@clisp.org>
8583
8584         New module 'system-posix'.
8585         * modules/system-posix: New file.
8586         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8587         module is present.
8588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8589         GNULIB_SYSTEM_POSIX.
8590         * modules/stdlib (Depends-on): Remove sys_wait.
8591         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8592         * doc/posix-functions/system.texi: Mention the new module.
8593         * doc/posix-headers/stdlib.texi: Likewise.
8594         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8595         define test_sys_wait_macros to a no-op.
8596         Reported by Sam Steingold <sds@gnu.org>.
8597
8598 2010-09-30  Bruno Haible  <bruno@clisp.org>
8599
8600         More renaming from 'getdate' to 'get_date'.
8601         * doc/get_date.texi: Renamed from doc/getdate.texi.
8602         * modules/get_date (Files): Update.
8603         * MODULES.html.sh (Date and time <time.h>): Update.
8604         * DEPENDENCIES: Update.
8605         * gnulib-tool: Update comment.
8606         * m4/bison.m4 (gl_BISON): Likewise.
8607         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8608
8609 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8610
8611         bootstrap: support ACLOCAL_FLAGS during aclocal
8612         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8613         can add additional -I dir for third-party .m4 files.
8614
8615 2010-09-30  Eric Blake  <eblake@redhat.com>
8616
8617         bootstrap: use glibtoolize on MacOS
8618         * build-aux/bootstrap (check_versions): Convert libtool into
8619         libtoolize.
8620         (tool search): Move libtool check earlier, and look for
8621         glibtoolize for MacOS.
8622         (gnulib_tool_options): Auto-add --libtool when appropriate.
8623         Reported by Justin Clift.
8624
8625         poll: fix typo that broke test on MacOS
8626         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8627         Reported by Justin Clift.
8628
8629         getdate: rename to get_date
8630         Note: getdate.h is not renamed, to minimize client impact.
8631         * modules/getdate: Mark obsolete.  Move old contents...
8632         * modules/get_date: ...to new module name.
8633         * modules/getdate-tests: Move...
8634         * modules/get_date-tests: ...here.
8635         * m4/getdate.m4: Move...
8636         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8637         * lib/getdate.y: Move...
8638         * lib/get_date.y: ...here.
8639         * tests/test-getdate.c: Move...
8640         * tests/test-get_date.c: ...here.
8641         * doc/posix-functions/getdate.texi (getdate): Update name.
8642         * NEWS: Mention the change.
8643
8644 2010-09-29  Bruno Haible  <bruno@clisp.org>
8645
8646         Separate the module 'waitpid' from the module 'sys_wait'.
8647         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8648         present.
8649         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8650         gl_MODULE_INDICATOR_FOR_TESTS.
8651         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8652         * modules/sys_wait (Depends-on): Remove waitpid.
8653         (Makefile.am): Substitute GNULIB_WAITPID.
8654         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8655         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8656         signature only if the 'waitpid' module is present.
8657         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8658         * NEWS: Mention the change.
8659         * modules/grantpt (Depends-on): Add waitpid.
8660         * modules/wait-process (Depends-on): Likewise.
8661
8662 2010-09-29  Bruno Haible  <bruno@clisp.org>
8663
8664         More tests for module 'sys_wait'.
8665         * modules/sys_wait-c++-tests: New file.
8666         * tests/test-sys_wait-c++.cc: New file.
8667         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8668         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8669
8670 2010-09-29  Bruno Haible  <bruno@clisp.org>
8671
8672         New module 'waitpid'.
8673         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8674         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8675         Don't include <process.h>.
8676         (waitpid): Declare only, using modern idiom.
8677         * m4/waitpid.m4: New file.
8678         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8679         * modules/waitpid: New file.
8680         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8681         (Makefile.am): Update.
8682         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8683
8684 2010-09-28  Bruno Haible  <bruno@clisp.org>
8685
8686         poll: Assume ANSI C.
8687         * lib/poll.c (poll): Use an ANSI C declaration.
8688
8689 2010-09-28  Bruno Haible  <bruno@clisp.org>
8690
8691         poll-h: Create poll.h on all platforms.
8692         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8693         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8694         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8695         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8696         (gl_REPLACE_POLL_H): Don't set POLL_H.
8697         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8698         * modules/poll-h (Depends-on): Add include_next.
8699         (Makefile.am): Create poll.h unconditionally. Substitute also
8700         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8701
8702 2010-09-28  Bruno Haible  <bruno@clisp.org>
8703
8704         Tests for module 'poll-h'.
8705         * modules/poll-h-c++-tests: New file.
8706         * tests/test-poll-h-c++.cc: New file.
8707
8708         Tests for module 'poll-h'.
8709         * modules/poll-h-tests: New file.
8710         * tests/test-poll-h.c: New file.
8711
8712 2010-09-28  Bruno Haible  <bruno@clisp.org>
8713
8714         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8715         * modules/poll-h (Depends-on): Add 'extensions'.
8716
8717 2010-09-28  Bruno Haible  <bruno@clisp.org>
8718
8719         New module 'poll-h'.
8720         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8721         (poll): Use modern idiom.
8722         * modules/poll-h: New file.
8723         * modules/poll (Files): Remove lib/poll.in.h.
8724         (Depends-on): Add poll-h.
8725         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8726         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8727         * m4/poll_h.m4: New file.
8728         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8729         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8730         and invoke gl_REPLACE_POLL_H.
8731         * lib/poll.c: Use common idiom.
8732         * tests/test-poll.c: Likewise.
8733         * doc/posix-headers/poll.texi: Mention the poll-h module.
8734         Suggested by Eric Blake.
8735
8736 2010-09-26  Bruno Haible  <bruno@clisp.org>
8737
8738         sys_wait: Implement WSTOPSIG.
8739         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8740         Reported by Simon Josefsson.
8741
8742 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8743
8744         stdlib, sys_wait: Avoid compilation error on mingw.
8745         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8746
8747 2010-09-26  Bruno Haible  <bruno@clisp.org>
8748
8749         stdlib tests: Avoid code duplication.
8750         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8751         * modules/sys_wait-tests (Files): Likewise.
8752         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8753         * tests/test-stdlib.c: Include test-sys_wait.h.
8754         (main): Invoke test_sys_wait_macros.
8755         * tests/test-sys_wait.c: Include test-sys_wait.h.
8756         (main): Invoke test_sys_wait_macros.
8757
8758 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8759
8760         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8761         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8762         sure Windows sockets are working before calling getaddrinfo.
8763         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8764         * doc/gnulib.texi (Windows sockets): Fix typo.
8765
8766 2010-09-25  Bruno Haible  <bruno@clisp.org>
8767
8768         Tests for module 'regex-quote'.
8769         * modules/regex-quote-tests: New file.
8770         * tests/test-regex-quote.c: New file.
8771
8772         New module 'regex-quote'.
8773         * lib/regex-quote.h: New file.
8774         * lib/regex-quote.c: New file.
8775         * modules/regex-quote: New file.
8776         Suggested by Reuben Thomas <rrt@sc3d.org>.
8777
8778 2010-09-24  Bruno Haible  <bruno@clisp.org>
8779
8780         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8781         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8782
8783 2010-09-23  Bruno Haible  <bruno@clisp.org>
8784
8785         setenv: Relax license.
8786         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8787         Blake.
8788         Requested by Eric Blake.
8789
8790 2010-09-22  Bruno Haible  <bruno@clisp.org>
8791
8792         termios: Relax license.
8793         * modules/termios (License): Change to LGPLv2+.
8794         Requested by Eric Blake.
8795
8796 2010-09-22  Bruno Haible  <bruno@clisp.org>
8797
8798         threadlib: Allow the package to change the default to 'no'.
8799         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8800         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8801         Reported by Paul Eggert.
8802
8803 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8804             Bruno Haible  <bruno@clisp.org>
8805
8806         Fix endless loop in mbmemcasecoll.
8807         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8808         byte.
8809         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8810
8811 2010-09-22  Bruno Haible  <bruno@clisp.org>
8812
8813         Tests for module 'memcoll'.
8814         * modules/memcoll-tests: New file.
8815         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8816
8817         memcoll, xmemcoll: Clarify size vs. length.
8818         * modules/memcoll.c (memcoll0): Clarify specification.
8819         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8820         passed to collate_error.
8821
8822 2010-09-22  Bruno Haible  <bruno@clisp.org>
8823
8824         Tests for module 'memcasecmp'.
8825         * modules/memcasecmp-tests: New file.
8826         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8827
8828 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8829
8830         * lib/pthread.in.h: Add split double-inclusion guard, and include
8831         system <pthread.h> if there is one.  Use @@-style as in other
8832         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8833         pthread.h doesn't.
8834         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8835         (pthread_mutexattr_settype, pthread_mutex_trylock):
8836         New static inline functions, if there's no system <pthread.h>.
8837         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8838         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8839         Approximate with mutexes if the system lacks spinlocks, as in
8840         MacOS.
8841         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8842         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8843         @@-style.  Check for spinlocks separately.
8844         (gl_PTHREAD_DEFAULTS): New macro.
8845         * modules/pthread: Redo to use a more typical style for in.h files.
8846
8847 2010-09-21  Eric Blake  <eblake@redhat.com>
8848
8849         net_if: enhance tests
8850         * tests/test-net_if.c (main): Move signature checks earlier.
8851         Print failures to stderr.
8852         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8853         Document the bug that we do not yet fix.
8854
8855 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8856
8857         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8858         about gnulib, not GSS.
8859
8860 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8861
8862         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8863         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8864         for Emacs.
8865         * build-aux/pmccabe2html: Make Makefile.am example code more
8866         cut-and-paste friendly.
8867
8868 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8869
8870         * tests/test-net_if.c: New file.
8871         * modules/net_if-tests: New file.
8872
8873 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8874
8875         pthread: add pthread_spin_destroy
8876         * lib/pthread.in.h (pthread_spin_destroy): New function.
8877
8878 2010-09-19  Bruno Haible  <bruno@clisp.org>
8879
8880         gnulib-tool: Fix --help output.
8881         * gnulib-tool (func_usage): Fix help message.
8882         Reported by Reuben Thomas <rrt@sc3d.org>.
8883
8884 2010-09-18  Jim Meyering  <meyering@redhat.com>
8885
8886         maint.mk: avoid unexpanded \n in two diagnostics
8887         * top/maint.mk (sc_prohibit_always_true_header_tests):
8888         Don't use a literal \n in a halt=... assignment.  It would not be
8889         expanded, and the two \n bytes would appear in the diagnostic output
8890         rather than the desired newline.  Use halt=$$(printf ... instead.
8891         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8892
8893 2010-09-18  Bruno Haible  <bruno@clisp.org>
8894
8895         netinet_in: Doc tweak.
8896         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8897         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8898
8899 2010-09-18  Jim Meyering  <meyering@redhat.com>
8900
8901         init.sh: correct an outdated comment
8902         * tests/init.sh (create_exe_shims_):  s/function/alias/
8903
8904         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8905         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8906         a file named "*.exe" is removed between the glob expansion and the
8907         processing of that oddly named file.
8908
8909 2010-09-17  Eric Blake  <eblake@redhat.com>
8910
8911         mirbsd: add some more support
8912         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8913         in BSD family.
8914         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8915         devices as OpenBSD.
8916         * m4/host-os.m4 (mirbsd): Add MirBSD.
8917
8918         tests: fix unportable assumption on sys/wait.h
8919         * tests/test-sys_wait.c (main): Relax test.
8920         * tests/test-stdlib.c (main): Likewise.
8921
8922         init.sh: accomodate directory with no .exes
8923         * tests/init.sh: Accomodate directory containing only scripts.
8924
8925         tests: avoid compiler warning
8926         * tests/test-stdlib.c (main): Use the variable.
8927
8928         fdutimens, fdutimensat: update signature, again
8929         * lib/utimens.h (gl_futimens): Delete, and move signature...
8930         (fdutimens): ...here.
8931         (fdutimensat): Rearrange signature.
8932         (lutimensat): Rename variable for clarity.
8933         * lib/fdutimensat.c (fdutimensat): Update signature.
8934         * lib/utimens.c (fdutimens): Likewise.
8935         (gl_futimens): Delete.
8936         (utimens, lutimens): Update callers.
8937         * lib/futimens.c (futimens): Likewise.
8938         * tests/test-fdutimensat.c: Likewise.
8939         * tests/test-utimens.c: Likewise.
8940         * tests/test-futimens.h: Update comment.
8941         * NEWS: Mention this.
8942         Suggested by Paul Eggert.
8943
8944 2010-09-17  Bruno Haible  <bruno@clisp.org>
8945
8946         Take over the maintenance of some older macros from Autoconf.
8947         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8948         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8949         GNU Autoconf.
8950         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8951         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8952
8953 2010-09-17  Eric Blake  <eblake@redhat.com>
8954
8955         fdutimensat: drop atflag validation
8956         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8957         with valid fd, to close a race scenario where futimens is
8958         unsupported and FILE was replaced by a symlink.
8959         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8960         accordingly.
8961         Suggested by Paul Eggert.
8962
8963 2010-09-16  Bruno Haible  <bruno@clisp.org>
8964
8965         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8966         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8967
8968 2010-09-16  Bruno Haible  <bruno@clisp.org>
8969
8970         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8971         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8972         login_tty exists.
8973         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8974
8975 2010-09-16  Bruno Haible  <bruno@clisp.org>
8976
8977         login_tty: Make the replacement code work on BSD systems.
8978         * lib/login_tty.c: Include <sys/ioctl.h>.
8979         (login_tty): Use ioctl TIOCSCTTY when available.
8980         * modules/login_tty (Depends-on): Add sys_ioctl.
8981         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8982
8983 2010-09-16  Bruno Haible  <bruno@clisp.org>
8984
8985         login_tty: Stricter unit test.
8986         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8987         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8988         and tcgetsid() after login_tty.
8989         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8990
8991 2010-09-16  Bruno Haible  <bruno@clisp.org>
8992
8993         New module 'tcgetsid'.
8994         * lib/tcgetsid.c: New file.
8995         * m4/tcgetsid.m4: New file.
8996         * modules/tcgetsid: New file.
8997         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8998         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8999         GNULIB_TCGETSID, HAVE_TCGETSID.
9000         * lib/termios.in.h: Include <sys/types.h>.
9001         (tcgetsid): New declaration.
9002         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9003         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9004         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9005         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9006
9007 2010-09-16  Bruno Haible  <bruno@clisp.org>
9008
9009         Tests for module 'termios'.
9010         * modules/termios-c++-tests: New file.
9011         * modules/termios-tests: New file.
9012         * tests/test-termios-c++.cc: New file.
9013         * tests/test-termios.c: New file.
9014
9015         New module 'termios'.
9016         * modules/termios: New file.
9017         * lib/termios.in.h: New file.
9018         * m4/termios_h.m4: New file.
9019         * doc/posix-headers/termios.texi: Mention the new module.
9020
9021 2010-09-16  Eric Blake  <eblake@redhat.com>
9022
9023         fdutimensat: add an atflag parameter
9024         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9025         * lib/utimens.h (fdutimensat): Update prototype.
9026         * tests/test-fdutimensat.c: Adjust test to match.
9027         * NEWS: Document the change.
9028         Suggested by Paul Eggert.
9029
9030 2010-09-16  Bruno Haible  <bruno@clisp.org>
9031
9032         Fix typos in comments.
9033         * lib/striconveh.h: Fix typo in comment.
9034         * lib/login_tty.c (login_tty): Likewise.
9035
9036 2010-09-15  Bruno Haible  <bruno@clisp.org>
9037
9038         stdlib: clarify MirBSD WEXITSTATUS bug
9039         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9040         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9041
9042 2010-09-15  Eric Blake  <eblake@redhat.com>
9043
9044         stdlib: work around MirBSD WEXITSTATUS bug
9045         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9046         * modules/stdlib (Depends-on): Add sys_wait.
9047         * tests/test-sys_wait.c (main): Enhance test.
9048         * tests/test-stdlib.c (main): Likewise.
9049         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9050
9051         docs: mention MacOS issue with WEXITSTATUS(constant)
9052         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9053         issue.
9054         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9055
9056         strnlen: add tests
9057         * modules/strnlen-tests: New file.
9058         * tests/test-strnlen.c: Likewise.
9059
9060 2010-09-14  Bruno Haible  <bruno@clisp.org>
9061
9062         unistr/base: Avoid link errors when module 'libunistring' is also used.
9063         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9064         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9065         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9066         Declare also when HAVE_LIBUNISTRING is set.
9067         Reported by Pádraig Brady <P@draigbrady.com>.
9068
9069 2010-09-14  Eric Blake  <eblake@redhat.com>
9070
9071         test-rawmemchr: make more robust
9072         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9073         (Depends-on, configure.ac): Add needed prerequisites to use it.
9074         * modules/memchr-tests (Files, Depends-on, configure.ac):
9075         Likewise, to avoid implicit reliance on memchr module prereqs.
9076         * tests/test-memchr.c (main): Ensure proper masking.
9077         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9078         reads.
9079
9080         memchr: detect glibc Alpha bug
9081         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9082         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9083         Alpha.
9084         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9085         * tests/test-memchr.c (main): Enhance test.
9086         Reported by Nelson H. F. Beebe.
9087
9088 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9089
9090         fts, getcwd, glob: audit for dirfd returning -1
9091         * lib/fts.c (opendir): Remove #define; no longer used.
9092         (opendirat): New arg PDIR_FD.  All callers changed.
9093         (fts_build, _opendir2): Use new opendirat to avoid the need for
9094         dirfd, or for checking whether dirfd returns a negative value.
9095         Don't use opendir; always use openat followed by fdopendir.
9096         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9097         it.
9098         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9099         returns -1 here.
9100         * modules/fts (Depends-on): Remove dirfd.
9101         * modules/getcwd (Depends-on): Likewise.
9102
9103 2010-09-13  Eric Blake  <eblake@redhat.com>
9104
9105         float: fix broken MirBSD header
9106         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9107         * doc/posix-headers/float.texi (float.h): Document it.
9108
9109 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9110
9111         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9112         * lib/fts.c (opendirat): New arg extra_flags.
9113         (__opendir2): Use it to avoid following symlinks when opening
9114         a directory, if symlinks are not supposed to be followed.  See
9115         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9116
9117         fdopendir: preserve argument fd before returning
9118         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9119         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9120         (fdopendir): Use them, arranging for FD to be open to the same
9121         directory that it was when it started.  (It might be temporarily
9122         closed while fdopendir is running, so this not thread- or
9123         signal-safe.)  Be careful to do the right thing even when file
9124         descriptors are scarce and dup fails with errno == EMFILE.  See
9125         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9126
9127 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9128
9129         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9130         * NEWS: Document change.
9131         * m4/regex.m4: Disable test for regoff_t size.
9132
9133 2010-09-13  Jim Meyering  <meyering@redhat.com>
9134
9135         fts: don't operate on an invalid file descriptor after failed dup
9136         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9137         negative file descriptor.
9138
9139 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9140
9141         savedir: add streamsavedir, deprecate fdsavedir
9142         * NEWS: Mention deprecation of fdsavedir.
9143         * lib/savedir.c (streamsavedir): New extern function, whose name
9144         ends in "savedir" to be consistent with the others.  This differs
9145         from savedirstream in that it doesn't close its argument.  The
9146         next version of GNU tar will use this instead of fdsavedir, to
9147         avoid some race conditions and conserve file descriptors.
9148         (savedirstream): Reimplement as a wrapper around streamsavedir.
9149         (fdsavedir): Add a comment deprecating this function.  As far as
9150         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9151         * lib/savedir.h (streamsavedir): New decl.
9152         (fdsavedir): Add a comment deprecating this.
9153
9154 2010-09-10  Bruno Haible  <bruno@clisp.org>
9155
9156         langinfo: Fix last commit.
9157         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9158         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9160
9161 2010-09-10  Bruno Haible  <bruno@clisp.org>
9162
9163         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9164         * lib/progreloc.c (O_EXEC): Define fallback.
9165
9166 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9167
9168         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9169         * NEWS: Document recent changes to fcntl-h.
9170         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9171         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9172         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9173         Similarly for O_SEARCH; this last was already true, but not documented.
9174         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9175         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9176         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9177         Likewise.
9178         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9179         is zero, not whether it is defined.
9180         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9181         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9182         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9183
9184 2010-09-10  Bruno Haible  <bruno@clisp.org>
9185
9186         langinfo, nl_langinfo: Fix for IRIX 5.3.
9187         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9188         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9189         HAVE_LANGINFO_YESEXPR.
9190         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9191         HAVE_LANGINFO_YESEXPR.
9192         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9193         HAVE_LANGINFO_T_FMT_AMPM is 0.
9194         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9195         HAVE_LANGINFO_YESEXPR is 0.
9196         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9197         NOEXPR.
9198         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9199         * doc/posix-functions/nl_langinfo.texi: Likewise.
9200         Reported by Eric Blake.
9201
9202 2010-09-10  Bruno Haible  <bruno@clisp.org>
9203
9204         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9205         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9206         on FreeBSD 8.0 and OpenBSD 4.6.
9207         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9208         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9209         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9210         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9211         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9212         ac_includes_default.
9213         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9214
9215 2010-09-09  Eric Blake  <eblake@redhat.com>
9216
9217         strsignal: work around NetBSD bug
9218         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9219         * lib/string.in.h (includes): Likewise.
9220         * doc/posix-functions/strsignal.texi (strsignal): Document the
9221         bug.
9222         Reported by Nelson H. F. Beebe.
9223
9224         gnulib-tool: work with NetBSD /bin/sh
9225         * gnulib-tool (func_cache_var, func_cache_lookup_module)
9226         (func_get_description, func_get_comment, func_get_status)
9227         (func_get_notice, func_get_applicability, func_get_filelist)
9228         (func_get_dependencies, func_get_autoconf_early_snippet)
9229         (func_get_autoconf_snippet, func_get_automake_snippet)
9230         (func_get_include_directive, func_get_link_directive)
9231         (func_get_license, func_get_maintainer, func_import): Avoid
9232         shell syntax errors from parsing syntax extensions.
9233
9234 2010-09-09  Bruno Haible  <bruno@clisp.org>
9235
9236         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9237         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
9238         a reliable way to determine whether the 'alias' command works.
9239
9240 2010-09-08  Jim Meyering  <meyering@redhat.com>
9241
9242         init.sh: penalize a set-x-impaired shell; don't disqualify it
9243         * tests/init.sh: Too many shells corrupt application stderr when
9244         you set -x, so we can't afford to disqualify them, since at least
9245         on Irix-6.5, that would disqualify all bourne shells.
9246         Instead, use a two-pass approach.
9247         On the first pass, try to find a shell that meets the stricter
9248         condition that set -x does not corrupt stderr.
9249         If no shell meets the stricter condition, retest each candidate
9250         shell, but without that extra condition.  Finally, when
9251         VERBOSE=yes is requested and set -x might cause trouble, simply
9252         issue a warning and refrain from enabling debug output.
9253
9254 2010-09-08  Eric Blake  <eblake@redhat.com>
9255
9256         unsetenv: fix OpenBSD bug
9257         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
9258         * doc/posix-functions/unsetenv.texi (unsetenv): Update
9259         documentation.
9260         Reported by Jim Meyering.
9261
9262         strtod: work around IRIX 6.5 bug
9263         * lib/strtod.c (strtod): Reparse number on shorter string if
9264         exponent parse was invalid.
9265         * tests/test-strtod.c (main): Add check for "0x1p 2".
9266         Reported by Tom G. Christensen.
9267
9268         getopt: optimize previous patch
9269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
9270         empty variable.  Speed up awk script.
9271         Reported by Paolo Bonzini.
9272
9273 2010-09-08  Jim Meyering  <meyering@redhat.com>
9274
9275         test.sh: disqualify shells for which set -x corrupts stderr
9276         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
9277         and OpenBSD 4.7.  They make it so with "set -x", environment settings
9278         appear in stderr output.  For example, this command:
9279             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
9280         prints "P=1" on those two systems:
9281
9282 2010-09-08  Bruno Haible  <bruno@clisp.org>
9283
9284         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9285         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
9286         commands, because some shells ignore redirections when there is an
9287         error in the command lookup.
9288         Reported by Eric Blake.
9289
9290 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
9291
9292         * lib/regex.h: Fix a mention of `regex_compile' (should be
9293         `re_compile_pattern').
9294         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
9295         (re_set_registers): Correct name of parameter in comment.
9296
9297         * doc/regex.texi: Add documentation for missing syntax flags.
9298         Remove commented-out documentation of defunct syntax option
9299         RE_NO_EMPTY_ALTS.
9300         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
9301         Add documentation of re_set_registers.
9302         Document trick to re-use a pattern buffer by setting fastmap manually.
9303         Update documentation of struct re_pattern_buffer per public members.
9304         Uncomment documentation of equivalence class operators and
9305         collating symbol operators, since they are now implemented,
9306         Explain leftmost-longest matching in relation to alternatives.
9307         Tidy documentation of substring matching.
9308         Remove POSIX documentation, which is done better in
9309         glibc, and refer the reader there. Keep BSD API documentation, as
9310         that is not readily available elsewhere.
9311
9312 2010-09-07  Eric Blake  <eblake@redhat.com>
9313
9314         getopt: handle POSIXLY_CORRECT set but not exported
9315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
9316         export state of POSIXLY_CORRECT, due to bash set -o posix.
9317         Reported by Dustin J. Mitchell.
9318
9319 2010-09-05  Bruno Haible  <bruno@clisp.org>
9320
9321         gnulib-tool: Highlight the changed options.
9322         * gnulib-tool (func_usage): Display the --import, --add-import,
9323         --remove-import explanations in bold font.
9324
9325 2010-09-06  Karl Berry  <karl@gnu.org>
9326
9327         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
9328
9329 2010-09-05  Bruno Haible  <bruno@clisp.org>
9330
9331         uniwidth/width: Update comment.
9332         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
9333         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
9334
9335 2010-09-05  Bruno Haible  <bruno@clisp.org>
9336
9337         isinf, isnan: Relax license.
9338         * modules/isinf (License): Change from GPL to LGPL, with consent from
9339         Ben Pfaff.
9340         * modules/isnan (License): Likewise.
9341         Requested by Ludovic Courtès.
9342
9343 2010-09-04  Bruno Haible  <bruno@clisp.org>
9344
9345         gnulib-tool: Help migration from --import to --add-import or --update.
9346         * gnulib-tool: Emit a verbose error message when --import is used
9347         without any module name.
9348
9349 2010-09-04  Bruno Haible  <bruno@clisp.org>
9350
9351         Update doc about gnulib-tool.
9352         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
9353         'gnulib-tool --update' in more detail.
9354         Reported by Eric Blake.
9355
9356 2010-09-04  Bruno Haible  <bruno@clisp.org>
9357
9358         gnulib-tool: Change --import. New options --add/remove-import.
9359         * gnulib-tool: New options --add-import, --remove-import.
9360         (func_usage): Document them.
9361         (have_associative): Define always.
9362         (func_import): In import mode, don't merge the specified settings with
9363         the cached settings. Implement remove-import mode.
9364         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
9365         Explain when to use them versus --import.
9366         (Simple update): Use --add-import instead of --import.
9367         * NEWS: Mention the change.
9368
9369 2010-09-04  Bruno Haible  <bruno@clisp.org>
9370
9371         * doc/gnulib-tool.texi (Initial import): Update paragraph about
9372         separate gnulib.mk.
9373
9374 2010-09-04  Bruno Haible  <bruno@clisp.org>
9375
9376         gnulib-tool: Don't talk about CVS any more.
9377         * gnulib-tool (func_usage, func_import): Write "version control"
9378         instead of CVS.
9379
9380 2010-09-04  Jim Meyering  <meyering@redhat.com>
9381
9382         maint.mk: avoid obscure sc_copyright_check failure in coreutils
9383         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
9384         false positives (whose names may be ill-chosen) when searching
9385         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
9386         would cause a false-positive.
9387
9388         avoid coreutils "make distcheck" failure
9389         Coreutils tests with an absolute build directory name that contains
9390         a space.  Not quoting this directory name caused a failure.
9391         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
9392         * tests/test-vc-list-files-cvs.sh: Likewise.
9393
9394 2010-09-04  Bruno Haible  <bruno@clisp.org>
9395
9396         gnulib-tool: Avoid error when run in a package without Makefile.am.
9397         * gnulib-tool: When collecting the m4dirs in a package that does not
9398         have a Makefile.am, eliminate those directories that contain no
9399         gnulib-cache.m4. Fix expression that counts these directories.
9400
9401 2010-09-04  Bruno Haible  <bruno@clisp.org>
9402
9403         update-copyright test: Improve output when perl is missing or too old.
9404         * tests/test-update-copyright.sh: Move test of Perl version down after
9405         the test whether Perl exists. Provide an explanation relating Perl's
9406         error message to Automake's SKIP: message.
9407
9408 2010-09-04  Bruno Haible  <bruno@clisp.org>
9409
9410         Don't augment PATH in TESTS_ENVIRONMENT.
9411         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
9412         set abs_aux_dir instead of augmenting PATH.
9413         * modules/vc-list-files-tests (Makefile.am): Likewise.
9414         * tests/test-update-copyright.sh: Augment PATH here.
9415         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
9416         path_prepend_.
9417         * tests/test-vc-list-files-git.sh: Likewise.
9418
9419 2010-09-04  Jim Meyering  <meyering@redhat.com>
9420
9421         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
9422         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
9423
9424 2010-09-04  Bruno Haible  <bruno@clisp.org>
9425
9426         strdup: Fix compilation error in C++ mode.
9427         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
9428         the macro.
9429
9430 2010-09-04  Bruno Haible  <bruno@clisp.org>
9431
9432         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
9433         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
9434         macro into a function.
9435         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9436
9437 2010-09-04  Bruno Haible  <bruno@clisp.org>
9438
9439         Set PATH_SEPARATOR the same way autoconf does.
9440         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
9441         the value of PATH_SEPARATOR the same way autoconf-generated configure
9442         scripts do.
9443         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
9444         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9445
9446 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9447
9448         Set PATH_SEPARATOR the same way autoconf does.
9449         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
9450         the same way autoconf-generated configure scripts do.
9451         * posix-modules: Likewise.
9452
9453 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9454
9455         hash: fix safe_hasher const typo
9456         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
9457         const; otherwise, there is a type error later.
9458
9459 2010-09-02  Jim Meyering  <meyering@redhat.com>
9460
9461         test-update-copyright.sh: require perl 5.8.0
9462         * tests/test-update-copyright.sh: Require 5.8.0,
9463         which Tom G. Christensen has confirmed is adequate,
9464         while 5.6.1 is not.
9465
9466 2010-09-02  Eric Blake  <eblake@redhat.com>
9467
9468         tests: init.sh improvements for re-exec'ing with zsh
9469         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
9470         -vx through shell re-exec.
9471         Reported by Tom G. Christensen.
9472
9473         wctype: fix typo in previous commit
9474         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
9475         Reported by Ludovic Courtès.
9476
9477 2010-09-02  Jim Meyering  <meyering@redhat.com>
9478
9479         test-update-copyright.sh: skip test if Perl is too old
9480         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
9481         Reported by Tom G. Christensen.
9482
9483 2010-09-02  Bruno Haible  <bruno@clisp.org>
9484
9485         wctype: Avoid compilation error on IRIX 6.5.30.
9486         * lib/wctype.in.h (iswblank): Declare with a replacement if
9487         REPLACE_ISWBLANK is set.
9488         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
9489         declared. Set REPLACE_ISWBLANK.
9490         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
9491         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
9492         * doc/posix-headers/wctype.texi: Likewise.
9493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9494
9495 2010-09-01  Bruno Haible  <bruno@clisp.org>
9496
9497         New module 'socketlib'.
9498         * modules/socketlib: New file.
9499         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
9500         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
9501         * modules/sockets (Depends-on): Add socketlib.
9502         Suggested by Sam Steingold <sds@gnu.org>.
9503
9504 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9505
9506         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
9507
9508         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
9509         when one needs search access to a directory but not read access.
9510         On systems where it is available, it works in some cases where
9511         O_RDONLY does not, namely on directories that are searchable but
9512         not readable, and which need only to be searchable.  If O_SEARCH
9513         is not available, fall back to the traditional method of using
9514         O_RDONLY.
9515
9516         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
9517         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
9518         when opening a directory that needs only to be searchable.
9519         * lib/chdir-safer.c (chdir_no_follow): Likewise.
9520         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
9521         * lib/openat-proc.c (openat_proc_name): Likewise.
9522         * lib/openat.c (openat_needs_fchdir): Likewise.
9523         * lib/save-cwd.c (save_cwd): Likewise.
9524         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
9525
9526 2010-08-28  Bruno Haible  <bruno@clisp.org>
9527
9528         New module 'host-cpu-c-abi'.
9529         * modules/host-cpu-c-abi: New file.
9530         * m4/host-cpu-c-abi.m4: New file, based on part of
9531         clisp/src/m4/general.m4.
9532         Requested by Sam Steingold <sds@gnu.org>.
9533
9534 2010-08-31  Eric Blake  <eblake@redhat.com>
9535         and Jim Meyering  <meyering@redhat.com>
9536
9537         hash: factor, and guard against misbehaving hasher function
9538         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
9539         of table->hasher's return value.  Also protect against a hash value
9540         so large that adding it to table->bucket results in a NULL pointer.
9541         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
9542         Use it in place of open-coded check-and-abort.
9543
9544 2010-08-30  Bruno Haible  <bruno@clisp.org>
9545
9546         hash: silence spurious clang warning
9547         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
9548         Reported by Eric Blake.
9549
9550 2010-08-30  Eric Blake  <eblake@redhat.com>
9551
9552         strstr, memmem, strcasestr: avoid leaked shell message
9553         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
9554         FreeBSD.
9555         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9557
9558         tests: silence clang warning
9559         * tests/test-malloca.c (do_allocation): Avoid dead store.
9560
9561 2010-08-29  Bruno Haible  <bruno@clisp.org>
9562
9563         gettext: Fix recent mistake.
9564         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9565
9566 2010-08-29  Bruno Haible  <bruno@clisp.org>
9567
9568         selinux-h: Offer a --without-selinux option.
9569         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9570         --without-selinux was specified, skip all tests and define
9571         HAVE_SELINUX_SELINUX_H to 0.
9572         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9573         set LIB_SELINUX to empty.
9574         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9575         gl_LIBSELINUX. If --without-selinux was specified, replace
9576         selinux/context.h.
9577         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9578
9579 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9580             Bruno Haible  <bruno@clisp.org>
9581
9582         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9583         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9584         of HAVE_REALLOC.
9585         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9586         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9587         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9588         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9589
9590 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9591             Bruno Haible  <bruno@clisp.org>
9592
9593         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9594         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9595         HAVE_CALLOC.
9596         * lib/xmalloc.c: Update accordingly.
9597         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9598         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9599         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9600
9601 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9602             Bruno Haible  <bruno@clisp.org>
9603
9604         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9605         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9606         HAVE_MALLOC.
9607         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9608         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9609         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9610
9611 2010-08-29  Bruno Haible  <bruno@clisp.org>
9612
9613         Update modules list.
9614         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9615         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9616         (String handling <string.h>): Add astrxfrm.
9617         (File system functions): Add readlinkat.
9618
9619 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9620
9621         Tests for module 'realloc-gnu'.
9622         * modules/realloc-gnu-tests: New file.
9623         * tests/test-realloc-gnu.c: New file.
9624
9625         Tests for module 'calloc-gnu'.
9626         * modules/calloc-gnu-tests: New file.
9627         * tests/test-calloc-gnu.c: New file.
9628
9629         Tests for module 'malloc-gnu'.
9630         * modules/malloc-gnu-tests: New file.
9631         * tests/test-malloc-gnu.c: New file.
9632
9633 2010-08-28  Bruno Haible  <bruno@clisp.org>
9634
9635         Rename module 'realloc' -> 'realloc-gnu'.
9636         * modules/realloc-gnu: New file, copied from modules/realloc.
9637         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9638         obsolete.
9639         * modules/mgetgroups (Depends-on): Update.
9640         * doc/posix-functions/realloc.texi: Update.
9641         * NEWS: Mention the change.
9642
9643         Rename module 'calloc' -> 'calloc-gnu'.
9644         * modules/calloc-gnu: New file, copied from modules/calloc.
9645         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9646         obsolete.
9647         * doc/posix-functions/calloc.texi: Update.
9648         * NEWS: Mention the change.
9649
9650         Rename module 'malloc' -> 'malloc-gnu'.
9651         * modules/malloc-gnu: New file, copied from modules/malloc.
9652         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9653         obsolete.
9654         * modules/argp (Depends-on): Update.
9655         * modules/regex (Depends-on): Update.
9656         * doc/posix-functions/malloc.texi: Update.
9657         * NEWS: Mention the change.
9658
9659 2010-08-28  Eric Blake  <eblake@redhat.com>
9660
9661         pread, pwrite: add missing dependency
9662         * modules/pread (Depends-on): Add extensions.
9663         * modules/pwrite (Depends-on): Likewise.
9664
9665 2010-08-28  Bruno Haible  <bruno@clisp.org>
9666
9667         unistr/u*-strchr: Fix tests dependencies.
9668         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9669         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9670         Reported by Ian Beckwith <ianb@erislabs.net>.
9671
9672 2010-08-28  Bruno Haible  <bruno@clisp.org>
9673
9674         read-file: Don't occupy too much unused memory.
9675         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9676
9677 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9678             Eric Blake  <eblake@redhat.com>
9679             Bruno Haible  <bruno@clisp.org>
9680
9681         read-file: Avoid memory reallocations with regular files.
9682         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9683         (fread_file): With regular files, use the remaining length as the
9684         initial buffer size.  Check against overflow.
9685         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9686         sys_stat.
9687
9688 2010-08-28  Bruno Haible  <bruno@clisp.org>
9689
9690         ftello: Relax license.
9691         * modules/ftello (License): Relax to LGPLv2+.
9692         Reported by Eric Blake.
9693
9694 2010-08-28  Bruno Haible  <bruno@clisp.org>
9695
9696         Avoid relocwrapper link errors due to gnulib replacement functions.
9697         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9698         function.
9699         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9700
9701 2010-08-28  Bruno Haible  <bruno@clisp.org>
9702
9703         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9704         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9705         defined.
9706         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9707         Suggested by Eric Blake.
9708
9709 2010-08-28  Bruno Haible  <bruno@clisp.org>
9710
9711         sys_socket, netdb: Ensure socklen_t gets defined.
9712         * modules/sys_socket (Depends-on): Add socklen.
9713         * modules/netdb (Depends-on): Likewise.
9714         * modules/getaddrinfo (Depends-on): Remove socklen.
9715         * modules/getsockopt (Depends-on): Likewise.
9716         * modules/setsockopt (Depends-on): Likewise.
9717         * tests/test-sys_socket.c: Check that socklen_t is defined.
9718         * tests/test-netdb.c: Likewise.
9719         * m4/socklen.m4: Update comments.
9720         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9721
9722 2010-08-27  Eric Blake  <eblake@redhat.com>
9723
9724         login_tty: add missing dependency
9725         * modules/login_tty (Depends-on): Add pty.
9726
9727 2010-08-26  Eric Blake  <eblake@redhat.com>
9728
9729         lib-symbol-versions: fix m4 quoting
9730         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9731         format for AC_LINK_IFELSE.
9732
9733         glob: fix compile test
9734         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9735
9736         btowc: fix missing file
9737         * modules/btowc (Files): Also ship locale-fr.m4.
9738
9739         lseek: fix link test
9740         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9741         AC_LINK_IFELSE.
9742
9743         include_next: silence autoconf 2.68 warning
9744         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9745         AC_COMPILE_IFELSE as special.
9746         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9747         autoconf < 2.68.
9748
9749         acl: fix compilation test
9750         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9751         AC_COMPILE_IFELSE.
9752
9753 2010-08-26  Bruno Haible  <bruno@clisp.org>
9754
9755         Modernize AC_TRY_RUN invocations.
9756         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9757         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9758         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9759         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9760         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9761         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9762         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9764         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9765         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9766         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9767         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9768         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9769         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9770         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9771         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9772         gl_MBRLEN_NUL_RETVAL): Likewise.
9773         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9774         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9775         Likewise.
9776         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9777         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9778         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9779         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9780         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9781         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9782         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9783         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9784         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9785         Likewise.
9786         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9787         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9788         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9789         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9790         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9791         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9792         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9793         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9794         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9796
9797 2010-08-26  Bruno Haible  <bruno@clisp.org>
9798
9799         Modernize AC_TRY_LINK invocations.
9800         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9801         AC_TRY_LINK.
9802         * m4/argp.m4 (gl_ARGP): Likewise.
9803         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9804         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9805         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9806         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9807         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9808         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9809         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9810         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9811         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9812         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9813         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9814         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9815         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9816         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9817         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9818         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9819         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9820         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9821         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9822         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9823         Likewise.
9824         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9825         Likewise.
9826         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9827         Likewise.
9828         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9830         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9831         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9832         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9833         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9834         * m4/servent.m4 (gl_SERVENT): Likewise.
9835         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9836         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9837         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9838         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9839         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9840         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9841         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9842         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9843         * modules/tsearch-tests (configure.ac): Likewise.
9844
9845 2010-08-26  Bruno Haible  <bruno@clisp.org>
9846
9847         Modernize AC_TRY_COMPILE invocations.
9848         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9849         AC_TRY_COMPILE.
9850         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9851         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9852         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9853         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9854         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9855         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9856         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9857         * m4/lock.m4 (gl_LOCK): Likewise.
9858         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9859         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9860         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9861         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9862         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9863         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9864         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9865         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9866         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9867         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9868         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9869         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9870         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9871         extraneous semicolon.
9872
9873 2010-08-26  Jim Meyering  <meyering@redhat.com>
9874
9875         stat-time: relax license LGPL
9876         * modules/stat-time (License): Change from GPL to LGPL,
9877         with consent from all contributors, for use in libguile.
9878         Requested by Ludovic Courtès.
9879
9880 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9881
9882         poll: return immediately on POLLHUP.
9883         * lib/poll.c (poll): Always set timeout before wait_timeout is
9884         computed.
9885
9886 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9887
9888         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9889         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9890         rmdir ("dir/.//"), unlinkat.
9891
9892 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9893
9894         stdbool: avoid spurious failure with modern xlc
9895         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9896
9897 2010-08-24  Bruno Haible  <bruno@clisp.org>
9898
9899         getloadavg: simplify code
9900         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9901         gl_have_func. Update comments.
9902
9903 2010-08-24  Eric Blake  <eblake@redhat.com>
9904
9905         getloadavg: don't define SVR4 on cygwin
9906         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9907         only define SVR4 when -lkvm is required.
9908         Reported by Yaakov Selkowitz.
9909
9910 2010-08-24  Bruno Haible  <bruno@clisp.org>
9911
9912         priv-set: fix comment
9913         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9914
9915 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9916
9917         priv-set: fix comments
9918         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9919         to match code, as suggested by David Bartley in:
9920         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9921
9922 2010-08-23  Eric Blake  <eblake@redhat.com>
9923
9924         stdbool: avoid rejecting clang
9925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9926         * tests/test-stdbool.c: Enable more tests if using the system
9927         <stdbool.h> instead of the gnulib replacement.
9928         (main): Move xlc bug test to a runtime test for all compilers.
9929         Reported by Anders Kaseorg.
9930
9931         argz: fix shell quoting issue
9932         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9933         Reported by Charles Wilson.
9934
9935 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
9936             Erik Faye-Lund <kusmabite@gmail.com>
9937
9938         poll, select: handle ERROR_BROKEN_PIPE.
9939         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9940         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9941         * lib/select.c (win32_compute_revents): Do not mark a pipe
9942         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9943
9944 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9945
9946         fts: allow compilation with C++
9947         * lib/fts_.h: Specify extern "C" linkage with C++.
9948
9949 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9950
9951         Fix gnulib-tool sed script de-commentation for AIX sed.
9952         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9953         sed.
9954
9955 2010-08-17  Eric Blake  <eblake@redhat.com>
9956
9957         test-stddef: test for (some) offsetof bugs
9958         * tests/test-stddef.c: Enhance test to ensure correct type of
9959         offsetof.
9960         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9961         that we are not fixing at this time.
9962
9963 2010-08-15  Bruno Haible  <bruno@clisp.org>
9964
9965         stpncpy: Allow stpncpy to be defined as a macro.
9966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9967         if it's already correctly declared.
9968         * lib/string.in.h (stpncpy): Undefine before redefining.
9969         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9970
9971 2010-08-14  Bruno Haible  <bruno@clisp.org>
9972
9973         Rename module 'memxfrm' to 'amemxfrm'.
9974         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9975         (amemxfrm): Renamed from memxfrm.
9976         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9977         (amemxfrm): Renamed from memxfrm.
9978         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9979         * NEWS: Mention the change.
9980         * MODULES.html.sh (String handling <string.h>): Update.
9981         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9982         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9983         * lib/unicase/u16-casexfrm.c: Likewise.
9984         * lib/unicase/u32-casexfrm.c: Likewise.
9985         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9986         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9987         * lib/uninorm/u16-normxfrm.c: Likewise.
9988         * lib/uninorm/u32-normxfrm.c: Likewise.
9989         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9990         memxfrm.
9991         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9992         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9993         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9994         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9995         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9996         Suggested by Paul Eggert.
9997
9998 2010-08-14  Bruno Haible  <bruno@clisp.org>
9999
10000         Tests for module 'astrxfrm'.
10001         * modules/astrxfrm-tests: New file.
10002         * tests/test-astrxfrm.c: New file.
10003
10004         New module 'astrxfrm'.
10005         * lib/astrxfrm.h: New file.
10006         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10007         * modules/astrxfrm: New file.
10008
10009 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10010
10011         regex: Tweak doc.
10012         * doc/regex.texi (Overview): Don't mention regex.c.
10013         (GNU Regular Expression Compiling): Likewise.
10014         (Match-end-of-line Operator): Mention 'not_eol'.
10015
10016 2010-08-14  Brian Gough  <bjg@gnu.org>
10017             Bruno Haible  <bruno@clisp.org>
10018
10019         git-merge-changelog: add doc relating to use with bzr and hg.
10020         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10021
10022 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10023
10024         pthread: fix pthread.h creation for srcdir != builddir
10025         * modules/pthread (Makefile.am): Fix the rule to work also in a
10026         non-srcdir build.
10027
10028 2010-08-13  Karl Berry  <karl@gnu.org>
10029
10030         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10031         * doc/posix-*/*: force line break before @url of POSIX
10032         specifications.
10033         Suggested by Werner Lemberg.
10034
10035 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10036
10037         strtod: fix const diagnostic
10038         * lib/strtod.c (strtod): Don't assign const char * to char *,
10039         as this elicits a warning from GCC when warnings are enabled.
10040
10041 2010-08-10  Pádraig Brady <P@draigbrady.com>
10042         and Eric Blake  <eblake@redhat.com>
10043
10044         copy-acl: ignore ENOTSUP on HP-UX
10045         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10046         so that it is available for HP-UX.
10047         * lib/copy-acl.c (qcopy_acl): Use it.
10048         Reported by Patrick M. Callahan.
10049
10050 2010-08-10  Eric Blake  <eblake@redhat.com>
10051
10052         open, chown: relax license
10053         * modules/open (License): Change to LGPLv2+, with consent by all
10054         authors, for use in augeas.
10055         * modules/chown (License): Likewise.
10056         * modules/lchown (Likewise): Likewise.
10057         Requested by Adam Stokes.
10058
10059 2010-08-09  Karl Berry  <karl@gnu.org>
10060
10061         * build-aux/ar-lib: new file, import from Automake.
10062         * config/srclist.txt: autocheck for updates.
10063
10064 2010-08-09  Eric Blake  <eblake@redhat.com>
10065
10066         readlinkat: adjust client modules
10067         * modules/areadlinkat (Depends-on): Use readlinkat, not
10068         symlinkat.
10069         * modules/areadlinkat-with-size (Depends-on): Likewise.
10070
10071         mknod: be more vocal about danger of running tests as root
10072         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10073         root, since that is just asking for problems.
10074         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10075
10076         readlinkat: split into its own module
10077         * modules/symlinkat: Split readlinkat...
10078         * modules/readlinkat: ...into separate module.
10079         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10080         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10081         * lib/symlinkat.c (readlinkat): Move...
10082         * lib/readlinkat.c: ...into new file.
10083         * modules/symlinkat-tests: Split readlinkat test...
10084         * modules/readlinkat-tests: ...into separate module.
10085         * tests/test-symlinkat.c: Split...
10086         * tests/test-readlinkat.c: ...into new file.
10087         * NEWS: Document the split.
10088         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10089         * lib/unistd.in.h (readlinkat): Likewise.
10090         Suggested by Bruno Haible.
10091
10092 2010-08-08  Bruno Haible  <bruno@clisp.org>
10093
10094         memxfrm: Speed up.
10095         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10096         that usually only one call to strxfrm is necessary for each string
10097         part.
10098         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10099
10100 2010-08-07  Karl Berry  <karl@gnu.org>
10101
10102         * doc/posix-headers/limits.texi,
10103         * doc/posix-functions/malloc.texi,
10104         * doc/posix-functions/strsignal.texi: missing @item.
10105         * doc/ld-version-script.texi: spurious leading i.
10106         * doc/regex.texi (Interval Operators): no commas inside @var.
10107
10108 2010-08-01  Bruno Haible  <bruno@clisp.org>
10109
10110         Integrate the regex documentation.
10111         * doc/gnulib.texi: Define 'cn' index.
10112         (Regular expressions): New a chapter that includes regex.texi and
10113         regexprops-generic.texi.
10114         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10115         syntax.
10116
10117         Whitespace cleanup.
10118         * doc/regex.texi: Remove trailing spaces.
10119
10120         Add regex documentation.
10121         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10122         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10123         Written by Kathy A. Hargreaves and Karl Berry.
10124
10125 2010-08-01  Bruno Haible  <bruno@clisp.org>
10126
10127         link: Update documentation.
10128         * doc/posix-functions/link.texi: Update regarding Solaris.
10129
10130 2010-07-31  Bruno Haible  <bruno@clisp.org>
10131
10132         Update modules list.
10133         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10134         (String handling <string.h>): Add memcmp2, memxfrm.
10135         (Container data structures): Add xlist, xsublist, xoset.
10136         (Core language properties): Add alignof, unused-parameter.
10137         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10138         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10139         (Unibyte characters <ctype.h>): New section.
10140         (String handling <string.h>): New section.
10141         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10142         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10143         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10144         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10145         tan, tanh, tanl, y0, y1, yn.
10146         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10147         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10148         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10149         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10150         unlockpt, vdprintf, vdprintf-posix.
10151         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10152         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10153         xconcat-filename.
10154         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10155         getdtablesize, pipe2, pipe2-safer.
10156         (Security): New section.
10157         (Networking functions): Add accept4.
10158         (Signal handling): Add sigpipe.
10159         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10160         mbmemcasecoll.
10161         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10162         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10163         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10164         pipe-filter-ii.
10165         (Misc): Add argp-version-etc, login_tty, parse-duration.
10166
10167 2010-07-31  Bruno Haible  <bruno@clisp.org>
10168
10169         Improve doc in MODULES.html.
10170         * modules/linkat (Description): Add the word "function".
10171         * modules/mkfifo (Description): Likewise.
10172         * modules/mknod (Description): Likewise.
10173         * modules/remove (Description): Likewise.
10174         * modules/renameat (Description): Likewise.
10175         * modules/stat (Description): Likewise.
10176         * modules/symlink (Description): Likewise.
10177         * modules/unlink (Description): Likewise.
10178
10179 2010-07-31  Bruno Haible  <bruno@clisp.org>
10180
10181         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10182         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10183         option --enable/disable-c++ instead of --enable/disable-cxx.
10184         * NEWS: Mention the change.
10185
10186 2010-07-31  Bruno Haible  <bruno@clisp.org>
10187
10188         readlink, areadlink: Relax test a bit.
10189         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10190         alternative to ENOTDIR.
10191         * tests/test-areadlink.h (test_areadlink): Likewise.
10192         Reported by Rainer Tammer.
10193
10194 2010-07-31  Bruno Haible  <bruno@clisp.org>
10195
10196         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10197         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10198         character, perform the search using U_STRCHR.
10199         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10200         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10201         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10202         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10203         Suggested by Paolo Bonzini.
10204
10205 2010-07-31  Bruno Haible  <bruno@clisp.org>
10206
10207         unistr/u*-strstr: Fix dependencies.
10208         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10209         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10210         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10211
10212 2010-07-31  Bruno Haible  <bruno@clisp.org>
10213
10214         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10215         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10216         the beginning of the loop.
10217         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10218         cases in 'switch' statement.
10219
10220         unistr/u8-strchr: Fix several bugs.
10221         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
10222         the string. When not found, return NULL, not a pointer near the end.
10223
10224         More tests for unistr/u8-strchr.
10225         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
10226         that the function does not read past the first occurrence of the byte
10227         being searched.
10228         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
10229         * tests/unistr/test-u16-strchr.c (main): New function.
10230         * tests/unistr/test-u32-strchr.c (main): New function.
10231
10232 2010-07-31  Bruno Haible  <bruno@clisp.org>
10233
10234         posix-modules: Ignore backup files of documentation files.
10235         * posix-modules: grep only through files named *.texi.
10236
10237 2010-07-31  Bruno Haible  <bruno@clisp.org>
10238
10239         symlinkat: Fix documentation.
10240         * doc/posix-functions/readlinkat.texi: Fix module name.
10241
10242 2010-07-31  Bruno Haible  <bruno@clisp.org>
10243
10244         fchownat: Replace also when chown has the trailing slash bug.
10245         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
10246         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
10247         introduced on 2010-04-10.
10248         Reported by Rainer Tammer.
10249
10250 2010-07-31  Bruno Haible  <bruno@clisp.org>
10251
10252         linkat: Work around AIX 7.1 bug.
10253         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
10254         whether linkat handles trailing slash correctly. If not, replace linkat
10255         and define LINKAT_TRAILING_SLASH_BUG.
10256         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
10257         check whether (fd1,file1) points to a directory if file1 or file2 ends
10258         in a slash. Code taken from lib/link.c.
10259         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
10260         Reported by Rainer Tammer.
10261
10262 2010-07-31  Bruno Haible  <bruno@clisp.org>
10263
10264         Correctly determine whether pow is available in libc on AIX 7 with xlc.
10265         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
10266         This disables an xlc optimization that was causing wrong test results.
10267         Reported by Rainer Tammer.
10268
10269 2010-07-31  Bruno Haible  <bruno@clisp.org>
10270
10271         iconv: Work around AIX 6.1..7.1 bug.
10272         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
10273         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
10274         cross-compiling, guess no on all versions of AIX.
10275         Reported by Rainer Tammer.
10276
10277 2010-07-31  Bruno Haible  <bruno@clisp.org>
10278
10279         readlink: Relax test a bit.
10280         * tests/test-readlink.h (test_readlink): Allow different errno value
10281         when readlink is called with a file name that ends in / and refers to
10282         a file.
10283         Suggested by Eric Blake.
10284         Reported by Rainer Tammer.
10285
10286 2010-07-31  Bruno Haible  <bruno@clisp.org>
10287
10288         copysign: Does not require -lm on glibc systems.
10289         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
10290         gl_COMMON_DOUBLE_MATHFUNC.
10291         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
10292
10293 2010-07-31  Bruno Haible  <bruno@clisp.org>
10294
10295         duplocale: Work around AIX 7.1 bug.
10296         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
10297         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
10298         * lib/duplocale.c (rpl_duplocale): Update comment.
10299         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
10300         Reported by Rainer Tammer.
10301
10302 2010-07-30  Bruno Haible  <bruno@clisp.org>
10303
10304         dirfd: Avoid link error on AIX 7.1.
10305         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
10306         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
10307         exist, set REPLACE_DIRFD.
10308         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
10309         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
10310         * doc/posix-functions/dirfd.texi: Update.
10311         Reported by Rainer Tammer.
10312
10313 2010-07-30  Eric Blake  <eblake@redhat.com>
10314
10315         strtod: next round of AIX fixes
10316         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
10317         exponent.
10318         * tests/test-strtod.c (main): Enhance tests.
10319         * doc/posix-functions/strtod.texi (strtod): Document next bug.
10320         Reported by Rainer Tammer.
10321
10322         futimens: fix configure check
10323         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
10324         Reported by Bruno Haible.
10325
10326 2010-07-30  Bruno Haible  <bruno@clisp.org>
10327
10328         getline: Update regarding AIX.
10329         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
10330         Reported by Rainer Tammer.
10331
10332 2010-07-30  Bruno Haible  <bruno@clisp.org>
10333
10334         wcwidth: Drop replacement on AIX 7.
10335         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
10336         AIX 7.
10337         Reported by Rainer Tammer.
10338
10339 2010-07-30  Bruno Haible  <bruno@clisp.org>
10340
10341         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
10342         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
10343         a 'char *'.
10344         Reported by Rainer Tammer.
10345
10346 2010-07-30  Bruno Haible  <bruno@clisp.org>
10347
10348         unlink: Update regarding AIX.
10349         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
10350         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
10351         Reported by Rainer Tammer.
10352
10353 2010-07-30  Bruno Haible  <bruno@clisp.org>
10354
10355         symlink: Update regarding AIX.
10356         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
10357         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
10358         Reported by Rainer Tammer.
10359
10360 2010-07-30  Bruno Haible  <bruno@clisp.org>
10361
10362         strndup: Update regarding AIX.
10363         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
10364         AIX 7.
10365         Reported by Rainer Tammer.
10366
10367 2010-07-30  Bruno Haible  <bruno@clisp.org>
10368
10369         stat: Update regarding AIX.
10370         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
10371         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
10372         Reported by Rainer Tammer.
10373
10374 2010-07-30  Bruno Haible  <bruno@clisp.org>
10375
10376         truncl: Fix autoconf test.
10377         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
10378         whether truncl works.
10379         Reported by Rainer Tammer.
10380
10381 2010-07-30  Bruno Haible  <bruno@clisp.org>
10382
10383         round: Update regarding AIX.
10384         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
10385         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
10386         Reported by Rainer Tammer.
10387
10388 2010-07-30  Bruno Haible  <bruno@clisp.org>
10389
10390         rename: Update regarding AIX.
10391         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
10392         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
10393         Reported by Rainer Tammer.
10394
10395 2010-07-30  Bruno Haible  <bruno@clisp.org>
10396
10397         printf.m4: Update regarding AIX.
10398         * m4/printf.m4: Update comments regarding AIX.
10399         Reported by Rainer Tammer.
10400
10401 2010-07-30  Bruno Haible  <bruno@clisp.org>
10402
10403         iconv: Update regarding AIX.
10404         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
10405         AIX 7.
10406         Reported by Rainer Tammer.
10407
10408 2010-07-30  Bruno Haible  <bruno@clisp.org>
10409
10410         getopt: Update regarding AIX.
10411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
10412         no on AIX.
10413         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
10414         Reported by Rainer Tammer.
10415
10416 2010-07-30  Bruno Haible  <bruno@clisp.org>
10417
10418         ldexpl; Update regarding AIX.
10419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
10420         on AIX 7.
10421         Reported by Rainer Tammer.
10422
10423 2010-07-30  Bruno Haible  <bruno@clisp.org>
10424
10425         frexpl: Update regarding AIX.
10426         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
10427         on AIX 7.
10428         Reported by Rainer Tammer.
10429
10430 2010-07-30  Bruno Haible  <bruno@clisp.org>
10431
10432         open, fopen: Update regarding AIX.
10433         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
10434         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10435         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
10436         * doc/posix-functions/fopen.texi: Likewise.
10437         Reported by Rainer Tammer.
10438
10439 2010-07-30  Bruno Haible  <bruno@clisp.org>
10440
10441         chown: Update doc regarding AIX.
10442         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
10443         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
10444         Reported by Rainer Tammer.
10445
10446 2010-07-30  Eric Blake  <eblake@redhat.com>
10447
10448         strtod: fix bug in replacement function on AIX
10449         * lib/strtod.c (strtod): Special case broken "0x" parse in
10450         underlying strtod.
10451         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
10452         * doc/posix-functions/strtod.texi (strtod): Likewise.
10453         Reported by Rainer Tammer.
10454
10455 2010-07-30  Bruno Haible  <bruno@clisp.org>
10456
10457         mbrlen: Fix cross-compilation guess for AIX.
10458         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
10459         guess. Leftover from 2008-12-22.
10460
10461 2010-07-30  Bruno Haible  <bruno@clisp.org>
10462
10463         mbrtowc: Fix cross-compilation guess for AIX.
10464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
10465         guess. Leftover from 2008-12-21.
10466
10467 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
10468
10469         init.sh: work around trap limitation of some shells
10470         * tests/init.sh (setup_): Move exit trap outside of shell function.
10471
10472 2010-07-29  Eric Blake  <eblake@redhat.com>
10473
10474         strtod: aid debugging
10475         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
10476         understanding why strtod is rejected.
10477
10478 2010-07-28  Bruno Haible  <bruno@clisp.org>
10479
10480         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
10481         * lib/unistr/u8-chr.c: Include <string.h>.
10482         * tests/unistr/test-u8-chr.c: Likewise.
10483         * tests/unistr/test-u16-chr.c: Likewise.
10484         * tests/unistr/test-u32-chr.c: Likewise.
10485         * tests/unistr/test-u8-strchr.c: Likewise.
10486         * tests/unistr/test-u16-strchr.c: Likewise.
10487         * tests/unistr/test-u32-strchr.c: Likewise.
10488         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
10489         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
10490         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
10491         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
10492
10493 2010-07-28  Bruno Haible  <bruno@clisp.org>
10494
10495         Use spaces for indentation, not tabs.
10496         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10497
10498 2010-07-27  Bruno Haible  <bruno@clisp.org>
10499
10500         mbspcasecmp: Fix function specification.
10501         * lib/string.in.h (mbspcasecmp): Fix specification comment.
10502         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
10503         Reported by Eric Blake <eblake@redhat.com>.
10504
10505 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
10506
10507         timespec: use cast and not conditional, as truncation isn't possible
10508         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
10509         instead of a conditional.  Comment about the situation in more detail.
10510         This undoes most of the 2009-10-29 patch.
10511
10512 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
10513
10514         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
10515         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
10516         * lib/unistr/u8-strchr.c: Likewise.
10517         * modules/unistr/u8-chr: Depend on memchr.
10518
10519         unistr/u*-strchr: add tests
10520         * modules/unistr/u8-strchr-tests: New file.
10521         * modules/unistr/u16-strchr-tests: New file.
10522         * modules/unistr/u32-strchr-tests: New file.
10523         * tests/unistr/test-strchr.h: New file.
10524         * tests/unistr/test-u8-strchr.c: New file.
10525         * tests/unistr/test-u16-strchr.c: New file.
10526         * tests/unistr/test-u32-strchr.c: New file.
10527
10528         unistr/u*-chr: test multibyte sequences more
10529         * tests/unistr/test-chr.h: Do complete testing of the characters in the
10530         test vector.
10531         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
10532         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
10533         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
10534
10535         unistr/u*-chr: test multibyte sequences
10536         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
10537
10538         unistr/u*-chr: prepare for multibyte tests
10539         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
10540         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
10541         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
10542         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
10543         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
10544         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
10545
10546 2010-07-18  Bruno Haible  <bruno@clisp.org>
10547
10548         unistr/u8-strchr: Optimize non-ASCII argument case.
10549         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
10550         because the first byte often matches anyway.
10551         Reported by Pádraig Brady <P@draigbrady.com>.
10552
10553 2010-07-15  Karl Berry  <karl@gnu.org>
10554
10555         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
10556
10557 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10558
10559         getcwd: on Solaris, work better if ancestors are inaccessible
10560         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10561         buffer and size, try again with a large buffer.  This works better
10562         on Solaris, since its getcwd succeeds even if the path to the root
10563         is inaccessible, and this is helpful in common cases such as .zfs
10564         hidden directories.  Problem reported by J Chapman Flack in
10565         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10566         Use system getcwd if it's declared, not merely if it's partly
10567         working; use the partly-working test only to avoid needless effort
10568         if the system getcwd fails.
10569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10570         comment that was already obsolete and is now even more obsolete.
10571         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10572         now might call strdup.
10573
10574 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10575
10576         pthread: Add enough so that coreutils/src/sort.c compiles.
10577         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10578         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10579         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10580         Include <sys/types.h>, in case it defines pthread_t.
10581         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10582         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10583         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10584         (pthread_rwlockattr_t, pthread_spinlock_t):
10585         New typedefs, if HAVE_PTHREAD_T is not defined.
10586         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10587         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10588         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10589         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10590         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10591         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10592         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10593         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10594         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10595         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10596         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10597         New macros.
10598         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10599         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10600         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10601         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10602         (pthread_spin_unlock): New dummy functions.
10603         (pthread_create): Return EAGAIN; don't set errno.
10604         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10605         require AC_C_INLINE.
10606         * modules/pthread (Depends-on): Add sched, time.
10607         (pthread.h): Use AM_V_GEN.
10608
10609 2010-07-13  Bruno Haible  <bruno@clisp.org>
10610
10611         striconveh: Don't malloc memory if the result buffer is sufficient.
10612         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10613         buffer if its size is sufficient.
10614         Reported by Ludovic Courtès <ludo@gnu.org>.
10615
10616 2010-07-13  Bruno Haible  <bruno@clisp.org>
10617
10618         strtod: Add safety check.
10619         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10620
10621 2010-07-12  Bruno Haible  <bruno@clisp.org>
10622
10623         Unify tests that set gl_cv_func_ldexpl_no_libm.
10624         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10625         gl_FUNC_LDEXPL.
10626         (gl_FUNC_LDEXPL): Invoke it.
10627         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10628
10629 2010-07-12  Bruno Haible  <bruno@clisp.org>
10630
10631         Unify tests that set gl_cv_func_ldexp_no_libm.
10632         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10633         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10634         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10635         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10636         * modules/strtod (Files): Add m4/ldexp.m4.
10637
10638 2010-07-12  Bruno Haible  <bruno@clisp.org>
10639
10640         Unify tests that set gl_cv_func_frexpl_no_libm.
10641         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10642         gl_FUNC_FREXPL_NO_LIBM.
10643         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10644         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10645
10646 2010-07-12  Bruno Haible  <bruno@clisp.org>
10647
10648         Unify tests that set gl_cv_func_frexp_no_libm.
10649         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10650         gl_FUNC_FREXP_NO_LIBM.
10651         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10652         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10653
10654 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10655
10656         memcoll: clarify sizes versus lengths, document better, and tweak perf
10657         * lib/memcoll.c (strcoll_loop, memcoll0):
10658         Improve quality of descriptive comments.  Name variables
10659         consistently as to whether they are lengths (which do not include
10660         terminating null) versus sizes (which do).
10661         * lib/xmemcoll.c (xmemcoll0): Likewise.
10662         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10663         returned when s1size == 0; this is easier to compile and saves
10664         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10665
10666 2010-07-12  Bruno Haible  <bruno@clisp.org>
10667
10668         Tests for module '_Exit'.
10669         * modules/_Exit-tests: New file.
10670         * tests/test-_Exit.sh: New file.
10671         * tests/test-_Exit.c: New file.
10672
10673         New module '_Exit'.
10674         * lib/stdlib.in.h (__attribute__): New macro.
10675         (_Exit): New declaration.
10676         * lib/_Exit.c: New file.
10677         * m4/_Exit.m4: New file.
10678         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10679         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10680         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10681         * modules/_Exit: New file.
10682         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10683         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10684
10685 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10686
10687         strtod: make it more-accurate typically, and don't require libm
10688         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10689         Include limits.h.  Don't include string.h.
10690         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10691         (locale_isspace): New function, so that no casts are needed to
10692         check whether *s is a space.
10693         (ldexp): Provide an unused dummy if not available.
10694         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10695         (strtod): Use them.  This implementation prefers to use the
10696         underlying strtod if available, falling back on our own code
10697         only to fix known bugs.  This is more likely to produce an
10698         accurate result.  Also, it avoids the use of libm functions.
10699         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10700         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10701         was absent, but it caused a test failure with coreutils.
10702         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10703         with libm.
10704         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10705         * modules/strtod-tests (Makefile.am): Likewise.
10706
10707 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10708             Bruno Haible  <bruno@clisp.org>
10709
10710         unistr/u8-strchr: Optimize ASCII argument case.
10711         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10712
10713 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10714
10715         (x)memcoll: minor tweaks
10716         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10717         is after the type that it qualifies.
10718         (memcoll0): Likewise.
10719         * lib/memcoll.h (memcoll0): Likewise.
10720         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10721         * lib/xmemcoll.h (xmemcoll0): Likewise.
10722         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10723         differs from memcoll in that the NUL byte is part of the argument.
10724         Omit the abort-checks, as performance is a real issue here.  Plus,
10725         the checks were wrong anyway (an off-by-one error).  Omit local
10726         variable 'diff', as it's a bit clearer that way.
10727         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10728         no longer needed.
10729
10730 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10731
10732         (x)memcoll: speedup when input is known to be NUL delimited
10733         * lib/memcoll.c: Include stdlib.
10734         (memcoll0) New function.
10735         (strcoll_loop) New function, refactored for use in both memcoll
10736         and memcoll0.
10737         * lib/memcoll.h: Add prototype for memcoll0.
10738         * lib/xmemcoll.c: (xmemcoll0) New function.
10739         (collate_error) New function, refactored for use in both xmemcoll
10740         and xmemcoll0.
10741         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10742         * m4/memcoll.m4: add inline invocation.
10743
10744 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10745
10746         * build-aux/bootstrap: Remove any local translations
10747         from the translation project synchronization directory,
10748         so that local only translations are not distributed.
10749
10750 2010-07-04  Bruno Haible  <bruno@clisp.org>
10751
10752         fsusage: Clarify which code applies to which platforms.
10753         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10754         platform.
10755         * lib/fsusage.c (get_fs_usage): Likewise.
10756
10757 2010-07-04  Bruno Haible  <bruno@clisp.org>
10758
10759         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10760         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10761         Reported by Martin Lambers <marlam@marlam.de>.
10762
10763 2010-07-04  Jim Meyering  <meyering@redhat.com>
10764
10765         hash: once again explicitly disallow insertion of NULL
10766         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10767         inserting a NULL pointer cannot work with these functions.
10768         Add a comment with details.
10769         This reverts part of the 2010-07-01 commit, 5bef1a35
10770         "hash: extend module to deal with non-pointer keys".
10771
10772 2010-07-01  Bruno Haible  <bruno@clisp.org>
10773
10774         stdbool: Update doc.
10775         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10776         Info from Christian Weisgerber <naddy@mips.inka.de>.
10777
10778 2010-07-01  Jim Meyering  <meyering@redhat.com>
10779
10780         hash: extend module to deal with non-pointer keys
10781         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10782         but that allows insertion of non-pointer entries.
10783         Do not disallow an ENTRY value of NULL.
10784         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10785         * lib/hash.h (hash_insert0): Declare.
10786
10787 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10788
10789         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10790         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10791         not present (i.e. with autoconf 2.59 and when using gettextize, not
10792         gnulib), require AC_GNU_SOURCE instead.
10793
10794 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10795
10796         idpriv-drop: Fix tests.
10797         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10798         not to the test-idpriv-droptemp program.
10799
10800 2010-06-29  Bruno Haible  <bruno@clisp.org>
10801
10802         string: Fix syntax error with g++ 2.96.
10803         * lib/string.in.h (__pure__): Remove definition.
10804         (_GL_ATTRIBUTE_PURE): New macro.
10805         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10806         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10807         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10808
10809 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10810
10811         unitypes: Fix bug introduced on 2010-05-18.
10812         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10813
10814 2010-06-22  Eric Blake  <eblake@redhat.com>
10815
10816         memmem: slight optimization
10817         * lib/str-two-way.h (critical_factorization): Update comments.
10818         Reduce work during factorization phase.
10819         Reported by Carlos Bueno <carlos@bueno.org>.
10820
10821 2010-06-21  Bruno Haible  <bruno@clisp.org>
10822
10823         Fix HAVE_CALLOC_POSIX misnomer.
10824         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10825         !HAVE_CALLOC_POSIX.
10826         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10827         HAVE_CALLOC_POSIX.
10828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10829         instead of HAVE_CALLOC_POSIX.
10830         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10831         HAVE_CALLOC_POSIX.
10832
10833         Use modern idiom for calloc() replacement.
10834         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10835         AC_FUNC_CALLOC.
10836         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10837         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10838         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10839         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10840         (gl_REPLACE_CALLOC): New macro.
10841
10842 2010-06-21  Bruno Haible  <bruno@clisp.org>
10843
10844         Fix HAVE_REALLOC_POSIX misnomer.
10845         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10846         !HAVE_REALLOC_POSIX.
10847         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10848         HAVE_REALLOC_POSIX.
10849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10850         instead of HAVE_REALLOC_POSIX.
10851         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10852         HAVE_REALLOC_POSIX.
10853
10854         Use modern idiom for realloc() replacement.
10855         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10856         AC_FUNC_REALLOC.
10857         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10858         Autoconf's AC_FUNC_REALLOC.
10859         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10860         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10861         (gl_REPLACE_REALLOC): New macro.
10862         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10863
10864 2010-06-21  Bruno Haible  <bruno@clisp.org>
10865
10866         Fix HAVE_MALLOC_POSIX misnomer.
10867         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10868         !HAVE_MALLOC_POSIX.
10869         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10870         HAVE_MALLOC_POSIX.
10871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10872         instead of HAVE_MALLOC_POSIX.
10873         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10874         HAVE_MALLOC_POSIX.
10875
10876         Use modern idiom for malloc() replacement.
10877         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10878         AC_FUNC_MALLOC.
10879         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10880         Autoconf's AC_FUNC_MALLOC.
10881         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10882         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10883         (gl_REPLACE_MALLOC): New macro.
10884         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10885
10886 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10887
10888         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10889         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10890         This macro takes 3 arguments, not 4.
10891
10892 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10893
10894         ipv6: fix detection under mingw
10895         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10896         in6_addr.
10897
10898 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10899
10900         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10901         that strtod() works when cross-compiling to a glibc version known
10902         to work.
10903
10904 2010-06-15  Bruno Haible  <bruno@clisp.org>
10905
10906         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10907
10908 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10909
10910         select: Correct timeout.
10911         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10912
10913 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10914
10915         git-version-gen: init shell var to avoid env var influence
10916         * build-aux/git-version-gen (v): Init shell var to empty.
10917
10918 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10919
10920         priv-set: Don't assume that priv.h exists merely because getppriv does.
10921         See Jan Andersen's bug report about AIX 5L in
10922         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10923         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10924         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10925         * lib/priv-set.h: Likewise.
10926         * tests/test-priv-set.c: Likewise.
10927
10928 2010-06-13  Bruno Haible  <bruno@clisp.org>
10929
10930         relocatable: Make it easier to test whether to install wrappers.
10931         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10932         RELOCATABLE_VIA_WRAPPER.
10933
10934 2010-06-13  Bruno Haible  <bruno@clisp.org>
10935
10936         gnulib-tool: Display specified modules and dependencies differently.
10937         * gnulib-tool (func_show_module_list): New function.
10938         (func_import, func_create_testdir): Invoke it.
10939         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10940
10941 2010-06-13  Bruno Haible  <bruno@clisp.org>
10942
10943         gnulib-tool: Align code of func_import and func_create_testdir.
10944         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10945         specified_modules.
10946
10947 2010-06-12  Jim Meyering  <meyering@redhat.com>
10948
10949         test-inttostr: avoid spurious failure on Solaris 9
10950         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10951         to accept "%ju".  Reported by Bruno Haible.
10952
10953 2010-06-11  Jim Meyering  <meyering@redhat.com>
10954
10955         test-sys_socket: mark variables as used more readably
10956         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10957         as "used" explicitly via (void) statement casts.  This is more
10958         readable than using them in an artificial return expression.
10959         Suggestion from Bruno Haible.
10960
10961 2010-06-11  Bruno Haible  <bruno@clisp.org>
10962
10963         Avoid some more warnings from "gcc -Wwrite-strings".
10964         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10965         to 'const char *'.
10966         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10967         * tests/test-c-strcasestr.c (main): Likewise.
10968         * tests/test-mbscasestr1.c (main): Likewise.
10969         * tests/test-mbscasestr2.c (main): Likewise.
10970         * tests/test-memmem.c (main): Likewise.
10971         * tests/test-strstr.c (main): Likewise.
10972         * tests/test-strcasestr.c (main): Likewise.
10973
10974 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10975
10976         init.sh: change framework_failure_ to fail with status 99, not 1
10977         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10978         automake's parallel-tests rule that this is an unexpected failure,
10979         even if the test is listed in XFAIL_TESTS.
10980
10981 2010-06-11  Jim Meyering  <meyering@redhat.com>
10982
10983         test-inttostr: avoid warnings about 4-6KB literal strings
10984         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10985         Include "macros.h", for its definition of ASSERT.
10986         (CK): s/assert/ASSERT/
10987         * modules/inttostr-tests (Files): Add macros.h.
10988
10989         init.sh: don't use $ME_ or skip_ before they are defined
10990         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10991         their first uses.  Also hoist their companions: warn_, fail_,
10992         framework_failure_, $stderr_fileno.  Prompted by a patch from
10993         Stefano Lattarini.
10994
10995         test-sys_socket: avoid set-but-not-used warnings from gcc
10996         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10997         avoid warning about set-but-not-used variables.
10998
10999         test-xvasprintf: avoid 'const' discard warnings
11000         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11001         "const" when assigning from literal strings.
11002         (test_xasprintf): Add "void" in function argument list to placate
11003         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11004
11005         tests: avoid compilation warnings in argmatch and exclude tests...
11006         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11007         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11008         Since it always exits, declare with the "noreturn" attribute.
11009         * tests/test-argmatch.c: Likewise.
11010
11011         tests: avoid 'const' discard warnings in mbsstr tests
11012         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11013         * tests/test-mbsstr2.c (main): Likewise.
11014
11015         test-verify: avoid warning from gcc's -Wmissing-declarations
11016         * tests/test-verify.c (function): Declare to be static.
11017
11018         test-inttostr.c: include <string.h> for use of strcmp
11019         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11020
11021         test-linkat: avoid failed assertion on "other" architectures
11022         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11023         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11024         sparc: https://bugs.launchpad.net/bugs/591968
11025
11026 2010-06-11  Jim Meyering  <meyering@redhat.com>
11027
11028         printf.m4: avoid autoconf's "Expanded Before Required" warning
11029         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11030         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11031         autoconf warning.
11032
11033 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11034
11035         Replacement header templates are now named with ".in", not "_".
11036         * doc/gnulib-intro.texi: Correct.
11037
11038 2010-06-10  Jim Meyering  <meyering@redhat.com>
11039
11040         inttostr-tests: depend on snprintf, not snprintf-posix
11041         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11042         snprintf-posix, to avoid this aclocal failure:
11043           missing file gnulib-tests/vasnprintf.c
11044           configure.ac:45: error: expected source file, required through \
11045           AC_LIBSOURCES, not found
11046
11047 2010-06-10  Jim Meyering  <meyering@redhat.com>
11048
11049         inttostr: add a new function, inttostr, and tests
11050         The namesake function was not available.  The existence of the
11051         template file, inttostr.c makes its addition nontrivial.
11052         * lib/anytostr.c: Rename from inttostr.c.
11053         (anytostr): Rename from inttostr.
11054         * lib/inttostr.c: New file.
11055         * modules/inttostr (Files): Add anytostr.c.
11056         (Makefile.am): Set lib_SOURCES instead of ...
11057         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11058         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11059         * lib/offtostr.c: Likewise.
11060         * lib/uinttostr.c: Likewise.
11061         * lib/umaxtostr.c: Likewise.
11062         * modules/inttostr-tests: New file.
11063         * tests/test-inttostr.c: New file.  Test these functions.
11064
11065 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11066             Bruno Haible  <bruno@clisp.org>
11067
11068         Add "Extending Gnulib" chapter to manual.
11069         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11070         chapter.
11071         (Extending Gnulib): New chapter.
11072         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11073         chapter.
11074
11075 2010-06-09  Bruno Haible  <bruno@clisp.org>
11076
11077         Avoid relocwrapper link errors due to gnulib replacement functions.
11078         * lib/areadlink.c: Use the system's malloc, realloc functions.
11079         (areadlink): Set errno to ENOMEM explicitly.
11080         * modules/areadlink (Depends-on): Remove malloc-posix.
11081         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11082
11083 2010-06-09  Bruno Haible  <bruno@clisp.org>
11084
11085         Avoid relocwrapper link errors due to gnulib replacement functions.
11086         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11087         * lib/malloca.c: Likewise.
11088         * lib/relocatable.c: Likewise.
11089         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11090         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11091         * lib/setenv.c: Use the system's malloc, realloc functions.
11092         * lib/strerror.c: Use the system's sprintf function.
11093         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11094
11095 2010-06-04  Bruno Haible  <bruno@clisp.org>
11096
11097         Prefer documented low-level autoconf macro names.
11098         * m4/lib-link.m4: Use m4_translit instead of translit.
11099         * m4/environ.m4: Likewise.
11100         * m4/mathfunc.m4: Likewise.
11101         * m4/onceonly.m4: Likewise.
11102         * m4/stdint.m4: Likewise.
11103         Suggested by Eric Blake.
11104
11105 2010-06-04  Martin Lambers  <marlam@marlam.de>
11106             Bruno Haible  <bruno@clisp.org>
11107
11108         havelib: Allow library names with '+' characters.
11109         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11110         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11111
11112 2010-06-09  Bruno Haible  <bruno@clisp.org>
11113
11114         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11115         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11116         realloc failed.
11117
11118 2010-06-08  Peter Simons  <simons@cryp.to>
11119
11120         maint.mk: make the news-check rule more configurable
11121         * top/maint.mk (news-check-lines-spec) New variable.
11122         (news-check): Use "sed -n 1,10p" in place of "head".
11123
11124 2010-06-07  Jim Meyering  <meyering@redhat.com>
11125
11126         do-release-commit-and-tag: fix typo in --help
11127         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11128
11129         regex: avoid new dead-code warning with gcc-4.6.0
11130         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11131         if-block containing a while-loop.  It's been unused for at least
11132         5 years.
11133
11134 2010-06-05  Bruno Haible  <bruno@clisp.org>
11135
11136         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11137         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11138
11139 2010-06-04  Bruno Haible  <bruno@clisp.org>
11140
11141         Update to GNU gettext 0.18.1.
11142         * modules/gettext (configure.ac): Require gettext infrastructure from
11143         version 0.18.1.
11144
11145 2010-06-03  Bruno Haible  <bruno@clisp.org>
11146
11147         Don't use AC_LIBOBJ with file names in subdirectories.
11148         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11149         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11150         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11151         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11152         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11153         gl_LIBUNISTRING_LIBSOURCE.
11154         (Makefile.am): Augment lib_SOURCES here, conditionally.
11155         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11156
11157 2010-06-03  Bruno Haible  <bruno@clisp.org>
11158
11159         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11160         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11161         expansion does not end with a newline.
11162         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11163         unnecessary newline.
11164
11165 2010-06-03  Bruno Haible  <bruno@clisp.org>
11166
11167         Reduce dependencies.
11168         * tests/test-quotearg.h: New file, extracted from
11169         tests/test-quotearg.c.
11170         * tests/test-quotearg-simple.c: New file, extracted from
11171         tests/test-quotearg.c.
11172         * tests/test-quotearg.c: Don't include <ctype.h>.
11173         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11174         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11175         use_quote_double_quotes, use_quotearg_colon): Moved to
11176         tests/test-quotearg.h.
11177         (results_g, flag_results, custom_quotes, custom_results): Moved
11178         to tests/test-quotearg-simple.c.
11179         (main): Moved the part that does not depend on gettext to
11180         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11181         performed.
11182         * modules/quotearg-simple: New file.
11183         * modules/quotearg-simple-tests: New file.
11184         * modules/quotearg (Depends-on): Add quotearg-simple.
11185         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11186         (Files): Add tests/test-quotearg.h.
11187         Reported by Paolo Bonzini.
11188
11189 2010-06-03  Bruno Haible  <bruno@clisp.org>
11190
11191         Reduce dependencies.
11192         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11193
11194 2010-06-03  Bruno Haible  <bruno@clisp.org>
11195
11196         time: Undefine more broken macros.
11197         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11198         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11199         Reported by Eric Blake.
11200
11201 2010-06-03  Bruno Haible  <bruno@clisp.org>
11202
11203         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11204         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11205         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11206         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11207         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11208         Reported by Ludovic Courtès <ludo@gnu.org>.
11209
11210 2010-06-02  Eric Blake  <eblake@redhat.com>
11211
11212         time: work with mingw + pthreads-win32 library
11213         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11214         if timespec is defined only in pthread.h.
11215         * modules/time (Makefile.am): Substitute it.
11216         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11217         <pthread.h>, when needed.
11218         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11219         from the library.
11220
11221 2010-05-31  Bruno Haible  <bruno@clisp.org>
11222
11223         Avoid expanding two macros in the wrong order.
11224         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
11225         gl_LIBUNISTRING if it is defined.
11226         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
11227         autoconf >= 2.64.
11228         Reported by Ludovic Courtès <ludo@gnu.org>.
11229
11230 2010-05-27  Jim Meyering  <meyering@redhat.com>
11231
11232         maint.mk: also prohibit "#undef" of always-defined symbols
11233         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
11234         Allow more than one space before the symbol name.
11235         (sc_prohibit_always-defined_macros): Use grep's -E, now that
11236         the regexp uses alternation.
11237
11238 2010-05-26  Eric Blake  <eblake@redhat.com>
11239
11240         maint.mk: avoid echo -e
11241         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
11242         Convert all uses of echo -* to printf.
11243         Reported by Matthias Bolte.
11244
11245 2010-05-25  Bruno Haible  <bruno@clisp.org>
11246
11247         Update to GNU gettext 0.18, part 2.
11248         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
11249         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
11250
11251 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11252
11253         Add missing include in test-pwrite.c.
11254         * tests/test-pwrite.c: Include string.h, for strcmp.
11255
11256 2010-05-24  Bruno Haible  <bruno@clisp.org>
11257
11258         * NEWS: Mention requirement for Automake option 'subdir-objects'.
11259
11260 2010-05-24  Bruno Haible  <bruno@clisp.org>
11261
11262         Don't use conversion with transliteration in u{8,16,32}_strcoll.
11263         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
11264         iconveh_error argument.
11265         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
11266         U_STRCONV_TO_LOCALE.
11267         * lib/unistr/u16-strcoll.c: Likewise.
11268         * lib/unistr/u32-strcoll.c: Likewise.
11269         * modules/unistr/u8-strcoll (Depends-on): Add
11270         uniconv/u8-strconv-to-enc, localcharset. Remove
11271         uniconv/u8-strconv-to-locale.
11272         (configure.ac): Bump version number.
11273         * modules/unistr/u16-strcoll (Depends-on): Add
11274         uniconv/u16-strconv-to-enc, localcharset. Remove
11275         uniconv/u16-strconv-to-locale.
11276         (configure.ac): Bump version number.
11277         * modules/unistr/u32-strcoll (Depends-on): Add
11278         uniconv/u32-strconv-to-enc, localcharset. Remove
11279         uniconv/u32-strconv-to-locale.
11280         (configure.ac): Bump version number.
11281
11282 2010-05-24  Bruno Haible  <bruno@clisp.org>
11283
11284         Avoid a test failure on NetBSD 5.0.
11285         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
11286         an iconv() bug.
11287
11288 2010-05-24  Bruno Haible  <bruno@clisp.org>
11289
11290         Adjust #include directive style.
11291         * modules/regex (Includes): Recommend to write <regex.h>.
11292
11293 2010-05-24  Bruno Haible  <bruno@clisp.org>
11294
11295         regex: Don't require alloca.
11296         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
11297         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
11298         only inside if (0).
11299
11300 2010-05-23  Jim Meyering  <meyering@redhat.com>
11301
11302         test-renameat.c: include <sys/stat.h>
11303         * tests/test-renameat.c: Include <sys/stat.h>; required for
11304         definition of S_IS* macros.
11305
11306 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
11307
11308         Update maintainer documentation for 'relocatable-prog' module.
11309         * doc/relocatable-maint.texi: Update.
11310         Comments by Bruno Haible.
11311
11312 2010-05-23  Bruno Haible  <bruno@clisp.org>
11313
11314         git-merge-changelog: Enable --split-merged-entry by default.
11315         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
11316         (usage): Don't mention this option any more.
11317         Reported by Ralf Wildenhues.
11318
11319 2010-05-23  Jim Meyering  <meyering@redhat.com>
11320
11321         test-pwrite: do not leave behind a test file named "out"
11322         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
11323         The trivial-looking use of init.sh is really necessary.
11324         It ensures that the temporary file, "out", is created in
11325         a temporary directory, and removed upon termination.
11326         * tests/test-pwrite.sh: Re-add file.
11327         * modules/pwrite-tests: Reference it.
11328
11329 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11330
11331         Fix output redirection buglet in init.sh.
11332         * tests/init.sh: Fix redirection of stderr.
11333
11334 2010-05-20  Simon Josefsson  <simon@josefsson.org>
11335
11336         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
11337
11338 2010-05-17  Simon Josefsson  <simon@josefsson.org>
11339
11340         * modules/valgrind-tests: New file.
11341         * m4/valgrind-tests.m4: New file.
11342         * doc/valgrind-tests.texi: New file.
11343         * doc/gnulib.texi (Running self-tests under valgrind): New
11344         section.
11345
11346 2010-05-19  Bruno Haible  <bruno@clisp.org>
11347
11348         Clean up dead code in recent commit.
11349         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
11350         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
11351         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
11352         Suggested by Paolo Bonzini.
11353
11354 2010-05-19  Bruno Haible  <bruno@clisp.org>
11355
11356         Avoid valgrind error reports from libunistring.
11357         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
11358         * modules/libunistring (Files): Add it.
11359         * modules/libunistring-optional (Files): Likewise.
11360
11361 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
11362             Bruno Haible  <bruno@clisp.org>
11363
11364         New module 'libunistring-optional'.
11365         * modules/libunistring-optional: New file.
11366         * m4/libunistring-base.m4: New file.
11367         * m4/libunistring-optional.m4: New file.
11368         * lib/unicase.in.h: Renamed from lib/unicase.h.
11369         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
11370         * lib/unictype.in.h: Renamed from lib/unictype.h.
11371         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
11372         * lib/uniname.in.h: Renamed from lib/uniname.h.
11373         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
11374         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
11375         * lib/unistr.in.h: Renamed from lib/unistr.h.
11376         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
11377         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
11378         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
11379         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
11380         gl_LIBUNISTRING. If the library was found, determine the installed
11381         version and set LIBUNISTRING_VERSION.
11382         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
11383         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
11384         handle a configuration option --with-included-libunistring.
11385         * modules/libunistring (Files): Add m4/absolute-header.m4.
11386         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
11387         Add m4/libunistring-base.m4.
11388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11389         (Makefile.am): Build unicase.h from unicase.in.h.
11390         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
11391         Add m4/libunistring-base.m4.
11392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11393         (Makefile.am): Build uniconv.h from uniconv.in.h.
11394         * modules/unictype/base (Files): Use unictype.in.h instead of
11395         unictype.h. Add m4/libunistring-base.m4.
11396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11397         (Makefile.am): Build unictype.h from unictype.in.h.
11398         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
11399         Add m4/libunistring-base.m4.
11400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11401         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
11402         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
11403         Add m4/libunistring-base.m4.
11404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11405         (Makefile.am): Build uniname.h from uniname.in.h.
11406         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
11407         Add m4/libunistring-base.m4.
11408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11409         (Makefile.am): Build uninorm.h from uninorm.in.h.
11410         * modules/unistdio/base (Files): Use unistdio.in.h instead of
11411         unistdio.h. Add m4/libunistring-base.m4.
11412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11413         (Makefile.am): Build unistdio.h from unistdio.in.h.
11414         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
11415         Add m4/libunistring-base.m4.
11416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11417         (Makefile.am): Build unistr.h from unistr.in.h.
11418         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
11419         Add m4/libunistring-base.m4.
11420         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11421         (Makefile.am): Build unitypes.h from unitypes.in.h.
11422         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
11423         Add m4/libunistring-base.m4.
11424         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11425         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
11426         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
11427         uniwidth.h. Add m4/libunistring-base.m4.
11428         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11429         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
11430         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
11431         instead of augmenting lib_SOURCES.
11432         * modules/unicase/empty-suffix-context: Likewise.
11433         * modules/unicase/locale-language: Likewise.
11434         * modules/unicase/tolower: Likewise.
11435         * modules/unicase/totitle: Likewise.
11436         * modules/unicase/toupper: Likewise.
11437         * modules/unicase/u8-casecmp: Likewise.
11438         * modules/unicase/u8-casecoll: Likewise.
11439         * modules/unicase/u8-casefold: Likewise.
11440         * modules/unicase/u8-casexfrm: Likewise.
11441         * modules/unicase/u8-ct-casefold: Likewise.
11442         * modules/unicase/u8-ct-tolower: Likewise.
11443         * modules/unicase/u8-ct-totitle: Likewise.
11444         * modules/unicase/u8-ct-toupper: Likewise.
11445         * modules/unicase/u8-is-cased: Likewise.
11446         * modules/unicase/u8-is-casefolded: Likewise.
11447         * modules/unicase/u8-is-lowercase: Likewise.
11448         * modules/unicase/u8-is-titlecase: Likewise.
11449         * modules/unicase/u8-is-uppercase: Likewise.
11450         * modules/unicase/u8-prefix-context: Likewise.
11451         * modules/unicase/u8-suffix-context: Likewise.
11452         * modules/unicase/u8-tolower: Likewise.
11453         * modules/unicase/u8-totitle: Likewise.
11454         * modules/unicase/u8-toupper: Likewise.
11455         * modules/unicase/u16-casecmp: Likewise.
11456         * modules/unicase/u16-casecoll: Likewise.
11457         * modules/unicase/u16-casefold: Likewise.
11458         * modules/unicase/u16-casexfrm: Likewise.
11459         * modules/unicase/u16-ct-casefold: Likewise.
11460         * modules/unicase/u16-ct-tolower: Likewise.
11461         * modules/unicase/u16-ct-totitle: Likewise.
11462         * modules/unicase/u16-ct-toupper: Likewise.
11463         * modules/unicase/u16-is-cased: Likewise.
11464         * modules/unicase/u16-is-casefolded: Likewise.
11465         * modules/unicase/u16-is-lowercase: Likewise.
11466         * modules/unicase/u16-is-titlecase: Likewise.
11467         * modules/unicase/u16-is-uppercase: Likewise.
11468         * modules/unicase/u16-prefix-context: Likewise.
11469         * modules/unicase/u16-suffix-context: Likewise.
11470         * modules/unicase/u16-tolower: Likewise.
11471         * modules/unicase/u16-totitle: Likewise.
11472         * modules/unicase/u16-toupper: Likewise.
11473         * modules/unicase/u32-casecmp: Likewise.
11474         * modules/unicase/u32-casecoll: Likewise.
11475         * modules/unicase/u32-casefold: Likewise.
11476         * modules/unicase/u32-casexfrm: Likewise.
11477         * modules/unicase/u32-ct-casefold: Likewise.
11478         * modules/unicase/u32-ct-tolower: Likewise.
11479         * modules/unicase/u32-ct-totitle: Likewise.
11480         * modules/unicase/u32-ct-toupper: Likewise.
11481         * modules/unicase/u32-is-cased: Likewise.
11482         * modules/unicase/u32-is-casefolded: Likewise.
11483         * modules/unicase/u32-is-lowercase: Likewise.
11484         * modules/unicase/u32-is-titlecase: Likewise.
11485         * modules/unicase/u32-is-uppercase: Likewise.
11486         * modules/unicase/u32-prefix-context: Likewise.
11487         * modules/unicase/u32-suffix-context: Likewise.
11488         * modules/unicase/u32-tolower: Likewise.
11489         * modules/unicase/u32-totitle: Likewise.
11490         * modules/unicase/u32-toupper: Likewise.
11491         * modules/unicase/ulc-casecmp: Likewise.
11492         * modules/unicase/ulc-casecoll: Likewise.
11493         * modules/unicase/ulc-casexfrm: Likewise.
11494         * modules/uniconv/u8-conv-from-enc: Likewise.
11495         * modules/uniconv/u8-conv-to-enc: Likewise.
11496         * modules/uniconv/u8-strconv-from-enc: Likewise.
11497         * modules/uniconv/u8-strconv-from-locale: Likewise.
11498         * modules/uniconv/u8-strconv-to-enc: Likewise.
11499         * modules/uniconv/u8-strconv-to-locale: Likewise.
11500         * modules/uniconv/u16-conv-from-enc: Likewise.
11501         * modules/uniconv/u16-conv-to-enc: Likewise.
11502         * modules/uniconv/u16-strconv-from-enc: Likewise.
11503         * modules/uniconv/u16-strconv-from-locale: Likewise.
11504         * modules/uniconv/u16-strconv-to-enc: Likewise.
11505         * modules/uniconv/u16-strconv-to-locale: Likewise.
11506         * modules/uniconv/u32-conv-from-enc: Likewise.
11507         * modules/uniconv/u32-conv-to-enc: Likewise.
11508         * modules/uniconv/u32-strconv-from-enc: Likewise.
11509         * modules/uniconv/u32-strconv-from-locale: Likewise.
11510         * modules/uniconv/u32-strconv-to-enc: Likewise.
11511         * modules/uniconv/u32-strconv-to-locale: Likewise.
11512         * modules/unictype/bidicategory-byname: Likewise.
11513         * modules/unictype/bidicategory-name: Likewise.
11514         * modules/unictype/bidicategory-of: Likewise.
11515         * modules/unictype/bidicategory-test: Likewise.
11516         * modules/unictype/block-list: Likewise.
11517         * modules/unictype/block-test: Likewise.
11518         * modules/unictype/category-C: Likewise.
11519         * modules/unictype/category-Cc: Likewise.
11520         * modules/unictype/category-Cf: Likewise.
11521         * modules/unictype/category-Cn: Likewise.
11522         * modules/unictype/category-Co: Likewise.
11523         * modules/unictype/category-Cs: Likewise.
11524         * modules/unictype/category-L: Likewise.
11525         * modules/unictype/category-Ll: Likewise.
11526         * modules/unictype/category-Lm: Likewise.
11527         * modules/unictype/category-Lo: Likewise.
11528         * modules/unictype/category-Lt: Likewise.
11529         * modules/unictype/category-Lu: Likewise.
11530         * modules/unictype/category-M: Likewise.
11531         * modules/unictype/category-Mc: Likewise.
11532         * modules/unictype/category-Me: Likewise.
11533         * modules/unictype/category-Mn: Likewise.
11534         * modules/unictype/category-N: Likewise.
11535         * modules/unictype/category-Nd: Likewise.
11536         * modules/unictype/category-Nl: Likewise.
11537         * modules/unictype/category-No: Likewise.
11538         * modules/unictype/category-P: Likewise.
11539         * modules/unictype/category-Pc: Likewise.
11540         * modules/unictype/category-Pd: Likewise.
11541         * modules/unictype/category-Pe: Likewise.
11542         * modules/unictype/category-Pf: Likewise.
11543         * modules/unictype/category-Pi: Likewise.
11544         * modules/unictype/category-Po: Likewise.
11545         * modules/unictype/category-Ps: Likewise.
11546         * modules/unictype/category-S: Likewise.
11547         * modules/unictype/category-Sc: Likewise.
11548         * modules/unictype/category-Sk: Likewise.
11549         * modules/unictype/category-Sm: Likewise.
11550         * modules/unictype/category-So: Likewise.
11551         * modules/unictype/category-Z: Likewise.
11552         * modules/unictype/category-Zl: Likewise.
11553         * modules/unictype/category-Zp: Likewise.
11554         * modules/unictype/category-Zs: Likewise.
11555         * modules/unictype/category-and: Likewise.
11556         * modules/unictype/category-and-not: Likewise.
11557         * modules/unictype/category-byname: Likewise.
11558         * modules/unictype/category-name: Likewise.
11559         * modules/unictype/category-none: Likewise.
11560         * modules/unictype/category-of: Likewise.
11561         * modules/unictype/category-or: Likewise.
11562         * modules/unictype/category-test: Likewise.
11563         * modules/unictype/combining-class: Likewise.
11564         * modules/unictype/ctype-alnum: Likewise.
11565         * modules/unictype/ctype-alpha: Likewise.
11566         * modules/unictype/ctype-blank: Likewise.
11567         * modules/unictype/ctype-cntrl: Likewise.
11568         * modules/unictype/ctype-digit: Likewise.
11569         * modules/unictype/ctype-graph: Likewise.
11570         * modules/unictype/ctype-lower: Likewise.
11571         * modules/unictype/ctype-print: Likewise.
11572         * modules/unictype/ctype-punct: Likewise.
11573         * modules/unictype/ctype-space: Likewise.
11574         * modules/unictype/ctype-upper: Likewise.
11575         * modules/unictype/ctype-xdigit: Likewise.
11576         * modules/unictype/decimal-digit: Likewise.
11577         * modules/unictype/digit: Likewise.
11578         * modules/unictype/mirror: Likewise.
11579         * modules/unictype/numeric: Likewise.
11580         * modules/unictype/property-alphabetic: Likewise.
11581         * modules/unictype/property-ascii-hex-digit: Likewise.
11582         * modules/unictype/property-bidi-arabic-digit: Likewise.
11583         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11584         * modules/unictype/property-bidi-block-separator: Likewise.
11585         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11586         * modules/unictype/property-bidi-common-separator: Likewise.
11587         * modules/unictype/property-bidi-control: Likewise.
11588         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11589         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11590         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11591         * modules/unictype/property-bidi-european-digit: Likewise.
11592         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11593         * modules/unictype/property-bidi-left-to-right: Likewise.
11594         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11595         * modules/unictype/property-bidi-other-neutral: Likewise.
11596         * modules/unictype/property-bidi-pdf: Likewise.
11597         * modules/unictype/property-bidi-segment-separator: Likewise.
11598         * modules/unictype/property-bidi-whitespace: Likewise.
11599         * modules/unictype/property-byname: Likewise.
11600         * modules/unictype/property-combining: Likewise.
11601         * modules/unictype/property-composite: Likewise.
11602         * modules/unictype/property-currency-symbol: Likewise.
11603         * modules/unictype/property-dash: Likewise.
11604         * modules/unictype/property-decimal-digit: Likewise.
11605         * modules/unictype/property-default-ignorable-code-point: Likewise.
11606         * modules/unictype/property-deprecated: Likewise.
11607         * modules/unictype/property-diacritic: Likewise.
11608         * modules/unictype/property-extender: Likewise.
11609         * modules/unictype/property-format-control: Likewise.
11610         * modules/unictype/property-grapheme-base: Likewise.
11611         * modules/unictype/property-grapheme-extend: Likewise.
11612         * modules/unictype/property-grapheme-link: Likewise.
11613         * modules/unictype/property-hex-digit: Likewise.
11614         * modules/unictype/property-hyphen: Likewise.
11615         * modules/unictype/property-id-continue: Likewise.
11616         * modules/unictype/property-id-start: Likewise.
11617         * modules/unictype/property-ideographic: Likewise.
11618         * modules/unictype/property-ids-binary-operator: Likewise.
11619         * modules/unictype/property-ids-trinary-operator: Likewise.
11620         * modules/unictype/property-ignorable-control: Likewise.
11621         * modules/unictype/property-iso-control: Likewise.
11622         * modules/unictype/property-join-control: Likewise.
11623         * modules/unictype/property-left-of-pair: Likewise.
11624         * modules/unictype/property-line-separator: Likewise.
11625         * modules/unictype/property-logical-order-exception: Likewise.
11626         * modules/unictype/property-lowercase: Likewise.
11627         * modules/unictype/property-math: Likewise.
11628         * modules/unictype/property-non-break: Likewise.
11629         * modules/unictype/property-not-a-character: Likewise.
11630         * modules/unictype/property-numeric: Likewise.
11631         * modules/unictype/property-other-alphabetic: Likewise.
11632         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11633         * modules/unictype/property-other-grapheme-extend: Likewise.
11634         * modules/unictype/property-other-id-continue: Likewise.
11635         * modules/unictype/property-other-id-start: Likewise.
11636         * modules/unictype/property-other-lowercase: Likewise.
11637         * modules/unictype/property-other-math: Likewise.
11638         * modules/unictype/property-other-uppercase: Likewise.
11639         * modules/unictype/property-paired-punctuation: Likewise.
11640         * modules/unictype/property-paragraph-separator: Likewise.
11641         * modules/unictype/property-pattern-syntax: Likewise.
11642         * modules/unictype/property-pattern-white-space: Likewise.
11643         * modules/unictype/property-private-use: Likewise.
11644         * modules/unictype/property-punctuation: Likewise.
11645         * modules/unictype/property-quotation-mark: Likewise.
11646         * modules/unictype/property-radical: Likewise.
11647         * modules/unictype/property-sentence-terminal: Likewise.
11648         * modules/unictype/property-soft-dotted: Likewise.
11649         * modules/unictype/property-space: Likewise.
11650         * modules/unictype/property-terminal-punctuation: Likewise.
11651         * modules/unictype/property-test: Likewise.
11652         * modules/unictype/property-titlecase: Likewise.
11653         * modules/unictype/property-unassigned-code-value: Likewise.
11654         * modules/unictype/property-unified-ideograph: Likewise.
11655         * modules/unictype/property-uppercase: Likewise.
11656         * modules/unictype/property-variation-selector: Likewise.
11657         * modules/unictype/property-white-space: Likewise.
11658         * modules/unictype/property-xid-continue: Likewise.
11659         * modules/unictype/property-xid-start: Likewise.
11660         * modules/unictype/property-zero-width: Likewise.
11661         * modules/unictype/scripts: Likewise.
11662         * modules/unictype/syntax-c-ident: Likewise.
11663         * modules/unictype/syntax-c-whitespace: Likewise.
11664         * modules/unictype/syntax-java-ident: Likewise.
11665         * modules/unictype/syntax-java-whitespace: Likewise.
11666         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11667         * modules/unilbrk/u8-width-linebreaks: Likewise.
11668         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11669         * modules/unilbrk/u16-width-linebreaks: Likewise.
11670         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11671         * modules/unilbrk/u32-width-linebreaks: Likewise.
11672         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11673         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11674         * modules/uniname/uniname: Likewise.
11675         * modules/uninorm/canonical-decomposition: Likewise.
11676         * modules/uninorm/composition: Likewise.
11677         * modules/uninorm/decomposing-form: Likewise.
11678         * modules/uninorm/decomposition: Likewise.
11679         * modules/uninorm/filter: Likewise.
11680         * modules/uninorm/nfc: Likewise.
11681         * modules/uninorm/nfd: Likewise.
11682         * modules/uninorm/nfkc: Likewise.
11683         * modules/uninorm/nfkd: Likewise.
11684         * modules/uninorm/u8-normalize: Likewise.
11685         * modules/uninorm/u8-normcmp: Likewise.
11686         * modules/uninorm/u8-normcoll: Likewise.
11687         * modules/uninorm/u8-normxfrm: Likewise.
11688         * modules/uninorm/u16-normalize: Likewise.
11689         * modules/uninorm/u16-normcmp: Likewise.
11690         * modules/uninorm/u16-normcoll: Likewise.
11691         * modules/uninorm/u16-normxfrm: Likewise.
11692         * modules/uninorm/u32-normalize: Likewise.
11693         * modules/uninorm/u32-normcmp: Likewise.
11694         * modules/uninorm/u32-normcoll: Likewise.
11695         * modules/uninorm/u32-normxfrm: Likewise.
11696         * modules/unistdio/u8-asnprintf: Likewise.
11697         * modules/unistdio/u8-asprintf: Likewise.
11698         * modules/unistdio/u8-snprintf: Likewise.
11699         * modules/unistdio/u8-sprintf: Likewise.
11700         * modules/unistdio/u8-u8-asnprintf: Likewise.
11701         * modules/unistdio/u8-u8-asprintf: Likewise.
11702         * modules/unistdio/u8-u8-snprintf: Likewise.
11703         * modules/unistdio/u8-u8-sprintf: Likewise.
11704         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11705         * modules/unistdio/u8-u8-vasprintf: Likewise.
11706         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11707         * modules/unistdio/u8-u8-vsprintf: Likewise.
11708         * modules/unistdio/u8-vasnprintf: Likewise.
11709         * modules/unistdio/u8-vasprintf: Likewise.
11710         * modules/unistdio/u8-vsnprintf: Likewise.
11711         * modules/unistdio/u8-vsprintf: Likewise.
11712         * modules/unistdio/u16-asnprintf: Likewise.
11713         * modules/unistdio/u16-asprintf: Likewise.
11714         * modules/unistdio/u16-snprintf: Likewise.
11715         * modules/unistdio/u16-sprintf: Likewise.
11716         * modules/unistdio/u16-u16-asnprintf: Likewise.
11717         * modules/unistdio/u16-u16-asprintf: Likewise.
11718         * modules/unistdio/u16-u16-snprintf: Likewise.
11719         * modules/unistdio/u16-u16-sprintf: Likewise.
11720         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11721         * modules/unistdio/u16-u16-vasprintf: Likewise.
11722         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11723         * modules/unistdio/u16-u16-vsprintf: Likewise.
11724         * modules/unistdio/u16-vasnprintf: Likewise.
11725         * modules/unistdio/u16-vasprintf: Likewise.
11726         * modules/unistdio/u16-vsnprintf: Likewise.
11727         * modules/unistdio/u16-vsprintf: Likewise.
11728         * modules/unistdio/u32-asnprintf: Likewise.
11729         * modules/unistdio/u32-asprintf: Likewise.
11730         * modules/unistdio/u32-snprintf: Likewise.
11731         * modules/unistdio/u32-sprintf: Likewise.
11732         * modules/unistdio/u32-u32-asnprintf: Likewise.
11733         * modules/unistdio/u32-u32-asprintf: Likewise.
11734         * modules/unistdio/u32-u32-snprintf: Likewise.
11735         * modules/unistdio/u32-u32-sprintf: Likewise.
11736         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11737         * modules/unistdio/u32-u32-vasprintf: Likewise.
11738         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11739         * modules/unistdio/u32-u32-vsprintf: Likewise.
11740         * modules/unistdio/u32-vasnprintf: Likewise.
11741         * modules/unistdio/u32-vasprintf: Likewise.
11742         * modules/unistdio/u32-vsnprintf: Likewise.
11743         * modules/unistdio/u32-vsprintf: Likewise.
11744         * modules/unistdio/ulc-asnprintf: Likewise.
11745         * modules/unistdio/ulc-asprintf: Likewise.
11746         * modules/unistdio/ulc-fprintf: Likewise.
11747         * modules/unistdio/ulc-snprintf: Likewise.
11748         * modules/unistdio/ulc-sprintf: Likewise.
11749         * modules/unistdio/ulc-vasnprintf: Likewise.
11750         * modules/unistdio/ulc-vasprintf: Likewise.
11751         * modules/unistdio/ulc-vfprintf: Likewise.
11752         * modules/unistdio/ulc-vsnprintf: Likewise.
11753         * modules/unistdio/ulc-vsprintf: Likewise.
11754         * modules/unistr/u8-check: Likewise.
11755         * modules/unistr/u8-chr: Likewise.
11756         * modules/unistr/u8-cmp: Likewise.
11757         * modules/unistr/u8-cmp2: Likewise.
11758         * modules/unistr/u8-cpy: Likewise.
11759         * modules/unistr/u8-cpy-alloc: Likewise.
11760         * modules/unistr/u8-endswith: Likewise.
11761         * modules/unistr/u8-mblen: Likewise.
11762         * modules/unistr/u8-mbsnlen: Likewise.
11763         * modules/unistr/u8-mbtouc: Likewise.
11764         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11765         * modules/unistr/u8-mbtoucr: Likewise.
11766         * modules/unistr/u8-move: Likewise.
11767         * modules/unistr/u8-next: Likewise.
11768         * modules/unistr/u8-prev: Likewise.
11769         * modules/unistr/u8-set: Likewise.
11770         * modules/unistr/u8-startswith: Likewise.
11771         * modules/unistr/u8-stpcpy: Likewise.
11772         * modules/unistr/u8-stpncpy: Likewise.
11773         * modules/unistr/u8-strcat: Likewise.
11774         * modules/unistr/u8-strchr: Likewise.
11775         * modules/unistr/u8-strcmp: Likewise.
11776         * modules/unistr/u8-strcoll: Likewise.
11777         * modules/unistr/u8-strcpy: Likewise.
11778         * modules/unistr/u8-strcspn: Likewise.
11779         * modules/unistr/u8-strdup: Likewise.
11780         * modules/unistr/u8-strlen: Likewise.
11781         * modules/unistr/u8-strmblen: Likewise.
11782         * modules/unistr/u8-strmbtouc: Likewise.
11783         * modules/unistr/u8-strncat: Likewise.
11784         * modules/unistr/u8-strncmp: Likewise.
11785         * modules/unistr/u8-strncpy: Likewise.
11786         * modules/unistr/u8-strnlen: Likewise.
11787         * modules/unistr/u8-strpbrk: Likewise.
11788         * modules/unistr/u8-strrchr: Likewise.
11789         * modules/unistr/u8-strspn: Likewise.
11790         * modules/unistr/u8-strstr: Likewise.
11791         * modules/unistr/u8-strtok: Likewise.
11792         * modules/unistr/u8-to-u16: Likewise.
11793         * modules/unistr/u8-to-u32: Likewise.
11794         * modules/unistr/u8-uctomb: Likewise.
11795         * modules/unistr/u16-check: Likewise.
11796         * modules/unistr/u16-chr: Likewise.
11797         * modules/unistr/u16-cmp: Likewise.
11798         * modules/unistr/u16-cmp2: Likewise.
11799         * modules/unistr/u16-cpy: Likewise.
11800         * modules/unistr/u16-cpy-alloc: Likewise.
11801         * modules/unistr/u16-endswith: Likewise.
11802         * modules/unistr/u16-mblen: Likewise.
11803         * modules/unistr/u16-mbsnlen: Likewise.
11804         * modules/unistr/u16-mbtouc: Likewise.
11805         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11806         * modules/unistr/u16-mbtoucr: Likewise.
11807         * modules/unistr/u16-move: Likewise.
11808         * modules/unistr/u16-next: Likewise.
11809         * modules/unistr/u16-prev: Likewise.
11810         * modules/unistr/u16-set: Likewise.
11811         * modules/unistr/u16-startswith: Likewise.
11812         * modules/unistr/u16-stpcpy: Likewise.
11813         * modules/unistr/u16-stpncpy: Likewise.
11814         * modules/unistr/u16-strcat: Likewise.
11815         * modules/unistr/u16-strchr: Likewise.
11816         * modules/unistr/u16-strcmp: Likewise.
11817         * modules/unistr/u16-strcoll: Likewise.
11818         * modules/unistr/u16-strcpy: Likewise.
11819         * modules/unistr/u16-strcspn: Likewise.
11820         * modules/unistr/u16-strdup: Likewise.
11821         * modules/unistr/u16-strlen: Likewise.
11822         * modules/unistr/u16-strmblen: Likewise.
11823         * modules/unistr/u16-strmbtouc: Likewise.
11824         * modules/unistr/u16-strncat: Likewise.
11825         * modules/unistr/u16-strncmp: Likewise.
11826         * modules/unistr/u16-strncpy: Likewise.
11827         * modules/unistr/u16-strnlen: Likewise.
11828         * modules/unistr/u16-strpbrk: Likewise.
11829         * modules/unistr/u16-strrchr: Likewise.
11830         * modules/unistr/u16-strspn: Likewise.
11831         * modules/unistr/u16-strstr: Likewise.
11832         * modules/unistr/u16-strtok: Likewise.
11833         * modules/unistr/u16-to-u32: Likewise.
11834         * modules/unistr/u16-to-u8: Likewise.
11835         * modules/unistr/u16-uctomb: Likewise.
11836         * modules/unistr/u32-check: Likewise.
11837         * modules/unistr/u32-chr: Likewise.
11838         * modules/unistr/u32-cmp: Likewise.
11839         * modules/unistr/u32-cmp2: Likewise.
11840         * modules/unistr/u32-cpy: Likewise.
11841         * modules/unistr/u32-cpy-alloc: Likewise.
11842         * modules/unistr/u32-endswith: Likewise.
11843         * modules/unistr/u32-mblen: Likewise.
11844         * modules/unistr/u32-mbsnlen: Likewise.
11845         * modules/unistr/u32-mbtouc: Likewise.
11846         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11847         * modules/unistr/u32-mbtoucr: Likewise.
11848         * modules/unistr/u32-move: Likewise.
11849         * modules/unistr/u32-next: Likewise.
11850         * modules/unistr/u32-prev: Likewise.
11851         * modules/unistr/u32-set: Likewise.
11852         * modules/unistr/u32-startswith: Likewise.
11853         * modules/unistr/u32-stpcpy: Likewise.
11854         * modules/unistr/u32-stpncpy: Likewise.
11855         * modules/unistr/u32-strcat: Likewise.
11856         * modules/unistr/u32-strchr: Likewise.
11857         * modules/unistr/u32-strcmp: Likewise.
11858         * modules/unistr/u32-strcoll: Likewise.
11859         * modules/unistr/u32-strcpy: Likewise.
11860         * modules/unistr/u32-strcspn: Likewise.
11861         * modules/unistr/u32-strdup: Likewise.
11862         * modules/unistr/u32-strlen: Likewise.
11863         * modules/unistr/u32-strmblen: Likewise.
11864         * modules/unistr/u32-strmbtouc: Likewise.
11865         * modules/unistr/u32-strncat: Likewise.
11866         * modules/unistr/u32-strncmp: Likewise.
11867         * modules/unistr/u32-strncpy: Likewise.
11868         * modules/unistr/u32-strnlen: Likewise.
11869         * modules/unistr/u32-strpbrk: Likewise.
11870         * modules/unistr/u32-strrchr: Likewise.
11871         * modules/unistr/u32-strspn: Likewise.
11872         * modules/unistr/u32-strstr: Likewise.
11873         * modules/unistr/u32-strtok: Likewise.
11874         * modules/unistr/u32-to-u16: Likewise.
11875         * modules/unistr/u32-to-u8: Likewise.
11876         * modules/unistr/u32-uctomb: Likewise.
11877         * modules/uniwbrk/u8-wordbreaks: Likewise.
11878         * modules/uniwbrk/u16-wordbreaks: Likewise.
11879         * modules/uniwbrk/u32-wordbreaks: Likewise.
11880         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11881         * modules/uniwbrk/wordbreak-property: Likewise.
11882         * modules/uniwidth/u8-strwidth: Likewise.
11883         * modules/uniwidth/u8-width: Likewise.
11884         * modules/uniwidth/u16-strwidth: Likewise.
11885         * modules/uniwidth/u16-width: Likewise.
11886         * modules/uniwidth/u32-strwidth: Likewise.
11887         * modules/uniwidth/u32-width: Likewise.
11888         * modules/uniwidth/width: Likewise.
11889         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11890         with $(LIBUNISTRING).
11891         * modules/unicase/ignorable-tests: Likewise.
11892         * modules/unicase/locale-language-tests: Likewise.
11893         * modules/unicase/tolower-tests: Likewise.
11894         * modules/unicase/totitle-tests: Likewise.
11895         * modules/unicase/toupper-tests: Likewise.
11896         * modules/unicase/u8-casecmp-tests: Likewise.
11897         * modules/unicase/u8-casecoll-tests: Likewise.
11898         * modules/unicase/u8-casefold-tests: Likewise.
11899         * modules/unicase/u8-is-cased-tests: Likewise.
11900         * modules/unicase/u8-is-casefolded-tests: Likewise.
11901         * modules/unicase/u8-is-lowercase-tests: Likewise.
11902         * modules/unicase/u8-is-titlecase-tests: Likewise.
11903         * modules/unicase/u8-is-uppercase-tests: Likewise.
11904         * modules/unicase/u8-tolower-tests: Likewise.
11905         * modules/unicase/u8-totitle-tests: Likewise.
11906         * modules/unicase/u8-toupper-tests: Likewise.
11907         * modules/unicase/u16-casecmp-tests: Likewise.
11908         * modules/unicase/u16-casecoll-tests: Likewise.
11909         * modules/unicase/u16-casefold-tests: Likewise.
11910         * modules/unicase/u16-is-cased-tests: Likewise.
11911         * modules/unicase/u16-is-casefolded-tests: Likewise.
11912         * modules/unicase/u16-is-lowercase-tests: Likewise.
11913         * modules/unicase/u16-is-titlecase-tests: Likewise.
11914         * modules/unicase/u16-is-uppercase-tests: Likewise.
11915         * modules/unicase/u16-tolower-tests: Likewise.
11916         * modules/unicase/u16-totitle-tests: Likewise.
11917         * modules/unicase/u16-toupper-tests: Likewise.
11918         * modules/unicase/u32-casecmp-tests: Likewise.
11919         * modules/unicase/u32-casecoll-tests: Likewise.
11920         * modules/unicase/u32-casefold-tests: Likewise.
11921         * modules/unicase/u32-is-cased-tests: Likewise.
11922         * modules/unicase/u32-is-casefolded-tests: Likewise.
11923         * modules/unicase/u32-is-lowercase-tests: Likewise.
11924         * modules/unicase/u32-is-titlecase-tests: Likewise.
11925         * modules/unicase/u32-is-uppercase-tests: Likewise.
11926         * modules/unicase/u32-tolower-tests: Likewise.
11927         * modules/unicase/u32-totitle-tests: Likewise.
11928         * modules/unicase/u32-toupper-tests: Likewise.
11929         * modules/unicase/ulc-casecmp-tests: Likewise.
11930         * modules/unicase/ulc-casecoll-tests: Likewise.
11931         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11932         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11933         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
11934         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
11935         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
11936         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11937         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11938         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11939         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11940         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11941         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11942         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11943         * modules/unictype/bidicategory-byname-tests: Likewise.
11944         * modules/unictype/bidicategory-name-tests: Likewise.
11945         * modules/unictype/bidicategory-of-tests: Likewise.
11946         * modules/unictype/bidicategory-test-tests: Likewise.
11947         * modules/unictype/block-list-tests: Likewise.
11948         * modules/unictype/block-of-tests: Likewise.
11949         * modules/unictype/block-test-tests: Likewise.
11950         * modules/unictype/category-C-tests: Likewise.
11951         * modules/unictype/category-Cc-tests: Likewise.
11952         * modules/unictype/category-Cf-tests: Likewise.
11953         * modules/unictype/category-Cn-tests: Likewise.
11954         * modules/unictype/category-Co-tests: Likewise.
11955         * modules/unictype/category-Cs-tests: Likewise.
11956         * modules/unictype/category-L-tests: Likewise.
11957         * modules/unictype/category-Ll-tests: Likewise.
11958         * modules/unictype/category-Lm-tests: Likewise.
11959         * modules/unictype/category-Lo-tests: Likewise.
11960         * modules/unictype/category-Lt-tests: Likewise.
11961         * modules/unictype/category-Lu-tests: Likewise.
11962         * modules/unictype/category-M-tests: Likewise.
11963         * modules/unictype/category-Mc-tests: Likewise.
11964         * modules/unictype/category-Me-tests: Likewise.
11965         * modules/unictype/category-Mn-tests: Likewise.
11966         * modules/unictype/category-N-tests: Likewise.
11967         * modules/unictype/category-Nd-tests: Likewise.
11968         * modules/unictype/category-Nl-tests: Likewise.
11969         * modules/unictype/category-No-tests: Likewise.
11970         * modules/unictype/category-P-tests: Likewise.
11971         * modules/unictype/category-Pc-tests: Likewise.
11972         * modules/unictype/category-Pd-tests: Likewise.
11973         * modules/unictype/category-Pe-tests: Likewise.
11974         * modules/unictype/category-Pf-tests: Likewise.
11975         * modules/unictype/category-Pi-tests: Likewise.
11976         * modules/unictype/category-Po-tests: Likewise.
11977         * modules/unictype/category-Ps-tests: Likewise.
11978         * modules/unictype/category-S-tests: Likewise.
11979         * modules/unictype/category-Sc-tests: Likewise.
11980         * modules/unictype/category-Sk-tests: Likewise.
11981         * modules/unictype/category-Sm-tests: Likewise.
11982         * modules/unictype/category-So-tests: Likewise.
11983         * modules/unictype/category-Z-tests: Likewise.
11984         * modules/unictype/category-Zl-tests: Likewise.
11985         * modules/unictype/category-Zp-tests: Likewise.
11986         * modules/unictype/category-Zs-tests: Likewise.
11987         * modules/unictype/category-and-not-tests: Likewise.
11988         * modules/unictype/category-and-tests: Likewise.
11989         * modules/unictype/category-byname-tests: Likewise.
11990         * modules/unictype/category-name-tests: Likewise.
11991         * modules/unictype/category-none-tests: Likewise.
11992         * modules/unictype/category-of-tests: Likewise.
11993         * modules/unictype/category-or-tests: Likewise.
11994         * modules/unictype/category-test-withtable-tests: Likewise.
11995         * modules/unictype/combining-class-tests: Likewise.
11996         * modules/unictype/ctype-alnum-tests: Likewise.
11997         * modules/unictype/ctype-alpha-tests: Likewise.
11998         * modules/unictype/ctype-blank-tests: Likewise.
11999         * modules/unictype/ctype-cntrl-tests: Likewise.
12000         * modules/unictype/ctype-digit-tests: Likewise.
12001         * modules/unictype/ctype-graph-tests: Likewise.
12002         * modules/unictype/ctype-lower-tests: Likewise.
12003         * modules/unictype/ctype-print-tests: Likewise.
12004         * modules/unictype/ctype-punct-tests: Likewise.
12005         * modules/unictype/ctype-space-tests: Likewise.
12006         * modules/unictype/ctype-upper-tests: Likewise.
12007         * modules/unictype/ctype-xdigit-tests: Likewise.
12008         * modules/unictype/decimal-digit-tests: Likewise.
12009         * modules/unictype/digit-tests: Likewise.
12010         * modules/unictype/mirror-tests: Likewise.
12011         * modules/unictype/numeric-tests: Likewise.
12012         * modules/unictype/property-alphabetic-tests: Likewise.
12013         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12014         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12015         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12016         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12017         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12018         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12019         * modules/unictype/property-bidi-control-tests: Likewise.
12020         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12021         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12022         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12023         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12024         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12025         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12026         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12027         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12028         * modules/unictype/property-bidi-pdf-tests: Likewise.
12029         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12030         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12031         * modules/unictype/property-byname-tests: Likewise.
12032         * modules/unictype/property-combining-tests: Likewise.
12033         * modules/unictype/property-composite-tests: Likewise.
12034         * modules/unictype/property-currency-symbol-tests: Likewise.
12035         * modules/unictype/property-dash-tests: Likewise.
12036         * modules/unictype/property-decimal-digit-tests: Likewise.
12037         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12038         * modules/unictype/property-deprecated-tests: Likewise.
12039         * modules/unictype/property-diacritic-tests: Likewise.
12040         * modules/unictype/property-extender-tests: Likewise.
12041         * modules/unictype/property-format-control-tests: Likewise.
12042         * modules/unictype/property-grapheme-base-tests: Likewise.
12043         * modules/unictype/property-grapheme-extend-tests: Likewise.
12044         * modules/unictype/property-grapheme-link-tests: Likewise.
12045         * modules/unictype/property-hex-digit-tests: Likewise.
12046         * modules/unictype/property-hyphen-tests: Likewise.
12047         * modules/unictype/property-id-continue-tests: Likewise.
12048         * modules/unictype/property-id-start-tests: Likewise.
12049         * modules/unictype/property-ideographic-tests: Likewise.
12050         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12051         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12052         * modules/unictype/property-ignorable-control-tests: Likewise.
12053         * modules/unictype/property-iso-control-tests: Likewise.
12054         * modules/unictype/property-join-control-tests: Likewise.
12055         * modules/unictype/property-left-of-pair-tests: Likewise.
12056         * modules/unictype/property-line-separator-tests: Likewise.
12057         * modules/unictype/property-logical-order-exception-tests: Likewise.
12058         * modules/unictype/property-lowercase-tests: Likewise.
12059         * modules/unictype/property-math-tests: Likewise.
12060         * modules/unictype/property-non-break-tests: Likewise.
12061         * modules/unictype/property-not-a-character-tests: Likewise.
12062         * modules/unictype/property-numeric-tests: Likewise.
12063         * modules/unictype/property-other-alphabetic-tests: Likewise.
12064         * modules/unictype/property-other-default-ignorable-code-point-tests:
12065         Likewise.
12066         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12067         * modules/unictype/property-other-id-continue-tests: Likewise.
12068         * modules/unictype/property-other-id-start-tests: Likewise.
12069         * modules/unictype/property-other-lowercase-tests: Likewise.
12070         * modules/unictype/property-other-math-tests: Likewise.
12071         * modules/unictype/property-other-uppercase-tests: Likewise.
12072         * modules/unictype/property-paired-punctuation-tests: Likewise.
12073         * modules/unictype/property-paragraph-separator-tests: Likewise.
12074         * modules/unictype/property-pattern-syntax-tests: Likewise.
12075         * modules/unictype/property-pattern-white-space-tests: Likewise.
12076         * modules/unictype/property-private-use-tests: Likewise.
12077         * modules/unictype/property-punctuation-tests: Likewise.
12078         * modules/unictype/property-quotation-mark-tests: Likewise.
12079         * modules/unictype/property-radical-tests: Likewise.
12080         * modules/unictype/property-sentence-terminal-tests: Likewise.
12081         * modules/unictype/property-soft-dotted-tests: Likewise.
12082         * modules/unictype/property-space-tests: Likewise.
12083         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12084         * modules/unictype/property-test-tests: Likewise.
12085         * modules/unictype/property-titlecase-tests: Likewise.
12086         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12087         * modules/unictype/property-unified-ideograph-tests: Likewise.
12088         * modules/unictype/property-uppercase-tests: Likewise.
12089         * modules/unictype/property-variation-selector-tests: Likewise.
12090         * modules/unictype/property-white-space-tests: Likewise.
12091         * modules/unictype/property-xid-continue-tests: Likewise.
12092         * modules/unictype/property-xid-start-tests: Likewise.
12093         * modules/unictype/property-zero-width-tests: Likewise.
12094         * modules/unictype/scripts-tests: Likewise.
12095         * modules/unictype/syntax-c-ident-tests: Likewise.
12096         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12097         * modules/unictype/syntax-java-ident-tests: Likewise.
12098         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12099         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12100         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12101         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12102         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12103         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12104         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12105         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12106         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12107         * modules/uniname/uniname-tests: Likewise.
12108         * modules/uninorm/canonical-decomposition-tests: Likewise.
12109         * modules/uninorm/compat-decomposition-tests: Likewise.
12110         * modules/uninorm/composition-tests: Likewise.
12111         * modules/uninorm/decomposing-form-tests: Likewise.
12112         * modules/uninorm/decomposition-tests: Likewise.
12113         * modules/uninorm/filter-tests: Likewise.
12114         * modules/uninorm/nfc-tests: Likewise.
12115         * modules/uninorm/nfd-tests: Likewise.
12116         * modules/uninorm/nfkc-tests: Likewise.
12117         * modules/uninorm/nfkd-tests: Likewise.
12118         * modules/uninorm/u8-normcmp-tests: Likewise.
12119         * modules/uninorm/u8-normcoll-tests: Likewise.
12120         * modules/uninorm/u16-normcmp-tests: Likewise.
12121         * modules/uninorm/u16-normcoll-tests: Likewise.
12122         * modules/uninorm/u32-normcmp-tests: Likewise.
12123         * modules/uninorm/u32-normcoll-tests: Likewise.
12124         * modules/unistdio/u8-asnprintf-tests: Likewise.
12125         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12126         * modules/unistdio/u8-vasprintf-tests: Likewise.
12127         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12128         * modules/unistdio/u8-vsprintf-tests: Likewise.
12129         * modules/unistdio/u16-asnprintf-tests: Likewise.
12130         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12131         * modules/unistdio/u16-vasprintf-tests: Likewise.
12132         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12133         * modules/unistdio/u16-vsprintf-tests: Likewise.
12134         * modules/unistdio/u32-asnprintf-tests: Likewise.
12135         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12136         * modules/unistdio/u32-vasprintf-tests: Likewise.
12137         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12138         * modules/unistdio/u32-vsprintf-tests: Likewise.
12139         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12140         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12141         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12142         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12143         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12144         * modules/unistr/u8-check-tests: Likewise.
12145         * modules/unistr/u8-chr-tests: Likewise.
12146         * modules/unistr/u8-cmp-tests: Likewise.
12147         * modules/unistr/u8-cmp2-tests: Likewise.
12148         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12149         * modules/unistr/u8-cpy-tests: Likewise.
12150         * modules/unistr/u8-mblen-tests: Likewise.
12151         * modules/unistr/u8-mbsnlen-tests: Likewise.
12152         * modules/unistr/u8-mbtouc-tests: Likewise.
12153         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12154         * modules/unistr/u8-mbtoucr-tests: Likewise.
12155         * modules/unistr/u8-move-tests: Likewise.
12156         * modules/unistr/u8-next-tests: Likewise.
12157         * modules/unistr/u8-prev-tests: Likewise.
12158         * modules/unistr/u8-set-tests: Likewise.
12159         * modules/unistr/u8-stpcpy-tests: Likewise.
12160         * modules/unistr/u8-stpncpy-tests: Likewise.
12161         * modules/unistr/u8-strcat-tests: Likewise.
12162         * modules/unistr/u8-strcmp-tests: Likewise.
12163         * modules/unistr/u8-strcoll-tests: Likewise.
12164         * modules/unistr/u8-strcpy-tests: Likewise.
12165         * modules/unistr/u8-strdup-tests: Likewise.
12166         * modules/unistr/u8-strlen-tests: Likewise.
12167         * modules/unistr/u8-strmblen-tests: Likewise.
12168         * modules/unistr/u8-strmbtouc-tests: Likewise.
12169         * modules/unistr/u8-strncat-tests: Likewise.
12170         * modules/unistr/u8-strncmp-tests: Likewise.
12171         * modules/unistr/u8-strncpy-tests: Likewise.
12172         * modules/unistr/u8-strnlen-tests: Likewise.
12173         * modules/unistr/u8-to-u16-tests: Likewise.
12174         * modules/unistr/u8-to-u32-tests: Likewise.
12175         * modules/unistr/u8-uctomb-tests: Likewise.
12176         * modules/unistr/u16-check-tests: Likewise.
12177         * modules/unistr/u16-chr-tests: Likewise.
12178         * modules/unistr/u16-cmp-tests: Likewise.
12179         * modules/unistr/u16-cmp2-tests: Likewise.
12180         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12181         * modules/unistr/u16-cpy-tests: Likewise.
12182         * modules/unistr/u16-mblen-tests: Likewise.
12183         * modules/unistr/u16-mbsnlen-tests: Likewise.
12184         * modules/unistr/u16-mbtouc-tests: Likewise.
12185         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12186         * modules/unistr/u16-mbtoucr-tests: Likewise.
12187         * modules/unistr/u16-move-tests: Likewise.
12188         * modules/unistr/u16-next-tests: Likewise.
12189         * modules/unistr/u16-prev-tests: Likewise.
12190         * modules/unistr/u16-set-tests: Likewise.
12191         * modules/unistr/u16-stpcpy-tests: Likewise.
12192         * modules/unistr/u16-stpncpy-tests: Likewise.
12193         * modules/unistr/u16-strcat-tests: Likewise.
12194         * modules/unistr/u16-strcmp-tests: Likewise.
12195         * modules/unistr/u16-strcoll-tests: Likewise.
12196         * modules/unistr/u16-strcpy-tests: Likewise.
12197         * modules/unistr/u16-strdup-tests: Likewise.
12198         * modules/unistr/u16-strlen-tests: Likewise.
12199         * modules/unistr/u16-strmblen-tests: Likewise.
12200         * modules/unistr/u16-strmbtouc-tests: Likewise.
12201         * modules/unistr/u16-strncat-tests: Likewise.
12202         * modules/unistr/u16-strncmp-tests: Likewise.
12203         * modules/unistr/u16-strncpy-tests: Likewise.
12204         * modules/unistr/u16-strnlen-tests: Likewise.
12205         * modules/unistr/u16-to-u32-tests: Likewise.
12206         * modules/unistr/u16-to-u8-tests: Likewise.
12207         * modules/unistr/u16-uctomb-tests: Likewise.
12208         * modules/unistr/u32-check-tests: Likewise.
12209         * modules/unistr/u32-chr-tests: Likewise.
12210         * modules/unistr/u32-cmp-tests: Likewise.
12211         * modules/unistr/u32-cmp2-tests: Likewise.
12212         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12213         * modules/unistr/u32-cpy-tests: Likewise.
12214         * modules/unistr/u32-mblen-tests: Likewise.
12215         * modules/unistr/u32-mbsnlen-tests: Likewise.
12216         * modules/unistr/u32-mbtouc-tests: Likewise.
12217         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12218         * modules/unistr/u32-mbtoucr-tests: Likewise.
12219         * modules/unistr/u32-move-tests: Likewise.
12220         * modules/unistr/u32-next-tests: Likewise.
12221         * modules/unistr/u32-prev-tests: Likewise.
12222         * modules/unistr/u32-set-tests: Likewise.
12223         * modules/unistr/u32-stpcpy-tests: Likewise.
12224         * modules/unistr/u32-stpncpy-tests: Likewise.
12225         * modules/unistr/u32-strcat-tests: Likewise.
12226         * modules/unistr/u32-strcmp-tests: Likewise.
12227         * modules/unistr/u32-strcoll-tests: Likewise.
12228         * modules/unistr/u32-strcpy-tests: Likewise.
12229         * modules/unistr/u32-strdup-tests: Likewise.
12230         * modules/unistr/u32-strlen-tests: Likewise.
12231         * modules/unistr/u32-strmblen-tests: Likewise.
12232         * modules/unistr/u32-strmbtouc-tests: Likewise.
12233         * modules/unistr/u32-strncat-tests: Likewise.
12234         * modules/unistr/u32-strncmp-tests: Likewise.
12235         * modules/unistr/u32-strncpy-tests: Likewise.
12236         * modules/unistr/u32-strnlen-tests: Likewise.
12237         * modules/unistr/u32-to-u16-tests: Likewise.
12238         * modules/unistr/u32-to-u8-tests: Likewise.
12239         * modules/unistr/u32-uctomb-tests: Likewise.
12240         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
12241         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
12242         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
12243         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
12244         * modules/uniwidth/u8-strwidth-tests: Likewise.
12245         * modules/uniwidth/u8-width-tests: Likewise.
12246         * modules/uniwidth/u16-strwidth-tests: Likewise.
12247         * modules/uniwidth/u16-width-tests: Likewise.
12248         * modules/uniwidth/u32-strwidth-tests: Likewise.
12249         * modules/uniwidth/u32-width-tests: Likewise.
12250         * modules/uniwidth/width-tests: Likewise.
12251
12252 2010-05-18  Richard Jones  <rjones@redhat.com>
12253
12254         doc: users.txt: list hivex
12255         * users.txt: Add hivex.
12256
12257 2010-05-18  Richard Jones  <rjones@redhat.com>
12258
12259         doc: users.txt: list febootstrap
12260         * users.txt: Add febootstrap.
12261
12262 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
12263
12264         bootstrap: fix an error when gnulib is not used as a git submodule
12265         * build-aux/bootstrap (gnulib_path): If its length is zero then
12266         assign "gnulib" to it.
12267         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
12268
12269 2010-05-16  Bruno Haible  <bruno@clisp.org>
12270
12271         Avoid autoconf warnings about AM_ICONV.
12272         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
12273         2.64.
12274
12275 2010-05-16  Bruno Haible  <bruno@clisp.org>
12276
12277         absolute-header: Make the macro usable in more situations.
12278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
12279         from gl_ABSOLUTE_HEADER.
12280         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
12281
12282 2010-05-16  James Youngman  <jay@gnu.org>
12283
12284         doc: update users.txt
12285         * users.txt: Add CSSC.
12286
12287 2010-05-16  Jim Meyering  <meyering@redhat.com>
12288
12289         init.sh: fix an error in the previous change; add more comments
12290         * tests/init.sh: Compare exit code in loop against 9, not 2.
12291         Patch by Bruno Haible.
12292         Make the two tests more similar by adding an empty "then" clause.
12293         Add comments.
12294
12295         init.sh: avoid unnecessary shell re-exec
12296         * tests/init.sh: Improve the re-exec-required check to first test the
12297         current shell.  If it passes the test, do not search for a shell that
12298         does pass, and do not re-exec.  This test is particularly contorted to
12299         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
12300         of $(...) evokes a syntax error and causes immediate shell exit with
12301         status 2.  Bruno Haible reported that the re-exec made it impossible
12302         to single-step through any init.sh-using script.
12303
12304 2010-05-16  Bruno Haible  <bruno@clisp.org>
12305
12306         Fix collision between gnulib's and libintl's printf replacements.
12307         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
12308         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
12309         (printf): When using GNU C, map the __printf__ function to rpl_printf
12310         via __asm__. When not using GNU C, define rpl_printf instead of
12311         __printf__.
12312         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
12313         commit.
12314         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
12315         commit.
12316         * m4/asm-underscore.m4: New file.
12317         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
12318         * modules/stdio (Files): Add m4/asm-underscore.m4.
12319         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
12320         Reported by Ben Pfaff.
12321
12322 2010-05-16  Bruno Haible  <bruno@clisp.org>
12323
12324         verify: Avoid skipping the test on openSUSE 11.0.
12325         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
12326
12327 2010-05-13  Bruno Haible  <bruno@clisp.org>
12328
12329         Avoid useless warnings from G++.
12330         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
12331         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
12332         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12333
12334 2010-05-11  Jim Meyering  <meyering@redhat.com>
12335
12336         maint.mk: tweak preceding change
12337         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
12338         regexps tighter by anchoring at EOL, and make the new group "shy"
12339         for slightly decreased overhead.
12340
12341 2010-05-11  Eric Blake  <eblake@redhat.com>
12342
12343         maint.mk: gnulib doesn't guarantee NSIG
12344         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
12345
12346 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12347
12348         test-pwrite.c: Remove unused variable declaration.
12349         * tests/test-pwrite.c (main): Remove read_buf declaration.
12350
12351         Remove useless test-pwrite.sh file.
12352         * tests/test-pwrite.sh: Delete file.
12353         * modules/pwrite-tests: Remove references.
12354         Reported by Bruno Haible.
12355
12356 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12357
12358         init.sh: fix a typo
12359         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
12360
12361 2010-05-10  Jim Meyering  <meyering@redhat.com>
12362
12363         maint.mk: avoid using a temporary file in the always-defined-macros check
12364         * top/maint.mk (.re-defmac): Remove rule.
12365         (gl_trap_): Remove definition.
12366         (sc_prohibit_always-defined_macros): Rewrite not to create and
12367         depend on a temporary file.  Instead, depend on GNU grep's ability
12368         to read a list of regular expressions from stdin when given "-f -".
12369
12370 2010-05-09  Bruno Haible  <bruno@clisp.org>
12371
12372         Update to GNU gettext 0.18, part 1.
12373         * m4/gettext.m4: Update to GNU gettext 0.18.
12374         * m4/intl.m4: Likewise.
12375         * m4/po.m4: Likewise.
12376         * modules/gettext (Files): Add m4/fcntl-o.m4.
12377         (configure.ac): Require gettext infrastructure from version 0.18.
12378
12379 2010-05-09  Jim Meyering  <meyering@redhat.com>
12380
12381         init.sh: enable MALLOC_PERTURB_
12382         * tests/init.sh: Enable glibc's malloc-perturbing option.
12383
12384         maint.mk: improve sc_cross_check_PATH_usage_in_tests
12385         With my recent change in init.sh from the two-line form:
12386             -#   : ${srcdir=.}
12387             -#   . "$srcdir/init.sh"; path_prepend_ .
12388             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
12389         I noticed that using the one-line form would cause this test
12390         to fail with a false-positive, or to stop working altogether,
12391         depending on whether help-version changed or all the tests did.
12392         * top/maint.mk (_hv_regex): Remove this definition.
12393         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
12394         (_hv_regex_strong): Use a stronger regex to check for conformance.
12395         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
12396         Give a separate diagnostic for lack of conforming use.
12397
12398         maint.mk: prohibit definition of symbols defined by gnulib
12399         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
12400         definition of symbols defined by gnulib.
12401
12402 2010-05-09  Bruno Haible  <bruno@clisp.org>
12403
12404         acl: Avoid test failure on Cygwin-hosted mingw.
12405         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
12406
12407 2010-05-09  Bruno Haible  <bruno@clisp.org>
12408
12409         error: Use system's fcntl function.
12410         * lib/error.c (fcntl): Undefine.
12411
12412 2010-05-09  Jim Meyering  <meyering@redhat.com>
12413
12414         verify: adjust formatting to be more consistent
12415         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
12416         argument-list '('s, and after one comma.
12417
12418 2010-05-09  Bruno Haible  <bruno@clisp.org>
12419
12420         error: More reliable output on mingw.
12421         * lib/error.c: Include <windows.h>.
12422         (is_open): New function.
12423         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
12424         defined.
12425
12426 2010-05-09  Bruno Haible  <bruno@clisp.org>
12427
12428         vasnprintf: Fix syntax errors in libintl build on mingw.
12429         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
12430         pad_ourselves and prec_ourselves after use.
12431
12432 2010-05-08  Bruno Haible  <bruno@clisp.org>
12433
12434         * lib/config.charset: Update comments for Cygwin 1.7.
12435         * lib/localcharset.c: Likewise.
12436
12437 2010-05-07  Jim Meyering  <meyering@redhat.com>
12438
12439         init.sh: improve comments
12440         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
12441         . "${srcdir=.}/init.sh"; path_prepend_ .
12442         Add a note about path_prepend_ and the alternative of using
12443         TESTS_ENVIRONMENT.
12444
12445 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
12446
12447         exclude: Unescape hashed patterns in wildcard mode.
12448         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
12449         to the hash list.
12450         * tests/test-exclude8.sh: New test case.
12451         * modules/exclude-tests: Add new test.
12452
12453 2010-05-05  Eric Blake  <eblake@redhat.com>
12454
12455         verify: automate tests
12456         * modules/verify-tests: New module.
12457         * tests/test-verify.sh: New file.
12458         * tests/test-verify.c: Guard each negative test with a unique id.
12459         Also avoid warning about unused left hand of comma expressions.
12460
12461 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12462
12463         Further improvements to verify.h, suggested by Eric Blake.
12464         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
12465         the GL_* versions, to avoid collision with OpenGL.
12466         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
12467         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
12468         than testing merely whether it's defined.
12469
12470         Modify verify.h to pacify gcc -Wredundant_decls.
12471         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
12472         These use the prefix "GL_" since they're likely to be useful elsewhere.
12473         We may need to break them out into a different .h file.
12474         (__COUNTER__): Define to 0 if the compiler doesn't support it.
12475         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
12476         of verify_function__.
12477
12478 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12479
12480         Tests for module pwrite.
12481         * modules/pwrite-tests: New file.
12482         * tests/test-pwrite.sh: New file.
12483         * tests/test-pwrite.c: New file.
12484
12485         New module pwrite.
12486         * lib/unistd.in.h (pwrite): New declaration.
12487         * lib/pwrite.c: New file, from glibc with modifications.
12488         * m4/pwrite.m4: New file.
12489         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
12490         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
12491         REPLACE_PWRITE.
12492         * modules/pwrite: New file.
12493         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
12494         REPLACE_PWRITE.
12495         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
12496         * doc/posix-functions/pwrite.texi: Mention the new module.
12497
12498 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12499
12500         pread: Update documentation.
12501         * doc/posix-functions/pread.texi: Mention the 'pread' module.
12502
12503 2010-05-04  Eric Blake  <eblake@redhat.com>
12504
12505         docs: update cygwin progress
12506         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
12507         this bug.
12508         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12509         Added in cygwin 1.7.2.
12510         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
12511         Likewise.
12512         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
12513         Likewise.
12514         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12515         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12516         * doc/glibc-functions/accept4.texi (accept4): Likewise.
12517         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
12518         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
12519         Mention nproc module.
12520         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
12521         bug in cygwin 1.7.5 addition.
12522         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
12523         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
12524         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
12525         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
12526         1.7.5.
12527         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
12528         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
12529         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
12530         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
12531         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
12532         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
12533         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
12534         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
12535         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
12536         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
12537         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
12538         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
12539         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
12540         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
12541         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
12542         Likewise.
12543         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
12544         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
12545         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
12546         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
12547         Likewise.
12548         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
12549         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
12550         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
12551         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
12552         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
12553         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
12554         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
12555         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
12556         Likewise.
12557         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12558         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12559         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12560         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12561         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12562         Likewise.
12563         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12564         Likewise.
12565         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12566         Likewise.
12567         * doc/glibc-functions/xdrrec_endofrecord.texi
12568         (xdrrec_endofrecord): Likewise.
12569         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12570         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12571         Likewise.
12572         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12573         Likewise.
12574
12575 2010-05-04  Jim Meyering  <meyering@redhat.com>
12576
12577         gendocs.sh: make its "-s FILE" option more useful
12578         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12579         $PACKAGE to reflect the probably-different basename of "FILE".
12580
12581 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12582
12583         bootstrap: don't ignore download_po_files failure
12584         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12585         failure.
12586
12587 2010-05-03  Jim Meyering  <meyering@redhat.com>
12588
12589         maint.mk: allow to pass options to gendocs.sh
12590         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12591         (gendocs_options_): New overridable variable.
12592
12593         gnu-web-doc-update: don't ignore configure or build failure
12594         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12595
12596         announce-gen: backslash-escape '@'s in --help output
12597         * build-aux/announce-gen: Fix syntax errors.
12598
12599         maint.mk, announce-gen: allow project-specific announcement mail headers
12600         * top/maint.mk (translation_project_): Define default.
12601         (announcement_Cc_, announcement_mail_headers_): Likewise.
12602         (announcement): Invoke announce-gen with new --mail-headers option.
12603         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12604
12605         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12606         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12607         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12608         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12609         line in the "err2" output file when running "make check" in verbose
12610         mode (i.e., with set -x enabled).
12611
12612 2010-05-03  Bruno Haible  <bruno@clisp.org>
12613
12614         wctob: Fix for weird platforms.
12615         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12616         argument value.
12617
12618 2010-05-03  Jim Meyering  <meyering@redhat.com>
12619
12620         maint.mk: prohibit unwarranted use of <strings.h>
12621         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12622         strings.h in a file that does not also use strcasecmp, strncasecmp,
12623         ffs or ffsll.
12624
12625         maint.mk: remove obsolete comments
12626         * top/maint.mk: Remove stale, commented-out rules.
12627
12628 2010-05-02  Bruno Haible  <bruno@clisp.org>
12629
12630         wcwidth: Declare also when it's aliased.
12631         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12632         macro.
12633
12634 2010-05-02  Bruno Haible  <bruno@clisp.org>
12635
12636         Fix regression from 2010-04-25.
12637         * gnulib-tool (func_modules_transitive_closure): Check the status of
12638         all modules, not only of the tests that are of the form foo-tests where
12639         foo is a module.
12640
12641 2010-05-02  Bruno Haible  <bruno@clisp.org>
12642
12643         wctob: Work around nasty Cygwin 1.7.2 bug.
12644         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12645         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12646
12647 2010-05-01  Bruno Haible  <bruno@clisp.org>
12648
12649         fpurge: Sharper test.
12650         * tests/test-fpurge.c (main): Add one more ftell check.
12651         * modules/fpurge-tests (Depends-on): Add ftell.
12652         Suggested by Eric Blake.
12653
12654 2010-05-01  Bruno Haible  <bruno@clisp.org>
12655
12656         ftello: Another test.
12657         * tests/test-ftello3.c: New file.
12658         * modules/ftello-tests (Files): Add it.
12659         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12660         MOSTLYCLEANFILES.
12661
12662         ftell: Another test.
12663         * tests/test-ftell3.c: New file.
12664         * modules/ftell-tests (Files): Add it.
12665         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12666         MOSTLYCLEANFILES.
12667
12668 2010-05-01  Bruno Haible  <bruno@clisp.org>
12669
12670         ftell, ftello: Work around Solaris bug.
12671         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12672         * lib/ftello.c: Include stdio-impl.h.
12673         (ftello): On Solaris, when _IOWRT is set, compute the result without
12674         looking at _IOREAD.
12675         * modules/ftello (Files): Add lib/stdio-impl.h.
12676         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12677         * doc/posix-functions/ftello.texi: Likewise.
12678         Reported by Eric Blake.
12679
12680 2010-05-01  Bruno Haible  <bruno@clisp.org>
12681
12682         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12683         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12684         the _IOWRT flag is also set.
12685
12686 2010-05-01  Bruno Haible  <bruno@clisp.org>
12687
12688         Fix doc about a HP-UX stdio bug.
12689         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12690         * doc/posix-functions/ftello.texi: Likewise.
12691
12692 2010-05-01  Bruno Haible  <bruno@clisp.org>
12693
12694         lseek test: Fix failure on Solaris.
12695         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12696         output.
12697
12698 2010-04-30  Jim Meyering  <meyering@redhat.com>
12699
12700         bootstrap: don't ignore failure to generate po*/Makevars
12701         * build-aux/bootstrap (with_gettext): Don't ignore failure
12702         to create po/Makevars or runtime-po/Makevars.
12703
12704 2010-04-29  Eric Blake  <eblake@redhat.com>
12705
12706         headers: relax license to LGPLv2+
12707         * modules/fcntl-h (License): Relax license.
12708         * modules/getopt-posix (License): Likewise.
12709         * modules/locale (License): Likewise.
12710         * modules/math (License): Likewise.
12711         * modules/pty (License): Likewise.
12712         * modules/sched (License): Likewise.
12713         * modules/search (License): Likewise.
12714         * modules/spawn (License): Likewise.
12715         * modules/stdarg (License): Likewise.
12716         * modules/sysexits (License): Likewise.
12717
12718 2010-04-29  Jim Meyering  <meyering@redhat.com>
12719
12720         inttypes: relax license to LGPLv2+
12721         * modules/inttypes (License): Relax license.
12722
12723 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12724
12725         * top/maint.mk (indent): Run twice to produce idempotent results.
12726
12727 2010-04-28  Bruno Haible  <bruno@clisp.org>
12728
12729         getdate: Generate getdate.c in the source directory.
12730         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12731         MOSTLYCLEANFILES.
12732         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12733
12734 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12735
12736         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12737         is not declared as a const *; avoid warnings in that case.
12738
12739 2010-04-28  Eric Blake  <eblake@redhat.com>
12740
12741         canonicalize-lgpl: avoid compiler warning
12742         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12743         declaration' / 'extraneous semicolon' warning with some compilers.
12744         Reported by Andreas Gruenbacher.
12745
12746 2010-04-28  Jim Meyering  <meyering@redhat.com>
12747
12748         init.sh: ensure a more reliable exit status when exiting via trap
12749         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12750         Inspired by patches from Dmitry V. Levin.
12751         Also trap on signal 3 (SIGQUIT).
12752
12753 2010-04-27  Bruno Haible  <bruno@clisp.org>
12754
12755         Update doc about utimes().
12756         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12757         'utimens' module.
12758         Reported by Andreas Gruenbacher <agruen@suse.de>.
12759
12760 2010-04-27  Eric Blake  <eblake@redhat.com>
12761
12762         full-read, full-write: relax license
12763         * modules/full-read (License): Drop to LGPLv2+.
12764         * modules/full-write (License): Likewise.
12765         * modules/safe-read (License): Likewise.
12766         * modules/safe-write (License): Likewise.
12767
12768         pthread: mention library for linking
12769         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12770
12771 2010-04-27  Jim Meyering  <meyering@redhat.com>
12772
12773         maint.mk: fix a bug introduced in last change
12774         * top/maint.mk (gl_assured_headers_): Now that all names are on
12775         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12776         is not anchored to end of word, it should be adequate.
12777
12778         maint.mk: avoid side-effect in latest syntax-check
12779         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12780         to run commands via $(shell...), and hence to incur cost only when
12781         the new rule is actually run.
12782
12783         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12784         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12785         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12786         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12787         (gl_assured_headers_, az_, AZ_): Define.
12788         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12789
12790 2010-04-26  Jim Meyering  <jim@meyering.net>
12791             Bruno Haible  <bruno@clisp.org>
12792
12793         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12794         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12795         Prompted by an exchange with Gilles Espinasse.
12796
12797 2010-04-26  Jim Meyering  <meyering@redhat.com>
12798
12799         git-version-gen: aesthetic tweak
12800         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12801         so that the command remains on a single line.
12802
12803 2010-04-26  Eric Blake  <eblake@redhat.com>
12804
12805         git-version-gen: allow use on EBCDIC hosts
12806         * build-aux/git-version-gen (dirty): Use literal rather than tying
12807         ourselves to ascii.
12808         Reported by Steve Goetze.
12809
12810 2010-04-25  Bruno Haible  <bruno@clisp.org>
12811
12812         netdb: Add support for GNULIB_POSIXCHECK.
12813         * lib/netdb.in.h: Include warn-on-use.h.
12814         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12815         functions are used when GNULIB_POSIXCHECK is defined and the
12816         getaddrinfo module is not in use.
12817         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12818         freeaddrinfo, gai_strerror, getnameinfo are declared.
12819         * modules/netdb (Depends-on): Add warn-on-use.
12820         (Makefile.am): Include warn-on-use.h in netdb.h.
12821
12822 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12823
12824         build: avoid "make check" failure without .git/ directory
12825         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12826         there is no .git/ directory.
12827
12828 2010-04-25  Bruno Haible  <bruno@clisp.org>
12829
12830         ptsname: Fix misuse of ttyname_r.
12831         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12832         of errno.
12833
12834 2010-04-25  Bruno Haible  <bruno@clisp.org>
12835
12836         ttyname_r: Make it work on Solaris 10.
12837         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12838         if the system function has the POSIX declaration. Test whether the
12839         function fails if the buffer is less than 128 bytes large.
12840         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12841         system's ttyname_r function. Provide a reasonably large buffer.
12842         * modules/ttyname_r (Depends-on): Add extensions.
12843         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12844
12845 2010-04-25  Bruno Haible  <bruno@clisp.org>
12846
12847         Use the 'extensions' module for some more functions on Solaris.
12848         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12849         module.
12850         * doc/posix-functions/ctime_r.texi: Likewise.
12851         * doc/posix-functions/getgrgid_r.texi: Likewise.
12852         * doc/posix-functions/getgrnam_r.texi: Likewise.
12853         * doc/posix-functions/getpwnam_r.texi: Likewise.
12854         * doc/posix-functions/getpwuid_r.texi: Likewise.
12855         * doc/posix-functions/readdir_r.texi: Likewise.
12856         * doc/posix-functions/sigwait.texi: Likewise.
12857         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12858         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12859
12860 2010-04-25  Bruno Haible  <bruno@clisp.org>
12861
12862         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12863         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12864         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12865         * lib/ttyname_r.c: Include <limits.h>.
12866         (ttyname_r): Define using the system's ttyname_r function, if it exists
12867         and not on Solaris.
12868         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12869         set.
12870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12871         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12872         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12873         Reported by Simon Josefsson.
12874
12875 2010-04-25  Bruno Haible  <bruno@clisp.org>
12876
12877         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12878         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12879         * doc/posix-functions/ctime_r.texi: Likewise.
12880         * doc/posix-functions/getgrgid_r.texi: Likewise.
12881         * doc/posix-functions/getgrnam_r.texi: Likewise.
12882         * doc/posix-functions/getlogin_r.texi: Likewise.
12883         * doc/posix-functions/getpwnam_r.texi: Likewise.
12884         * doc/posix-functions/getpwuid_r.texi: Likewise.
12885         * doc/posix-functions/readdir_r.texi: Likewise.
12886         * doc/posix-functions/sigwait.texi: Likewise.
12887         * doc/posix-functions/ttyname_r.texi: Likewise.
12888         Reported by Simon Josefsson.
12889
12890 2010-04-25  Bruno Haible  <bruno@clisp.org>
12891
12892         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12893         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12894         also to --create-testdir.
12895         (func_acceptable): Don't consider the status of *-tests modules here.
12896         (func_modules_transitive_closure): Consider it here, before including a
12897         test module.
12898         (func_import, func_create_testdir): Set inc_all_direct_tests,
12899         inc_all_indirect_tests.
12900         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12901         --create-testdir and --create-megatestdir.
12902
12903 2010-04-25  Bruno Haible  <bruno@clisp.org>
12904
12905         gnulib-tool: Add --without-*-tests options.
12906         * gnulib-tool (func_usage): Document the --without-*-tests options.
12907         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12908         excl_unportable_tests): New variables.
12909         Fail if they are specified with --import or --update.
12910         (func_acceptable): Respect the excl_*_tests variables.
12911         (func_import): Set the excl_*_tests variables to empty.
12912
12913 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12914             Bruno Haible  <bruno@clisp.org>
12915
12916         Work around a MacOS X 10.4 bug with openpty.
12917         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12918         * tests/test-openpty.c (main): Close the master side explicitly.
12919
12920 2010-04-25  Bruno Haible  <bruno@clisp.org>
12921
12922         strnlen: Fix a C++ test error on MacOS X and Solaris.
12923         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12924         the function is not declared.
12925         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12926         Simon Josefsson.
12927
12928 2010-04-24  Bruno Haible  <bruno@clisp.org>
12929
12930         Avoid a gcc warning.
12931         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12932         of correct type for %08lx directive.
12933         Reported by Eric Blake.
12934
12935 2010-04-24  Bruno Haible  <bruno@clisp.org>
12936
12937         vasnprintf: Correct errno value in case of out-of-memory.
12938         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12939         or sprintf. Use the errno value from SNPRINTF or sprintf.
12940         Reported by Ian Beckwith <ianb@erislabs.net>.
12941
12942 2010-04-24  Bruno Haible  <bruno@clisp.org>
12943
12944         ansi-c++-opt: Find correct compiler when cross-compiling.
12945         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12946         AC_CHECK_PROGS.
12947         Reported by Simon Josefsson.
12948
12949 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12950
12951         vc-list-files: Add support for subversion
12952         * build-aux/vc-list-files: Use "svn list" to generate the list of
12953         files controlled by subversion.
12954
12955 2010-04-23  Jim Meyering  <meyering@redhat.com>
12956
12957         vc-list-files tests: convert to use init.sh
12958         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12959         path_prepend_.
12960         Use Exit, not exit.
12961         Use skip_ rather than open coding it.
12962         Remove trap set-up and compare definitions.
12963         * tests/test-vc-list-files-git.sh: Likewise.
12964         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12965
12966 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12967
12968         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12969         backup files.
12970
12971 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12972
12973         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12974
12975 2010-04-20  Eric Blake  <eblake@redhat.com>
12976
12977         tests: be robust to ignored SIGPIPE
12978         * tests/test-select-in.sh: Consume all output.
12979         * tests/test-lseek.sh: Check correct exit status, while avoiding
12980         EPIPE.
12981
12982 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12983             Bruno Haible  <bruno@clisp.org>
12984
12985         visibility: Don't use -fvisibility if it leads to a warning.
12986         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12987         yes, don't pretend that visibility works if it leads to a warning.
12988         Reported by Mike Gran <spk121@yahoo.com>.
12989
12990 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12991
12992         * build-aux/bootstrap: Use "git -h" for testing for supported options
12993         instead of "git --help".  The short-form option only shows a summary,
12994         and doesn't layout the full man page.  Grep for the full option name
12995         in the summary, too.
12996
12997 2010-04-19  Bruno Haible  <bruno@clisp.org>
12998
12999         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13000         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13001         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13002         mention of RELOCATABLE_STRIP.
13003         Reported by Sylvain Beucler <beuc@beuc.net>.
13004
13005 2010-04-19  Bruno Haible  <bruno@clisp.org>
13006
13007         * lib/diffseq.h: Fix typo in comment.
13008         Reported by Eric Blake.
13009
13010 2010-04-19  Bruno Haible  <bruno@clisp.org>
13011
13012         ioctl: Move autoconf macro to a .m4 file.
13013         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13014         * modules/ioctl (Files): Add it.
13015         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13016         Reported by Ian Beckwith <ianb@erislabs.net>.
13017
13018 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13019             Bruno Haible  <bruno@clisp.org>
13020
13021         diffseq: Accommodate use-case with abstract arrays.
13022         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13023         is not defined.
13024         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13025         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13026
13027 2010-04-18  Bruno Haible  <bruno@clisp.org>
13028
13029         * doc/posix-headers/stdbool.texi: More precise wording.
13030
13031 2010-04-17  Jim Meyering  <meyering@redhat.com>
13032
13033         maint.mk: use gnu-style indentation in an embedded perl script
13034         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13035         Rename variable: s/two/last_two_bytes/
13036
13037 2010-04-16  Eric Blake  <eblake@redhat.com>
13038
13039         test-stdbool: skip test that fails with Solaris CC
13040         * tests/test-stdbool.c (f): Skip test that causes compilation
13041         error under buggy C++ compiler.
13042         * lib/stdbool.in.h: Document the limitation.
13043         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13044
13045         setenv: allow compilation with C++
13046         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13047         register keyword.
13048
13049         stdint: allow test to pass with C++
13050         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13051
13052         getopt: allow compilation with C++
13053         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13054         struct.
13055         * lib/getopt.c (_getopt_internal_r): Use correct type.
13056         Reported by Dagobert Michelson, via Joel E. Denny.
13057
13058 2010-04-16  Bruno Haible  <bruno@clisp.org>
13059
13060         Override netdb.h always.
13061         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13062         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13063         Reported by Ludovic Courtès <ludo@gnu.org>.
13064
13065 2010-04-15  Bruno Haible  <bruno@clisp.org>
13066
13067         openpty: Fix mistake from 2010-03-21.
13068         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13069         Reported by Simon Josefsson.
13070
13071 2010-04-15  Eric Blake  <eblake@redhat.com>
13072
13073         test-forkpty: fix expected signature
13074         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13075         Reported by Simon Josefsson.
13076
13077 2010-04-15  Jim Meyering  <meyering@redhat.com>
13078
13079         maint.mk: texinfo_suffix_re_: correct the default regexp
13080         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13081
13082         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13083         make it configurable via texinfo_suffix_re_.
13084
13085 2010-04-14  Eric Blake  <eblake@redhat.com>
13086
13087         strtok_r: relax license to LGPLv2+
13088         * modules/strtok_r (License): Relax license.
13089         Reported by Matthias Bolte.
13090
13091 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13092
13093         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13094         version 1.4.4 by default instead of requiring the libgcrypt
13095         version used during build.  This makes it possible to use the
13096         application with older but still binary compatible libgcrypt
13097         versions.
13098
13099 2010-04-13  Eric Blake  <eblake@redhat.com>
13100
13101         getopt-gnu: match recent glibc fixes and posix ruling
13102         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13103         '+' handling, when requesting extensions.
13104         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13105         'W;' handling.
13106         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13107         * doc/posix-functions/getopt.texi (getopt): Document this.
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: merge bug fixes from glibc
13113         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13114         diagnostics.  Honor '+:' correctly.  Reject ';'.
13115
13116         getopt-posix: detect MacOS bug
13117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13118         optind when missing a required argument.
13119         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13120         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13121         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13122         Likewise.
13123
13124         getopt-posix: avoid spurious failure on Solaris
13125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13126         an indicator that setting optind=1 is sufficient for reset.
13127
13128         getopt-posix: avoid spurious failure on FreeBSD
13129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13130         in POSIX mode, since the m4 test uses it.
13131
13132         gnulib-tool: silence warning on BSD sh
13133         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13134
13135 2010-04-13  Jim Meyering  <meyering@redhat.com>
13136
13137         doc: users.txt: GNU patch now uses gnulib
13138         * users.txt: Add patch.
13139
13140 2010-04-12  Jim Meyering  <meyering@redhat.com>
13141
13142         maint.mk: generate more concise timing data for syntax-check rules
13143         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13144         " done" from each line that reports a syntax-check test duration.
13145
13146 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13147
13148         git-version-gen: use "git update-index..." rather than "git status"
13149         * build-aux/git-version-gen: Use git update-index --refresh, not
13150         "git status".  With some versions of git, "git status" would fail
13151         to update the index and result in an unwarranted "-dirty" suffix.
13152
13153 2010-04-11  Jim Meyering  <meyering@redhat.com>
13154
13155         openat: correct formatting (no semantic change)
13156         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13157         Suggested by Bruno Haible.
13158
13159 2010-04-11  Bruno Haible  <bruno@clisp.org>
13160
13161         Stricter declaration checking in testdirs.
13162         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13163         If for_tests is true, augment AM_CPPFLAGS to define
13164         GNULIB_STRICT_CHECKING.
13165         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13166         GNULIB_STRICT_CHECKING is defined, verify that the function is
13167         declared.
13168
13169 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13170             Bruno Haible  <bruno@clisp.org>
13171
13172         libunistring: Improve configure output.
13173         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13174         Don't say "consider installing GNU libunistring" when checking again
13175         with libiconv.
13176
13177 2010-04-11  Bruno Haible  <bruno@clisp.org>
13178
13179         libunistring: Correct value of $LTLIBUNISTRING.
13180         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13181         correct the value of $LTLIBUNISTRING.
13182
13183 2010-04-11  Bruno Haible  <bruno@clisp.org>
13184
13185         havelib: Add static libraries to LIBS in the right order.
13186         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13187         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13188
13189 2010-04-11  Bruno Haible  <bruno@clisp.org>
13190
13191         libunistring: Detect libunistring also when it depends on libiconv.
13192         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13193         the second AC_LIB_HAVE_LINKFLAGS invocation.
13194
13195 2010-04-11  James Youngman  <jay@gnu.org>
13196
13197         close-stream: declare local scalars to be "const"
13198         * lib/close-stream.c (close_stream): Make boolean variables const
13199         to document the fact that we set but do not change them.
13200
13201 2010-04-11  Bruno Haible  <bruno@clisp.org>
13202
13203         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13204
13205 2010-04-11  Jim Meyering  <meyering@redhat.com>
13206
13207         maint.mk: don't include dist-check.mk
13208         * top/maint.mk: Remove bogus include directive.
13209
13210         maint.mk: improve empty-line-at-EOF check
13211         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13212         solution, rather than tail+Perl-based one.  The latter would read
13213         a few kilobytes from the end of each file, and did not handle empty
13214         files properly.
13215
13216         maint.mk: print the elapsed time for each syntax-check rule
13217         * top/maint.mk (sc_m_rules_): Save start time in a file.
13218         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13219         (local-check): Interpose the .z rules
13220
13221 2010-04-11  Jim Meyering  <meyering@redhat.com>
13222
13223         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
13224         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
13225         empty file with one that ends in an empty line.
13226
13227 2010-04-10  Bruno Haible  <bruno@clisp.org>
13228
13229         mkdir: Make it work on mingw64.
13230         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
13231         * lib/mkdir.c: Update comment.
13232         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
13233
13234 2010-04-10  Bruno Haible  <bruno@clisp.org>
13235
13236         Don't override improved macro from newer autoconf.
13237         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
13238         autoconf >= 2.62.
13239         Reported by Joel E. Denny <jdenny@clemson.edu>.
13240
13241 2010-04-10  Jim Meyering  <meyering@redhat.com>
13242
13243         maint.mk: new syntax-check rule: prohibit empty lines at end of file
13244         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
13245
13246         maint.mk: correct a diagnostic
13247         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
13248         in diagnostic; now use $prohibit.
13249
13250 2010-04-10  Bruno Haible  <address@hidden>
13251
13252         fchownat: Fix a C++ test error on Solaris 8.
13253         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
13254         the function does not exist.
13255
13256 2010-04-10  Bruno Haible  <bruno@clisp.org>
13257
13258         vasnprintf: Add more tests.
13259         * tests/test-vasnprintf-posix.c: Include <errno.h>.
13260         (test_function): Test converting an invalid wide string.
13261
13262         vasnprintf: Correct handling of unconvertible wide string arguments.
13263         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
13264         VASNPRINTF.
13265         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
13266         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
13267         smaller than the expected maximum need for the directive. Set errno to
13268         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
13269         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
13270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
13271         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
13272         * modules/vasnprintf (Files): Add m4/printf.m4.
13273         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13274
13275 2010-04-10  Bruno Haible  <bruno@clisp.org>
13276
13277         vasnprintf: Fix crash in %ls directive.
13278         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
13279         string is passed as argument to %ls, with no precision and no width.
13280         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13281
13282 2010-04-10  Bruno Haible  <bruno@clisp.org>
13283
13284         vasnprintf: Fix multiple test failures on mingw.
13285         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
13286         _snprintf, or snwprintf, not _snwprintf.
13287
13288 2010-04-10  Bruno Haible  <bruno@clisp.org>
13289
13290         write: Fix a C++ test error on mingw.
13291         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
13292
13293 2010-04-10  Bruno Haible  <bruno@clisp.org>
13294
13295         vasnprintf test: Reduce code duplication.
13296         * tests/test-vasnprintf.c (test_function): New function, extracted from
13297         test_vasnprintf.
13298         (test_vasnprintf, test_asnprintf): Invoke it.
13299
13300 2010-04-10  Bruno Haible  <bruno@clisp.org>
13301
13302         strnlen: Fix warning in C++ mode on MacOS X.
13303         * lib/string.in.h (strnlen): Use the modern idiom.
13304         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
13305         defining strnlen as a macro already in <config.h>.
13306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13307         REPLACE_STRNLEN.
13308         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
13309         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13310
13311 2010-04-08  James Youngman  <jay@gnu.org>
13312
13313         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
13314         the example.
13315
13316 2010-04-09  Jim Meyering  <meyering@redhat.com>
13317
13318         maint.mk: print better diagnostic when there is no $(_hv_file)
13319         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
13320         announce that when $(_hv_file) (aka help-version) does not exist.
13321
13322         init.sh: run tr in the "C" locale to avoid multibyte interpretation
13323         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
13324         not try to interpret its random input bytes.  Jarno Rajahalme reported
13325         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
13326         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
13327         (mktempd_): Likewise, just in case.
13328
13329         ftruncate: add two years to projected module removal date: 2012
13330         * m4/ftruncate.m4: Adjust comments.
13331
13332         ftruncate: mark module as obsolete; even MinGW provides it, now
13333         * modules/ftruncate (Status): Obsolete.
13334         (Notice): Say that.
13335         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
13336         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
13337
13338 2010-04-08  Bruno Haible  <bruno@clisp.org>
13339
13340         Fix side effects from tests-related modules.
13341         * modules/dprintf-posix (Comment): New section.
13342         * modules/fprintf-posix (Comment): Likewise.
13343         * modules/obstack-printf-posix (Comment): Likewise.
13344         * modules/printf-posix (Comment): Likewise.
13345         * modules/snprintf-posix (Comment): Likewise.
13346         * modules/sprintf-posix (Comment): Likewise.
13347         * modules/vasnprintf-posix (Comment): Likewise.
13348         * modules/vasprintf-posix (Comment): Likewise.
13349         * modules/vdprintf-posix (Comment): Likewise.
13350         * modules/vfprintf-posix (Comment): Likewise.
13351         * modules/vprintf-posix (Comment): Likewise.
13352         * modules/vsnprintf-posix (Comment): Likewise.
13353         * modules/vsprintf-posix (Comment): Likewise.
13354         * modules/xprintf-posix (Comment): Likewise.
13355         * modules/xvasprintf-posix (Comment): Likewise.
13356         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
13357         * modules/floorf-tests (Depends-on): Likewise.
13358         * modules/round-tests (Depends-on): Likewise.
13359         * modules/roundf-tests (Depends-on): Likewise.
13360         * modules/trunc-tests (Depends-on): Likewise.
13361         * modules/truncf-tests (Depends-on): Likewise.
13362         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
13363         'fprintf-posix' module is not present.
13364         * tests/test-floorf2.c (check): Likewise.
13365         * tests/test-trunc2.c (check): Likewise.
13366         * tests/test-truncf2.c (check): Likewise.
13367         * tests/test-round2.c (equal): Likewise.
13368         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13369
13370 2010-04-07  Karl Berry  <karl@gnu.org>
13371
13372         * config/srclist.txt,
13373         * config/srclistvars.sh,
13374         * config/srclist-update: doc fixes.
13375
13376 2010-04-07  Jim Meyering  <meyering@redhat.com>
13377
13378         maint.mk: add a PATH crosschecking syntax-check rule
13379         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
13380         Useful if you use a test like the one in help-version (coreutils,
13381         diffutils, grep, gzip) that ensures $(VERSION) matches what is
13382         printed by prog --version.
13383
13384 2010-04-06  Bruno Haible  <bruno@clisp.org>
13385
13386         Fix link error on mingw.
13387         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
13388         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
13389
13390 2010-04-06  Bruno Haible  <bruno@clisp.org>
13391
13392         Assume rmdir exists.
13393         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
13394
13395 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
13396
13397         doc: update users.txt
13398         * users.txt: Add gcal.
13399
13400 2010-04-06  Jim Meyering  <meyering@redhat.com>
13401
13402         init.sh: simply unset TMPDIR rather than risking env -i
13403         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
13404         although it probably works fine on all Unix-based systems, some
13405         systems (Cygwin?) cannot tolerate a totally cleared environment.
13406         Suggestion from Eric Blake.
13407
13408 2010-04-06  Jim Meyering  <meyering@redhat.com>
13409
13410         init.sh: portability fix: use env's POSIX-specified -i option not -u
13411         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
13412         than unportable env -u.  Solaris 5.11's env lacks support for -u.
13413
13414 2010-04-05  Bruno Haible  <bruno@clisp.org>
13415
13416         btowc: Work around Cygwin 1.7.2 bug.
13417         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
13418         does not map NUL to 0.
13419         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
13420
13421 2010-04-05  Bruno Haible  <bruno@clisp.org>
13422
13423         Make the multithread modules work on Cygwin 1.7.2.
13424         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
13425         imported symbols can be declared weak, so that it returns "no" on
13426         Cygwin 1.7.2.
13427
13428 2010-04-05  Bruno Haible  <bruno@clisp.org>
13429
13430         Use the module 'strncat'.
13431         * modules/unistr/u8-strncat (Depends-on): Add strncat.
13432
13433         Tests for module 'strncat'.
13434         * modules/strncat-tests: New file.
13435         * tests/test-strncat.c: New file.
13436
13437         New module 'strncat'.
13438         * lib/string.in.h (strncat): New declaration.
13439         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
13440         * m4/strncat.m4: New file, based on m4/memchr.m4.
13441         * modules/strncat: New file.
13442         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
13443         is declared.
13444         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
13445         REPLACE_STRNCAT.
13446         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
13447         REPLACE_STRNCAT.
13448         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
13449         module.
13450         * tests/test-string-c++.cc: Check signature of strncat.
13451
13452 2010-04-05  Jim Meyering  <meyering@redhat.com>
13453
13454         xstrtoumax-tests: convert to use init.sh
13455         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
13456         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13457         Use Exit, not exit.
13458         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13459
13460         xstrtoimax-tests: convert to use init.sh
13461         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
13462         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13463         Use Exit, not exit.
13464         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13465
13466 2010-04-05  Bruno Haible  <bruno@clisp.org>
13467
13468         sys_socket: Avoid #define replacements in C++ mode.
13469         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
13470         warning to the function if possible, rather than #defining the symbol
13471         to a dysfunctional alias.
13472
13473 2010-04-05  Bruno Haible  <bruno@clisp.org>
13474
13475         fseeko: Fix C++ test error on mingw.
13476         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
13477         gl_FUNC_FSEEKO.
13478         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
13479         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
13480         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
13481         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
13482
13483 2010-04-05  Bruno Haible  <bruno@clisp.org>
13484
13485         duplocale: Improve test output.
13486         * tests/test-duplocale.c (main): Print reason for skipped test.
13487
13488 2010-04-05  Bruno Haible  <bruno@clisp.org>
13489
13490         Assume rmdir exists.
13491         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
13492         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
13493
13494 2010-04-05  Bruno Haible  <bruno@clisp.org>
13495
13496         Fix link error on Solaris 8 with cc.
13497         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
13498
13499 2010-04-05  Bruno Haible  <bruno@clisp.org>
13500
13501         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13502         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
13503
13504 2010-04-05  Bruno Haible  <bruno@clisp.org>
13505
13506         vasprintf: Update documentation.
13507         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
13508
13509 2010-04-05  Bruno Haible  <bruno@clisp.org>
13510
13511         ptsname: Improve test.
13512         * tests/test-ptsname.c (main): Also try the various master names of BSD
13513         systems.
13514
13515 2010-04-05  Bruno Haible  <bruno@clisp.org>
13516
13517         memchr: Avoid a possible C++ test error.
13518         * lib/string.in.h (memchr): Provide declaration if function is missing.
13519         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
13520         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
13521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
13522         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
13523
13524 2010-04-05  Bruno Haible  <bruno@clisp.org>
13525
13526         strtok_r: Improve idiom.
13527         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
13528         AC_LIBOBJ is used.
13529
13530 2010-04-05  Bruno Haible  <bruno@clisp.org>
13531
13532         strdup: Improve idiom.
13533         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
13534         AC_LIBOBJ is used.
13535         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
13536         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
13537         when AC_LIBOBJ is used.
13538
13539 2010-04-05  Bruno Haible  <bruno@clisp.org>
13540
13541         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13542         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
13543         don't set REPLACE_MBSINIT to 1.
13544         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
13545         don't set REPLACE_MBRTOWC to 1.
13546         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
13547         exist, don't set REPLACE_MBSRTOWCS to 1.
13548         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
13549         exist, don't set REPLACE_MBSNRTOWCS to 1.
13550         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
13551         don't set REPLACE_WCRTOMB to 1.
13552         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
13553         exist, don't set REPLACE_WCSRTOMBS to 1.
13554         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
13555         exist, don't set REPLACE_WCSNRTOMBS to 1.
13556
13557 2010-04-05  Bruno Haible  <bruno@clisp.org>
13558
13559         ldexpl: Improve idiom.
13560         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13561         make sure to set HAVE_DECL_LDEXPL to 0.
13562
13563 2010-04-05  Jim Meyering  <meyering@redhat.com>
13564
13565         xstrtol-tests: convert to use init.sh
13566         * modules/xstrtol-tests (Files): Add tests/init.sh.
13567         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13568         Use Exit, not exit.
13569         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13570
13571         atexit-tests: convert to use init.sh
13572         * modules/atexit-tests (Files): Add tests/init.sh.
13573         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13574         Use Exit, not exit.
13575         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13576
13577         init.sh: fix typo
13578         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13579
13580         init.sh: make it easier for a test script to write to the tty, ...
13581         when using automake's parallel-tests mode.
13582         * tests/init.sh (stderr_fileno_): Define overridable variable.
13583         (warn_): New function, to use it.
13584         (fail_, skip_, framework_failure_): Use warn_.
13585
13586 2010-04-04  Bruno Haible  <bruno@clisp.org>
13587
13588         btowc: Avoid warning.
13589         * lib/btowc.c: Include <stdlib.h>.
13590         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13591
13592 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13593             Bruno Haible  <bruno@clisp.org>
13594
13595         wchar: Port to NetBSD 1.5.
13596         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13597         * lib/wctype.in.h (WEOF): Likewise.
13598
13599 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13600             Bruno Haible  <bruno@clisp.org>
13601
13602         Port extended stdio to NetBSD 1.5.
13603         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13604         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13605         older.
13606
13607 2010-04-04  Bruno Haible  <bruno@clisp.org>
13608
13609         string: Remove unused substitution.
13610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13611         HAVE_DECL_STRERROR.
13612         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13613
13614 2010-04-04  Bruno Haible  <bruno@clisp.org>
13615
13616         strtod: Avoid a possible C++ test error.
13617         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13618         set REPLACE_STRTOD.
13619
13620 2010-04-04  Bruno Haible  <bruno@clisp.org>
13621
13622         strerror: Update documentation.
13623         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13624
13625 2010-04-04  Bruno Haible  <bruno@clisp.org>
13626
13627         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13628         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13629         _GL_CXXALIAS_SYS_CAST.
13630
13631 2010-04-04  Bruno Haible  <bruno@clisp.org>
13632
13633         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13634         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13635         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13636         REPLACE_FREXPL to 1.
13637         * doc/posix-functions/frexpl.texi: Update documentation.
13638
13639 2010-04-04  Bruno Haible  <bruno@clisp.org>
13640
13641         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13642         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13643
13644 2010-04-04  Bruno Haible  <bruno@clisp.org>
13645
13646         Implement nanosleep for native Windows.
13647         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13648
13649 2010-04-04  Bruno Haible  <bruno@clisp.org>
13650
13651         math: Fix some C++ test errors on Solaris 8.
13652         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13653
13654 2010-04-04  Bruno Haible  <bruno@clisp.org>
13655
13656         math: Fix some C++ test errors on Cygwin.
13657         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13658         truncl): Provide declaration if the system does not have it.
13659         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13660         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13661         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13662         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13663         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13664         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13665         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13666         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13667         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13668         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13669         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13670         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13671         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13672         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13673         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13674         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13676         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13677         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13678         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13679         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13680         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13681
13682 2010-04-04  Bruno Haible  <bruno@clisp.org>
13683
13684         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13685         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13686         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13687         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13688         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13689         * m4/isinf.m4 (gl_ISINF): Likewise.
13690         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13691
13692 2010-04-04  Bruno Haible  <bruno@clisp.org>
13693
13694         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13695         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13696
13697 2010-04-04  Bruno Haible  <bruno@clisp.org>
13698
13699         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13700         * modules/tmpfile (configure.ac): Update.
13701
13702         tmpfile: Fix C++ test error on mingw.
13703         * lib/stdio.in.h (tmpfile): New declaration.
13704         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13705         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13706         * modules/tmpfile (Depends-on): Add stdio.
13707         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13708         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13709         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13710         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13711         REPLACE_TMPFILE.
13712         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13713
13714 2010-04-04  Bruno Haible  <bruno@clisp.org>
13715
13716         ioctl: Fix C++ test error on mingw.
13717         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13718         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13719         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13720
13721 2010-04-03  Bruno Haible  <bruno@clisp.org>
13722
13723         wcwidth: Fix C++ test error on mingw.
13724         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13726         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13727
13728 2010-04-03  Bruno Haible  <bruno@clisp.org>
13729
13730         nanosleep: Fix C++ test error on mingw.
13731         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13732         * lib/time.in.h (nanosleep): Use modern idiom.
13733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13734         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13735         REPLACE_NANOSLEEP to 1.
13736         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13737         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13738
13739 2010-04-03  Bruno Haible  <bruno@clisp.org>
13740
13741         strptime: Fix C++ test error on mingw.
13742         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13743         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13744         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13745         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13746         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13747         not REPLACE_STRPTIME.
13748         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13749         REPLACE_STRPTIME.
13750
13751 2010-04-03  Bruno Haible  <bruno@clisp.org>
13752
13753         timegm: Fix C++ test error on mingw.
13754         * lib/time.in.h (timegm): Use modern idiom.
13755         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13756         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13757         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13758         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13759
13760 2010-04-03  Bruno Haible  <bruno@clisp.org>
13761
13762         timegm: Assume declaration if function exists.
13763         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13764         if it exists. Don't clobber ac_cv_func_timegm.
13765
13766 2010-04-03  Bruno Haible  <bruno@clisp.org>
13767
13768         time_r: Fix C++ test error on mingw.
13769         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13770         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13771         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13772         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13773         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13774
13775 2010-04-03  Bruno Haible  <bruno@clisp.org>
13776
13777         time_r: Minor updates.
13778         * modules/time_r (Description): Mention the provided functions.
13779         * lib/time_r.c: Don't include <string.h>.
13780         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13781         * doc/posix-functions/localtime_r.texi: Likewise.
13782
13783 2010-04-03  Bruno Haible  <bruno@clisp.org>
13784
13785         time: Fix regression introduced on 2010-03-08.
13786         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13787         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13788
13789 2010-04-03  Jim Meyering  <meyering@redhat.com>
13790
13791         maint.mk: don't silently disable project-specific syntax-check rules
13792         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13793         that they need to convert their project-specific syntax-check rules
13794         to use the new _sc_search_regexp.
13795
13796 2010-04-03  Bruno Haible  <bruno@clisp.org>
13797
13798         fchdir: Fix regression introduced on 2010-03-08.
13799         * lib/unistd.in.h (fchdir): Fix declaration.
13800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13802         REPLACE_FCHDIR.
13803         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13804         REPLACE_FCHDIR.
13805
13806 2010-04-03  Bruno Haible  <bruno@clisp.org>
13807
13808         getpagesize: Fix C++ test error on mingw.
13809         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13810         system does not declare the function.
13811         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13812         declared.
13813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13814         HAVE_DECL_GETPAGESIZE.
13815         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13816
13817 2010-04-03  Bruno Haible  <bruno@clisp.org>
13818
13819         stdio: Make C++ tests work on mingw.
13820         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13821         does not declare the function.
13822
13823 2010-04-03  Bruno Haible  <bruno@clisp.org>
13824
13825         ftello: Fix C++ test error on mingw.
13826         * lib/stdio.in.h (ftello): Use modern idiom.
13827         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13828         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13829         is missing and that it needs to be replaced.
13830         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13832         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13833
13834 2010-04-03  Bruno Haible  <bruno@clisp.org>
13835
13836         fseeko: Fix C++ test error on mingw.
13837         * lib/stdio.in.h (fseeko): Use modern idiom.
13838         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13839         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13840         is missing and that it needs to be replaced.
13841         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13843         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13844
13845 2010-04-03  Bruno Haible  <bruno@clisp.org>
13846
13847         mkstemp: Fix C++ test error on mingw.
13848         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13850         function is missing and that it needs to be replaced.
13851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13852         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13853
13854 2010-04-03  Bruno Haible  <bruno@clisp.org>
13855
13856         stpncpy: Fix C++ test error on mingw.
13857         * lib/string.in.h (stpncpy): Use modern idiom.
13858         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13859         function is missing and that it needs to be replaced.
13860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13861         REPLACE_STPNCPY.
13862         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13863
13864 2010-04-03  Bruno Haible  <bruno@clisp.org>
13865
13866         sys_stat: Fix C++ test error on mingw.
13867         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13868         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13869
13870 2010-04-03  Bruno Haible  <bruno@clisp.org>
13871
13872         pty: Update doc.
13873         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13874
13875 2010-04-03  Bruno Haible  <bruno@clisp.org>
13876
13877         unistd: Fix C++ test error on mingw.
13878         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13879
13880 2010-04-03  Bruno Haible  <bruno@clisp.org>
13881
13882         Update doc regarding mingw.
13883         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13884         * doc/glibc-functions/login_tty.texi: Likewise.
13885         * doc/glibc-functions/forkpty.texi: Likewise.
13886
13887 2010-04-03  Bruno Haible  <bruno@clisp.org>
13888
13889         stdlib: Avoid compilation failure of c-strtold on mingw.
13890         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13891
13892 2010-04-03  Bruno Haible  <bruno@clisp.org>
13893
13894         locale: Make C++ tests work on Cygwin and mingw.
13895         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13896         cannot provide the function.
13897         Reported by Simon Josefsson.
13898
13899 2010-04-03  Bruno Haible  <bruno@clisp.org>
13900
13901         localename: Port to MacOS X 10.6.
13902         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13903         memory layout of the locales in MacOS X 10.6 as well.
13904         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13905
13906 2010-04-02  Bruno Haible  <bruno@clisp.org>
13907
13908         gnulib-tool: Ensure that long-running tests are executed last.
13909         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13910         running tests after the one for the other tests.
13911
13912 2010-04-02  Bruno Haible  <bruno@clisp.org>
13913
13914         gnulib-tool: Ensure the tests in the main directory are executed first.
13915         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13916         start with the current directory.
13917
13918 2010-04-02  Bruno Haible  <bruno@clisp.org>
13919
13920         Tests for module 'havelib', moved here from GNU gettext.
13921         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13922         modifications.
13923         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13924         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13925         with modifications.
13926         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13927         modifications.
13928         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13929         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13930         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13931         with modifications.
13932         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13933         with modifications.
13934         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
13935         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
13936         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13937         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13938         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13939         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13940         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13941         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13942         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13943         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13944         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13945         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13946         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13947         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13948         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13949         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13950         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13951         with modifications.
13952         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13953         with modifications.
13954         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13955         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13956         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13957         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13958         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13959         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13960         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13961         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13962         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13963         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13964         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13965         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13966         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13967         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13968         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13969         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13970         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13971         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13972         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13973         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13974         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13975         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13976         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13977         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13978         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13979         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13980         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13981         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13982         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13983         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13984         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13985         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13986         * tests/havelib/rpathx/rpathx.c: New file, from
13987         gettext/autoconf-lib-link.
13988         * tests/havelib/rpathx/Makefile.am: New file, from
13989         gettext/autoconf-lib-link.
13990         * tests/havelib/rpathx/configure.ac: New file, from
13991         gettext/autoconf-lib-link with modifications.
13992         * tests/havelib/rpathy/rpathy.c: New file, from
13993         gettext/autoconf-lib-link.
13994         * tests/havelib/rpathy/Makefile.am: New file, from
13995         gettext/autoconf-lib-link.
13996         * tests/havelib/rpathy/configure.ac: New file, from
13997         gettext/autoconf-lib-link with modifications.
13998         * tests/havelib/rpathz/rpathz.c: New file, from
13999         gettext/autoconf-lib-link.
14000         * tests/havelib/rpathz/Makefile.am: New file, from
14001         gettext/autoconf-lib-link.
14002         * tests/havelib/rpathz/configure.ac: New file, from
14003         gettext/autoconf-lib-link with modifications.
14004         * tests/havelib/rpathlx/usex.c: New file, from
14005         gettext/autoconf-lib-link.
14006         * tests/havelib/rpathlx/Makefile.am: New file, from
14007         gettext/autoconf-lib-link.
14008         * tests/havelib/rpathlx/configure.ac: New file, from
14009         gettext/autoconf-lib-link with modifications.
14010         * tests/havelib/rpathly/usey.c: New file, from
14011         gettext/autoconf-lib-link.
14012         * tests/havelib/rpathly/Makefile.am: New file, from
14013         gettext/autoconf-lib-link.
14014         * tests/havelib/rpathly/configure.ac: New file, from
14015         gettext/autoconf-lib-link with modifications.
14016         * tests/havelib/rpathlz/usez.c: New file, from
14017         gettext/autoconf-lib-link.
14018         * tests/havelib/rpathlz/Makefile.am: New file, from
14019         gettext/autoconf-lib-link.
14020         * tests/havelib/rpathlz/configure.ac: New file, from
14021         gettext/autoconf-lib-link with modifications.
14022         * tests/havelib/rpathlyx/usey.c: New file, from
14023         gettext/autoconf-lib-link.
14024         * tests/havelib/rpathlyx/Makefile.am: New file, from
14025         gettext/autoconf-lib-link.
14026         * tests/havelib/rpathlyx/configure.ac: New file, from
14027         gettext/autoconf-lib-link with modifications.
14028         * tests/havelib/rpathlzyx/usez.c: New file, from
14029         gettext/autoconf-lib-link.
14030         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14031         gettext/autoconf-lib-link.
14032         * tests/havelib/rpathlzyx/configure.ac: New file, from
14033         gettext/autoconf-lib-link with modifications.
14034         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14035         with modifications.
14036
14037 2010-04-02  Bruno Haible  <bruno@clisp.org>
14038
14039         gnulib-tool: Create distributed built sources also for the tests.
14040         * gnulib-tool (func_create_testdir): Also generate distributed built
14041         sources in the tests directory.
14042
14043 2010-04-02  Bruno Haible  <bruno@clisp.org>
14044
14045         gnulib-tool: Obey user's environment variables.
14046         * gnulib-tool (func_create_testdir): When creating built sources,
14047         respect the environment variables for autoconf, automake, etc. given by
14048         the user.
14049
14050 2010-04-02  Bruno Haible  <bruno@clisp.org>
14051
14052         gnulib-tool: Provide the value of --m4-base to modules.
14053         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14054         of gl_m4_base.
14055
14056 2010-04-02  Eric Blake  <eblake@redhat.com>
14057
14058         maint.mk: fix some fallout
14059         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14060         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14061
14062 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14063
14064         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14065         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14066         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14067         (sc_cast_of_x_alloc_return_value): Likewise.
14068         (sc_cast_of_alloca_return_value): Likewise.
14069         (sc_space_tab): Likewise.
14070         (sc_prohibit_atoi_atof): Likewise.
14071         (sc_prohibit_magic_number_exit): Likewise.
14072         (sc_error_exit_success): Likewise.
14073         (sc_file_system): Likewise.
14074         (sc_prohibit_have_config_h): Likewise.
14075         (sc_require_config_h): Likewise.
14076         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14077         (sc_obsolete_symbols): Likewise.
14078         (sc_changelog): Likewise.
14079         (sc_program_name): Likewise.
14080         (sc_the_the): Likewise.
14081         (sc_trailing_blank): Likewise.
14082         (sc_two_space_separator_in_usage): Likewise.
14083         (sc_useless_cpp_parens): Likewise.
14084         (sc_GPL_version): Likewise.
14085         (sc_GFDL_version): Likewise.
14086         (sc_texinfo_acronym): Likewise.
14087         (sc_prohibit_cvs_keyword): Likewise.
14088         (sc_prohibit_stat_st_blocks): Likewise.
14089         (sc_prohibit_S_IS_definition): Likewise.
14090         (sc_redundant_const): Likewise.
14091         (sc_makefile_TAB_only_indentation): Likewise.
14092         (sc_m4_quote_check): Likewise.
14093         (sc_makefile_path_separator_check): Likewise.
14094         (sc_copyright_check): Likewise.
14095         (sc_Wundef_boolean): Likewise.
14096         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14097
14098         maint.mk: match 0 or more whitespace-before-function-call '('
14099         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14100         that have zero or two-and-more spaces between the function name
14101         and the open parenthesis.
14102         (sc_error_message_warn_fatal): Likewise.
14103         (sc_error_message_uppercase): Likewise.
14104         (sc_error_message_period): Likewise.
14105
14106 2010-03-31  Eric Blake  <eblake@redhat.com>
14107
14108         maint.mk: check for [ as well as test
14109         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14110         Based on a libvirt report by Matthias Bolte.
14111
14112         gnumakefile: don't squelch _version output
14113         * top/GNUmakefile (_version): Create one-shot dependency rather
14114         than using $(shell) when version must be regenerated.
14115         (_autoreconf): Run verbosely, by default.
14116
14117         sys_time: avoid compiler warnings
14118         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14119         unconditional, fixing regression from 2010-03-29.
14120         Reported by Simon Josefsson.
14121
14122 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14123
14124         maint.mk: s/_header_without_use/_sc_header_without_use/
14125         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14126         (sc_prohibit_assert_without_use): Use the new name.
14127         (sc_prohibit_close_stream_without_use): Likewise.
14128         (sc_prohibit_getopt_without_use): Likewise.
14129         (sc_prohibit_quotearg_without_use): Likewise.
14130         (sc_prohibit_quote_without_use): Likewise.
14131         (sc_prohibit_long_options_without_use): Likewise.
14132         (sc_prohibit_inttostr_without_use): Likewise.
14133         (sc_prohibit_ignore_value_without_use): Likewise.
14134         (sc_prohibit_error_without_use): Likewise.
14135         (sc_prohibit_xalloc_without_use): Likewise.
14136         (sc_prohibit_hash_without_use): Likewise.
14137         (sc_prohibit_hash_pjw_without_use): Likewise.
14138         (sc_prohibit_safe_read_without_use): Likewise.
14139         (sc_prohibit_argmatch_without_use): Likewise.
14140         (sc_prohibit_canonicalize_without_use): Likewise.
14141         (sc_prohibit_root_dev_ino_without_use): Likewise.
14142         (sc_prohibit_openat_without_use): Likewise.
14143         (sc_prohibit_c_ctype_without_use): Likewise.
14144         (sc_prohibit_signal_without_use): Likewise.
14145         (sc_prohibit_intprops_without_use): Likewise.
14146
14147 2010-03-30  Eric Blake  <eblake@redhat.com>
14148
14149         maint: improve module indicators
14150         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14151         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14152         columns, and avoid extra macro expansion.
14153
14154         fdopendir: work around FreeBSD bug
14155         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14156         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14157         * modules/dirent (Makefile.am): Substitute it.
14158         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14159         declaration.
14160         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14161         fix.
14162         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14163
14164 2010-03-29  Bruno Haible  <bruno@clisp.org>
14165
14166         Emit #pragma system_header after the inclusion guard, not before.
14167         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14168         guard that spans the entire file, not before. This enables an
14169         optimization in GCC's preprocessor.
14170         * lib/ctype.in.h: Likewise.
14171         * lib/dirent.in.h: Likewise.
14172         * lib/errno.in.h: Likewise.
14173         * lib/float.in.h: Likewise.
14174         * lib/getopt.in.h: Likewise.
14175         * lib/iconv.in.h: Likewise.
14176         * lib/langinfo.in.h: Likewise.
14177         * lib/locale.in.h: Likewise.
14178         * lib/math.in.h: Likewise.
14179         * lib/netdb.in.h: Likewise.
14180         * lib/netinet_in.in.h: Likewise.
14181         * lib/pty.in.h: Likewise.
14182         * lib/sched.in.h: Likewise.
14183         * lib/se-selinux.in.h: Likewise.
14184         * lib/search.in.h: Likewise.
14185         * lib/spawn.in.h: Likewise.
14186         * lib/stdarg.in.h: Likewise.
14187         * lib/stdint.in.h: Likewise.
14188         * lib/string.in.h: Likewise.
14189         * lib/strings.in.h: Likewise.
14190         * lib/sys_file.in.h: Likewise.
14191         * lib/sys_ioctl.in.h: Likewise.
14192         * lib/sys_time.in.h: Likewise.
14193         * lib/sys_times.in.h: Likewise.
14194         * lib/sys_utsname.in.h: Likewise.
14195         * lib/sys_wait.in.h: Likewise.
14196         * lib/sysexits.in.h: Likewise.
14197         * lib/wctype.in.h: Likewise.
14198
14199 2010-03-28  James Youngman  <jay@gnu.org>
14200
14201         save-cwd: don't leak a file descriptor when the caller execs.
14202         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14203         saved file descriptor.
14204         * modules/save-cwd (Depends-on): Depend on cloexec.
14205
14206 2010-03-29  Bruno Haible  <bruno@clisp.org>
14207
14208         Remove vestiges of fts-lgpl module.
14209         * lib/fts_.h: Assume GNULIB_FTS is 1.
14210         * lib/fts.c: Likewise.
14211         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14212
14213 2010-03-28  Bruno Haible  <bruno@clisp.org>
14214
14215         Fix definition of tests witness macro.
14216         * gnulib-tool (func_import): Fix definition of witness macro.
14217
14218 2010-03-28  Bruno Haible  <bruno@clisp.org>
14219
14220         Fix ioctl's protoype on glibc systems.
14221         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
14222         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
14223         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
14224         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
14225         signature. If not, arrange to replace the ioctl function.
14226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14227         REPLACE_IOCTL.
14228         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
14229         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
14230         Reported by Ludovic Courtès <ludo@gnu.org>.
14231
14232 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
14233
14234         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
14235         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
14236         made it so grep -r --include=GLOB* ... did not work.
14237
14238 2010-03-26  Jim Meyering  <meyering@redhat.com>
14239             Eric Blake  <eblake@redhat.com>
14240
14241         maint.mk: prohibit use of test's -o and -a operators
14242         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
14243
14244 2010-03-28  Bruno Haible  <bruno@clisp.org>
14245
14246         Remove unused GNULIB_XYZ macro definitions.
14247         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
14248         invocation.
14249
14250 2010-03-28  Bruno Haible  <bruno@clisp.org>
14251
14252         Mark privileged tests modules.
14253         * modules/idpriv-drop-tests (Status): New section.
14254         * modules/idpriv-droptemp-tests (Status): New section.
14255
14256 2010-03-28  Bruno Haible  <bruno@clisp.org>
14257
14258         Split C++ tests into separate tests modules.
14259         * modules/dirent-c++-tests: New file, extracted from
14260         modules/dirent-tests.
14261         * modules/dirent-tests: Depend on it.
14262         * modules/fcntl-h-c++-tests: New file, extracted from
14263         modules/fcntl-h-tests.
14264         * modules/fcntl-h-tests: Depend on it.
14265         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
14266         * modules/glob-tests: Depend on it.
14267         * modules/iconv-h-c++-tests: New file, extracted from
14268         modules/iconv-h-tests.
14269         * modules/iconv-h-tests: Depend on it.
14270         * modules/langinfo-c++-tests: New file, extracted from
14271         modules/langinfo-tests.
14272         * modules/langinfo-tests: Depend on it.
14273         * modules/locale-c++-tests: New file, extracted from
14274         modules/locale-tests.
14275         * modules/locale-tests: Depend on it.
14276         * modules/math-c++-tests: New file, extracted from modules/math-tests.
14277         * modules/math-tests: Depend on it.
14278         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
14279         * modules/pty-tests: Depend on it.
14280         * modules/search-c++-tests: New file, extracted from
14281         modules/search-tests.
14282         * modules/search-tests: Depend on it.
14283         * modules/signal-c++-tests: New file, extracted from
14284         modules/signal-tests.
14285         * modules/signal-tests: Depend on it.
14286         * modules/spawn-c++-tests: New file, extracted from
14287         modules/spawn-tests.
14288         * modules/spawn-tests: Depend on it.
14289         * modules/stdio-c++-tests: New file, extracted from
14290         modules/stdio-tests.
14291         * modules/stdio-tests: Depend on it.
14292         * modules/stdlib-c++-tests: New file, extracted from
14293         modules/stdlib-tests.
14294         * modules/stdlib-tests: Depend on it.
14295         * modules/string-c++-tests: New file, extracted from
14296         modules/string-tests.
14297         * modules/string-tests: Depend on it.
14298         * modules/sys_ioctl-c++-tests: New file, extracted from
14299         modules/sys_ioctl-tests.
14300         * modules/sys_ioctl-tests: Depend on it.
14301         * modules/sys_select-c++-tests: New file, extracted from
14302         modules/sys_select-tests.
14303         * modules/sys_select-tests: Depend on it.
14304         * modules/sys_socket-c++-tests: New file, extracted from
14305         modules/sys_socket-tests.
14306         * modules/sys_socket-tests: Depend on it.
14307         * modules/sys_stat-c++-tests: New file, extracted from
14308         modules/sys_stat-tests.
14309         * modules/sys_stat-tests: Depend on it.
14310         * modules/sys_time-c++-tests: New file, extracted from
14311         modules/sys_time-tests.
14312         * modules/sys_time-tests: Depend on it.
14313         * modules/time-c++-tests: New file, extracted from modules/time-tests.
14314         * modules/time-tests: Depend on it.
14315         * modules/unistd-c++-tests: New file, extracted from
14316         modules/unistd-tests.
14317         * modules/unistd-tests: Depend on it.
14318         * modules/wchar-c++-tests: New file, extracted from
14319         modules/wchar-tests.
14320         * modules/wchar-tests: Depend on it.
14321         * modules/wctype-c++-tests: New file, extracted from
14322         modules/wctype-tests.
14323         * modules/wctype-tests: Depend on it.
14324         Reported by Simon Josefsson.
14325
14326 2010-03-28  Bruno Haible  <bruno@clisp.org>
14327
14328         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
14329         * gnulib-tool (func_exists_module): New function, extracted from
14330         func_verify_module.
14331         (func_verify_module): Use it.
14332         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
14333         'foo' only if 'foo' exists.
14334         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
14335         module.
14336
14337 2010-03-28  Bruno Haible  <bruno@clisp.org>
14338
14339         gnulib-tool: Add support for special categories of tests.
14340         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
14341         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
14342         (func_usage): Document them.
14343         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
14344         inc_unportable_tests, inc_all_tests): New variables.
14345         (func_acceptable): Consider these variables.
14346         (func_modules_transitive_closure): Make it work when the 'Status' field
14347         consists of multiple words.
14348         (func_import): Store and restore the values of inc_cxx_tests,
14349         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
14350         inc_all_tests in gnulib-comp.m4.
14351         (func_create_testdir): Set inc_all_tests to true.
14352         * doc/gnulib.texi (Extra tests modules): New section.
14353         Suggested by Jim Meyering.
14354
14355 2010-03-28  Bruno Haible  <bruno@clisp.org>
14356
14357         ansi-c++-opt: Allow turning off the C++ build by default.
14358         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
14359         gl_CXX_CHOICE_DEFAULT_NO is defined.
14360         Requested by Eric Blake.
14361
14362 2010-03-28  Bruno Haible  <bruno@clisp.org>
14363
14364         unistd: Avoid #define replacements in C++ mode.
14365         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14366         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14367         setsockopt, shutdown, select): In C++, attach a warning to the function
14368         if possible, rather than #defining the symbol to a dysfunctional alias.
14369         Reported by John W. Eaton <jwe@gnu.org>.
14370
14371 2010-03-28  Bruno Haible  <bruno@clisp.org>
14372
14373         Fix link errors on mingw.
14374         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
14375         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
14376         $(LIBSOCKET).
14377         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
14378         $(LIBSOCKET).
14379
14380 2010-03-28  Bruno Haible  <bruno@clisp.org>
14381             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14382
14383         lib-ignore: Determine different options for different compilers.
14384         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
14385         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
14386         Add comments.
14387         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
14388         * NEWS: Mention the change.
14389
14390 2010-03-27  Bruno Haible  <bruno@clisp.org>
14391
14392         Remove unused GNULIB_XYZ macro definitions.
14393         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14394         * modules/fseek (configure.ac): Likewise.
14395         * modules/ioctl (configure.ac): Likewise.
14396         * modules/open (configure.ac): Likewise.
14397         * modules/stdlib-safer (configure.ac): Likewise.
14398
14399 2010-03-27  Bruno Haible  <bruno@clisp.org>
14400
14401         Add a remark about certain modules.
14402         * modules/malloc (Comment): New section.
14403         * modules/realloc (Comment): Likewise.
14404         * modules/sigpipe (Comment): Likewise.
14405
14406 2010-03-27  Bruno Haible  <bruno@clisp.org>
14407
14408         Resolve conflict between the two kinds of module indicators.
14409         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
14410         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
14411         * modules/canonicalize (configure.ac): Invoke
14412         gl_MODULE_INDICATOR_FOR_TESTS.
14413         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
14414         GNULIB_XYZ.
14415         * tests/test-dirent-c++.cc: Likewise.
14416         * tests/test-dirent-safer.c: Likewise.
14417         * tests/test-dup2.c: Likewise.
14418         * tests/test-fchdir.c: Likewise.
14419         * tests/test-fcntl-h-c++.cc: Likewise.
14420         * tests/test-getopt.c: Likewise.
14421         * tests/test-getopt.h: Likewise.
14422         * tests/test-langinfo-c++.cc: Likewise.
14423         * tests/test-locale-c++.cc: Likewise.
14424         * tests/test-math-c++.cc: Likewise.
14425         * tests/test-pty-c++.cc: Likewise.
14426         * tests/test-search-c++.cc: Likewise.
14427         * tests/test-signal-c++.cc: Likewise.
14428         * tests/test-spawn-c++.cc: Likewise.
14429         * tests/test-stdio-c++.cc: Likewise.
14430         * tests/test-stdlib-c++.cc: Likewise.
14431         * tests/test-string-c++.cc: Likewise.
14432         * tests/test-sys_ioctl-c++.cc: Likewise.
14433         * tests/test-sys_select-c++.cc: Likewise.
14434         * tests/test-sys_socket-c++.cc: Likewise.
14435         * tests/test-sys_stat-c++.cc: Likewise.
14436         * tests/test-sys_time-c++.cc: Likewise.
14437         * tests/test-time-c++.cc: Likewise.
14438         * tests/test-unistd-c++.cc: Likewise.
14439         * tests/test-wchar-c++.cc: Likewise.
14440         * tests/uninorm/test-u8-nfc.c: Likewise.
14441         * tests/uninorm/test-u8-nfd.c: Likewise.
14442         * tests/uninorm/test-u8-nfkc.c: Likewise.
14443         * tests/uninorm/test-u8-nfkd.c: Likewise.
14444         * tests/uninorm/test-u16-nfc.c: Likewise.
14445         * tests/uninorm/test-u16-nfd.c: Likewise.
14446         * tests/uninorm/test-u16-nfkc.c: Likewise.
14447         * tests/uninorm/test-u16-nfkd.c: Likewise.
14448         * tests/uninorm/test-u32-nfc.c: Likewise.
14449         * tests/uninorm/test-u32-nfc-big.c: Likewise.
14450         * tests/uninorm/test-u32-nfd.c: Likewise.
14451         * tests/uninorm/test-u32-nfd-big.c: Likewise.
14452         * tests/uninorm/test-u32-nfkc.c: Likewise.
14453         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
14454         * tests/uninorm/test-u32-nfkd.c: Likewise.
14455         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
14456         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14457
14458 2010-03-27  Bruno Haible  <bruno@clisp.org>
14459
14460         Distinguish two kinds of module indicators.
14461         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
14462         gl_MODULE_INDICATOR.
14463         (gl_MODULE_INDICATOR): New macro.
14464         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14465         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
14466         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14467         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14468         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14469         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14470         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14471         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14472         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14473         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14474         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14475         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14478         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14479         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14480         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14481         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14482         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14483         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14484         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14485         * modules/cloexec (configure.ac): Likewise.
14486         * modules/getopt-gnu (configure.ac): Likewise.
14487         * modules/uninorm/u8-normalize (configure.ac): Likewise.
14488         * modules/uninorm/u16-normalize (configure.ac): Likewise.
14489         * modules/uninorm/u32-normalize (configure.ac): Likewise.
14490         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
14491
14492 2010-03-27  Bruno Haible  <bruno@clisp.org>
14493
14494         New module description field 'Comment'.
14495         * gnulib-tool: New option --extract-comment.
14496         (func_usage): Document it.
14497         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
14498         (func_get_comment): New function.
14499         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
14500
14501 2010-03-27  Bruno Haible  <bruno@clisp.org>
14502
14503         Addendum to 2010-02-07 commit.
14504         * gnulib-tool (func_usage): Document --extract-applicability option.
14505
14506 2010-03-27  Bruno Haible  <bruno@clisp.org>
14507
14508         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
14509         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
14510         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
14511         rather than link errors.
14512
14513 2010-03-27  Bruno Haible  <bruno@clisp.org>
14514
14515         Avoid side effects from tests-related modules on the compilation of lib.
14516         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
14517         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
14518         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
14519         parameter. Emit into AM_CPPFLAGS a definition of the designated C
14520         macro.
14521         (func_import): Define a witness macro. Assign it a value that depends
14522         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
14523         tests-related modules.
14524         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
14525         Reported by Jim Meyering.
14526
14527 2010-03-27  Bruno Haible  <bruno@clisp.org>
14528
14529         Factorize common .m4 code.
14530         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
14531         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
14532         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
14533         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
14534         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14535         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
14536         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
14537         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14538         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14539         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14540         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
14541         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14542         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14543         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14544         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14545         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
14546         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14547         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14548         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14549         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
14550         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
14551         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14552         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14553         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14554         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14555         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14556         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14557         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14558         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14559         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14560         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14561         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14562
14563 2010-03-27  Bruno Haible  <bruno@clisp.org>
14564
14565         Fix a compilation error on Cygwin with g++ >= 4.3.
14566         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14567         if it is undefined or if we alias it to chmod.
14568         (lstat): Don't warn about the use of this function if it is undefined
14569         or if we alias it to stat.
14570         Reported by Simon Josefsson.
14571
14572 2010-03-27  Bruno Haible  <bruno@clisp.org>
14573
14574         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14575         * modules/getlogin (configure.ac): Update.
14576
14577         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14578         * modules/getlogin_r (configure.ac): Update.
14579
14580         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14582         * modules/inet_ntop (configure.ac): Update.
14583
14584         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14585         * modules/inet_pton (configure.ac): Update.
14586
14587         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14588         * modules/mbslen (configure.ac): Update.
14589
14590         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14591         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14592         * modules/forkpty (configure.ac): Update.
14593         * modules/openpty (configure.ac): Update.
14594
14595 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14596
14597         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14598         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14599
14600 2010-03-25  Eric Blake  <eblake@redhat.com>
14601
14602         maint: use pragma consistently across replacement headers
14603         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14604         * lib/dirent.in.h (system_header): Likewise.
14605         * lib/errno.in.h (system_header): Likewise.
14606         * lib/float.in.h (system_header): Likewise.
14607         * lib/getopt.in.h (system_header): Likewise.
14608         * lib/iconv.in.h (system_header): Likewise.
14609         * lib/inttypes.in.h (system_header): Likewise.
14610         * lib/langinfo.in.h (system_header): Likewise.
14611         * lib/locale.in.h (system_header): Likewise.
14612         * lib/math.in.h (system_header): Likewise.
14613         * lib/netdb.in.h (system_header): Likewise.
14614         * lib/netinet_in.in.h (system_header): Likewise.
14615         * lib/pty.in.h (system_header): Likewise.
14616         * lib/sched.in.h (system_header): Likewise.
14617         * lib/se-selinux.in.h (system_header): Likewise.
14618         * lib/search.in.h (system_header): Likewise.
14619         * lib/spawn.in.h (system_header): Likewise.
14620         * lib/stdarg.in.h (system_header): Likewise.
14621         * lib/stdint.in.h (system_header): Likewise.
14622         * lib/string.in.h (system_header): Likewise.
14623         * lib/strings.in.h (system_header): Likewise.
14624         * lib/sys_file.in.h (system_header): Likewise.
14625         * lib/sys_ioctl.in.h (system_header): Likewise.
14626         * lib/sys_socket.in.h (system_header): Likewise.
14627         * lib/sys_times.in.h (system_header): Likewise.
14628         * lib/sys_utsname.in.h (system_header): Likewise.
14629         * lib/sys_wait.in.h (system_header): Likewise.
14630         * lib/sysexits.in.h (system_header): Likewise.
14631         * lib/unistd.in.h (system_header): Likewise.
14632         * lib/wctype.in.h (system_header): Likewise.
14633
14634         arpa/inet: fix mingw compilation warning
14635         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14636         Reported by Matthew Bolte.
14637
14638 2010-03-25  Bruno Haible  <bruno@clisp.org>
14639
14640         Avoid collision between gnulib wrapper and libintl wrapper.
14641         * lib/printf.c (printf): Don't define if a printf wrapper is already
14642         defined in intl/printf.c.
14643         Reported by Michel Boaventura <michel@michelboaventura.com>.
14644
14645 2010-03-25  Bruno Haible  <bruno@clisp.org>
14646
14647         Use ANSI C.
14648         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14649
14650 2010-03-25  Bruno Haible  <bruno@clisp.org>
14651
14652         Minor formatting changes.
14653         * lib/acosl.c: Insert space before function argument list.
14654         * lib/argz.c: Likewise.
14655         * lib/asinl.c: Likewise.
14656         * lib/expl.c: Likewise.
14657         * lib/gen-uni-tables.c: Likewise.
14658         * lib/gettext.h: Likewise.
14659         * lib/glthread/lock.h: Likewise.
14660         * lib/tanl.c: Likewise.
14661         * lib/uniname/uniname.c: Likewise.
14662         * tests/test-idpriv-drop.c: Likewise.
14663         * tests/test-idpriv-droptemp.c: Likewise.
14664         * tests/test-lock.c: Likewise.
14665         * tests/test-tls.c: Likewise.
14666         * lib/argp-help.c: Insert space before function-like macro argument
14667         list.
14668         * lib/memcmp.c: Likewise.
14669         * tests/test-base64.c: Likewise.
14670         * lib/localename.c: Insert space before sizeof's argument list.
14671         * lib/safe-alloc.h: Likewise.
14672         * lib/file-set.h: Insert space before macro argument list.
14673         * tests/test-argp.c: Likewise.
14674         * lib/argp-namefrob.h: Insert space before function parameter list.
14675         * lib/getaddrinfo.c: Likewise.
14676         * lib/netdb.in.h: Likewise.
14677         * lib/parse-duration.h: Likewise.
14678         * lib/parse-duration.c: Likewise.
14679         * lib/poll.c: Likewise.
14680         * lib/select.c: Likewise.
14681         * lib/trim.h: Likewise.
14682         * tests/test-usleep.c: Likewise.
14683         * lib/ldexpl.c: Insert space before function parameter list and before
14684         function argument list.
14685         * lib/logl.c: Likewise.
14686         * lib/sqrtl.c: Likewise.
14687         * lib/trim.c: Likewise.
14688         * lib/cosl.c: Use GNU style indentation. Insert space before function
14689         argument list.
14690         * lib/sinl.c: Likewise.
14691         * lib/tsearch.c: Insert space after 'for'.
14692         Reported by Jim Meyering.
14693
14694 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14695
14696         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14697         config header before grepping, as it's not present before
14698         autoreconf/configure are run.  Reported by Simon Josefsson.
14699
14700 2010-03-23  Bruno Haible  <bruno@clisp.org>
14701
14702         pt_chown: Make it work with automake < 1.11.
14703         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14704         Reported by Simon Josefsson.
14705
14706 2010-03-23  Bruno Haible  <bruno@clisp.org>
14707
14708         pt_chown: Don't depend on GPLed modules.
14709         * lib/pt_chown.c: Don't include idpriv.h.
14710         (main): Don't drop privileges.
14711         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14712         Reported by Simon Josefsson.
14713
14714 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14715
14716         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14717         suggestions from karl@freefriends.org (Karl Berry).
14718
14719 2010-03-22  Eric Blake  <eblake@redhat.com>
14720
14721         gethostname: further tweaks
14722         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14723         are overriding gethostname.
14724         Suggested by Bruno Haible.
14725
14726 2010-03-21  Bruno Haible  <bruno@clisp.org>
14727
14728         Fix comments.
14729         * lib/forkpty.c (rpl_forkpty): Fix comment.
14730         * lib/openpty.c (rpl_openpty): Likewise.
14731         Reported by Eric Blake.
14732
14733 2010-03-22  Eric Blake  <eblake@redhat.com>
14734
14735         gethostname: fix build on mingw
14736         * lib/unistd.in.h (includes): Work around fact that mingw
14737         <winsock2.h> re-includes <unistd.h>, by avoiding any
14738         redeclarations if we are being included by <winsock2.h>.
14739         Reported by Matthias Bolte.
14740
14741 2010-03-21  Bruno Haible  <bruno@clisp.org>
14742
14743         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14744         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14745         modifications.
14746         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14747         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14748         provide the replacement.
14749         * modules/forkpty (Depends-on): Add openpty, login_tty.
14750         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14751         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14752         * doc/glibc-functions/forkpty.texi: More supported platforms.
14753         * config/srclist.txt: Add forkpty.c (commented).
14754
14755 2010-03-21  Bruno Haible  <bruno@clisp.org>
14756
14757         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14758         (Makefile.am): Verify that PTY_LIB is defined.
14759
14760         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14761
14762 2010-03-21  Bruno Haible  <bruno@clisp.org>
14763
14764         Tests for module 'login_tty'.
14765         * modules/login_tty-tests: New file.
14766         * tests/test-login_tty.c: New file.
14767
14768         New module 'login_tty'.
14769         * lib/login_tty.c: New file.
14770         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14771         * modules/login_tty: New file.
14772         * doc/glibc-functions/login_tty.texi: Mention the new module.
14773
14774 2010-03-21  Bruno Haible  <bruno@clisp.org>
14775
14776         login_tty: Documentation.
14777         * doc/glibc-functions/login_tty.texi: New file.
14778         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14779
14780 2010-03-21  Bruno Haible  <bruno@clisp.org>
14781
14782         pty: Consistent macro naming.
14783         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14784         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14785         * modules/pty (configure.ac): Update.
14786
14787 2010-03-21  Bruno Haible  <bruno@clisp.org>
14788
14789         Tests for openpty: Make stricter.
14790         * tests/test-openpty.c (main): Add test of canonical processing and
14791         erase.
14792         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14793
14794         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14795         * lib/openpty.c (openpty): New replacement function.
14796         * lib/pty.in.h: Include <termios.h>.
14797         (openpty): Update declaration. Add comments.
14798         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14799         is not declared, arrange to provide the replacement. Check for _getpty
14800         and posix_openpt.
14801         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14802         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14803         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14804         * modules/pty-tests (test_pty_c___LDADD): New variable.
14805         * doc/glibc-functions/openpty.texi: More supported platforms.
14806
14807 2010-03-21  Bruno Haible  <bruno@clisp.org>
14808
14809         setenv: Tweaks.
14810         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14811         the test program.
14812         * doc/posix-functions/setenv.texi: Update platforms list.
14813
14814 2010-03-21  Bruno Haible  <bruno@clisp.org>
14815
14816         New module 'unlockpt'.
14817         * lib/unlockpt.c: New file, from glibc with modifications.
14818         * m4/unlockpt.m4: New file.
14819         * modules/unlockpt: New file.
14820         * lib/stdlib.in.h (unlockpt): New declaration.
14821         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14822         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14823         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14824         HAVE_UNLOCKPT.
14825         * doc/posix-functions/unlockpt.texi: Mention the new module.
14826         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14827         * config/srclist.txt: Add unlockpt.c (commented).
14828
14829 2010-03-21  Jim Meyering  <meyering@redhat.com>
14830
14831         maint.mk: prohibit inclusion of "intprops.h" without use
14832         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14833
14834 2010-03-21  Bruno Haible  <bruno@clisp.org>
14835
14836         New module 'grantpt'.
14837         * lib/grantpt.c: New file, from glibc with modifications.
14838         * m4/grantpt.m4: New file.
14839         * modules/grantpt: New file.
14840         * lib/stdlib.in.h (grantpt): New declaration.
14841         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14842         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14843         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14844         HAVE_GRANTPT.
14845         * doc/posix-functions/grantpt.texi: Mention the new module.
14846         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14847         * config/srclist.txt: Add grantpt.c (commented).
14848
14849 2010-03-21  Bruno Haible  <bruno@clisp.org>
14850
14851         New module 'pt_chown'.
14852         * lib/pt_chown.c: New file, from glibc with modifications.
14853         * lib/pty-private.h: New file, from glibc with modifications.
14854         * modules/pt_chown: New file.
14855         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14856
14857 2010-03-21  Bruno Haible  <bruno@clisp.org>
14858
14859         Tests for module 'ptsname'.
14860         * modules/ptsname-tests: New file.
14861         * tests/test-ptsname.c: New file.
14862
14863         New module 'ptsname'.
14864         * lib/ptsname.c: New file, from glibc with modifications.
14865         * m4/ptsname.m4: New file.
14866         * modules/ptsname: New file.
14867         * lib/stdlib.in.h (ptsname): New declaration.
14868         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14869         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14870         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14871         HAVE_PTSNAME.
14872         * doc/posix-functions/ptsname.texi: Mention the new module.
14873         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14874         * config/srclist.txt: Add ptsname.c (commented).
14875
14876 2010-03-21  Bruno Haible  <bruno@clisp.org>
14877
14878         Tests for module 'ttyname_r'.
14879         * modules/ttyname_r-tests: New file.
14880         * tests/test-ttyname_r.c: New file.
14881
14882         New module 'ttyname_r'.
14883         * lib/ttyname_r.c: New file.
14884         * m4/ttyname_r.m4: New file.
14885         * modules/ttyname_r: New file.
14886         * lib/unistd.in.h (ttyname_r): New declaration.
14887         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14888         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14889         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14890         HAVE_TTYNAME_R.
14891         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14892         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14893
14894 2010-03-20  Bruno Haible  <bruno@clisp.org>
14895
14896         signal: Undefine macro definitions in C++ mode.
14897         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14898         sigfillset): Undefine macro definitions from the system header in C++
14899         mode.
14900         Reported by John W. Eaton <jwe@gnu.org>.
14901
14902 2010-03-20  Bruno Haible  <bruno@clisp.org>
14903
14904         Ensure no #include statements inside extern "C" { ... }.
14905         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14906         contain #include statements.
14907         * lib/time.in.h: Likewise.
14908
14909 2010-03-20  Bruno Haible  <bruno@clisp.org>
14910
14911         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14912         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14913         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14914         Reported by John W. Eaton <jwe@gnu.org>.
14915
14916 2010-03-20  Bruno Haible  <bruno@clisp.org>
14917
14918         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14919         Reported by Jim Meyering.
14920
14921 2010-03-20  Bruno Haible  <bruno@clisp.org>
14922
14923         pipe: Set errno upon failure.
14924         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14925         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14926         errno value in error message.
14927
14928 2010-03-20  Bruno Haible  <bruno@clisp.org>
14929             Jim Meyering  <meyering@redhat.com>
14930
14931         lchown: Avoid "unused variable" warning.
14932         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14933
14934 2010-03-20  Bruno Haible  <bruno@clisp.org>
14935
14936         Work around unlink() bug on MacOS X 10.5.6.
14937         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14938         attempting to unlink a parent directory.
14939         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14940         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14941         activate for the replacement function.
14942         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14943
14944 2010-03-20  Bruno Haible  <bruno@clisp.org>
14945
14946         Fix link errors on Solaris 8.
14947         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14948         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14949
14950 2010-03-19  Jim Meyering  <meyering@redhat.com>
14951
14952         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14953         The _LIBC implementation of build_range_exp correctly honors the
14954         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14955         However, the non-_LIBC implementation would ignore that syntax-bit
14956         flag and return REG_ERANGE unconditionally.
14957         This change makes it honor that flag.
14958         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14959         Make two pointer parameters "const".
14960         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14961         (parse_bracket_exp): Update caller.
14962
14963         regex.m4: correct the reversed range endpoint ([b-a]) test
14964         * m4/regex.m4: When requiring that [b-a] evoke failure,
14965         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14966         test pass once again for x86-based systems.
14967
14968 2010-03-19  Bruno Haible  <bruno@clisp.org>
14969
14970         scandir: Fix link error on Solaris 8.
14971         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14972         macros.
14973
14974 2010-03-19  Bruno Haible  <bruno@clisp.org>
14975
14976         getusershell: Fix documentation.
14977         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14978         module.
14979         * doc/glibc-functions/setusershell.texi: Likewise.
14980
14981         getusershell: Provide declaration, missing on Solaris 9.
14982         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14983         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14984         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14985         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14987         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14988         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14989         HAVE_GETUSERSHELL.
14990         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14991
14992 2010-03-19  Bruno Haible  <bruno@clisp.org>
14993
14994         wctype: Provide iswblank function.
14995         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14996         exists and is fine.
14997         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14998         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14999         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15000         * doc/posix-functions/iswblank.texi: Update.
15001
15002 2010-03-19  Bruno Haible  <bruno@clisp.org>
15003
15004         Tests of module 'pty' in C++ mode.
15005         * modules/pty-tests: New file.
15006         * tests/test-pty-c++.cc: New file.
15007         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15008
15009 2010-03-19  Eric Blake  <eblake@redhat.com>
15010
15011         logb: fix documentation
15012         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15013         1.5 declaration bug.
15014
15015         forkpty, openpty: prefer glibc's const-safe prototype
15016         * lib/forkpty.c (rpl_forkpty): New file.
15017         * lib/openpty.c (rpl_openpty): Likewise.
15018         * modules/forkpty (Files): Distribute it.
15019         * modules/openpty (Files): Likewise.
15020         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15021         check...
15022         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15023         replacement for for non-const BSD signature.
15024         * modules/pty (Makefile.am): Substitute witnesses.
15025         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15026         * tests/test-forkpty.c: Update signature check.
15027         * tests/test-openpty.c: Likewise.
15028         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15029         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15030
15031         forkpty, openpty: split functions into new modules
15032         * modules/pty (Makefile.am): Substitute new witnesses.
15033         (Libraries): Move library detection...
15034         * modules/forkpty: ...into new module.
15035         * modules/openpty: Another new module.
15036         * modules/pty-tests: Rename and split...
15037         * modules/forkpty-tests: ...to this...
15038         * modules/openpty-tests: ...and this.
15039         * tests/test-pty.c: Rename and split...
15040         * tests/test-forkpty.c: ...to this...
15041         * tests/test-openpty.c: ...and this.
15042         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15043         (gl_PTY): Split library searching...
15044         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15045         (gl_FORKPTY, gl_OPENPTY): New macros.
15046         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15047         * NEWS: Mention the split.
15048         * MODULES.html.sh (Misc): Document the modules.
15049         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15050         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15051
15052         pty: improve replacement header
15053         * lib/pty.in.h: New file.
15054         * modules/pty (Files): Ship it.
15055         (Makefile.am): Always build replacement.
15056         * m4/pty.m4: Rename...
15057         * m4/pty_h.m4: ...to this.
15058         (gl_PTY): Modernize setting of witness macros; update check of
15059         forkpty to take proper advantage of cache.
15060         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15061
15062         getopt: avoid compiler warning
15063         * lib/getopt.c (attribute_hidden): Remove unused macro.
15064
15065 2010-03-18  Bruno Haible  <bruno@clisp.org>
15066
15067         Fix link errors on Solaris 8.
15068         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15069         * modules/search-tests (test_search_c___LDADD): Likewise.
15070         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15071         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15072         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15073         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15074         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15075         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15076         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15077
15078 2010-03-18  Bruno Haible  <bruno@clisp.org>
15079
15080         Fix bug introduced on 2010-03-14.
15081         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15082         (gl_SPAWN_H): Require it.
15083         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15084         Reported by Simon Josefsson.
15085
15086 2010-03-18  Bruno Haible  <bruno@clisp.org>
15087
15088         Fix typo introduced on 2009-12-31.
15089         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15090         posix_spawn_file_actions_adddup2.
15091
15092 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15093         and Eric Blake  <eblake@redhat.com>
15094
15095         test-vc-list-files-git: make more robust
15096         * tests/test-vc-list-files-git.sh: Unset problematic environment
15097         variables.  Chain commands together.
15098
15099 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15100
15101         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15102         `AC_CHECK_DECL' invocation.
15103
15104 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15105
15106         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15107         appears before executable statements. Suggested by Petr Sumbera
15108         <Petr.Sumbera@Sun.COM>.
15109
15110 2010-03-14  Bruno Haible  <bruno@clisp.org>
15111
15112         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15113         portability problems. Instead use a simpler test.
15114         (main): Check that invalid arguments are rejected only on Linux.
15115
15116 2010-03-14  Bruno Haible  <bruno@clisp.org>
15117
15118         Fix bug introduced on 2009-12-31.
15119         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15120         gl_PREREQ_SYS_H_WINSOCK2 always.
15121         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15122         SYS_SOCKET_H variable.
15123         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15124         Update comments.
15125         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15126         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15127         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15128         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15129         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15130
15131 2010-03-14  Bruno Haible  <bruno@clisp.org>
15132
15133         Fix values returned by sinl, cosl.
15134         * lib/trigl.h: Add specification comments.
15135         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15136         that combines the values from the precomputed table with the values of
15137         the Chebyshev polynomials.
15138
15139 2010-03-14  Bruno Haible  <bruno@clisp.org>
15140
15141         Fix compilation error when modules 'posix_spawn[p]' are not used.
15142         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15143         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15144
15145 2010-03-14  Bruno Haible  <bruno@clisp.org>
15146
15147         Fix compilation error on mingw when module 'time_r' is not used.
15148         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15149         is 1.
15150         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15151         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15152         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15153         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15154
15155 2010-03-14  Bruno Haible  <bruno@clisp.org>
15156
15157         Fix compilation error with Sun C.
15158         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15159         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15160         instead of GCC specific ULONG_LONG_MAX.
15161         * lib/xstrtoll.c: Likewise.
15162         * lib/xstrtoull.c: Likewise.
15163
15164 2010-03-13  Bruno Haible  <bruno@clisp.org>
15165
15166         Allow the user to disable C++ code and tests.
15167         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15168         (gl_PROG_ANSI_CXX): Require it.
15169
15170 2010-03-13  Bruno Haible  <bruno@clisp.org>
15171
15172         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15173         cases.
15174
15175 2010-03-13  Bruno Haible  <bruno@clisp.org>
15176
15177         Test that gnulib does not break the standard C++ headers.
15178         * tests/test-locale-c++2.cc: New file.
15179         * modules/locale-tests (Files): Add it.
15180         (Makefile.am): Compile it for test-locale-c++.
15181         * tests/test-math-c++2.cc: New file.
15182         * modules/math-tests (Files): Add it.
15183         (Makefile.am): Compile it for test-math-c++.
15184         * tests/test-signal-c++2.cc: New file.
15185         * modules/signal-tests (Files): Add it.
15186         (Makefile.am): Compile it for test-signal-c++.
15187         * tests/test-stdio-c++2.cc: New file.
15188         * modules/stdio-tests (Files): Add it.
15189         (Makefile.am): Compile it for test-stdio-c++.
15190         * tests/test-stdlib-c++2.cc: New file.
15191         * modules/stdlib-tests (Files): Add it.
15192         (Makefile.am): Compile it for test-stdlib-c++.
15193         * tests/test-string-c++2.cc: New file.
15194         * modules/string-tests (Files): Add it.
15195         (Makefile.am): Compile it for test-string-c++.
15196         * tests/test-time-c++2.cc: New file.
15197         * modules/time-tests (Files): Add it.
15198         (Makefile.am): Compile it for test-time-c++.
15199         Reported by John W. Eaton <jwe@gnu.org>.
15200
15201 2010-03-13  Bruno Haible  <bruno@clisp.org>
15202
15203         * gnulib-tool (func_usage): Clarify which options are available for
15204         --create-testdir and --create-megatestdir.
15205
15206 2010-03-13  Bruno Haible  <bruno@clisp.org>
15207
15208         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15209         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15210         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15211         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15212         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15213         when appropriate.
15214         Reported by Jim Meyering.
15215
15216 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15217
15218         * gnulib-tool (func_import): Explain origin of code.
15219
15220 2010-03-12  Bruno Haible  <bruno@clisp.org>
15221
15222         Fix problem with automake's definition of CXXLINK.
15223         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
15224         Reported by Simon Josefsson and Ludovic Courtès.
15225
15226 2010-03-12  Bruno Haible  <bruno@clisp.org>
15227
15228         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
15229         stable releases.
15230
15231 2010-03-11  Bruno Haible  <bruno@clisp.org>
15232
15233         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
15234         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
15235         whether the system provides one variant or multiple variants of the
15236         function.
15237         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
15238         C++ compilers.
15239         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
15240         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
15241         Reported by Jim Meyering.
15242
15243 2010-03-09  Simon Josefsson  <simon@josefsson.org>
15244
15245         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
15246
15247 2010-03-08  Bruno Haible  <bruno@clisp.org>
15248
15249         gnulib-tool: Add support for --libtool in --create-testdir.
15250         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
15251         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
15252
15253 2010-03-08  Eric Blake  <eblake@redhat.com>
15254
15255         gnulib-tool.texi: mention possibility of git submodule
15256         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
15257         submodules.
15258         * doc/.gitignore: Ignore another generated file.
15259
15260 2010-03-08  Karl Berry  <karl@gnu.org>
15261
15262         * doc/gnulib-tool.texi (VCS Issues): Mention third option
15263         of committing gnulib files while skipping others.
15264
15265 2010-03-07  Bruno Haible  <bruno@clisp.org>
15266
15267         Tests of module 'wctype' in C++ mode.
15268         * tests/test-wctype-c++.cc: New file.
15269         * modules/wctype-tests (Files): Add it and tests/signature.h.
15270         (Depends-on): Add ansi-c++-opt.
15271         (Makefile.am): Arrange to compile and run test-wctype-c++.
15272
15273         Tests of module 'wchar' in C++ mode.
15274         * tests/test-wchar-c++.cc: New file.
15275         * modules/wchar-tests (Files): Add it and tests/signature.h.
15276         (Depends-on): Add ansi-c++-opt.
15277         (Makefile.am): Arrange to compile and run test-wchar-c++.
15278         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
15279         gl_MODULE_INDICATOR.
15280
15281         Tests of module 'unistd' in C++ mode.
15282         * tests/test-unistd-c++.cc: New file.
15283         * modules/unistd-tests (Files): Add it and tests/signature.h.
15284         (Depends-on): Add ansi-c++-opt.
15285         (Makefile.am): Arrange to compile and run test-unistd-c++.
15286         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
15287         gl_MODULE_INDICATOR.
15288
15289         Tests of module 'time' in C++ mode.
15290         * tests/test-time-c++.cc: New file.
15291         * modules/time-tests (Files): Add it and tests/signature.h.
15292         (Depends-on): Add ansi-c++-opt.
15293         (Makefile.am): Arrange to compile and run test-time-c++.
15294         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15295
15296         Tests of module 'sys_time' in C++ mode.
15297         * tests/test-sys_time-c++.cc: New file.
15298         * modules/sys_time-tests (Files): Add it and tests/signature.h.
15299         (Depends-on): Add ansi-c++-opt.
15300         (Makefile.am): Arrange to compile and run test-sys_time-c++.
15301         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
15302         gl_MODULE_INDICATOR.
15303
15304         Tests of module 'sys_stat' in C++ mode.
15305         * tests/test-sys_stat-c++.cc: New file.
15306         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
15307         (Depends-on): Add ansi-c++-opt.
15308         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
15309         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
15310         gl_MODULE_INDICATOR.
15311
15312         Tests of module 'sys_socket' in C++ mode.
15313         * tests/test-sys_socket-c++.cc: New file.
15314         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
15315         (Depends-on): Add ansi-c++-opt.
15316         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
15317         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
15318         gl_MODULE_INDICATOR.
15319
15320         Tests of module 'sys_select' in C++ mode.
15321         * tests/test-sys_select-c++.cc: New file.
15322         * modules/sys_select-tests (Files): Add it and tests/signature.h.
15323         (Depends-on): Add ansi-c++-opt.
15324         (Makefile.am): Arrange to compile and run test-sys_select-c++.
15325         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
15326         gl_MODULE_INDICATOR.
15327
15328         Tests of module 'sys_ioctl' in C++ mode.
15329         * tests/test-sys_ioctl-c++.cc: New file.
15330         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
15331         (Depends-on): Add ansi-c++-opt.
15332         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
15333         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
15334         gl_MODULE_INDICATOR.
15335
15336         Tests of module 'string' in C++ mode.
15337         * tests/test-string-c++.cc: New file.
15338         * modules/string-tests (Files): Add it and tests/signature.h.
15339         (Depends-on): Add ansi-c++-opt.
15340         (Makefile.am): Arrange to compile and run test-string-c++.
15341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
15342         gl_MODULE_INDICATOR.
15343
15344         Tests of module 'stdlib' in C++ mode.
15345         * tests/test-stdlib-c++.cc: New file.
15346         * modules/stdlib-tests (Files): Add it and tests/signature.h.
15347         (Depends-on): Add ansi-c++-opt.
15348         (Makefile.am): Arrange to compile and run test-stdlib-c++.
15349         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
15350         gl_MODULE_INDICATOR.
15351
15352         Tests of module 'stdio' in C++ mode.
15353         * tests/test-stdio-c++.cc: New file.
15354         * modules/stdio-tests (Files): Add it and tests/signature.h.
15355         (Depends-on): Add ansi-c++-opt.
15356         (Makefile.am): Arrange to compile and run test-stdio-c++.
15357         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
15358         gl_MODULE_INDICATOR.
15359
15360         Tests of module 'spawn' in C++ mode.
15361         * tests/test-spawn-c++.cc: New file.
15362         * modules/spawn-tests (Files): Add it and tests/signature.h.
15363         (Depends-on): Add ansi-c++-opt.
15364         (Makefile.am): Arrange to compile and run test-spawn-c++.
15365         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
15366         gl_MODULE_INDICATOR.
15367
15368         Tests of module 'signal' in C++ mode.
15369         * tests/test-signal-c++.cc: New file.
15370         * modules/signal-tests (Files): Add it and tests/signature.h.
15371         (Depends-on): Add ansi-c++-opt.
15372         (Makefile.am): Arrange to compile and run test-signal-c++.
15373         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
15374         gl_MODULE_INDICATOR.
15375
15376         Tests of module 'search' in C++ mode.
15377         * tests/test-search-c++.cc: New file.
15378         * modules/search-tests (Files): Add it and tests/signature.h.
15379         (Depends-on): Add ansi-c++-opt.
15380         (Makefile.am): Arrange to compile and run test-search-c++.
15381         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
15382         gl_MODULE_INDICATOR.
15383
15384         Tests of module 'math' in C++ mode.
15385         * tests/test-math-c++.cc: New file.
15386         * modules/math-tests (Files): Add it and tests/signature.h.
15387         (Depends-on): Add ansi-c++-opt.
15388         (Makefile.am): Arrange to compile and run test-math-c++.
15389         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15390
15391         Tests of module 'locale' in C++ mode.
15392         * tests/test-locale-c++.cc: New file.
15393         * modules/locale-tests (Files): Add it and tests/signature.h.
15394         (Depends-on): Add ansi-c++-opt.
15395         (Makefile.am): Arrange to compile and run test-locale-c++.
15396         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
15397         gl_MODULE_INDICATOR.
15398
15399         Tests of module 'langinfo' in C++ mode.
15400         * tests/test-langinfo-c++.cc: New file.
15401         * modules/langinfo-tests (Files): Add it and tests/signature.h.
15402         (Depends-on): Add ansi-c++-opt.
15403         (Makefile.am): Arrange to compile and run test-langinfo-c++.
15404         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
15405         gl_MODULE_INDICATOR.
15406
15407         Tests of module 'iconv-h' in C++ mode.
15408         * tests/test-iconv-h-c++.cc: New file.
15409         * modules/iconv-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-iconv-h-c++.
15412
15413         Tests of module 'glob' in C++ mode.
15414         * tests/test-glob-c++.cc: New file.
15415         * modules/glob-tests (Files): Add it.
15416         (Depends-on): Add ansi-c++-opt.
15417         (Makefile.am): Arrange to compile and run test-glob-c++.
15418
15419         Tests of module 'fcntl-h' in C++ mode.
15420         * tests/test-fcntl-h-c++.cc: New file.
15421         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
15422         (Depends-on): Add ansi-c++-opt.
15423         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
15424         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
15425         gl_MODULE_INDICATOR.
15426
15427         Tests of module 'dirent' in C++ mode.
15428         * tests/test-dirent-c++.cc: New file.
15429         * modules/dirent-tests (Files): Add it and tests/signature.h.
15430         (Depends-on): Add ansi-c++-opt.
15431         (Makefile.am): Arrange to compile and run test-dirent-c++.
15432         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15433         gl_MODULE_INDICATOR.
15434
15435         New module 'ansi-c++-opt'.
15436         * modules/ansi-c++-opt: New file.
15437         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
15438
15439         Document C++ namespace mode.
15440         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
15441
15442         wctype: Avoid #define replacements in C++ mode.
15443         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
15444         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
15445         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
15446         In C++, define a namespaced alias symbol.
15447         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
15448         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
15449         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
15450         rule.
15451
15452         wchar: Avoid #define replacements in C++ mode.
15453         * lib/wchar.in.h: Include c++defs.h.
15454         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
15455         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
15456         symbol.
15457         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
15458         * modules/wchar (Depends-on): Add c++defs.
15459         (Makefile.am): Update wchar.h rule.
15460
15461         unistd: Avoid #define replacements in C++ mode.
15462         * lib/unistd.in.h: Include c++defs.h.
15463         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
15464         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
15465         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
15466         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
15467         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
15468         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
15469         symbol.
15470         (environ): Update.
15471         * modules/unistd (Depends-on): Add c++defs.
15472         (Makefile.am): Update unistd.h rule.
15473
15474         time: Avoid #define replacements in C++ mode.
15475         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
15476         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
15477         define a namespaced alias symbol.
15478         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
15479         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
15480         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
15481         * modules/time (Depends-on): Add c++defs, warn-on-use.
15482         (Makefile.am): Update time.h rule.
15483         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15484         * modules/nanosleep (configure.ac): Likewise.
15485         * modules/strptime (configure.ac): Likewise.
15486         * modules/timegm (configure.ac): Likewise.
15487
15488         sys_time: Avoid #define replacements in C++ mode.
15489         * lib/sys_time.in.h: Include c++defs.h.
15490         (gettimeofday): In C++, define a namespaced alias symbol.
15491         * modules/sys_time (Depends-on): Add c++defs.
15492         (Makefile.am): Update sys/time.h rule.
15493
15494         sys_stat: Avoid #define replacements in C++ mode.
15495         * lib/sys_stat.in.h: Include c++defs.h.
15496         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
15497         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
15498         namespaced alias symbol.
15499         In C++, define a namespaced alias symbol.
15500         * modules/sys_stat (Depends-on): Add c++defs.
15501         (Makefile.am): Update sys/stat.h rule.
15502
15503         sys_socket: Avoid #define replacements in C++ mode.
15504         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
15505         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
15506         definitions also when the system has a <sys/socket.h>.
15507         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15508         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
15509         In C++, define a namespaced alias symbol.
15510         * modules/sys_socket (Depends-on): Add c++defs.
15511         (Makefile.am): Update sys/socket.h rule.
15512
15513         sys_select: Avoid #define replacements in C++ mode.
15514         * lib/sys_select.in.h: Include c++defs.h. Enable the function
15515         definitions also when the system has a <sys/select.h>.
15516         (select): In C++, define a namespaced alias symbol.
15517         * modules/sys_select (Depends-on): Add c++defs.
15518         (Makefile.am): Update sys/select.h rule.
15519
15520         sys_ioctl: Avoid #define replacements in C++ mode.
15521         * lib/sys_ioctl.in.h: Include c++defs.h.
15522         (ioctl): In C++, define a namespaced alias symbol.
15523         * modules/sys_ioctl (Depends-on): Add c++defs.
15524         (Makefile.am): Update sys/ioctl.h rule.
15525
15526         string: Avoid #define replacements in C++ mode.
15527         * lib/string.in.h: Include c++defs.h.
15528         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
15529         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15530         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15531         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
15532         strsignal, strverscmp): In C++, define a namespaced alias symbol.
15533         * modules/string (Depends-on): Add c++defs.
15534         (Makefile.am): Update string.h rule.
15535
15536         stdlib: Avoid #define replacements in C++ mode.
15537         * lib/stdlib.in.h: Include c++defs.h.
15538         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
15539         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
15540         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
15541         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
15542         symbol.
15543         * modules/stdlib (Depends-on): Add c++defs.
15544         (Makefile.am): Update stdlib.h rule.
15545
15546         stdio: Avoid #define replacements in C++ mode.
15547         * lib/stdio.in.h: Include c++defs.h.
15548         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
15549         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
15550         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
15551         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
15552         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
15553         namespaced alias symbol.
15554         * modules/stdio (Depends-on): Add c++defs.
15555         (Makefile.am): Update stdio.h rule.
15556
15557         spawn: Avoid #define replacements in C++ mode.
15558         * lib/spawn.in.h: Include c++defs.h.
15559         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15560         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15561         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15562         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15563         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15564         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15565         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15566         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15567         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15568         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15569         In C++, define a namespaced alias symbol.
15570         * modules/spawn (Depends-on): Add c++defs.
15571         (Makefile.am): Update spawn.h rule.
15572
15573         signal: Avoid #define replacements in C++ mode.
15574         * lib/signal.in.h: Include c++defs.h.
15575         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15576         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15577         namespaced alias symbol.
15578         * modules/signal (Depends-on): Add c++defs.
15579         (Makefile.am): Update signal.h rule.
15580
15581         search: Avoid #define replacements in C++ mode.
15582         * lib/search.in.h: Include c++defs.h.
15583         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15584         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15585         symbol.
15586         * modules/search (Depends-on): Add c++defs.
15587         (Makefile.am): Update search.h rule.
15588
15589         math: Avoid #define replacements in C++ mode.
15590         * lib/math.in.h: Include c++defs.h.
15591         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15592         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15593         trunc, truncl): In C++, define a namespaced alias symbol.
15594         * modules/math (Depends-on): Add c++defs.
15595         (Makefile.am): Update math.h rule.
15596
15597         locale: Avoid #define replacements in C++ mode.
15598         * lib/locale.in.h: Include c++defs.h.
15599         (duplocale): In C++, define a namespaced alias symbol.
15600         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15601         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15602         * modules/locale (Depends-on): Add c++defs.
15603         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15604
15605         langinfo: Avoid #define replacements in C++ mode.
15606         * lib/langinfo.in.h: Include c++defs.h.
15607         (nl_langinfo): In C++, define a namespaced alias symbol.
15608         * modules/langinfo (Depends-on): Add c++defs.
15609         (Makefile.am): Update langinfo.h rule.
15610
15611         iconv-h: Avoid #define replacements in C++ mode.
15612         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15613         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15614         symbol.
15615         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15616         whenever iconv is present.
15617         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15618         (Makefile.am): Update iconv.h rule.
15619
15620         glob: Avoid #define replacements in C++ mode.
15621         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15622         (_gl_glob_errfunc_fn): New type.
15623         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15624         symbol.
15625         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15626         (Makefile.am): Update glob.h rule.
15627
15628         fcntl-h: Avoid #define replacements in C++ mode.
15629         * lib/fcntl.in.h: Include c++defs.h.
15630         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15631         * modules/fcntl-h (Depends-on): Add c++defs.
15632         (Makefile.am): Update fcntl.h rule.
15633
15634         dirent: Avoid #define replacements in C++ mode.
15635         * lib/dirent.in.h: Include c++defs.h.
15636         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15637         namespaced alias symbol.
15638         (dirfd): Update declaration.
15639         * modules/dirent (Depends-on): Add c++defs.
15640         (Makefile.am): Update dirent.h rule.
15641
15642         ctype: Make it usable in C++ code.
15643         * lib/ctype.in.h: Include c++defs.h.
15644         (isblank): Declare as extern "C".
15645         * modules/ctype (Depends-on): Add c++defs.
15646         (Makefile.am): Update ctype.h rule.
15647
15648         New module 'c++defs'.
15649         * modules/c++defs: New file.
15650         * build-aux/c++defs.h: New file.
15651         Reported by John W. Eaton <jwe@gnu.org>.
15652
15653 2010-03-07  Bruno Haible  <bruno@clisp.org>
15654
15655         logb: Provide missing declaration for Cygwin.
15656         * lib/math.in.h (logb): New declaration.
15657         * m4/logb.m4: New file.
15658         * modules/logb (Files): Add m4/logb.m4.
15659         (Depends-on): Add math.
15660         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15661         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15663         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15664         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15665
15666 2010-03-07  Bruno Haible  <bruno@clisp.org>
15667
15668         Fix test-cond link error.
15669         * tests/test-cond.c: Include <stdio.h>.
15670
15671 2010-03-07  Bruno Haible  <bruno@clisp.org>
15672
15673         Fix test-dirent-safer link error.
15674         * modules/dirent-safer-tests (Makefile.am): Define
15675         test_dirent_safer_LDADD.
15676
15677 2010-03-07  Bruno Haible  <bruno@clisp.org>
15678
15679         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15680         among default module list.
15681
15682 2010-03-07  Bruno Haible  <bruno@clisp.org>
15683
15684         Fix link error on platforms with GNU libiconv.
15685         * modules/unistr/u8-strcoll-tests (Makefile): Define
15686         test_u8_strcoll_LDADD.
15687         * modules/unistr/u16-strcoll-tests (Makefile): Define
15688         test_u16_strcoll_LDADD.
15689         * modules/unistr/u32-strcoll-tests (Makefile): Define
15690         test_u32_strcoll_LDADD.
15691
15692 2010-03-07  Bruno Haible  <bruno@clisp.org>
15693
15694         Use POSIX declarations for socket functions.
15695         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15696         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15697         rpl_sendto): Change declaration to match POSIX.
15698         * lib/connect.c (rpl_connect): Likewise.
15699         * lib/accept.c (rpl_accept): Likewise.
15700         * lib/bind.c (rpl_bind): Likewise.
15701         * lib/getpeername.c (rpl_getpeername): Likewise.
15702         * lib/getsockname.c (rpl_getsockname): Likewise.
15703         * lib/recv.c (rpl_recv): Likewise.
15704         * lib/send.c (rpl_send): Likewise.
15705         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15706         * lib/sendto.c (rpl_sendto): Likewise.
15707
15708 2010-03-06  Bruno Haible  <bruno@clisp.org>
15709
15710         Clarify access, euidaccess, faccessat.
15711         * doc/posix-functions/faccessat.texi: Mention security problem under
15712         "Other problems", not "Portability problems".
15713         * doc/posix-functions/access.texi: Likewise. Mention a related security
15714         problem.
15715         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15716         * lib/euidaccess.c: Add comments about platforms.
15717         * lib/unistd.in.h (access, euidaccess): Add warnings.
15718
15719 2010-03-07  Bruno Haible  <bruno@clisp.org>
15720
15721         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15722         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15723         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15724         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15725         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15726         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15727         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15728         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15729         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15730         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15731         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15732         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15733         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15734         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15735         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15736         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15737         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15738         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15739         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15740         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15741         Likewise.
15742         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15743         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15744         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15745         Likewise.
15746         * tests/test-spawn.c (main): Make it work when
15747         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15748
15749 2010-03-07  Bruno Haible  <bruno@clisp.org>
15750
15751         Fix incorrect Makefile.am generation in German locale.
15752         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15753         Execute sed command with character range in C locale.
15754
15755 2010-03-06  Bruno Haible  <bruno@clisp.org>
15756
15757         Tests for module 'iconv-h'.
15758         * modules/iconv-h-tests: New file.
15759         * tests/test-iconv-h.c: New file.
15760
15761         New module 'iconv-h'.
15762         * modules/iconv-h: New file.
15763         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15764         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15765         (configure.ac): Remove gl_ICONV_H.
15766         (Makefile.am): Remove rule for iconv.h.
15767
15768 2010-03-06  Bruno Haible  <bruno@clisp.org>
15769
15770         More consistent naming of *.m4 files.
15771         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15772         * modules/wctype (Files): Update.
15773
15774         More consistent naming of *.m4 files.
15775         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15776         * modules/wchar (Files): Update.
15777
15778 2010-03-06  Jim Meyering  <meyering@redhat.com>
15779
15780         euidaccess: relax license to LGPLv2+
15781         * modules/euidaccess (License): Relax to LGPLv2+.
15782
15783 2010-03-06  Bruno Haible  <bruno@clisp.org>
15784
15785         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15786         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15787         (Makefile.am): Augment lib_SOURCES instead.
15788
15789 2010-03-04  Jim Meyering  <meyering@redhat.com>
15790
15791         utime: remove obsolete module
15792         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15793         unnecessary for years, and has been marked as obsolete for 10 months.
15794         * modules/utime: Remove file.
15795         * lib/utime.c: Remove file.
15796         * m4/utime.m4: Remove file.
15797         * m4/utimes-null.m4: Remove file.
15798         * doc/posix-functions/utime.texi (utime): Remove reference to
15799         the module.  Move the sole "fixed by gnulib" item into the
15800         "problems not fixed by Gnulib" list.
15801         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15802
15803 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15804
15805         * modules/exit (License): Relax license to LGPLv2+.
15806         (Status): Mark as obsolete.
15807         * NEWS: Mention deprecated 'exit' module.
15808         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15809         of now obsolete 'exit'.
15810
15811 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15812
15813         fts-lgpl: remove unused module
15814         * modules/fts-lgpl: Remove.
15815         * MODULES.html.sh (func_all_modules): Adjust.
15816         * check-module (find_included_lib_files): Adjust.
15817         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15818
15819 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15820
15821         copy-acl: enhance Solaris ACL error handling
15822         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15823         * lib/set-mode-acl.c (qset_acl): Likewise.
15824
15825 2010-03-02  Bruno Haible  <bruno@clisp.org>
15826
15827         spawn: Don't override the system defined values on FreeBSD 8.
15828         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15829         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15830         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15831         if HAVE_POSIX_SPAWN is 1.
15832         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15833
15834 2010-03-01  Bruno Haible  <bruno@clisp.org>
15835
15836         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15837         regarding Automake.
15838
15839 2010-02-25  Bruno Haible  <bruno@clisp.org>
15840
15841         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15842         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15843         setting, not afterwards.
15844         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15845
15846 2010-02-24  Eric Blake  <eblake@redhat.com>
15847
15848         bootstrap, git-version-gen: use timestamp
15849         * build-aux/git-version-gen (scriptversion): Force UTC.
15850         * build-aux/bootstrap (scriptversion): New variable.
15851
15852         bootstrap: allow older git
15853         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15854         older than 1.6.4.  Requested by the libvirt project.
15855
15856 2010-02-23  Eric Blake  <eblake@redhat.com>
15857
15858         warn-on-use: work with old autoconf
15859         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15860         AS_VAR semantics of autoconf 2.60.
15861         Reported by Bruno Haible.
15862
15863         bootstrap: improve some comments
15864         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15865         clarification comments.
15866
15867         gettimeofday: provide correct function
15868         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15869         when replacement is declared, otherwise provide gettimeofday.
15870         Reported by Michael Goffioul.
15871
15872 2010-02-23  Jim Meyering  <meyering@redhat.com>
15873
15874         lib-ignore: relax license to "unlimited", not LGPLv2+
15875         * modules/lib-ignore (License): Relax to "unlimited".
15876
15877 2010-02-23  Jim Meyering  <meyering@redhat.com>
15878
15879         lib-ignore: relax license to LGPLv2+
15880         * modules/lib-ignore (License): Relax to LGPLv2+.
15881
15882 2010-02-22  Eric Blake  <eblake@redhat.com>
15883
15884         lseek: avoid bash 3.2 broken pipe bug
15885         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15886         warning from bash 3.2.
15887         Reported by Ben Pfaff, with analysis from Bruno Haible.
15888
15889         bootstrap: support non-FSF copyright holder
15890         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15891         bootstrap.conf override of COPYRIGHT_HOLDER.
15892         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15893
15894         bootstrap: interoperate with gettext 0.14.1
15895         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15896
15897         bootstrap: allow for alternate submodule location
15898         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15899         hardcoding submodule location.
15900         (gnulib_mk): Allow direct use of Makefile.am.
15901
15902         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15903         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15904         rather than reconfiguring where the submodule points.
15905
15906         gettimeofday: restore support for platforms that lack function
15907         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15908         replacement if function is missing.
15909         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15910         * modules/sys_time (Makefile.am): Substitute it.
15911         * lib/sys_time.in.h (gettimeofday): Check it.
15912         Reported by Michael Goffioul.
15913
15914 2010-02-21  Bruno Haible  <bruno@clisp.org>
15915
15916         * lib/stdio.in.h (obstack_printf): Fix typo.
15917
15918 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15919
15920         vc-list-files: use bzr ls's -R option
15921         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15922         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15923
15924 2010-02-21  Jim Meyering  <meyering@redhat.com>
15925
15926         init.sh: fix EXEEXT shims to work also for names like test-prog
15927         * tests/init.sh: Re-exec a better shell, when needed.
15928         If the current shell lacks support for posix $(...), an init.sh-using
15929         test will now try to find a shell that supports that.  If EXEEXT is
15930         nonempty, we also require support for hyphen-in-alias-name and shell
15931         substitutions like ${var#glob}.  Failure to find such a shell results
15932         in a skipped test.
15933
15934 2010-02-21  Bruno Haible  <bruno@clisp.org>
15935
15936         Really work around around "broken pipe" error message from bash 3.2.
15937         * gnulib-tool (func_reset_sigpipe): Remove function.
15938         (echo): In bash 3.2, define to a function that uses printf.
15939         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15940
15941 2010-02-20  Bruno Haible  <bruno@clisp.org>
15942
15943         Restore support for automake 1.9.6 with autoconf 2.61.
15944         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15945         Reported by James Youngman <jay@gnu.org>.
15946
15947 2010-02-20  Bruno Haible  <bruno@clisp.org>
15948
15949         Improve *printf warning condition.
15950         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15951         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15952         and the function is overridden due to SIGPIPE emulation.
15953
15954 2010-02-20  Bruno Haible  <bruno@clisp.org>
15955
15956         * lib/stdio.in.h: Tweak comments.
15957
15958 2010-02-19  Bruno Haible  <bruno@clisp.org>
15959
15960         Make it easier to find modules. New gnulib-tool option '--find'.
15961         * gnulib-tool: New option --find.
15962         (func_usage): Document it.
15963         (func_sanitize_modulelist): New function, extracted from
15964         func_all_modules.
15965         (func_all_modules): Invoke it.
15966         * doc/gnulib-tool.texi (Which modules?): New node.
15967
15968 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15969
15970         * lib/sys_select.in.h: Provide select replacement even if
15971         sys/select.h exists on a system, for Interix.
15972
15973 2010-02-18  Jim Meyering  <meyering@redhat.com>
15974
15975         init.sh: don't use $(...) just yet
15976         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15977         to accommodate e.g., Solaris' /bin/sh.
15978
15979 2010-02-17  Bruno Haible  <bruno@clisp.org>
15980
15981         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15982         Reported by Ludovic Courtès <ludo@gnu.org>.
15983
15984 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15985
15986         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15987         linking with -lintl.
15988
15989 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15990
15991         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15992         if not provided by the system's netdb.h.  Reported by
15993         ludo@gnu.org (Ludovic Courtès).
15994
15995 2010-02-15  Jim Meyering  <meyering@redhat.com>
15996
15997         init.sh: improve portability and efficiency
15998         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15999         "dummy" in a for loop.
16000         Use '!', not '^' to select the complement of a character set used
16001         in a "case" statement.
16002         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16003         Suggestions from Eric Blake.
16004
16005         init.sh: automatically accommodate programs with the .exe suffix
16006         Automatically arrange for an invocation of "prog" to execute the
16007         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16008         may use the simpler "prog", yet still work when built on a system
16009         that requires specifying the added suffix.
16010         Do this by constructing a function named "prog" that invokes
16011         "prog.exe" for each .exe file in selected directories.
16012         * tests/init.sh (find_exe_basenames_): New function.
16013         (create_exe_shim_functions_): New function.
16014         (path_prepend_): Use it.
16015
16016         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16017         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16018         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16019
16020 2010-02-14  Jim Meyering  <meyering@redhat.com>
16021
16022         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16023         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16024         (sc_prohibit_hash_pjw_without_use): New rule.
16025
16026         maint.mk: allow the default upload destination dir to be overridden
16027         * top/maint.mk (upload_dest_dir_): Define with a default that
16028         preserves the status quo.
16029         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16030         Reported by Peter Simons.
16031
16032         maint.mk: prohibit inclusion of "hash.h" without_use
16033         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16034
16035 2010-02-10  Jim Meyering  <meyering@redhat.com>
16036
16037         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16038         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16039
16040 2010-02-09  Eric Blake  <ebb9@byu.net>
16041         and Bruno Haible  <bruno@clisp.org>
16042
16043         obstack-printf-posix: ensure declaration
16044         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16045         extracted from gl_FUNC_OBSTACK_PRINTF.
16046         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16047         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16048         Likewise.
16049         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16050         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16051         0.
16052
16053 2010-02-08  Bruno Haible  <bruno@clisp.org>
16054
16055         gnulib-tool: Fix typo in 2010-02-07 commit.
16056         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16057         Reported by Eric Blake.
16058
16059 2010-02-07  Bruno Haible  <bruno@clisp.org>
16060
16061         gnulib-tool: Fix up caching patches.
16062         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16063         option --no-cache. Use associative arrays when supported by the shell.
16064         (sed_comments): New variable.
16065         (modcache): Renamed from do_cache.
16066         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16067         abbreviate unnecessarily.
16068         (have_associative): New variable.
16069         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16070         way also for ksh and zsh.
16071         (func_init_sed_convert_to_cache_statements): New function, extracted
16072         from func_cache_lookup_module. Add support for associative arrays.
16073         Don't set the c_MODULE_cached variable here. Ignore all lines before
16074         the first field header. Remove only the final newline, not all trailing
16075         newlines. Support empty fields correctly. Limit the use of 'eval' to
16076         assignments.
16077         (func_get_description, func_get_status, func_get_notice,
16078         func_get_applicability, func_get_filelist, func_get_dependencies,
16079         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16080         func_get_automake_snippet, func_get_include_directive,
16081         func_get_link_directive, func_get_license, func_get_maintainer):
16082         Update documentation. List the unoptimized code first. Add support for
16083         associative arrays. Limit the use of 'eval' to assignments.
16084         (func_get_applicability): Undo stylistic pessimisations.
16085         (func_get_automake_snippet, func_get_include_directive): Reduce code
16086         duplication.
16087         (func_modules_transitive_closure, func_modules_add_dummy,
16088         func_modules_notice, func_modules_to_filelist, func_add_file,
16089         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16090         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16091         func_create_testdir, func_create_megatestdir): Update documentation.
16092
16093 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16094
16095         * gnulib-tool (func_cache_lookup_module): Store the module name
16096         belonging to the cache variable; error out if two different
16097         module names map to the same cache variable name.
16098
16099 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16100
16101         gnulib-tool: Make caching optional.
16102         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16103         Update matching short versions of --no-changelog.
16104         (func_usage): Update.
16105         (sed_extract_cache_prog): Renamed from ...
16106         (sed_extract_prog): ... this; revert to old extraction script.
16107         (func_get_description, func_get_status)
16108         (func_get_notice, func_get_applicability, func_get_filelist)
16109         (func_get_dependencies, func_get_autoconf_early_snippet)
16110         (func_get_autoconf_snippet, func_get_automake_snippet)
16111         (func_get_include_directive, func_get_link_directive)
16112         (func_get_license, func_get_maintainer): If $do_cache is false,
16113         use old, non-caching extraction scripts.
16114         Suggestion by Bruno Haible.
16115
16116 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16117
16118         gnulib-tool: cache module metainformation.
16119         * gnulib-tool (sed_extract_prog): Match newline before each
16120         header, and rewrite header to a shell variable suffix.
16121         (func_cache_var, func_cache_lookup_module): New functions,
16122         to turn a module name into a cache variable prefix, and to
16123         look up and cache module metainformation.
16124         (func_get_description, func_get_status)
16125         (func_get_notice, func_get_applicability, func_get_filelist)
16126         (func_get_dependencies, func_get_autoconf_early_snippet)
16127         (func_get_autoconf_snippet, func_get_automake_snippet)
16128         (func_get_include_directive, func_get_link_directive)
16129         (func_get_license, func_get_maintainer): Use
16130         func_cache_lookup_module.
16131
16132 2010-02-07  Bruno Haible  <bruno@clisp.org>
16133
16134         fnctl: Fix missing dependency.
16135         * modules/fcntl (Depends-on): Add getdtablesize.
16136         Reported by John W. Eaton <jwe@gnu.org>.
16137
16138 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16139
16140         Argp: fix recognition of short alias options.
16141
16142         * lib/argp-parse.c (convert_options): Fix improper use of
16143         `|' between character values.
16144         * tests/test-argp.c (group1_option): New alias option
16145         --read (-r).
16146         (group1_parser): Special handling for 'r'.
16147         (test15): New test case.
16148         (test_fun): Add test15.
16149         * tests/test-argp-2.sh: Update expected --help and --usage
16150         outputs.
16151
16152 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16153
16154         * tests/test-argp.c: Fix indentation.
16155
16156 2010-02-04  Eric Blake  <ebb9@byu.net>
16157
16158         gettimeofday: expose type of second argument
16159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16160         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16161         * tests/test-gettimeofday.c: Use it to silence warning.
16162         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16163         the issue.
16164
16165 2010-02-03  Jim Meyering  <meyering@redhat.com>
16166
16167         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16168         * lib/regcomp.c (TYPE_SIGNED): Define.
16169         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16170
16171         regcomp.c: avoid a new -Wshadow warning
16172         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16173
16174 2010-02-01  Jim Meyering  <meyering@redhat.com>
16175
16176         removing useless parentheses in cpp #define directives
16177         For motivation, see commit c0221df4, "define STREQ(a,b)
16178         consistently, removing useless parentheses"
16179         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16180         * lib/mountlist.c (MNT_IGNORE): Likewise.
16181         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16182
16183 2010-02-01  Eric Blake  <ebb9@byu.net>
16184
16185         sys_time: use link-warning
16186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16187         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16188         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16189         * modules/sys_time (Depends-on): Add warn-on-use.
16190         (Makefile.am): Always build replacement.
16191         (configure.ac): Update substitutions.
16192         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16193         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16194         bother with SYS_TIME_H.
16195         * modules/gettimeofday (configure.ac): Declare indicator.
16196         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16197         in use.
16198
16199         closein-tests: silence compiler warning
16200         * tests/test-closein.c (main): Ignore fread result.
16201         * modules/closein-tests (Depends-on): Add ignore-value.
16202
16203         tests: silence warning about system return
16204         * tests/test-areadlink-with-size.c (main): Ignore system result.
16205         * tests/test-areadlink.c (main): Likewise.
16206         * tests/test-areadlinkat-with-size.c (main): Likewise.
16207         * tests/test-areadlinkat.c (main): Likewise.
16208         * tests/test-canonicalize-lgpl.c (main): Likewise.
16209         * tests/test-canonicalize.c (main): Likewise.
16210         * tests/test-chown.c (main): Likewise.
16211         * tests/test-fchownat.c (main): Likewise.
16212         * tests/test-fdutimensat.c (main): Likewise.
16213         * tests/test-fstatat.c (main): Likewise.
16214         * tests/test-futimens.c (main): Likewise.
16215         * tests/test-lchown.c (main): Likewise.
16216         * tests/test-link.c (main): Likewise.
16217         * tests/test-linkat.c (main): Likewise.
16218         * tests/test-lstat.c (main): Likewise.
16219         * tests/test-mkdir.c (main): Likewise.
16220         * tests/test-mkdirat.c (main): Likewise.
16221         * tests/test-mkfifo.c (main): Likewise.
16222         * tests/test-mkfifoat.c (main): Likewise.
16223         * tests/test-mknod.c (main): Likewise.
16224         * tests/test-readlink.c (main): Likewise.
16225         * tests/test-remove.c (main): Likewise.
16226         * tests/test-rename.c (main): Likewise.
16227         * tests/test-renameat.c (main): Likewise.
16228         * tests/test-rmdir.c (main): Likewise.
16229         * tests/test-symlink.c (main): Likewise.
16230         * tests/test-symlinkat.c (main): Likewise.
16231         * tests/test-unlink.c (main): Likewise.
16232         * tests/test-unlinkat.c (main): Likewise.
16233         * tests/test-utimens.c (main): Likewise.
16234         * tests/test-utimensat.c (main): Likewise.
16235         * modules/areadlink-tests (Depends-on): Add ignore-value.
16236         * modules/areadlink-with-size-tests (Depends-on): Likewise.
16237         * modules/areadlinkat-tests (Depends-on): Likewise.
16238         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
16239         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16240         * modules/canonicalize-tests (Depends-on): Likewise.
16241         * modules/chown-tests (Depends-on): Likewise.
16242         * modules/fdutimensat-tests (Depends-on): Likewise.
16243         * modules/futimens-tests (Depends-on): Likewise.
16244         * modules/lchown-tests (Depends-on): Likewise.
16245         * modules/link-tests (Depends-on): Likewise.
16246         * modules/linkat-tests (Depends-on): Likewise.
16247         * modules/lstat-tests (Depends-on): Likewise.
16248         * modules/mkdir-tests (Depends-on): Likewise.
16249         * modules/mkfifo-tests (Depends-on): Likewise.
16250         * modules/mkfifoat-tests (Depends-on): Likewise.
16251         * modules/mknod-tests (Depends-on): Likewise.
16252         * modules/openat-tests (Depends-on): Likewise.
16253         * modules/readlink-tests (Depends-on): Likewise.
16254         * modules/remove-tests (Depends-on): Likewise.
16255         * modules/rename-tests (Depends-on): Likewise.
16256         * modules/renameat-tests (Depends-on): Likewise.
16257         * modules/rmdir-tests (Depends-on): Likewise.
16258         * modules/symlink-tests (Depends-on): Likewise.
16259         * modules/symlinkat-tests (Depends-on): Likewise.
16260         * modules/unlink-tests (Depends-on): Likewise.
16261         * modules/utimens-tests (Depends-on): Likewise.
16262         * modules/utimensat-tests (Depends-on): Likewise.
16263
16264 2010-01-31  Bruno Haible  <bruno@clisp.org>
16265
16266         Perform the same test for many <math.h> functions.
16267         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
16268         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
16269         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
16270         of gl_MATHFUNC.
16271         * modules/acos (configure.ac): Likewise.
16272         * modules/asin (configure.ac): Likewise.
16273         * modules/atan (configure.ac): Likewise.
16274         * modules/atan2 (configure.ac): Likewise.
16275         * modules/cbrt (configure.ac): Likewise.
16276         * modules/copysign (configure.ac): Likewise.
16277         * modules/cos (configure.ac): Likewise.
16278         * modules/cosh (configure.ac): Likewise.
16279         * modules/erf (configure.ac): Likewise.
16280         * modules/erfc (configure.ac): Likewise.
16281         * modules/exp (configure.ac): Likewise.
16282         * modules/fmod (configure.ac): Likewise.
16283         * modules/hypot (configure.ac): Likewise.
16284         * modules/j0 (configure.ac): Likewise.
16285         * modules/j1 (configure.ac): Likewise.
16286         * modules/jn (configure.ac): Likewise.
16287         * modules/lgamma (configure.ac): Likewise.
16288         * modules/log (configure.ac): Likewise.
16289         * modules/log10 (configure.ac): Likewise.
16290         * modules/log1p (configure.ac): Likewise.
16291         * modules/pow (configure.ac): Likewise.
16292         * modules/remainder (configure.ac): Likewise.
16293         * modules/sin (configure.ac): Likewise.
16294         * modules/sinh (configure.ac): Likewise.
16295         * modules/tan (configure.ac): Likewise.
16296         * modules/tanh (configure.ac): Likewise.
16297         * modules/y0 (configure.ac): Likewise.
16298         * modules/y1 (configure.ac): Likewise.
16299         * modules/yn (configure.ac): Likewise.
16300         Suggested by Paolo Bonzini.
16301
16302 2010-01-31  Bruno Haible  <bruno@clisp.org>
16303
16304         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
16305
16306 2010-01-31  Bruno Haible  <bruno@clisp.org>
16307
16308         Work around getdelim() bug on FreeBSD 8.0.
16309         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
16310         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
16311         not work.
16312         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
16313         is 1.
16314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
16315         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
16316         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
16317         a non-zero size.
16318         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
16319
16320 2010-01-31  Bruno Haible  <bruno@clisp.org>
16321
16322         Work around getline() bug on FreeBSD 8.0.
16323         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
16324         and a non-zero size.
16325         * tests/test-getline.c (main): Likewise.
16326         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
16327         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
16328
16329 2010-01-28  Eric Blake  <ebb9@byu.net>
16330
16331         regex: fix build failure
16332         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
16333         platforms.
16334
16335 2010-01-28  Jim Meyering  <meyering@redhat.com>
16336
16337         regex: do not ignore memory allocation failure
16338         * lib/regex_internal.c (create_cd_newstate): Detect
16339         re_node_set_init_copy failure.   Extracted from glibc commit
16340         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16341
16342         regex: sync more white-space changes from libc
16343         * lib/regex_internal.c: White-space only changes.
16344         * lib/regexec.c: Likewise.
16345
16346         regex: add many uses of __attribute_warn_unused_result__
16347         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
16348         * lib/regexec.c: Likewise.
16349         Extracted from a messy glibc commit.
16350
16351         regcomp.c: spelling and merge-artifact from glibc
16352         * lib/regcomp.c: Merge remainder of glibc's
16353         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16354
16355         regcomp.c: sync white-space changes from glibc
16356         * lib/regcomp.c: Merge to accommodate white space
16357         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16358
16359         regcomp.c: do not ignore internal return values
16360         * lib/regcomp.c: Do not ignore internal return values.
16361         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
16362         but without its white-space changes and spelling fixes.
16363
16364         regex_internal.h: define __attribute_warn_unused_result__
16365         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
16366
16367         maint: add a syntax-check rule to check for vulnerable Makefile.in
16368         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
16369
16370 2010-01-27  Jim Meyering  <meyering@redhat.com>
16371
16372         ncftpput-ftp: clean up spaces
16373         * build-aux/ncftpput-ftp: Make Copyright line consistent.
16374         Remove trailing blanks.
16375
16376 2010-01-27  Simon Josefsson  <simon@josefsson.org>
16377
16378         * build-aux/git-version-gen: Fix copyright statement.
16379         * build-aux/gnupload: Likewise.
16380         * tests/test-arcfour.c: Likewise.
16381         * tests/test-arctwo.c: Likewise.
16382         * tests/test-count-one-bits.c: Likewise.
16383         * tests/test-crc.c: Likewise.
16384         * tests/test-des.c: Likewise.
16385         * tests/test-gc-arcfour.c: Likewise.
16386         * tests/test-gc-arctwo.c: Likewise.
16387         * tests/test-gc-des.c: Likewise.
16388         * tests/test-gc-hmac-md5.c: Likewise.
16389         * tests/test-gc-hmac-sha1.c: Likewise.
16390         * tests/test-gc-md2.c: Likewise.
16391         * tests/test-gc-md4.c: Likewise.
16392         * tests/test-gc-md5.c: Likewise.
16393         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16394         * tests/test-gc-rijndael.c: Likewise.
16395         * tests/test-gc-sha1.c: Likewise.
16396         * tests/test-gc.c: Likewise.
16397         * tests/test-gethostname.c: Likewise.
16398         * tests/test-gettimeofday.c: Likewise.
16399         * tests/test-hash.c: Likewise.
16400         * tests/test-hmac-md5.c: Likewise.
16401         * tests/test-hmac-sha1.c: Likewise.
16402         * tests/test-md2.c: Likewise.
16403         * tests/test-md4.c: Likewise.
16404         * tests/test-md5.c: Likewise.
16405         * tests/test-memchr.c: Likewise.
16406         * tests/test-memchr2.c: Likewise.
16407         * tests/test-memcmp.c: Likewise.
16408         * tests/test-memmem.c: Likewise.
16409         * tests/test-memrchr.c: Likewise.
16410         * tests/test-rawmemchr.c: Likewise.
16411         * tests/test-read-file.c: Likewise.
16412         * tests/test-rijndael.c: Likewise.
16413         * tests/test-sockets.c: Likewise.
16414         * tests/test-strchrnul.c: Likewise.
16415         * tests/test-strstr.c: Likewise.
16416         * tests/test-strtod.c: Likewise.
16417         * build-aux/ncftpput-ftp: Likewise.
16418
16419 2010-01-26  Eric Blake  <ebb9@byu.net>
16420
16421         ignore-value: update recommended header name
16422         * modules/ignore-value (Include): Only use <> for headers that
16423         exist in glibc.
16424
16425 2010-01-26  Jim Meyering  <meyering@redhat.com>
16426
16427         test-userspec.c: avoid compiler warnings
16428         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
16429         and "initialization discards qualifiers..." warnings.
16430         Put the first "uid" in its own scope, and make char* members "const".
16431
16432 2010-01-25  Bruno Haible  <bruno@clisp.org>
16433
16434         gnulib-tool: Make warning diagnostics consistent.
16435         * gnulib-tool (func_warning): New function.
16436         Use it everywhere where gnulib-tool produces output to stderr and it is
16437         not a fatal error.
16438
16439 2010-01-25  Bruno Haible  <bruno@clisp.org>
16440
16441         Fix test dependencies.
16442         * modules/xstrtol-tests (Depends-on): Add inttypes.
16443         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
16444
16445 2010-01-25 Pádraig Brady <P@draigBrady.com>
16446
16447         syntax-check: detect incorrect boolean macro values in config.h
16448         * modules/maintainer-makefile (configure.ac): Parameterize the location
16449         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
16450         The logic is from Eric Blake and the location indicated by Jim Meyering.
16451         Note the more natural CONFIG_HEADER name is prohibited by automake
16452         for backwards compatibility reasons.
16453         * top/maint.mk (sc_Wundef_boolean): New rule.
16454
16455 2010-01-25  Jim Meyering  <meyering@redhat.com>
16456
16457         bootstrap: detect MacOS 10.6's shasum, too
16458         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
16459         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
16460
16461 2010-01-23  Jim Meyering  <meyering@redhat.com>
16462
16463         xstrtoll: new module
16464         * modules/xstrtoll: New file.
16465         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
16466         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
16467         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
16468         ./configure fails if you use this module and lack "long long".
16469         * modules/xstrtoll-tests: New module.
16470         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
16471         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
16472         new init.sh-based test framework.
16473
16474 2010-01-24  Bruno Haible  <bruno@clisp.org>
16475
16476         Tests for module 'yn'.
16477         * modules/yn-tests: New file.
16478         * tests/test-yn.c: New file.
16479
16480         Tests for module 'y1'.
16481         * modules/y1-tests: New file.
16482         * tests/test-y1.c: New file.
16483
16484         Tests for module 'y0'.
16485         * modules/y0-tests: New file.
16486         * tests/test-y0.c: New file.
16487
16488         Tests for module 'tanh'.
16489         * modules/tanh-tests: New file.
16490         * tests/test-tanh.c: New file.
16491
16492         Tests for module 'tan'.
16493         * modules/tan-tests: New file.
16494         * tests/test-tan.c: New file.
16495
16496         Tests for module 'sqrt'.
16497         * modules/sqrt-tests: New file.
16498         * tests/test-sqrt.c: New file.
16499
16500         Tests for module 'sinh'.
16501         * modules/sinh-tests: New file.
16502         * tests/test-sinh.c: New file.
16503
16504         Tests for module 'sin'.
16505         * modules/sin-tests: New file.
16506         * tests/test-sin.c: New file.
16507
16508         Tests for module 'rint'.
16509         * modules/rint-tests: New file.
16510         * tests/test-rint.c: New file.
16511
16512         Tests for module 'remainder'.
16513         * modules/remainder-tests: New file.
16514         * tests/test-remainder.c: New file.
16515
16516         Tests for module 'pow'.
16517         * modules/pow-tests: New file.
16518         * tests/test-pow.c: New file.
16519
16520         Tests for module 'nextafter'.
16521         * modules/nextafter-tests: New file.
16522         * tests/test-nextafter.c: New file.
16523
16524         Tests for module 'modf'.
16525         * modules/modf-tests: New file.
16526         * tests/test-modf.c: New file.
16527
16528         Tests for module 'logb'.
16529         * modules/logb-tests: New file.
16530         * tests/test-logb.c: New file.
16531
16532         Tests for module 'log1p'.
16533         * modules/log1p-tests: New file.
16534         * tests/test-log1p.c: New file.
16535
16536         Tests for module 'log10'.
16537         * modules/log10-tests: New file.
16538         * tests/test-log10.c: New file.
16539
16540         Tests for module 'log'.
16541         * modules/log-tests: New file.
16542         * tests/test-log.c: New file.
16543
16544         Tests for module 'lgamma'.
16545         * modules/lgamma-tests: New file.
16546         * tests/test-lgamma.c: New file.
16547
16548         Tests for module 'ldexp'.
16549         * modules/ldexp-tests: New file.
16550         * tests/test-ldexp.c: New file.
16551
16552         Tests for module 'jn'.
16553         * modules/jn-tests: New file.
16554         * tests/test-jn.c: New file.
16555
16556         Tests for module 'j1'.
16557         * modules/j1-tests: New file.
16558         * tests/test-j1.c: New file.
16559
16560         Tests for module 'j0'.
16561         * modules/j0-tests: New file.
16562         * tests/test-j0.c: New file.
16563
16564         Tests for module 'hypot'.
16565         * modules/hypot-tests: New file.
16566         * tests/test-hypot.c: New file.
16567
16568         Tests for module 'fmod'.
16569         * modules/fmod-tests: New file.
16570         * tests/test-fmod.c: New file.
16571
16572         Tests for module 'fabs'.
16573         * modules/fabs-tests: New file.
16574         * tests/test-fabs.c: New file.
16575
16576         Tests for module 'exp'.
16577         * modules/exp-tests: New file.
16578         * tests/test-exp.c: New file.
16579
16580         Tests for module 'erfc'.
16581         * modules/erfc-tests: New file.
16582         * tests/test-erfc.c: New file.
16583
16584         Tests for module 'erf'.
16585         * modules/erf-tests: New file.
16586         * tests/test-erf.c: New file.
16587
16588         Tests for module 'cosh'.
16589         * modules/cosh-tests: New file.
16590         * tests/test-cosh.c: New file.
16591
16592         Tests for module 'cos'.
16593         * modules/cos-tests: New file.
16594         * tests/test-cos.c: New file.
16595
16596         Tests for module 'copysign'.
16597         * modules/copysign-tests: New file.
16598         * tests/test-copysign.c: New file.
16599
16600         Tests for module 'cbrt'.
16601         * modules/cbrt-tests: New file.
16602         * tests/test-cbrt.c: New file.
16603
16604         Tests for module 'atan2'.
16605         * modules/atan2-tests: New file.
16606         * tests/test-atan2.c: New file.
16607
16608         Tests for module 'atan'.
16609         * modules/atan-tests: New file.
16610         * tests/test-atan.c: New file.
16611
16612         Tests for module 'asin'.
16613         * modules/asin-tests: New file.
16614         * tests/test-asin.c: New file.
16615
16616         Tests for module 'acos'.
16617         * modules/acos-tests: New file.
16618         * tests/test-acos.c: New file.
16619
16620 2010-01-24  Bruno Haible  <bruno@clisp.org>
16621
16622         Fix tests for common <math.h> functions.
16623         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16624         code snippet that references the function pointer, rather than merely
16625         calling the function. Substitute the FUNC_LIBM variable.
16626         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16627         * modules/acos (configure.ac): Likewise.
16628         * modules/asin (configure.ac): Likewise.
16629         * modules/atan (configure.ac): Likewise.
16630         * modules/atan2 (configure.ac): Likewise.
16631         * modules/cbrt (configure.ac): Likewise.
16632         * modules/copysign (configure.ac): Likewise.
16633         * modules/cos (configure.ac): Likewise.
16634         * modules/cosh (configure.ac): Likewise.
16635         * modules/erf (configure.ac): Likewise.
16636         * modules/erfc (configure.ac): Likewise.
16637         * modules/exp (configure.ac): Likewise.
16638         * modules/fabs (configure.ac): Likewise.
16639         * modules/fmod (configure.ac): Likewise.
16640         * modules/hypot (configure.ac): Likewise.
16641         * modules/j0 (configure.ac): Likewise.
16642         * modules/j1 (configure.ac): Likewise.
16643         * modules/jn (configure.ac): Likewise.
16644         * modules/ldexp (configure.ac): Likewise.
16645         * modules/lgamma (configure.ac): Likewise.
16646         * modules/log (configure.ac): Likewise.
16647         * modules/log10 (configure.ac): Likewise.
16648         * modules/log1p (configure.ac): Likewise.
16649         * modules/logb (configure.ac): Likewise.
16650         * modules/modf (configure.ac): Likewise.
16651         * modules/nextafter (configure.ac): Likewise.
16652         * modules/pow (configure.ac): Likewise.
16653         * modules/remainder (configure.ac): Likewise.
16654         * modules/rint (configure.ac): Likewise.
16655         * modules/sin (configure.ac): Likewise.
16656         * modules/sinh (configure.ac): Likewise.
16657         * modules/tan (configure.ac): Likewise.
16658         * modules/tanh (configure.ac): Likewise.
16659         * modules/y0 (configure.ac): Likewise.
16660         * modules/y1 (configure.ac): Likewise.
16661         * modules/yn (configure.ac): Likewise.
16662
16663 2010-01-24  Bruno Haible  <bruno@clisp.org>
16664
16665         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16666         * tests/test-acosl.c (x): New variable.
16667         (main): Store argument in x and fetch it from x.
16668         * tests/test-asinl.c (x): New variable.
16669         (main): Store argument in x and fetch it from x.
16670         * tests/test-atanl.c (x): New variable.
16671         (main): Store argument in x and fetch it from x.
16672         * tests/test-cosl.c (x): New variable.
16673         (main): Store argument in x and fetch it from x.
16674         * tests/test-expl.c (x): New variable.
16675         (main): Store argument in x and fetch it from x.
16676         * tests/test-logl.c (x): New variable.
16677         (main): Store argument in x and fetch it from x.
16678         * tests/test-sinl.c (x): New variable.
16679         (main): Store argument in x and fetch it from x.
16680         * tests/test-sqrtl.c (x): New variable.
16681         (main): Store argument in x and fetch it from x.
16682         * tests/test-tanl.c (x): New variable.
16683         (main): Store argument in x and fetch it from x.
16684
16685 2010-01-24  Bruno Haible  <bruno@clisp.org>
16686
16687         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16688         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16689         assignments to the initial TESTS_ENVIRONMENT.
16690         * doc/gnulib.texi (Unit test modules): Document it.
16691         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16692         TESTS_ENVIRONMENT.
16693         * modules/btowc-tests (Makefile.am): Likewise.
16694         * modules/c-stack-tests (Makefile.am): Likewise.
16695         * modules/c-strcase-tests (Makefile.am): Likewise.
16696         * modules/copy-file-tests (Makefile.am): Likewise.
16697         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16698         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16699         * modules/mbrtowc-tests (Makefile.am): Likewise.
16700         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16701         * modules/mbscasestr-tests (Makefile.am): Likewise.
16702         * modules/mbschr-tests (Makefile.am): Likewise.
16703         * modules/mbscspn-tests (Makefile.am): Likewise.
16704         * modules/mbsinit-tests (Makefile.am): Likewise.
16705         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16706         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16707         * modules/mbspbrk-tests (Makefile.am): Likewise.
16708         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16709         * modules/mbsrchr-tests (Makefile.am): Likewise.
16710         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16711         * modules/mbsspn-tests (Makefile.am): Likewise.
16712         * modules/mbsstr-tests (Makefile.am): Likewise.
16713         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16714         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16715         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16716         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16717         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16718         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16719         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16720         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16721         * modules/wcrtomb-tests (Makefile.am): Likewise.
16722         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16723         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16724         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16725         assignments from TESTS_ENVIRONMENT.
16726         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16727         augmentation.
16728         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16729         * modules/atexit-tests (Makefile.am): Likewise.
16730         * modules/binary-io-tests (Makefile.am): Likewise.
16731         * modules/closein-tests (Makefile.am): Likewise.
16732         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16733         * modules/exclude-tests (Makefile.am): Likewise.
16734         * modules/fflush-tests (Makefile.am): Likewise.
16735         * modules/fpending-tests (Makefile.am): Likewise.
16736         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16737         * modules/freadahead-tests (Makefile.am): Likewise.
16738         * modules/freadptr-tests (Makefile.am): Likewise.
16739         * modules/freadseek-tests (Makefile.am): Likewise.
16740         * modules/fseek-tests (Makefile.am): Likewise.
16741         * modules/fseeko-tests (Makefile.am): Likewise.
16742         * modules/ftell-tests (Makefile.am): Likewise.
16743         * modules/ftello-tests (Makefile.am): Likewise.
16744         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16745         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16746         * modules/lseek-tests (Makefile.am): Likewise.
16747         * modules/parse-duration-tests (Makefile.am): Likewise.
16748         * modules/perror-tests (Makefile.am): Likewise.
16749         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16750         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16751         * modules/pipe-tests (Makefile.am): Likewise.
16752         * modules/pread-tests (Makefile.am): Likewise.
16753         * modules/printf-posix-tests (Makefile.am): Likewise.
16754         * modules/select-tests (Makefile.am): Likewise.
16755         * modules/sigpipe-tests (Makefile.am): Likewise.
16756         * modules/tsearch-tests (Makefile.am): Likewise.
16757         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16758         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16759         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16760         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16761         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16762         * modules/version-etc-tests (Makefile.am): Likewise.
16763         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16764         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16765         * modules/xalloc-die-tests (Makefile.am): Likewise.
16766         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16767         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16768         * modules/xstrtol-tests (Makefile.am): Likewise.
16769         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16770         * modules/yesno-tests (Makefile.am): Likewise.
16771         Suggested by Jim Meyering.
16772
16773 2010-01-24  Bruno Haible  <bruno@clisp.org>
16774
16775         More documentation.
16776         * doc/gnulib.texi (Writing modules): New chapter.
16777         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16778         the new chapter.
16779
16780 2010-01-24  Jim Meyering  <meyering@redhat.com>
16781
16782         maint.mk: do not prepend "./" after filtering
16783         * top/maint.mk (_prepend_srcdir_prefix): New variable
16784         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16785         "./" when $(srcdir) is ".".
16786
16787         define STREQ(a,b) consistently, removing useless parentheses
16788         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16789         since the only risk is that "a" or "b" contains an unparenthesized
16790         comma, but if either did that, STREQ would have 3 or more arguments.
16791         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16792         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16793         * lib/hash-triple.c (STREQ): Likewise.
16794         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16795         * lib/getugroups.c (STREQ): Likewise.
16796
16797 2010-01-23  Jim Meyering  <meyering@redhat.com>
16798
16799         maint.mk: fix syntax-check in a non-srcdir build directory
16800         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16801         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16802
16803 2010-01-22  Jim Meyering  <meyering@redhat.com>
16804
16805         userspec: add unit tests
16806         * tests/test-userspec.c: New file.
16807         * modules/userspec-tests: Likewise.
16808
16809 2010-01-21  Jim Meyering  <meyering@redhat.com>
16810
16811         maint.mk: handle source file names containing "." robustly
16812         * top/maint.mk (_dot_escaped_srcdir): Define.
16813         (VC_LIST): Use it in LHS of sed substitution.
16814
16815 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16816
16817         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16818         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16819         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16820         from a non-srcdir build.
16821
16822 2010-01-20  Eric Blake  <ebb9@byu.net>
16823
16824         warn-on-use: use instead of link-warning
16825         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16826         * modules/unistd (Depends-on, Makefile.am): Likewise.
16827         * modules/arpa_inet (Depends-on): Replace link-warning with
16828         warn-on-use.
16829         (Makefile.am): Update rules accordingly.
16830         * modules/ctype (Depends-on, Makefile.am): Likewise.
16831         * modules/dirent (Depends-on, Makefile.am): Likewise.
16832         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16833         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16834         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16835         * modules/locale (Depends-on, Makefile.am): Likewise.
16836         * modules/math (Depends-on, Makefile.am): Likewise.
16837         * modules/search (Depends-on, Makefile.am): Likewise.
16838         * modules/signal (Depends-on, Makefile.am): Likewise.
16839         * modules/spawn (Depends-on, Makefile.am): Likewise.
16840         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16841         * modules/string (Depends-on, Makefile.am): Likewise.
16842         * modules/strings (Depends-on, Makefile.am): Likewise.
16843         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16844         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16845         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16846         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16847         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16848         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16849         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16850         * modules/wchar (Depends-on, Makefile.am): Likewise.
16851         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16852         should be poisoned.
16853         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16854         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16855         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16856         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16857         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16858         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16859         * m4/math_h.m4 (gl_MATH_H): Likewise.
16860         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16861         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16862         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16863         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16864         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16865         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16866         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16867         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16868         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16869         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16872         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16873         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16874         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16875         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16876         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16877         GL_LINK_WARNING.
16878         * lib/ctype.in.h: Likewise.
16879         * lib/dirent.in.h: Likewise.
16880         * lib/fcntl.in.h: Likewise.
16881         * lib/inttypes.in.h: Likewise.
16882         * lib/langinfo.in.h: Likewise.
16883         * lib/locale.in.h: Likewise.
16884         * lib/math.in.h: Likewise.
16885         * lib/search.in.h: Likewise.
16886         * lib/signal.in.h: Likewise.
16887         * lib/spawn.in.h: Likewise.
16888         * lib/stdio.in.h: Likewise.
16889         * lib/stdlib.in.h: Likewise.
16890         * lib/string.in.h: Likewise.
16891         * lib/strings.in.h: Likewise.
16892         * lib/sys_file.in.h: Likewise.
16893         * lib/sys_ioctl.in.h: Likewise.
16894         * lib/sys_select.in.h: Likewise.
16895         * lib/sys_socket.in.h: Likewise.
16896         * lib/sys_stat.in.h: Likewise.
16897         * lib/sys_times.in.h: Likewise.
16898         * lib/sys_utsname.in.h: Likewise.
16899         * lib/unistd.in.h: Likewise.
16900         * lib/wchar.in.h: Likewise.
16901
16902 2010-01-20  Bruno Haible  <bruno@clisp.org>
16903
16904         Avoid duplicate -lm.
16905         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16906         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16907         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16908         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16909         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16910         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16911         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16912         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16913         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16914         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16915         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16916         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16917         Reported by Paolo Bonzini.
16918
16919 2010-01-19  Bruno Haible  <bruno@clisp.org>
16920
16921         langinfo, nl_langinfo: Relicense under LGPLv2+.
16922         * modules/langinfo (License): Change to LGPLv2+.
16923         * modules/nl_langinfo (License): Likewise.
16924         Patch by David Lutterkort <lutter@redhat.com>.
16925
16926 2010-01-19  Bruno Haible  <bruno@clisp.org>
16927
16928         Avoid compilation error with cc on OSF/1 5.1.
16929         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16930         statement, not before.
16931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16932
16933 2010-01-18  Bruno Haible  <bruno@clisp.org>
16934
16935         Avoid a link error due to the __printf__ symbol.
16936         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16937         and 2.6.x.
16938         (__format__, __printf__): Remove definitions.
16939         * lib/argp-fmtstream.h: Likewise.
16940         * lib/argp.h: Likewise.
16941         * lib/error.h: Likewise.
16942         * lib/vasnprintf.h: Likewise.
16943         * lib/xprintf.h: Likewise.
16944         * lib/xvasprintf.h: Likewise.
16945         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16946
16947 2010-01-18  Bruno Haible  <bruno@clisp.org>
16948
16949         Tests for module 'tanl'.
16950         * modules/tanl-tests: New file.
16951         * tests/test-tanl.c: New file.
16952
16953         Tests for module 'sqrtl'.
16954         * modules/sqrtl-tests: New file.
16955         * tests/test-sqrtl.c: New file.
16956
16957         Tests for module 'sinl'.
16958         * modules/sinl-tests: New file.
16959         * tests/test-sinl.c: New file.
16960
16961         Tests for module 'logl'.
16962         * modules/logl-tests: New file.
16963         * tests/test-logl.c: New file.
16964
16965         Tests for module 'expl'.
16966         * modules/expl-tests: New file.
16967         * tests/test-expl.c: New file.
16968
16969         Tests for module 'cosl'.
16970         * modules/cosl-tests: New file.
16971         * tests/test-cosl.c: New file.
16972
16973         Tests for module 'atanl'.
16974         * modules/atanl-tests: New file.
16975         * tests/test-atanl.c: New file.
16976
16977         Tests for module 'asinl'.
16978         * modules/asinl-tests: New file.
16979         * tests/test-asinl.c: New file.
16980
16981         Tests for module 'acosl'.
16982         * modules/acosl-tests: New file.
16983         * tests/test-acosl.c: New file.
16984
16985         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16986         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16987         tanl): Use the standard gnulib idiom.
16988         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16989         * lib/sinl.c: Likewise.
16990         * lib/tanl.c: Don't include trigl.c.
16991         (kernel_tanl): Make static.
16992         * lib/sincosl.c: Include trigl.h first.
16993         * lib/trigl.c: Likewise.
16994         * m4/acosl.m4: New file.
16995         * m4/asinl.m4: New file.
16996         * m4/atanl.m4: New file.
16997         * m4/cosl.m4: New file.
16998         * m4/expl.m4: New file.
16999         * m4/logl.m4: New file.
17000         * m4/sinl.m4: New file.
17001         * m4/sqrtl.m4: New file.
17002         * m4/tanl.m4: New file.
17003         * m4/mathl.m4: Remove file.
17004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17005         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17006         Don't initialize GNULIB_MATHL.
17007         * modules/acosl: New file.
17008         * modules/asinl: New file.
17009         * modules/atanl: New file.
17010         * modules/cosl: New file.
17011         * modules/expl: New file.
17012         * modules/logl: New file.
17013         * modules/sinl: New file.
17014         * modules/sqrtl: New file.
17015         * modules/tanl: New file.
17016         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17017         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17018         substitute GNULIB_MATHL.
17019         * modules/mathl: Rewritten.
17020         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17021         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17022         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17023         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17024         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17025         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17026         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17027         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17028         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17029
17030 2010-01-18  Bruno Haible  <bruno@clisp.org>
17031
17032         sqrt: Make gl_FUNC_SQRT requirable.
17033         * m4/sqrt.m4: New file.
17034         * modules/sqrt (Files): Add it.
17035         (configure.ac): Invoke gl_FUNC_SQRT.
17036
17037 2010-01-18  Bruno Haible  <bruno@clisp.org>
17038
17039         New modules for common <math.h> functions.
17040         * m4/mathfunc.m4: New file.
17041         * modules/acos: New file.
17042         * modules/asin: New file.
17043         * modules/atan: New file.
17044         * modules/atan2: New file.
17045         * modules/cbrt: New file.
17046         * modules/copysign: New file.
17047         * modules/cos: New file.
17048         * modules/cosh: New file.
17049         * modules/erf: New file.
17050         * modules/erfc: New file.
17051         * modules/exp: New file.
17052         * modules/fabs: New file.
17053         * modules/fmod: New file.
17054         * modules/hypot: New file.
17055         * modules/j0: New file.
17056         * modules/j1: New file.
17057         * modules/jn: New file.
17058         * modules/ldexp: New file.
17059         * modules/lgamma: New file.
17060         * modules/log: New file.
17061         * modules/log10: New file.
17062         * modules/log1p: New file.
17063         * modules/logb: New file.
17064         * modules/modf: New file.
17065         * modules/nextafter: New file.
17066         * modules/pow: New file.
17067         * modules/remainder: New file.
17068         * modules/rint: New file.
17069         * modules/sin: New file.
17070         * modules/sinh: New file.
17071         * modules/sqrt: New file.
17072         * modules/tan: New file.
17073         * modules/tanh: New file.
17074         * modules/y0: New file.
17075         * modules/y1: New file.
17076         * modules/yn: New file.
17077         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17078         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17079         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17080         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17081         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17082         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17083         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17084         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17085         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17086         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17087         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17088         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17089         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17090         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17091         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17092         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17093         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17094         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17095         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17096         * doc/posix-functions/log.texi: Mention the 'log' module.
17097         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17098         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17099         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17100         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17101         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17102         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17103         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17104         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17105         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17106         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17107         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17108         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17109         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17110         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17111         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17112         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17113
17114 2010-01-18  Jim Meyering  <meyering@redhat.com>
17115
17116         ignore-value: relax license to LGPLv2+
17117         * modules/ignore-value (License): Relax to LGPLv2+.
17118
17119         getdate: don't leak when TZ contains two or more '"'s
17120         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17121         double quote in TZ after the first one.
17122
17123         readtokens: do not leak internal token_lengths buffer
17124         * lib/readtokens.c (readtokens): Free the local, lengths,
17125         when the supplied "token_lengths" parameter is NULL.
17126
17127 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17128
17129         Fix a couple of missing LIBTHREAD link failures on AIX.
17130         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17131         $(LIBTHREAD).
17132         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17133
17134         Link test-poll against INET_PTON_LIB.
17135         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17136         for inet_pton on Solaris 10.
17137
17138 2010-01-17  Bruno Haible  <bruno@clisp.org>
17139
17140         unistdio/*-sprintf: Fix typo in module description.
17141         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17142         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17143         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17144         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17145         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17146         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17147         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17148         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17149
17150 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17151
17152         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17153         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17154         variables in shell case patterns, for AIX and HP-UX ksh.
17155
17156         Split large sed scripts, for HP-UX sed.
17157         * modules/stdio: Split sed scripts around 50 sed commands,
17158         to avoid HP-UX limit of 99 commands, in the near future.
17159         * modules/string: Likewise.
17160         * modules/unistd: Likewise.
17161
17162         gnulib-tool: avoid writing in the current directory.
17163         * gnulib-tool (func_emit_lib_Makefile_am)
17164         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17165         not in the current directory, so concurrent gnulib-tool
17166         instances do not interfere.
17167
17168 2010-01-16  Jim Meyering  <meyering@redhat.com>
17169
17170         doc: update users.txt
17171         * users.txt: Add grep.
17172         (diffutils, gzip): Update URLs.
17173
17174 2010-01-12  Bruno Haible  <bruno@clisp.org>
17175
17176         posix_spawn: Avoid test failure on Cygwin.
17177         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17178         characters.
17179         Reported by Simon Josefsson.
17180
17181 2010-01-12  Bruno Haible  <bruno@clisp.org>
17182
17183         * tests/test-cond.c (main): When skipping the test, show the reason.
17184
17185 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17186
17187         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17188
17189 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17190
17191         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17192         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17193
17194 2010-01-12  Eric Blake  <ebb9@byu.net>
17195
17196         build: guarantee AS_VAR_IF
17197         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17198         (gl_AS_VAR_IF): Move...
17199         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17200         Reported by Simon Josefsson.
17201
17202 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17203
17204         * lib/stdio.in.h: Fix typo.
17205
17206 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17207
17208         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17209         libgpg-error.
17210
17211 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17212
17213         * tests/test-xalloc-die.sh: Use $EXEEXT.
17214
17215 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17216             Bruno Haible  <bruno@clisp.org>
17217
17218         getlogin, getlogin_r: Avoid test failure.
17219         * tests/test-getlogin.c: Include <stdio.h>.
17220         (main): Skip the test when the function fails because stdin is not a
17221         tty.
17222         * tests/test-getlogin_r.c: Include <stdio.h>.
17223         (main): Skip the test when the function fails because stdin is not a
17224         tty.
17225
17226 2010-01-11  Eric Blake  <ebb9@byu.net>
17227
17228         tests: avoid more large file warnings
17229         * tests/test-fflush.c: Avoid warning about ftell use.
17230         * tests/test-fseek.c: Avoid warning about fseek use.
17231
17232 2010-01-10  Bruno Haible  <bruno@clisp.org>
17233
17234         nproc: Work better on Linux when /proc and /sys are not mounted.
17235         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
17236         as lower bound when, on glibc/Linux systems,
17237         sysconf (_SC_NPROCESSORS_CONF) returns 1.
17238         Suggested by Pádraig Brady <P@draigbrady.com>.
17239         Reported by Dmitry V. Levin <ldv@altlinux.org>.
17240
17241         nproc: Refactor.
17242         * lib/nproc.c (num_processors_via_affinity_mask): New function,
17243         extracted from num_processors.
17244         (num_processors): Call it.
17245
17246 2010-01-11  Jim Meyering  <meyering@redhat.com>
17247
17248         utimecmp: avoid new warning from upcoming gcc-4.5.0
17249         * lib/utimecmp.c (BILLION): Define using #define rather than an
17250         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
17251
17252 2010-01-11  Eric Blake  <ebb9@byu.net>
17253
17254         math: add portability warnings for classification macros
17255         * modules/math (Depends-on): Add warn-on-use.
17256         (Makefile.am): Provide new substitutions.
17257         * m4/math_h.m4 (gl_MATH_H): Require inline.
17258         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
17259         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
17260         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
17261         implement warnings.
17262
17263         unistd: warn on use of environ without module
17264         * modules/unistd (Depends-on): Add warn-on-use.
17265         (Makefile.am): Provide new substitutions.
17266         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
17267         * lib/unistd.in.h (environ): Wrap with a warning helper function.
17268
17269         stdio: warn on suspicious uses
17270         * modules/stdio (Depends-on): Add warn-on-use.
17271         (Makefile.am): Provide new substitutions.
17272         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
17273         fseeko.
17274         * lib/stdio.in.h (gets): Always warn on use.
17275         (fseek, ftell): Adjust when warnings are issued, and honor
17276         _GL_NO_LARGE_FILES as a way to silence the warning.
17277         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
17278         any warning about large file offsets.
17279         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
17280         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
17281         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
17282         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
17283         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
17284         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
17285         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
17286         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
17287
17288         warn-on-use: new module
17289         * modules/warn-on-use: New file.
17290         * build-aux/warn-on-use.h: Likewise.
17291         * m4/warn-on-use.m4: Likewise.
17292         * MODULES.html.sh (Support for building): Mention it.
17293
17294 2010-01-10  Bruno Haible  <bruno@clisp.org>
17295
17296         Tests for module 'unistr/u32-strdup'.
17297         * modules/unistr/u32-strdup-tests: New file.
17298         * tests/unistr/test-u32-strdup.c: New file.
17299
17300         Tests for module 'unistr/u16-strdup'.
17301         * modules/unistr/u16-strdup-tests: New file.
17302         * tests/unistr/test-u16-strdup.c: New file.
17303
17304         Tests for module 'unistr/u8-strdup'.
17305         * modules/unistr/u8-strdup-tests: New file.
17306         * tests/unistr/test-u8-strdup.c: New file.
17307         * tests/unistr/test-strdup.h: New file.
17308
17309         Tests for module 'unistr/u32-strncmp'.
17310         * modules/unistr/u32-strncmp-tests: New file.
17311         * tests/unistr/test-u32-strncmp.c: New file.
17312
17313         Tests for module 'unistr/u16-strncmp'.
17314         * modules/unistr/u16-strncmp-tests: New file.
17315         * tests/unistr/test-u16-strncmp.c: New file.
17316
17317         Tests for module 'unistr/u8-strncmp'.
17318         * modules/unistr/u8-strncmp-tests: New file.
17319         * tests/unistr/test-u8-strncmp.c: New file.
17320         * tests/unistr/test-strncmp.h: New file.
17321
17322         Tests for module 'unistr/u32-strcoll'.
17323         * modules/unistr/u32-strcoll-tests: New file.
17324         * tests/unistr/test-u32-strcoll.c: New file.
17325
17326         Tests for module 'unistr/u16-strcoll'.
17327         * modules/unistr/u16-strcoll-tests: New file.
17328         * tests/unistr/test-u16-strcoll.c: New file.
17329
17330         Tests for module 'unistr/u8-strcoll'.
17331         * modules/unistr/u8-strcoll-tests: New file.
17332         * tests/unistr/test-u8-strcoll.c: New file.
17333
17334         Tests for module 'unistr/u32-strcmp'.
17335         * modules/unistr/u32-strcmp-tests: New file.
17336         * tests/unistr/test-u32-strcmp.c: New file.
17337         * tests/unistr/test-u32-strcmp.h: New file.
17338
17339         Tests for module 'unistr/u16-strcmp'.
17340         * modules/unistr/u16-strcmp-tests: New file.
17341         * tests/unistr/test-u16-strcmp.c: New file.
17342         * tests/unistr/test-u16-strcmp.h: New file.
17343
17344         Tests for module 'unistr/u8-strcmp'.
17345         * modules/unistr/u8-strcmp-tests: New file.
17346         * tests/unistr/test-u8-strcmp.c: New file.
17347         * tests/unistr/test-u8-strcmp.h: New file.
17348         * tests/unistr/test-strcmp.h: New file.
17349
17350         Tests for module 'unistr/u32-strncat'.
17351         * modules/unistr/u32-strncat-tests: New file.
17352         * tests/unistr/test-u32-strncat.c: New file.
17353
17354         Tests for module 'unistr/u16-strncat'.
17355         * modules/unistr/u16-strncat-tests: New file.
17356         * tests/unistr/test-u16-strncat.c: New file.
17357
17358         Tests for module 'unistr/u8-strncat'.
17359         * modules/unistr/u8-strncat-tests: New file.
17360         * tests/unistr/test-u8-strncat.c: New file.
17361         * tests/unistr/test-strncat.h: New file.
17362
17363         Tests for module 'unistr/u32-strcat'.
17364         * modules/unistr/u32-strcat-tests: New file.
17365         * tests/unistr/test-u32-strcat.c: New file.
17366
17367         Tests for module 'unistr/u16-strcat'.
17368         * modules/unistr/u16-strcat-tests: New file.
17369         * tests/unistr/test-u16-strcat.c: New file.
17370
17371         Tests for module 'unistr/u8-strcat'.
17372         * modules/unistr/u8-strcat-tests: New file.
17373         * tests/unistr/test-u8-strcat.c: New file.
17374         * tests/unistr/test-strcat.h: New file.
17375
17376         Tests for module 'unistr/u32-stpncpy'.
17377         * modules/unistr/u32-stpncpy-tests: New file.
17378         * tests/unistr/test-u32-stpncpy.c: New file.
17379
17380         Tests for module 'unistr/u16-stpncpy'.
17381         * modules/unistr/u16-stpncpy-tests: New file.
17382         * tests/unistr/test-u16-stpncpy.c: New file.
17383
17384         Tests for module 'unistr/u8-stpncpy'.
17385         * modules/unistr/u8-stpncpy-tests: New file.
17386         * tests/unistr/test-u8-stpncpy.c: New file.
17387         * tests/unistr/test-stpncpy.h: New file.
17388
17389         Tests for module 'unistr/u32-strncpy'.
17390         * modules/unistr/u32-strncpy-tests: New file.
17391         * tests/unistr/test-u32-strncpy.c: New file.
17392
17393         Tests for module 'unistr/u16-strncpy'.
17394         * modules/unistr/u16-strncpy-tests: New file.
17395         * tests/unistr/test-u16-strncpy.c: New file.
17396
17397         Tests for module 'unistr/u8-strncpy'.
17398         * modules/unistr/u8-strncpy-tests: New file.
17399         * tests/unistr/test-u8-strncpy.c: New file.
17400         * tests/unistr/test-strncpy.h: New file.
17401
17402         Tests for module 'unistr/u32-stpcpy'.
17403         * modules/unistr/u32-stpcpy-tests: New file.
17404         * tests/unistr/test-u32-stpcpy.c: New file.
17405
17406         Tests for module 'unistr/u16-stpcpy'.
17407         * modules/unistr/u16-stpcpy-tests: New file.
17408         * tests/unistr/test-u16-stpcpy.c: New file.
17409
17410         Tests for module 'unistr/u8-stpcpy'.
17411         * modules/unistr/u8-stpcpy-tests: New file.
17412         * tests/unistr/test-u8-stpcpy.c: New file.
17413         * tests/unistr/test-stpcpy.h: New file.
17414
17415         Tests for module 'unistr/u32-strcpy'.
17416         * modules/unistr/u32-strcpy-tests: New file.
17417         * tests/unistr/test-u32-strcpy.c: New file.
17418
17419         Tests for module 'unistr/u16-strcpy'.
17420         * modules/unistr/u16-strcpy-tests: New file.
17421         * tests/unistr/test-u16-strcpy.c: New file.
17422
17423         Tests for module 'unistr/u8-strcpy'.
17424         * modules/unistr/u8-strcpy-tests: New file.
17425         * tests/unistr/test-u8-strcpy.c: New file.
17426         * tests/unistr/test-strcpy.h: New file.
17427
17428         Tests for module 'unistr/u32-strnlen'.
17429         * modules/unistr/u32-strnlen-tests: New file.
17430         * tests/unistr/test-u32-strnlen.c: New file.
17431
17432         Tests for module 'unistr/u16-strnlen'.
17433         * modules/unistr/u16-strnlen-tests: New file.
17434         * tests/unistr/test-u16-strnlen.c: New file.
17435
17436         Tests for module 'unistr/u8-strnlen'.
17437         * modules/unistr/u8-strnlen-tests: New file.
17438         * tests/unistr/test-u8-strnlen.c: New file.
17439         * tests/unistr/test-strnlen.h: New file.
17440
17441         Tests for module 'unistr/u32-strlen'.
17442         * modules/unistr/u32-strlen-tests: New file.
17443         * tests/unistr/test-u32-strlen.c: New file.
17444
17445         Tests for module 'unistr/u16-strlen'.
17446         * modules/unistr/u16-strlen-tests: New file.
17447         * tests/unistr/test-u16-strlen.c: New file.
17448
17449         Tests for module 'unistr/u8-strlen'.
17450         * modules/unistr/u8-strlen-tests: New file.
17451         * tests/unistr/test-u8-strlen.c: New file.
17452
17453         Tests for module 'unistr/u32-prev'.
17454         * modules/unistr/u32-prev-tests: New file.
17455         * tests/unistr/test-u32-prev.c: New file.
17456
17457         Tests for module 'unistr/u16-prev'.
17458         * modules/unistr/u16-prev-tests: New file.
17459         * tests/unistr/test-u16-prev.c: New file.
17460
17461         Tests for module 'unistr/u8-prev'.
17462         * modules/unistr/u8-prev-tests: New file.
17463         * tests/unistr/test-u8-prev.c: New file.
17464
17465         Tests for module 'unistr/u32-next'.
17466         * modules/unistr/u32-next-tests: New file.
17467         * tests/unistr/test-u32-next.c: New file.
17468
17469         Tests for module 'unistr/u16-next'.
17470         * modules/unistr/u16-next-tests: New file.
17471         * tests/unistr/test-u16-next.c: New file.
17472
17473         Tests for module 'unistr/u8-next'.
17474         * modules/unistr/u8-next-tests: New file.
17475         * tests/unistr/test-u8-next.c: New file.
17476
17477         Tests for module 'unistr/u32-strmbtouc'.
17478         * modules/unistr/u32-strmbtouc-tests: New file.
17479         * tests/unistr/test-u32-strmbtouc.c: New file.
17480
17481         Tests for module 'unistr/u16-strmbtouc'.
17482         * modules/unistr/u16-strmbtouc-tests: New file.
17483         * tests/unistr/test-u16-strmbtouc.c: New file.
17484
17485         Tests for module 'unistr/u8-strmbtouc'.
17486         * modules/unistr/u8-strmbtouc-tests: New file.
17487         * tests/unistr/test-u8-strmbtouc.c: New file.
17488
17489         Tests for module 'unistr/u32-strmblen'.
17490         * modules/unistr/u32-strmblen-tests: New file.
17491         * tests/unistr/test-u32-strmblen.c: New file.
17492
17493         Tests for module 'unistr/u16-strmblen'.
17494         * modules/unistr/u16-strmblen-tests: New file.
17495         * tests/unistr/test-u16-strmblen.c: New file.
17496
17497         Tests for module 'unistr/u8-strmblen'.
17498         * modules/unistr/u8-strmblen-tests: New file.
17499         * tests/unistr/test-u8-strmblen.c: New file.
17500
17501         Tests for module 'unistr/u32-cpy-alloc'.
17502         * modules/unistr/u32-cpy-alloc-tests: New file.
17503         * tests/unistr/test-u32-cpy-alloc.c: New file.
17504
17505         Tests for module 'unistr/u16-cpy-alloc'.
17506         * modules/unistr/u16-cpy-alloc-tests: New file.
17507         * tests/unistr/test-u16-cpy-alloc.c: New file.
17508
17509         Tests for module 'unistr/u8-cpy-alloc'.
17510         * modules/unistr/u8-cpy-alloc-tests: New file.
17511         * tests/unistr/test-u8-cpy-alloc.c: New file.
17512         * tests/unistr/test-cpy-alloc.h: New file.
17513
17514         Tests for module 'unistr/u32-mbsnlen'.
17515         * modules/unistr/u32-mbsnlen-tests: New file.
17516         * tests/unistr/test-u32-mbsnlen.c: New file.
17517
17518         Tests for module 'unistr/u16-mbsnlen'.
17519         * modules/unistr/u16-mbsnlen-tests: New file.
17520         * tests/unistr/test-u16-mbsnlen.c: New file.
17521
17522         Tests for module 'unistr/u8-mbsnlen'.
17523         * modules/unistr/u8-mbsnlen-tests: New file.
17524         * tests/unistr/test-u8-mbsnlen.c: New file.
17525
17526         Tests for module 'unistr/u32-chr'.
17527         * modules/unistr/u32-chr-tests: New file.
17528         * tests/unistr/test-u32-chr.c: New file.
17529
17530         Tests for module 'unistr/u16-chr'.
17531         * modules/unistr/u16-chr-tests: New file.
17532         * tests/unistr/test-u16-chr.c: New file.
17533
17534         Tests for module 'unistr/u8-chr'.
17535         * modules/unistr/u8-chr-tests: New file.
17536         * tests/unistr/test-u8-chr.c: New file.
17537         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
17538
17539         Tests for module 'unistr/u32-cmp2'.
17540         * modules/unistr/u32-cmp2-tests: New file.
17541         * tests/unistr/test-u32-cmp2.c: New file.
17542
17543         Tests for module 'unistr/u16-cmp2'.
17544         * modules/unistr/u16-cmp2-tests: New file.
17545         * tests/unistr/test-u16-cmp2.c: New file.
17546
17547         Tests for module 'unistr/u8-cmp2'.
17548         * modules/unistr/u8-cmp2-tests: New file.
17549         * tests/unistr/test-u8-cmp2.c: New file.
17550         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
17551
17552         Tests for module 'unistr/u32-cmp'.
17553         * modules/unistr/u32-cmp-tests: New file.
17554         * tests/unistr/test-u32-cmp.c: New file.
17555
17556         Tests for module 'unistr/u16-cmp'.
17557         * modules/unistr/u16-cmp-tests: New file.
17558         * tests/unistr/test-u16-cmp.c: New file.
17559
17560         Tests for module 'unistr/u8-cmp'.
17561         * modules/unistr/u8-cmp-tests: New file.
17562         * tests/unistr/test-u8-cmp.c: New file.
17563         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17564
17565         Tests for module 'unistr/u32-set'.
17566         * modules/unistr/u32-set-tests: New file.
17567         * tests/unistr/test-u32-set.c: New file.
17568
17569         Tests for module 'unistr/u16-set'.
17570         * modules/unistr/u16-set-tests: New file.
17571         * tests/unistr/test-u16-set.c: New file.
17572
17573         Tests for module 'unistr/u8-set'.
17574         * modules/unistr/u8-set-tests: New file.
17575         * tests/unistr/test-u8-set.c: New file.
17576         * tests/unistr/test-set.h: New file.
17577
17578         Tests for module 'unistr/u32-move'.
17579         * modules/unistr/u32-move-tests: New file.
17580         * tests/unistr/test-u32-move.c: New file.
17581
17582         Tests for module 'unistr/u16-move'.
17583         * modules/unistr/u16-move-tests: New file.
17584         * tests/unistr/test-u16-move.c: New file.
17585
17586         Tests for module 'unistr/u8-move'.
17587         * modules/unistr/u8-move-tests: New file.
17588         * tests/unistr/test-u8-move.c: New file.
17589         * tests/unistr/test-move.h: New file.
17590
17591         Tests for module 'unistr/u32-cpy'.
17592         * modules/unistr/u32-cpy-tests: New file.
17593         * tests/unistr/test-u32-cpy.c: New file.
17594
17595         Tests for module 'unistr/u16-cpy'.
17596         * modules/unistr/u16-cpy-tests: New file.
17597         * tests/unistr/test-u16-cpy.c: New file.
17598
17599         Tests for module 'unistr/u8-cpy'.
17600         * modules/unistr/u8-cpy-tests: New file.
17601         * tests/unistr/test-u8-cpy.c: New file.
17602         * tests/unistr/test-cpy.h: New file.
17603
17604 2010-01-09  Bruno Haible  <bruno@clisp.org>
17605
17606         Tests for module 'unistr/u32-uctomb'.
17607         * modules/unistr/u32-uctomb-tests: New file.
17608         * tests/unistr/test-u32-uctomb.c: New file.
17609
17610         Tests for module 'unistr/u16-uctomb'.
17611         * modules/unistr/u16-uctomb-tests: New file.
17612         * tests/unistr/test-u16-uctomb.c: New file.
17613
17614         Tests for module 'unistr/u8-uctomb'.
17615         * modules/unistr/u8-uctomb-tests: New file.
17616         * tests/unistr/test-u8-uctomb.c: New file.
17617
17618         Tests for module 'unistr/u32-mbtoucr'.
17619         * modules/unistr/u32-mbtoucr-tests: New file.
17620         * tests/unistr/test-u32-mbtoucr.c: New file.
17621
17622         Tests for module 'unistr/u16-mbtoucr'.
17623         * modules/unistr/u16-mbtoucr-tests: New file.
17624         * tests/unistr/test-u16-mbtoucr.c: New file.
17625
17626         Tests for module 'unistr/u8-mbtoucr'.
17627         * modules/unistr/u8-mbtoucr-tests: New file.
17628         * tests/unistr/test-u8-mbtoucr.c: New file.
17629
17630         Tests for module 'unistr/u32-mbtouc'.
17631         * modules/unistr/u32-mbtouc-tests: New file.
17632         * tests/unistr/test-u32-mbtouc.c: New file.
17633
17634         Tests for module 'unistr/u16-mbtouc'.
17635         * modules/unistr/u16-mbtouc-tests: New file.
17636         * tests/unistr/test-u16-mbtouc.c: New file.
17637
17638         Tests for module 'unistr/u8-mbtouc'.
17639         * modules/unistr/u8-mbtouc-tests: New file.
17640         * tests/unistr/test-u8-mbtouc.c: New file.
17641
17642         Tests for module 'unistr/u32-mbtouc-unsafe'.
17643         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17644         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17645         * tests/unistr/test-u32-mbtouc.h: New file.
17646
17647         Tests for module 'unistr/u16-mbtouc-unsafe'.
17648         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17649         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17650         * tests/unistr/test-u16-mbtouc.h: New file.
17651
17652         Tests for module 'unistr/u8-mbtouc-unsafe'.
17653         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17654         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17655         * tests/unistr/test-u8-mbtouc.h: New file.
17656
17657         Tests for module 'unistr/u32-mblen'.
17658         * modules/unistr/u32-mblen-tests: New file.
17659         * tests/unistr/test-u32-mblen.c: New file.
17660
17661         Tests for module 'unistr/u16-mblen'.
17662         * modules/unistr/u16-mblen-tests: New file.
17663         * tests/unistr/test-u16-mblen.c: New file.
17664
17665         Tests for module 'unistr/u8-mblen'.
17666         * modules/unistr/u8-mblen-tests: New file.
17667         * tests/unistr/test-u8-mblen.c: New file.
17668
17669         Tests for module 'unistr/u32-to-u16'.
17670         * modules/unistr/u32-to-u16-tests: New file.
17671         * tests/unistr/test-u32-to-u16.c: New file.
17672
17673         Tests for module 'unistr/u32-to-u8'.
17674         * modules/unistr/u32-to-u8-tests: New file.
17675         * tests/unistr/test-u32-to-u8.c: New file.
17676
17677         Tests for module 'unistr/u16-to-u32'.
17678         * modules/unistr/u16-to-u32-tests: New file.
17679         * tests/unistr/test-u16-to-u32.c: New file.
17680
17681         Tests for module 'unistr/u16-to-u8'.
17682         * modules/unistr/u16-to-u8-tests: New file.
17683         * tests/unistr/test-u16-to-u8.c: New file.
17684
17685         Tests for module 'unistr/u8-to-u32'.
17686         * modules/unistr/u8-to-u32-tests: New file.
17687         * tests/unistr/test-u8-to-u32.c: New file.
17688
17689         Tests for module 'unistr/u8-to-u16'.
17690         * modules/unistr/u8-to-u16-tests: New file.
17691         * tests/unistr/test-u8-to-u16.c: New file.
17692
17693         Tests for module 'unistr/u32-check'.
17694         * modules/unistr/u32-check-tests: New file.
17695         * tests/unistr/test-u32-check.c: New file.
17696
17697         Tests for module 'unistr/u16-check'.
17698         * modules/unistr/u16-check-tests: New file.
17699         * tests/unistr/test-u16-check.c: New file.
17700
17701         Tests for module 'unistr/u8-check'.
17702         * modules/unistr/u8-check-tests: New file.
17703         * tests/unistr/test-u8-check.c: New file.
17704
17705         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17706         (category_equals): New function.
17707         (main): Add more tests.
17708         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17709
17710         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17711
17712 2010-01-10  Bruno Haible  <bruno@clisp.org>
17713
17714         unistr/u*-strcoll: Try harder to distinguish different strings.
17715         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17716         compare s1 and s2 to see if they are different.
17717
17718 2010-01-10  Bruno Haible  <bruno@clisp.org>
17719
17720         unistr/u*-stpncpy: Fix the return value.
17721         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17722         description of the return value consistent with stpncpy in glibc.
17723         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17724         written non-NUL unit.
17725
17726 2010-01-10  Bruno Haible  <bruno@clisp.org>
17727
17728         unistr/u*-next: Add missing dependencies.
17729         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17730         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17731         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17732
17733 2010-01-10  Bruno Haible  <bruno@clisp.org>
17734
17735         unistr/u8-mbsnlen: Fix return value for incomplete character.
17736         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17737         u8_mblen.
17738         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17739         Remove unistr/u8-mblen.
17740         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17741         u16_mblen.
17742         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17743         Remove unistr/u16-mblen.
17744
17745 2010-01-10  Bruno Haible  <bruno@clisp.org>
17746
17747         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17748         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17749         Reported by Brian Gough <bjg@gnu.org> and
17750         Chris Clayton <chris2553@googlemail.com> via
17751         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17752
17753 2010-01-09  Bruno Haible  <bruno@clisp.org>
17754
17755         unistr/u16-to-u32: Reject invalid input.
17756         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17757         u16_mbtouc.
17758         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17759         Remove unistr/u16-mbtouc.
17760
17761         unistr/u16-to-u8: Reject invalid input.
17762         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17763         u16_mbtouc.
17764         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17765         Remove unistr/u16-mbtouc.
17766
17767         unistr/u8-to-u32: Reject invalid input.
17768         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17769         u8_mbtouc.
17770         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17771         Remove unistr/u8-mbtouc.
17772
17773         unistr/u8-to-u16: Reject invalid input.
17774         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17775         u8_mbtouc.
17776         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17777         Remove unistr/u8-mbtouc.
17778
17779 2010-01-09  Bruno Haible  <bruno@clisp.org>
17780
17781         Tests for module 'getlogin'.
17782         * modules/getlogin-tests: New file.
17783         * tests/test-getlogin.c: New file.
17784
17785         New module 'getlogin'.
17786         * lib/unistd.in.h (getlogin): New declaration.
17787         * lib/getlogin.c: New file.
17788         * m4/getlogin.m4: New file.
17789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17790         HAVE_GETLOGIN.
17791         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17792         HAVE_GETLOGIN.
17793         * modules/getlogin: New file.
17794         * doc/posix-functions/getlogin.texi: Mention the new module.
17795         Reported by John W. Eaton <jwe@gnu.org>.
17796
17797 2010-01-09  Bruno Haible  <bruno@clisp.org>
17798
17799         getlogin_r: Support for native Windows.
17800         * lib/getlogin_r.c: Include <windows.h>
17801         (getlogin_r): Implement for native Windows.
17802         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17803         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17804         via John W. Eaton <jwe@gnu.org>.
17805
17806 2010-01-09  Bruno Haible  <bruno@clisp.org>
17807
17808         getlogin_r: Small fixes.
17809         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17810         succeeds.
17811         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17812         before testing whether getlogin_r is declared. No need to set
17813         HAVE_DECL_GETLOGIN_R to 1.
17814         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17815
17816 2010-01-09  Bruno Haible  <bruno@clisp.org>
17817
17818         * lib/unistd.in.h (getlogin_r): Add comment.
17819
17820 2010-01-09  Bruno Haible  <bruno@clisp.org>
17821
17822         Tests for module 'getlogin_r'.
17823         * modules/getlogin_r-tests: New file.
17824         * tests/test-getlogin_r.c: New file.
17825
17826 2010-01-09  Jim Meyering  <meyering@redhat.com>
17827
17828         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17829         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17830         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17831
17832 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17833
17834         * lib/dup2.c (rpl_dup2): Improve comment.
17835
17836 2010-01-08  Eric Blake  <ebb9@byu.net>
17837
17838         maint.mk: allow packages to add makefile @@ exceptions
17839         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17840         (sc_makefile_check): Rename...
17841         (sc_makefile_at_at_check): ...to this, and use hook.
17842
17843         dup2: work around mingw bug
17844         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17845         Reported by Simon Josefsson.
17846
17847 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17848
17849         glob: Fix C++ compilation.
17850         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17851         C++.
17852
17853 2010-01-07  Bruno Haible  <bruno@clisp.org>
17854
17855         Fix indentation of wctype.in.h, broken since 2007-01-06.
17856         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17857
17858 2010-01-07  Bruno Haible  <bruno@clisp.org>
17859
17860         mbslen: Avoid collision with system function.
17861         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17862         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17863         * m4/mbslen.m4: New file.
17864         * modules/mbslen (Files): Add it.
17865         (configure.ac): Invoke gl_MBSLEN.
17866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17867         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17868         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17869         via Ian Beckwith <ianb@erislabs.net>.
17870
17871 2010-01-07  Bruno Haible  <bruno@clisp.org>
17872
17873         dirent: Document the last fix.
17874         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17875
17876 2010-01-07  Bruno Haible  <bruno@clisp.org>
17877
17878         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17879         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17880         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17881         va_list are defined.
17882         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17883         Reported by Eric Blake.
17884
17885 2010-01-07  Bruno Haible  <bruno@clisp.org>
17886
17887         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17888         * modules/xlist (Depends-on): Add 'list',
17889         * modules/xoset (Depends-on): Add 'oset'.
17890         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17891
17892 2010-01-07  Bruno Haible  <bruno@clisp.org>
17893
17894         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17895         * doc/posix-functions/strncasecmp.texi: Likewise.
17896
17897 2010-01-07  Bruno Haible  <bruno@clisp.org>
17898
17899         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17900
17901 2010-01-07  John W. Eaton  <jwe@octave.org>
17902
17903         wctype: allow C++ use
17904         * lib/wctype.in.h: Add extern "C" block for C++.
17905
17906 2010-01-06  Eric Blake  <ebb9@byu.net>
17907
17908         maint.mk: detect incorrect GFDL usage
17909         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17910
17911 2010-01-06  Jim Meyering  <meyering@redhat.com>
17912         and Eric Blake  <ebb9@byu.net>
17913
17914         maint.mk: ignore multi-line copyright in NEWS
17915         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17916
17917 2010-01-06  Eric Blake  <ebb9@byu.net>
17918
17919         select: add missing dependency
17920         * modules/select-tests (Depends-on): Move sockets dependency...
17921         * modules/select (Depends-on): ...here.
17922         Reported by Ian Beckwith.
17923
17924         doc: regenerate INSTALL
17925         * doc/INSTALL: Reflect recent autoconf update.
17926         * doc/INSTALL.ISO: Likewise.
17927         * doc/INSTALL.UTF-8: Likewise.
17928
17929         pread: fix compilation on glibc
17930         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17931         Reported by Ralf Wildenhues.
17932
17933         dirent: fix test failure
17934         * lib/dirent.in.h (includes): Guarantee ino_t.
17935         Reported by Ralf Wildenhues.
17936
17937 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17938
17939         linkat, renameat: avoid bad free
17940         * lib/at-func2.c (at_func2): Fix typo.
17941         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17942
17943 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17944
17945         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17946         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17947         to avoid failure of symlink test later.
17948
17949 2010-01-06  Eric Blake  <ebb9@byu.net>
17950
17951         stdio, unistd: guarantee ssize_t
17952         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17953         2008 are exposed when needed.
17954         * lib/stdio.in.h (includes): Likewise.
17955         Reported by Ralf Wildenhues.
17956
17957 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17958
17959         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17960         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17961         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17962
17963 2010-01-06  Jim Meyering  <meyering@redhat.com>
17964
17965         readtokens: this module *does* require xalloc.h
17966         It uses only functions that were omitted by the old syntax-check rule.
17967         * lib/readtokens.c: Include "xalloc.h" once again.
17968         * modules/readtokens (Depends-on): Add xalloc.
17969         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17970
17971 2010-01-05  Eric Blake  <ebb9@byu.net>
17972
17973         maint: support 'make announcement' from a VPATH build
17974         * top/maint.mk (announcement): Look for correct NEWS file.
17975
17976 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17977
17978         utimens (fdutimens): ignore a negative FD, per contract
17979         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17980         when we have a valid file descriptor.  Otherwise, using a brand
17981         new glibc (with just-patched futimens that now fails with EBADF)
17982         would cause this function to fail with ENOSYS.
17983         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17984         See also http://bugzilla.redhat.com/552320.
17985
17986 2010-01-05  Eric Blake  <ebb9@byu.net>
17987
17988         strcase: document what it provides
17989         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17990         gnulib module.
17991         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17992         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17993
17994 2010-01-05  Jim Meyering  <meyering@redhat.com>
17995
17996         maint: remove useless inclusions of "xalloc.h"
17997         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17998         * lib/readtokens.c: Likewise.
17999         * lib/same.c: Likewise.
18000         * modules/getloadavg (Depends-on): Remove xalloc.
18001         * modules/readtokens: Likewise.
18002         * modules/same: Likewise.
18003
18004         maint.mk: include 4 more function names in alloca.h-checking regexp
18005         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18006         regexp.  Before, we would give a false-positive (saying alloca.h
18007         is included unnecessarily) when the only uses involved omitted symbols.
18008
18009         xalloc.h: use consistent formatting
18010         * lib/xalloc.h: Move declarations to start in the first column.
18011
18012 2010-01-05  Eric Blake  <ebb9@byu.net>
18013
18014         mkdir: avoid xalloc
18015         * lib/mkdir.c (includes): Drop unused header.
18016         Reported by John W. Eaton.
18017
18018 2010-01-04  Jim Meyering  <meyering@redhat.com>
18019
18020         nl_langinfo: avoid configure-time syntax error
18021         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18022         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18023         the empty string.  Don't let that provoke a shell syntax error.
18024
18025         regcomp, regexec, fnmatch: avoid array bounds read error
18026         * lib/regcomp.c (build_equiv_class): From glibc:
18027         Use only the low 24 bits of a findidx return value as an index
18028         into the weights array.  Patch by Ulrich Drepper:
18029         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18030         * lib/regexec.c (check_node_accept_bytes): Likewise.
18031         * lib/fnmatch_loop.c (FCT): Likewise.
18032
18033         regcomp: skip collseq lookup when there are no rules
18034         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18035         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18036
18037         regcomp: recognize ill-formed { } expressions
18038         * lib/regcomp.c (parse_dup_op): From glibc:
18039         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18040
18041         regcomp: fix typo in comment
18042         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18043         s/satisfy/satisfies/.
18044
18045         regcomp: sync from glibc: remove dead store
18046         * lib/regcomp.c (duplicate_node_closure): Remove useless
18047         search_duplicated_node call and dead store.
18048
18049         regcomp: sync from glibc; always use nl_langinfo
18050         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18051         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18052         * modules/regex (Depends-on): Add nl_langinfo.
18053
18054 2010-01-04  Eric Blake  <ebb9@byu.net>
18055
18056         fdopendir: fix configure test
18057         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18058
18059 2010-01-01  Bruno Haible  <bruno@clisp.org>
18060
18061         wchar: Remove unused configure check.
18062         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18063
18064 2010-01-01  Eric Blake  <ebb9@byu.net>
18065
18066         headers: make check of system header explicit
18067         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18068         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18069         ourselves.
18070         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18071         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18072         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18073         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18074         internals.
18075         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18076         missing.
18077         Suggested by Bruno Haible.
18078
18079 2010-01-01  Jim Meyering  <meyering@redhat.com>
18080
18081         ChangeLog: tweak to eliminate unnecessary copyright line
18082         * ChangeLog: Remove a copyright line that was mistakenly updated
18083         by today's update-copyright run.  Reported by Eric Blake.
18084
18085         test-update-copyright: don't let envvar setting cause test failure
18086         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18087
18088 2010-01-01  Bruno Haible  <bruno@clisp.org>
18089
18090         localename: Avoid gcc warning.
18091         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18092         function if it is not used.
18093
18094 2010-01-01  Jim Meyering  <meyering@redhat.com>
18095
18096         update nearly all FSF copyright year lists to include 2010
18097         Use the same procedure as for 2009, outlined in
18098         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18099
18100         version-etc: set COPYRIGHT_YEAR to 2010
18101         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18102
18103 2009-12-31  Eric Blake  <ebb9@byu.net>
18104
18105         doc: correct availability of cygwin 1.5.x getopt
18106         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18107         variables.
18108         * doc/posix-functions/opterr.texi (opterr): Likewise.
18109         * doc/posix-functions/optind.texi (optind): Likewise.
18110         * doc/posix-functions/optopt.texi (optopt): Likewise.
18111         * doc/posix-functions/tzname.texi (tzname): Likewise.
18112
18113         openat: update maintainer
18114         * modules/openat (Maintainer): Add myself.
18115
18116         utimens: avoid shadowing warning
18117         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18118         buffers into one, to avoid shadowing, as well as avoiding a
18119         redundant stat.
18120         Reported by Jim Meyering.
18121
18122         test-dup2: avoid compiler warning
18123         * tests/test-dup2.c (is_inheritable): Only define if used.
18124
18125 2010-01-01  Bruno Haible  <bruno@clisp.org>
18126
18127         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18128         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18129         defined, use wctomb instead of wcrtomb.
18130
18131 2010-01-01  Bruno Haible  <bruno@clisp.org>
18132
18133         iconv: Reject native Solaris iconv.
18134         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18135         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18136
18137 2009-12-31  Bruno Haible  <bruno@clisp.org>
18138
18139         * tests/test-signal.c (main): Remove test of 'SIG'.
18140
18141 2009-12-31  Bruno Haible  <bruno@clisp.org>
18142
18143         spawn: Fix incomplete fix.
18144         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18145         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18146         warnings for GNULIB_POSIXCHECK again.
18147         Reported by Eric Blake.
18148
18149 2009-12-31  Bruno Haible  <bruno@clisp.org>
18150
18151         Avoid namespace pollution on glibc systems.
18152         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18153         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18154         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18155         glibc systems.
18156
18157 2009-12-31  Bruno Haible  <bruno@clisp.org>
18158
18159         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18160         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18161         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18162         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18163         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18164         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18165         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18166
18167 2009-12-31  Bruno Haible  <bruno@clisp.org>
18168
18169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18170         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18171         afterwards.
18172
18173 2009-12-31  Bruno Haible  <bruno@clisp.org>
18174
18175         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18176         SYS_UTSNAME_H.
18177
18178 2009-12-31  Bruno Haible  <bruno@clisp.org>
18179
18180         spawn: Fix misapplied patch.
18181         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18182         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18183         warnings for GNULIB_POSIXCHECK.
18184
18185 2009-12-31  Bruno Haible  <bruno@clisp.org>
18186
18187         times: Update after sys_times changed.
18188         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18189         * modules/times (Files): Add it.
18190         (configure.ac): Invoke gl_FUNC_TIMES.
18191
18192 2009-12-31  Bruno Haible  <bruno@clisp.org>
18193
18194         Use AC_C_INLINE where necessary.
18195         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18196         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18197         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18198         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18199         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18200         * m4/mbiter.m4 (gl_MBITER): Likewise.
18201         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18202         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18203         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18204         * modules/u64 (configure.ac): Likewise.
18205
18206 2009-12-31  Bruno Haible  <bruno@clisp.org>
18207
18208         Use AC_C_INLINE instead of module 'inline' where possible.
18209         * modules/inline (Description): Clarify purpose.
18210         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18211         * modules/count-one-bits (Depends-on): Remove inline.
18212         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18213         * modules/openat (Depends-on): Remove inline.
18214         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18215         instead of depending on module 'inline'.
18216         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18217         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18218         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18219         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18220         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
18221         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
18222         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
18223         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
18224         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
18225         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
18226         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
18227         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
18228         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
18229         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
18230         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
18231         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
18232         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
18233         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
18234         Likewise.
18235         * modules/unictype/property-ascii-hex-digit (Depends-on,
18236         configure.ac): Likewise.
18237         * modules/unictype/property-bidi-arabic-digit (Depends-on,
18238         configure.ac): Likewise.
18239         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
18240         configure.ac): Likewise.
18241         * modules/unictype/property-bidi-block-separator (Depends-on,
18242         configure.ac): Likewise.
18243         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
18244         configure.ac): Likewise.
18245         * modules/unictype/property-bidi-common-separator (Depends-on,
18246         configure.ac): Likewise.
18247         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
18248         Likewise.
18249         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
18250         configure.ac): Likewise.
18251         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
18252         configure.ac): Likewise.
18253         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
18254         configure.ac): Likewise.
18255         * modules/unictype/property-bidi-european-digit (Depends-on,
18256         configure.ac): Likewise.
18257         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
18258         configure.ac): Likewise.
18259         * modules/unictype/property-bidi-left-to-right (Depends-on,
18260         configure.ac): Likewise.
18261         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
18262         configure.ac): Likewise.
18263         * modules/unictype/property-bidi-other-neutral (Depends-on,
18264         configure.ac): Likewise.
18265         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
18266         Likewise.
18267         * modules/unictype/property-bidi-segment-separator (Depends-on,
18268         configure.ac): Likewise.
18269         * modules/unictype/property-bidi-whitespace (Depends-on,
18270         configure.ac): Likewise.
18271         * modules/unictype/property-combining (Depends-on, configure.ac):
18272         Likewise.
18273         * modules/unictype/property-composite (Depends-on, configure.ac):
18274         Likewise.
18275         * modules/unictype/property-currency-symbol (Depends-on,
18276         configure.ac): Likewise.
18277         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
18278         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
18279         Likewise.
18280         * modules/unictype/property-default-ignorable-code-point (Depends-on,
18281         configure.ac): Likewise.
18282         * modules/unictype/property-deprecated (Depends-on, configure.ac):
18283         Likewise.
18284         * modules/unictype/property-diacritic (Depends-on, configure.ac):
18285         Likewise.
18286         * modules/unictype/property-extender (Depends-on, configure.ac):
18287         Likewise.
18288         * modules/unictype/property-format-control (Depends-on, configure.ac):
18289         Likewise.
18290         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
18291         Likewise.
18292         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
18293         Likewise.
18294         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
18295         Likewise.
18296         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
18297         Likewise.
18298         * modules/unictype/property-hyphen (Depends-on, configure.ac):
18299         Likewise.
18300         * modules/unictype/property-id-continue (Depends-on, configure.ac):
18301         Likewise.
18302         * modules/unictype/property-id-start (Depends-on, configure.ac):
18303         Likewise.
18304         * modules/unictype/property-ideographic (Depends-on, configure.ac):
18305         Likewise.
18306         * modules/unictype/property-ids-binary-operator (Depends-on,
18307         configure.ac): Likewise.
18308         * modules/unictype/property-ids-trinary-operator (Depends-on,
18309         configure.ac): Likewise.
18310         * modules/unictype/property-ignorable-control (Depends-on,
18311         configure.ac): Likewise.
18312         * modules/unictype/property-iso-control (Depends-on, configure.ac):
18313         Likewise.
18314         * modules/unictype/property-join-control (Depends-on, configure.ac):
18315         Likewise.
18316         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
18317         Likewise.
18318         * modules/unictype/property-line-separator (Depends-on, configure.ac):
18319         Likewise.
18320         * modules/unictype/property-logical-order-exception (Depends-on,
18321         configure.ac): Likewise.
18322         * modules/unictype/property-lowercase (Depends-on, configure.ac):
18323         Likewise.
18324         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
18325         * modules/unictype/property-non-break (Depends-on, configure.ac):
18326         Likewise.
18327         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
18328         Likewise.
18329         * modules/unictype/property-numeric (Depends-on, configure.ac):
18330         Likewise.
18331         * modules/unictype/property-other-alphabetic (Depends-on,
18332         configure.ac): Likewise.
18333         * modules/unictype/property-other-default-ignorable-code-point
18334         (Depends-on, configure.ac): Likewise.
18335         * modules/unictype/property-other-grapheme-extend (Depends-on,
18336         configure.ac): Likewise.
18337         * modules/unictype/property-other-id-continue (Depends-on,
18338         configure.ac): Likewise.
18339         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
18340         Likewise.
18341         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
18342         Likewise.
18343         * modules/unictype/property-other-math (Depends-on, configure.ac):
18344         Likewise.
18345         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
18346         Likewise.
18347         * modules/unictype/property-paired-punctuation (Depends-on,
18348         configure.ac): Likewise.
18349         * modules/unictype/property-paragraph-separator (Depends-on,
18350         configure.ac): Likewise.
18351         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
18352         Likewise.
18353         * modules/unictype/property-pattern-white-space (Depends-on,
18354         configure.ac): Likewise.
18355         * modules/unictype/property-private-use (Depends-on, configure.ac):
18356         Likewise.
18357         * modules/unictype/property-punctuation (Depends-on, configure.ac):
18358         Likewise.
18359         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
18360         Likewise.
18361         * modules/unictype/property-radical (Depends-on, configure.ac):
18362         Likewise.
18363         * modules/unictype/property-sentence-terminal (Depends-on,
18364         configure.ac): Likewise.
18365         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
18366         Likewise.
18367         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
18368         * modules/unictype/property-terminal-punctuation (Depends-on,
18369         configure.ac): Likewise.
18370         * modules/unictype/property-titlecase (Depends-on, configure.ac):
18371         Likewise.
18372         * modules/unictype/property-unassigned-code-value (Depends-on,
18373         configure.ac): Likewise.
18374         * modules/unictype/property-unified-ideograph (Depends-on,
18375         configure.ac): Likewise.
18376         * modules/unictype/property-uppercase (Depends-on, configure.ac):
18377         Likewise.
18378         * modules/unictype/property-variation-selector (Depends-on,
18379         configure.ac): Likewise.
18380         * modules/unictype/property-white-space (Depends-on, configure.ac):
18381         Likewise.
18382         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
18383         Likewise.
18384         * modules/unictype/property-xid-start (Depends-on, configure.ac):
18385         Likewise.
18386         * modules/unictype/property-zero-width (Depends-on, configure.ac):
18387         Likewise.
18388         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
18389         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
18390         Likewise.
18391
18392 2009-12-31  Bruno Haible  <bruno@clisp.org>
18393
18394         Remove unnecessary AC_C_INLINE invocation.
18395         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
18396         since 2009-08-21.
18397
18398 2009-12-31  Jim Meyering  <meyering@redhat.com>
18399
18400         maint.mk: don't require explicit gpg_key_ID in cfg.mk
18401         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
18402         With this change, we can all remove the gpg_key_ID = ... definition
18403         from our respective cfg.mk files.
18404
18405         maint.mk: create announcement template in ~/, not in /tmp
18406         * top/maint.mk (emit_upload_commands): Adjust.
18407         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
18408         Remove temporary file, .ci-msg.
18409
18410 2009-12-31  Eric Blake  <ebb9@byu.net>
18411
18412         link-warning: always build headers with link warnings
18413         * modules/arpa_inet (Makefile.am): Always build replacement
18414         header.
18415         * modules/ctype (Makefile.am): Likewise.
18416         * modules/dirent (Makefile.am): Likewise.
18417         * modules/inttypes (Makefile.am): Likewise.
18418         * modules/langinfo (Makefile.am): Likewise.
18419         * modules/locale (Makefile.am): Likewise.
18420         * modules/spawn (Makefile.am): Likewise.
18421         * modules/sys_file (Makefile.am): Likewise.
18422         * modules/sys_ioctl (Makefile.am): Likewise.
18423         * modules/sys_select (Makefile.am): Likewise.
18424         * modules/sys_socket (Makefile.am): Likewise.
18425         * modules/sys_times (Makefile.am): Likewise.
18426         * modules/sys_utsname (Makefile.am): Likewise.
18427         * modules/sys_wait (Makefile.am): Likewise.
18428         * modules/wchar (Makefile.am): Likewise.
18429         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
18430         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
18431         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
18432         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
18433         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
18434         Likewise.
18435         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18436         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18437         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
18438         Likewise.
18439         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
18440         Likewise.
18441         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18442         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
18443         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
18444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18445         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18446         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18447         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18448         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
18449         (gl_WCHAR_H_DEFAULTS): Likewise.
18450
18451 2009-12-31  Eric Blake  <ebb9@byu.net>
18452
18453         signal, spawn: use link warnings
18454         * lib/signal.in.h (sigset_t): Make unconditional.
18455         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
18456         (sigpending, sigprocmask, sigaction): Add link warnings.
18457         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
18458         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
18459         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
18460         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
18461         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
18462         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
18463         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
18464         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
18465         (posix_spawn_file_actions_destroy)
18466         (posix_spawn_file_actions_addopen)
18467         (posix_spawn_file_actions_addclose)
18468         (posix_spawn_file_actions_adddup2): Likewise.
18469         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
18470         * tests/test-signal.c (main): Enhance test.
18471
18472         spawn: improve wrapper support
18473         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
18474         (gl_SPAWN_H_DEFAULTS): New defaults.
18475         * modules/spawn (Makefile.am): Substitute them.
18476         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
18477         Only declare if missing or broken.
18478
18479         sys_times, sys_utsname: use include_next
18480         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
18481         header.
18482         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
18483         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18484         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18485         * modules/sys_times (Depends-on): Add include_next.
18486         (Makefile.am): Substitute additional values.
18487         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18488         * lib/sys_times.in.h (includes): Include native header, if
18489         available.
18490         * lib/sys_utsname.in.h (includes): Likewise.
18491         * tests/test-sys_times.c (main): Enhance test.
18492
18493         fdutimensat: revert prior patch
18494         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
18495         utimens.h.
18496         Reported by Bruno Haible.
18497
18498 2009-12-30  Eric Blake  <ebb9@byu.net>
18499
18500         sys_wait: drop link-warning dependency
18501         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
18502         link-warning efforts.
18503         * lib/sys_wait.in.h: Likewise.
18504
18505         fdutimensat: remove bogus dependency
18506         * modules/fdutimensat (Depends-on): Drop inline.
18507
18508         unistd: fix typo
18509         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
18510
18511 2009-12-30  Bruno Haible  <bruno@clisp.org>
18512
18513         Fix compilation error with Solaris cc.
18514         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
18515         * lib/unicase/u16-is-invariant.c: Likewise.
18516         * lib/unicase/u32-is-invariant.c: Likewise.
18517         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18518
18519 2009-12-30  Bruno Haible  <bruno@clisp.org>
18520
18521         Fix test crash.
18522         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
18523         locales.
18524         Reported by Simon Josefsson <simon@josefsson.org>.
18525
18526 2009-12-30  Bruno Haible  <bruno@clisp.org>
18527
18528         Fix compilation error on most platforms.
18529         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
18530         Reported by Simon Josefsson <simon@josefsson.org>
18531         and Nelson H. F. Beebe <beebe@math.utah.edu>.
18532
18533 2009-12-30  Eric Blake  <ebb9@byu.net>
18534
18535         futimens, utimensat: work around ntfs-3g bug
18536         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
18537         a ctime bug is present, and expand workaround to cover ntfs-3g.
18538         * lib/utimens.c (fdutimens, lutimens): Likewise.
18539         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
18540         (validate_timespec): Adjust return value.
18541         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
18542         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18543         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
18544
18545 2009-12-29  Eric Blake  <ebb9@byu.net>
18546
18547         link-warning: make usage consistent
18548         * modules/ctype (Depends-on): Add link-warning.
18549         (Makefile.am): Update rules accordingly.
18550         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18551         * modules/locale (Depends-on, Makefile.am): Likewise.
18552         * modules/sys_file (Makefile.am): Likewise.
18553         * modules/getopt-posix (Makefile.am): Delete unused link warning
18554         efforts.
18555         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
18556         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18557         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18558         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18559
18560         stdio: remove unused variables
18561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18562         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18563         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18564
18565         tests: test more substitute headers
18566         * modules/ctype-tests: New file.
18567         * modules/dirent-tests: Likewise.
18568         * modules/spawn-tests: Likewise.
18569         * modules/sys_file-tests: Likewise.
18570         * modules/sys_ioctl-tests: Likewise.
18571         * modules/sys_wait-tests: Likewise.
18572         * tests/test-ctype.c: Likewise.
18573         * tests/test-dirent.c: Likewise.
18574         * tests/test-spawn.c: Likewise.
18575         * tests/test-sys_file.c: Likewise.
18576         * tests/test-sys_ioctl.c: Likewise.
18577         * tests/test-sys_wait.c: Likewise.
18578         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18579         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18580         whether or not flock is in use.
18581
18582         tests: remove License section from module
18583         * modules/arpa_inet-tests: Remove unneeded section.
18584         * modules/byteswap-tests: Likewise.
18585         * modules/ceilf-tests: Likewise.
18586         * modules/ceill-tests: Likewise.
18587         * modules/crypto/des-tests: Likewise.
18588         * modules/crypto/gc-arcfour-tests: Likewise.
18589         * modules/crypto/gc-arctwo-tests: Likewise.
18590         * modules/crypto/gc-des-tests: Likewise.
18591         * modules/crypto/gc-hmac-md5-tests: Likewise.
18592         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18593         * modules/crypto/gc-md2-tests: Likewise.
18594         * modules/crypto/gc-md4-tests: Likewise.
18595         * modules/crypto/gc-md5-tests: Likewise.
18596         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18597         * modules/crypto/gc-rijndael-tests: Likewise.
18598         * modules/crypto/gc-sha1-tests: Likewise.
18599         * modules/crypto/gc-tests: Likewise.
18600         * modules/crypto/md2-tests: Likewise.
18601         * modules/crypto/md4-tests: Likewise.
18602         * modules/fcntl-h-tests: Likewise.
18603         * modules/floorf-tests: Likewise.
18604         * modules/floorl-tests: Likewise.
18605         * modules/frexp-nolibm-tests: Likewise.
18606         * modules/frexp-tests: Likewise.
18607         * modules/frexpl-nolibm-tests: Likewise.
18608         * modules/frexpl-tests: Likewise.
18609         * modules/getaddrinfo-tests: Likewise.
18610         * modules/inttypes-tests: Likewise.
18611         * modules/isfinite-tests: Likewise.
18612         * modules/isinf-tests: Likewise.
18613         * modules/ldexpl-tests: Likewise.
18614         * modules/locale-tests: Likewise.
18615         * modules/math-tests: Likewise.
18616         * modules/netdb-tests: Likewise.
18617         * modules/netinet_in-tests: Likewise.
18618         * modules/printf-frexp-tests: Likewise.
18619         * modules/printf-frexpl-tests: Likewise.
18620         * modules/priv-set-tests: Likewise.
18621         * modules/random_r-tests: Likewise.
18622         * modules/round-tests: Likewise.
18623         * modules/roundf-tests: Likewise.
18624         * modules/roundl-tests: Likewise.
18625         * modules/search-tests: Likewise.
18626         * modules/select-tests: Likewise.
18627         * modules/signal-tests: Likewise.
18628         * modules/stdbool-tests: Likewise.
18629         * modules/stddef-tests: Likewise.
18630         * modules/stdint-tests: Likewise.
18631         * modules/stdio-tests: Likewise.
18632         * modules/stdlib-tests: Likewise.
18633         * modules/string-tests: Likewise.
18634         * modules/strings-tests: Likewise.
18635         * modules/sys_select-tests: Likewise.
18636         * modules/sys_socket-tests: Likewise.
18637         * modules/sys_stat-tests: Likewise.
18638         * modules/sys_time-tests: Likewise.
18639         * modules/sys_utsname-tests: Likewise.
18640         * modules/sysexits-tests: Likewise.
18641         * modules/time-tests: Likewise.
18642         * modules/trunc-tests: Likewise.
18643         * modules/truncf-tests: Likewise.
18644         * modules/truncl-tests: Likewise.
18645         * modules/tsearch-tests: Likewise.
18646         * modules/unistd-tests: Likewise.
18647         * modules/wchar-tests: Likewise.
18648         * modules/wctype-tests: Likewise.
18649
18650         tests: fix license on several tests
18651         * tests/test-des.c: Update to GPLv3+.
18652         * tests/test-flock.c: Likewise.
18653         * tests/test-fsync.c: Likewise.
18654         * tests/test-futimens.h: Likewise.
18655         * tests/test-gc-arcfour.c: Likewise.
18656         * tests/test-gc-arctwo.c: Likewise.
18657         * tests/test-gc-des.c: Likewise.
18658         * tests/test-gc-hmac-md5.c: Likewise.
18659         * tests/test-gc-hmac-sha1.c: Likewise.
18660         * tests/test-gc-md2.c: Likewise.
18661         * tests/test-gc-md4.c: Likewise.
18662         * tests/test-gc-md5.c: Likewise.
18663         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18664         * tests/test-gc-rijndael.c: Likewise.
18665         * tests/test-gc-sha1.c: Likewise.
18666         * tests/test-gc.c: Likewise.
18667         * tests/test-getcwd.c: Likewise.
18668         * tests/test-link.c: Likewise.
18669         * tests/test-link.h: Likewise.
18670         * tests/test-lutimens.h: Likewise.
18671         * tests/test-md2.c: Likewise.
18672         * tests/test-md4.c: Likewise.
18673         * tests/test-mkdir.h: Likewise.
18674         * tests/test-rename.c: Likewise.
18675         * tests/test-rename.h: Likewise.
18676         * tests/test-safe-alloc.c: Likewise.
18677         * tests/test-utimens-common.h: Likewise.
18678         * tests/test-utimens.h: Likewise.
18679
18680         maint: sync license texts
18681         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18682         * doc/gpl-3.0.texi: Revert copyright year update.
18683         * doc/lgpl-3.0.texi: Likewise.
18684
18685 2009-12-29  Jim Meyering  <meyering@redhat.com>
18686
18687         update nearly all FSF copyright year lists to include 2009
18688         The files named by the following are exempted:
18689             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18690               test -f "$dst" && { echo "$dst"; continue; }
18691               test -d "$dst" || continue
18692               echo "$dst"/$(basename "$src")
18693             done > exempt
18694             git ls-files tests/unictype >> exempt
18695         In the remaining files, convert to all-interval notation if
18696         - there is already at least one year interval like 2000-2003
18697         - the file is maintained by me
18698         - the file is in lib/uni*/, where that style already prevails
18699         Otherwise, use update-copyright's default.
18700
18701 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18702         and Eric Blake  <ebb9@byu.net>
18703
18704         tests: don't require debug system() to pass
18705         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18706         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18707         * tests/test-unlink.h (test_unlink_func): Likewise.
18708         * tests/test-fstatat.c (main): ...into callers.
18709         * tests/test-lstat.c (main): Likewise.
18710         * tests/test-rmdir.c (main): Likewise.
18711         * tests/test-unlink.c (main): Likewise.
18712         * tests/test-unlinkat.c (main): Likewise.
18713         * tests/test-areadlink-with-size.c (main): Don't require a
18714         debug-only system call to pass, aiding cross-testing to mingw.
18715         * tests/test-areadlink.c (main): Likewise.
18716         * tests/test-areadlinkat-with-size.c (main): Likewise.
18717         * tests/test-areadlinkat.c (main): Likewise.
18718         * tests/test-canonicalize-lgpl.c (main): Likewise.
18719         * tests/test-canonicalize.c (main): Likewise.
18720         * tests/test-chown.c (main): Likewise.
18721         * tests/test-fchownat.c (main): Likewise.
18722         * tests/test-lchown.c (main): Likewise.
18723         * tests/test-fdutimensat.c (main): Likewise.
18724         * tests/test-futimens.c (main): Likewise.
18725         * tests/test-link.c (main): Likewise.
18726         * tests/test-linkat.c (main): Likewise.
18727         * tests/test-mkdir.c (main): Likewise.
18728         * tests/test-mkdirat.c (main): Likewise.
18729         * tests/test-mkfifo.c (main): Likewise.
18730         * tests/test-mkfifoat.c (main): Likewise.
18731         * tests/test-mknod.c (main): Likewise.
18732         * tests/test-readlink.c (main): Likewise.
18733         * tests/test-remove.c (main): Likewise.
18734         * tests/test-rename.c (main): Likewise.
18735         * tests/test-renameat.c (main): Likewise.
18736         * tests/test-symlink.c (main): Likewise.
18737         * tests/test-symlinkat.c (main): Likewise.
18738         * tests/test-utimens.c (main): Likewise.
18739         * tests/test-utimensat.c (main): Likewise.
18740
18741 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18742
18743         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18744         on $(UNUSED_PARAMETER_H) to avoid build failure.
18745
18746 2009-12-28  Jim Meyering  <meyering@redhat.com>
18747
18748         update-copyright: you may specify a max. line length other than 72
18749         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18750
18751         maint: use consistent FSF copyright line syntax
18752         * lib/posixtm.c: Add missing comma in FSF copyright line.
18753         * lib/posixtm.h: Likewise.
18754         * lib/getugroups.c: Add missing ", Inc.".
18755
18756         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18757         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18758         FSF copyright line.  Remove trailing blanks.
18759
18760 2009-12-28  Eric Blake  <ebb9@byu.net>
18761
18762         test-dup2: reduce dependencies
18763         * modules/cloexec (Configure.ac): Set witness.
18764         * modules/dup2-tests (Depends-on): Drop cloexec.
18765         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18766         not present.
18767         Suggested by Bruno Haible.
18768
18769 2009-12-26  Bruno Haible  <bruno@clisp.org>
18770
18771         Remove an unneeded dependency.
18772         * modules/fseterr (Depends-on): Remove dup2.
18773
18774 2009-12-26  Eric Blake  <ebb9@byu.net>
18775
18776         tests: use macros.h in more places
18777         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18778         (ASSERT_STREAM): Provide default of stderr.
18779         * tests/test-dirent-safer.c: Include macros.h, using alternate
18780         stream for assertions.
18781         * tests/test-dup-safer.c: Likewise.
18782         * tests/test-freopen-safer.c: Likewise.
18783         * tests/test-getopt.c: Likewise.
18784         * tests/test-openat-safer.c: Likewise.
18785         * tests/test-pipe.c: Likewise.
18786         * tests/test-popen-safer.c: Likewise.
18787         * modules/dirent-safer-tests (Files): Include macros.h.
18788         * modules/unistd-safer-tests (Files): Likewise.
18789         * modules/freopen-safer-tests (Files): Likewise.
18790         * modules/getopt-posix-tests (Files): Likewise.
18791         * modules/openat-safer-tests (Files): Likewise.
18792         * modules/pipe-tests (Files): Likewise.
18793
18794 2009-12-26  Bruno Haible  <bruno@clisp.org>
18795
18796         javacomp: Portability fix.
18797         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18798         that it also works on Solaris.
18799
18800 2009-12-26  Bruno Haible  <bruno@clisp.org>
18801
18802         localename: Fix storage allocation of gl_locale_name_thread's result.
18803         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18804         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18805         all platforms that have 'uselocale'.
18806         (gl_locale_name_thread_unsafe): New function, extracted from
18807         gl_locale_name_thread.
18808         (gl_locale_name_thread): Call struniq on all platforms that have
18809         'uselocale'.
18810         * tests/test-localename.c (test_locale_name_thread): Check that the
18811         resulting strings are permanently allocated.
18812         * modules/localename-tests (Depends-on): Add strdup.
18813
18814 2009-12-26  Bruno Haible  <bruno@clisp.org>
18815
18816         * tests/test-localename.c (categories): Fill in the strings.
18817
18818 2009-12-26  Jim Meyering  <meyering@redhat.com>
18819
18820         isdir: complete the removal of m4/isdir.m4
18821         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18822
18823         isdir: clean up, since at least grep still uses it
18824         * lib/isdir.c: Include "isdir.h".
18825         (S_ISDIR): Remove now-unneeded definition.
18826         * modules/isdir (Files): Add lib/isdir.h.
18827         * lib/isdir.h: New file, with declaration.
18828         * m4/isdir.m4: Remove file -- unneeded.
18829
18830 2009-12-25  Bruno Haible  <bruno@clisp.org>
18831
18832         selinux-h: Make generated .h files standalone.
18833         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18834         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18835         * lib/se-selinux.in.h: Likewise.
18836         * modules/selinux-h (Depends-on): Add unused-parameter.
18837         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18838         selinux/selinux.h and selinux/context.h.
18839         Suggested by Eric Blake.
18840
18841 2009-12-25  Bruno Haible  <bruno@clisp.org>
18842
18843         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18844         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18845         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18846         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18847         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18848
18849 2009-12-24  Bruno Haible  <bruno@clisp.org>
18850
18851         openat: Fix warning.
18852         * lib/openat-proc.c: Include <unistd.h>.
18853
18854 2009-12-24  Bruno Haible  <bruno@clisp.org>
18855
18856         New module 'unused-parameter'.
18857         * build-aux/unused-parameter.h: New file, extracted from earlier
18858         gnulib-common.m4.
18859         * modules/unused-parameter: New file.
18860         * lib/unistr.h: Include unused-parameter.h.
18861         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18862         _GL_UNUSED.
18863         * modules/unistr/base (Depends-on): Add unused-parameter.
18864
18865 2009-12-24  Bruno Haible  <bruno@clisp.org>
18866
18867         Add missing dependencies to 'extensions' module.
18868         * m4/extensions.m4: Add comment.
18869         * modules/accept4 (Depends-on): Add extensions.
18870         * modules/dup3 (Depends-on): Likewise.
18871         * modules/fcntl (Depends-on): Likewise.
18872         * modules/futimens (Depends-on): Likewise.
18873         * modules/mknod (Depends-on): Likewise.
18874         * modules/pipe2 (Depends-on): Likewise.
18875         * modules/stat-time (Depends-on): Likewise.
18876         * modules/strcasestr-simple (Depends-on): Likewise.
18877         * modules/strsignal (Depends-on): Likewise.
18878         * modules/utimensat (Depends-on): Likewise.
18879         * modules/localcharset (Depends-on): Likewise. Needed because of
18880         gl_FCNTL_O_FLAGS.
18881         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18882         AC_TYPE_MBSTATE_T.
18883         * modules/wcsnrtombs (Depends-on): Likewise.
18884         * modules/wcsrtombs (Depends-on): Likewise.
18885
18886 2009-12-24  Bruno Haible  <bruno@clisp.org>
18887
18888         binary-io: Avoid gcc warning due to SET_BINARY.
18889         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18890         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18891
18892 2009-12-24  Bruno Haible  <bruno@clisp.org>
18893
18894         Avoid future namespace pollution on glibc systems.
18895         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18896         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18897         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18898         glibc systems.
18899
18900 2009-12-24  Bruno Haible  <bruno@clisp.org>
18901
18902         Refactor common macros used in tests.
18903         * tests/macros.h: New file.
18904         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18905         and/or <stdlib.h>, if appropriate.
18906         (ASSERT, SIZEOF): Remove macros.
18907         * tests/test-areadlink-with-size.c: Likewise.
18908         * tests/test-areadlinkat.c: Likewise.
18909         * tests/test-areadlinkat-with-size.c: Likewise.
18910         * tests/test-argmatch.c: Likewise.
18911         * tests/test-argv-iter.c: Likewise.
18912         * tests/test-array-mergesort.c: Likewise.
18913         * tests/test-array_list.c: Likewise.
18914         * tests/test-array_oset.c: Likewise.
18915         * tests/test-avltree_list.c: Likewise.
18916         * tests/test-avltree_oset.c: Likewise.
18917         * tests/test-avltreehash_list.c: Likewise.
18918         * tests/test-base64.c: Likewise.
18919         * tests/test-binary-io.c: Likewise.
18920         * tests/test-bitrotate.c: Likewise.
18921         * tests/test-btowc.c: Likewise.
18922         * tests/test-byteswap.c: Likewise.
18923         * tests/test-c-ctype.c: Likewise.
18924         * tests/test-c-stack.c: Likewise.
18925         * tests/test-c-strcasecmp.c: Likewise.
18926         * tests/test-c-strcasestr.c: Likewise.
18927         * tests/test-c-strncasecmp.c: Likewise.
18928         * tests/test-c-strstr.c: Likewise.
18929         * tests/test-canonicalize-lgpl.c: Likewise.
18930         * tests/test-canonicalize.c: Likewise.
18931         * tests/test-carray_list.c: Likewise.
18932         * tests/test-ceilf1.c: Likewise.
18933         * tests/test-ceilf2.c: Likewise.
18934         * tests/test-ceill.c: Likewise.
18935         * tests/test-chown.c: Likewise.
18936         * tests/test-cloexec.c: Likewise.
18937         * tests/test-copy-acl.c: Likewise.
18938         * tests/test-copy-file.c: Likewise.
18939         * tests/test-count-one-bits.c: Likewise.
18940         * tests/test-dprintf-posix.c: Likewise.
18941         * tests/test-dup2.c: Likewise.
18942         * tests/test-dup3.c: Likewise.
18943         * tests/test-duplocale.c: Likewise.
18944         * tests/test-fbufmode.c: Likewise.
18945         * tests/test-fchdir.c: Likewise.
18946         * tests/test-fchownat.c: Likewise.
18947         * tests/test-fcntl-safer.c: Likewise.
18948         * tests/test-fcntl.c: Likewise.
18949         * tests/test-fdopendir.c: Likewise.
18950         * tests/test-fdutimensat.c: Likewise.
18951         * tests/test-fflush2.c: Likewise.
18952         * tests/test-file-has-acl.c: Likewise.
18953         * tests/test-filevercmp.c: Likewise.
18954         * tests/test-flock.c: Likewise.
18955         * tests/test-floorf1.c: Likewise.
18956         * tests/test-floorf2.c: Likewise.
18957         * tests/test-floorl.c: Likewise.
18958         * tests/test-fnmatch.c: Likewise.
18959         * tests/test-fopen.h: Likewise.
18960         * tests/test-fpending.c: Likewise.
18961         * tests/test-fprintf-posix.c: Likewise.
18962         * tests/test-fpurge.c: Likewise.
18963         * tests/test-freadable.c: Likewise.
18964         * tests/test-freadahead.c: Likewise.
18965         * tests/test-freading.c: Likewise.
18966         * tests/test-freadptr.c: Likewise.
18967         * tests/test-freadptr2.c: Likewise.
18968         * tests/test-freadseek.c: Likewise.
18969         * tests/test-freopen.c: Likewise.
18970         * tests/test-frexp.c: Likewise.
18971         * tests/test-frexpl.c: Likewise.
18972         * tests/test-fseek.c: Likewise.
18973         * tests/test-fseeko.c: Likewise.
18974         * tests/test-fstatat.c: Likewise.
18975         * tests/test-fstrcmp.c: Likewise.
18976         * tests/test-fsync.c: Likewise.
18977         * tests/test-ftell.c: Likewise.
18978         * tests/test-ftello.c: Likewise.
18979         * tests/test-func.c: Likewise.
18980         * tests/test-futimens.c: Likewise.
18981         * tests/test-fwritable.c: Likewise.
18982         * tests/test-fwriting.c: Likewise.
18983         * tests/test-getcwd.c: Likewise.
18984         * tests/test-getdate.c: Likewise.
18985         * tests/test-getdelim.c: Likewise.
18986         * tests/test-getdtablesize.c: Likewise.
18987         * tests/test-getgroups.c: Likewise.
18988         * tests/test-getline.c: Likewise.
18989         * tests/test-getndelim2.c: Likewise.
18990         * tests/test-glob.c: Likewise.
18991         * tests/test-hash.c: Likewise.
18992         * tests/test-i-ring.c: Likewise.
18993         * tests/test-iconv-utf.c: Likewise.
18994         * tests/test-iconv.c: Likewise.
18995         * tests/test-idpriv-drop.c: Likewise.
18996         * tests/test-idpriv-droptemp.c: Likewise.
18997         * tests/test-inet_ntop.c: Likewise.
18998         * tests/test-inet_pton.c: Likewise.
18999         * tests/test-isblank.c: Likewise.
19000         * tests/test-isfinite.c: Likewise.
19001         * tests/test-isinf.c: Likewise.
19002         * tests/test-isnan.c: Likewise.
19003         * tests/test-isnand.h: Likewise.
19004         * tests/test-isnanf.h: Likewise.
19005         * tests/test-isnanl.h: Likewise.
19006         * tests/test-lchown.c: Likewise.
19007         * tests/test-ldexpl.c: Likewise.
19008         * tests/test-link.c: Likewise.
19009         * tests/test-linkat.c: Likewise.
19010         * tests/test-linked_list.c: Likewise.
19011         * tests/test-linkedhash_list.c: Likewise.
19012         * tests/test-localename.c: Likewise.
19013         * tests/test-lseek.c: Likewise.
19014         * tests/test-lstat.c: Likewise.
19015         * tests/test-mbmemcasecmp.c: Likewise.
19016         * tests/test-mbmemcasecoll.c: Likewise.
19017         * tests/test-mbrtowc.c: Likewise.
19018         * tests/test-mbscasecmp.c: Likewise.
19019         * tests/test-mbscasestr1.c: Likewise.
19020         * tests/test-mbscasestr2.c: Likewise.
19021         * tests/test-mbscasestr3.c: Likewise.
19022         * tests/test-mbscasestr4.c: Likewise.
19023         * tests/test-mbschr.c: Likewise.
19024         * tests/test-mbscspn.c: Likewise.
19025         * tests/test-mbsinit.c: Likewise.
19026         * tests/test-mbsncasecmp.c: Likewise.
19027         * tests/test-mbsnrtowcs.c: Likewise.
19028         * tests/test-mbspbrk.c: Likewise.
19029         * tests/test-mbspcasecmp.c: Likewise.
19030         * tests/test-mbsrchr.c: Likewise.
19031         * tests/test-mbsrtowcs.c: Likewise.
19032         * tests/test-mbsspn.c: Likewise.
19033         * tests/test-mbsstr1.c: Likewise.
19034         * tests/test-mbsstr2.c: Likewise.
19035         * tests/test-mbsstr3.c: Likewise.
19036         * tests/test-memchr.c: Likewise.
19037         * tests/test-memchr2.c: Likewise.
19038         * tests/test-memcmp.c: Likewise.
19039         * tests/test-memmem.c: Likewise.
19040         * tests/test-memrchr.c: Likewise.
19041         * tests/test-mkdir.c: Likewise.
19042         * tests/test-mkdirat.c: Likewise.
19043         * tests/test-mkfifo.c: Likewise.
19044         * tests/test-mkfifoat.c: Likewise.
19045         * tests/test-mknod.c: Likewise.
19046         * tests/test-nanosleep.c: Likewise.
19047         * tests/test-nl_langinfo.c: Likewise.
19048         * tests/test-obstack-printf.c: Likewise.
19049         * tests/test-open.c: Likewise.
19050         * tests/test-openat.c: Likewise.
19051         * tests/test-pipe-filter-gi1.c: Likewise.
19052         * tests/test-pipe-filter-gi2-main.c: Likewise.
19053         * tests/test-pipe-filter-ii1.c: Likewise.
19054         * tests/test-pipe-filter-ii2-main.c: Likewise.
19055         * tests/test-pipe2.c: Likewise.
19056         * tests/test-popen.h: Likewise.
19057         * tests/test-posixtm.c: Likewise.
19058         * tests/test-pread.c: Likewise.
19059         * tests/test-printf-frexp.c: Likewise.
19060         * tests/test-printf-frexpl.c: Likewise.
19061         * tests/test-printf-posix.c: Likewise.
19062         * tests/test-priv-set.c: Likewise.
19063         * tests/test-quotearg.c: Likewise.
19064         * tests/test-random_r.c: Likewise.
19065         * tests/test-rawmemchr.c: Likewise.
19066         * tests/test-rbtree_list.c: Likewise.
19067         * tests/test-rbtree_oset.c: Likewise.
19068         * tests/test-rbtreehash_list.c: Likewise.
19069         * tests/test-readlink.c: Likewise.
19070         * tests/test-remove.c: Likewise.
19071         * tests/test-rename.c: Likewise.
19072         * tests/test-renameat.c: Likewise.
19073         * tests/test-rmdir.c: Likewise.
19074         * tests/test-round1.c: Likewise.
19075         * tests/test-roundf1.c: Likewise.
19076         * tests/test-roundl.c: Likewise.
19077         * tests/test-safe-alloc.c: Likewise.
19078         * tests/test-sameacls.c: Likewise.
19079         * tests/test-set-mode-acl.c: Likewise.
19080         * tests/test-setenv.c: Likewise.
19081         * tests/test-sigaction.c: Likewise.
19082         * tests/test-signbit.c: Likewise.
19083         * tests/test-sleep.c: Likewise.
19084         * tests/test-snprintf-posix.c: Likewise.
19085         * tests/test-snprintf.c: Likewise.
19086         * tests/test-sprintf-posix.c: Likewise.
19087         * tests/test-stat-time.c: Likewise.
19088         * tests/test-stat.c: Likewise.
19089         * tests/test-strcasestr.c: Likewise.
19090         * tests/test-strchrnul.c: Likewise.
19091         * tests/test-strerror.c: Likewise.
19092         * tests/test-striconv.c: Likewise.
19093         * tests/test-striconveh.c: Likewise.
19094         * tests/test-striconveha.c: Likewise.
19095         * tests/test-strsignal.c: Likewise.
19096         * tests/test-strstr.c: Likewise.
19097         * tests/test-strtod.c: Likewise.
19098         * tests/test-strverscmp.c: Likewise.
19099         * tests/test-symlink.c: Likewise.
19100         * tests/test-symlinkat.c: Likewise.
19101         * tests/test-trunc1.c: Likewise.
19102         * tests/test-trunc2.c: Likewise.
19103         * tests/test-truncf1.c: Likewise.
19104         * tests/test-truncf2.c: Likewise.
19105         * tests/test-truncl.c: Likewise.
19106         * tests/test-uname.c: Likewise.
19107         * tests/test-unlink.c: Likewise.
19108         * tests/test-unlinkat.c: Likewise.
19109         * tests/test-unsetenv.c: Likewise.
19110         * tests/test-usleep.c: Likewise.
19111         * tests/test-utimens.c: Likewise.
19112         * tests/test-utimensat.c: Likewise.
19113         * tests/test-vasnprintf-posix.c: Likewise.
19114         * tests/test-vasnprintf-posix2.c: Likewise.
19115         * tests/test-vasnprintf.c: Likewise.
19116         * tests/test-vasprintf-posix.c: Likewise.
19117         * tests/test-vasprintf.c: Likewise.
19118         * tests/test-vdprintf-posix.c: Likewise.
19119         * tests/test-vfprintf-posix.c: Likewise.
19120         * tests/test-vprintf-posix.c: Likewise.
19121         * tests/test-vsnprintf-posix.c: Likewise.
19122         * tests/test-vsnprintf.c: Likewise.
19123         * tests/test-vsprintf-posix.c: Likewise.
19124         * tests/test-wcrtomb.c: Likewise.
19125         * tests/test-wcsnrtombs.c: Likewise.
19126         * tests/test-wcsrtombs.c: Likewise.
19127         * tests/test-wctype.c: Likewise.
19128         * tests/test-wcwidth.c: Likewise.
19129         * tests/test-xfprintf-posix.c: Likewise.
19130         * tests/test-xmemdup0.c: Likewise.
19131         * tests/test-xprintf-posix.c: Likewise.
19132         * tests/test-xvasprintf.c: Likewise.
19133         * tests/unicase/test-locale-language.c: Likewise.
19134         * tests/unicase/test-mapping-part1.h: Likewise.
19135         * tests/unicase/test-predicate-part1.h: Likewise.
19136         * tests/unicase/test-u8-casecmp.c: Likewise.
19137         * tests/unicase/test-u8-casecoll.c: Likewise.
19138         * tests/unicase/test-u8-casefold.c: Likewise.
19139         * tests/unicase/test-u8-is-cased.c: Likewise.
19140         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19141         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19142         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19143         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19144         * tests/unicase/test-u8-tolower.c: Likewise.
19145         * tests/unicase/test-u8-totitle.c: Likewise.
19146         * tests/unicase/test-u8-toupper.c: Likewise.
19147         * tests/unicase/test-u16-casecmp.c: Likewise.
19148         * tests/unicase/test-u16-casecoll.c: Likewise.
19149         * tests/unicase/test-u16-casefold.c: Likewise.
19150         * tests/unicase/test-u16-is-cased.c: Likewise.
19151         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19152         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19153         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19154         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19155         * tests/unicase/test-u16-tolower.c: Likewise.
19156         * tests/unicase/test-u16-totitle.c: Likewise.
19157         * tests/unicase/test-u16-toupper.c: Likewise.
19158         * tests/unicase/test-u32-casecmp.c: Likewise.
19159         * tests/unicase/test-u32-casecoll.c: Likewise.
19160         * tests/unicase/test-u32-casefold.c: Likewise.
19161         * tests/unicase/test-u32-is-cased.c: Likewise.
19162         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19163         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19164         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19165         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19166         * tests/unicase/test-u32-tolower.c: Likewise.
19167         * tests/unicase/test-u32-totitle.c: Likewise.
19168         * tests/unicase/test-u32-toupper.c: Likewise.
19169         * tests/unicase/test-ulc-casecmp.c: Likewise.
19170         * tests/unicase/test-ulc-casecoll.c: Likewise.
19171         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19172         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19173         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19174         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19175         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19176         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19177         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19178         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19179         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19180         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19181         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19182         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19183         * tests/unictype/test-bidi_byname.c: Likewise.
19184         * tests/unictype/test-bidi_name.c: Likewise.
19185         * tests/unictype/test-bidi_of.c: Likewise.
19186         * tests/unictype/test-bidi_test.c: Likewise.
19187         * tests/unictype/test-block_list.c: Likewise.
19188         * tests/unictype/test-block_of.c: Likewise.
19189         * tests/unictype/test-block_test.c: Likewise.
19190         * tests/unictype/test-categ_and.c: Likewise.
19191         * tests/unictype/test-categ_and_not.c: Likewise.
19192         * tests/unictype/test-categ_byname.c: Likewise.
19193         * tests/unictype/test-categ_name.c: Likewise.
19194         * tests/unictype/test-categ_none.c: Likewise.
19195         * tests/unictype/test-categ_of.c: Likewise.
19196         * tests/unictype/test-categ_or.c: Likewise.
19197         * tests/unictype/test-categ_test_withtable.c: Likewise.
19198         * tests/unictype/test-combining.c: Likewise.
19199         * tests/unictype/test-decdigit.c: Likewise.
19200         * tests/unictype/test-digit.c: Likewise.
19201         * tests/unictype/test-mirror.c: Likewise.
19202         * tests/unictype/test-numeric.c: Likewise.
19203         * tests/unictype/test-pr_byname.c: Likewise.
19204         * tests/unictype/test-pr_test.c: Likewise.
19205         * tests/unictype/test-predicate-part1.h: Likewise.
19206         * tests/unictype/test-scripts.c: Likewise.
19207         * tests/unictype/test-sy_c_ident.c: Likewise.
19208         * tests/unictype/test-sy_java_ident.c: Likewise.
19209         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19210         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19211         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19212         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19213         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19214         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19215         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19216         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19217         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19218         * tests/uninorm/test-compat-decomposition.c: Likewise.
19219         * tests/uninorm/test-composition.c: Likewise.
19220         * tests/uninorm/test-decomposing-form.c: Likewise.
19221         * tests/uninorm/test-decomposition.c: Likewise.
19222         * tests/uninorm/test-u8-nfc.c: Likewise.
19223         * tests/uninorm/test-u8-nfd.c: Likewise.
19224         * tests/uninorm/test-u8-nfkc.c: Likewise.
19225         * tests/uninorm/test-u8-nfkd.c: Likewise.
19226         * tests/uninorm/test-u8-normcmp.c: Likewise.
19227         * tests/uninorm/test-u8-normcoll.c: Likewise.
19228         * tests/uninorm/test-u16-nfc.c: Likewise.
19229         * tests/uninorm/test-u16-nfd.c: Likewise.
19230         * tests/uninorm/test-u16-nfkc.c: Likewise.
19231         * tests/uninorm/test-u16-nfkd.c: Likewise.
19232         * tests/uninorm/test-u16-normcmp.c: Likewise.
19233         * tests/uninorm/test-u16-normcoll.c: Likewise.
19234         * tests/uninorm/test-u32-nfc.c: Likewise.
19235         * tests/uninorm/test-u32-nfd.c: Likewise.
19236         * tests/uninorm/test-u32-nfkc.c: Likewise.
19237         * tests/uninorm/test-u32-nfkd.c: Likewise.
19238         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19239         * tests/uninorm/test-u32-normcmp.c: Likewise.
19240         * tests/uninorm/test-u32-normcoll.c: Likewise.
19241         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
19242         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19243         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19244         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19245         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19246         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19247         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19248         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19249         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19250         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19251         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19252         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19253         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19254         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19255         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19256         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19257         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19258         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19259         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19260         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19261         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19262         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19263         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19264         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19265         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19266         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19267         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19268         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19269         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19270         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
19271         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
19272         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
19273         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
19274         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19275         * tests/uniwidth/test-u8-width.c: Likewise.
19276         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19277         * tests/uniwidth/test-u16-width.c: Likewise.
19278         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19279         * tests/uniwidth/test-u32-width.c: Likewise.
19280         * tests/uniwidth/test-uc_width.c: Likewise.
19281         * tests/uniwidth/test-uc_width2.c: Likewise.
19282         * modules/acl-tests (Files): Add tests/macros.h.
19283         * modules/areadlink-tests (Files): Likewise.
19284         * modules/areadlink-with-size-tests (Files): Likewise.
19285         * modules/areadlinkat-tests (Files): Likewise.
19286         * modules/areadlinkat-with-size-tests (Files): Likewise.
19287         * modules/argmatch-tests (Files): Likewise.
19288         * modules/argv-iter-tests (Files): Likewise.
19289         * modules/array-list-tests (Files): Likewise.
19290         * modules/array-mergesort-tests (Files): Likewise.
19291         * modules/array-oset-tests (Files): Likewise.
19292         * modules/avltree-list-tests (Files): Likewise.
19293         * modules/avltree-oset-tests (Files): Likewise.
19294         * modules/avltreehash-list-tests (Files): Likewise.
19295         * modules/base64-tests (Files): Likewise.
19296         * modules/binary-io-tests (Files): Likewise.
19297         * modules/bitrotate-tests (Files): Likewise.
19298         * modules/btowc-tests (Files): Likewise.
19299         * modules/byteswap-tests (Files): Likewise.
19300         * modules/c-ctype-tests (Files): Likewise.
19301         * modules/c-stack-tests (Files): Likewise.
19302         * modules/c-strcase-tests (Files): Likewise.
19303         * modules/c-strcasestr-tests (Files): Likewise.
19304         * modules/c-strstr-tests (Files): Likewise.
19305         * modules/canonicalize-lgpl-tests (Files): Likewise.
19306         * modules/canonicalize-tests (Files): Likewise.
19307         * modules/carray-list-tests (Files): Likewise.
19308         * modules/ceilf-tests (Files): Likewise.
19309         * modules/ceill-tests (Files): Likewise.
19310         * modules/chown-tests (Files): Likewise.
19311         * modules/cloexec-tests (Files): Likewise.
19312         * modules/copy-file-tests (Files): Likewise.
19313         * modules/count-one-bits-tests (Files): Likewise.
19314         * modules/dprintf-posix-tests (Files): Likewise.
19315         * modules/dup2-tests (Files): Likewise.
19316         * modules/dup3-tests (Files): Likewise.
19317         * modules/duplocale-tests (Files): Likewise.
19318         * modules/fbufmode-tests (Files): Likewise.
19319         * modules/fchdir-tests (Files): Likewise.
19320         * modules/fcntl-safer-tests (Files): Likewise.
19321         * modules/fcntl-tests (Files): Likewise.
19322         * modules/fdopendir-tests (Files): Likewise.
19323         * modules/fdutimensat-tests (Files): Likewise.
19324         * modules/fflush-tests (Files): Likewise.
19325         * modules/filevercmp-tests (Files): Likewise.
19326         * modules/flock-tests (Files): Likewise.
19327         * modules/floorf-tests (Files): Likewise.
19328         * modules/floorl-tests (Files): Likewise.
19329         * modules/fnmatch-tests (Files): Likewise.
19330         * modules/fopen-safer-tests (Files): Likewise.
19331         * modules/fopen-tests (Files): Likewise.
19332         * modules/fpending-tests (Files): Likewise.
19333         * modules/fprintf-posix-tests (Files): Likewise.
19334         * modules/fpurge-tests (Files): Likewise.
19335         * modules/freadable-tests (Files): Likewise.
19336         * modules/freadahead-tests (Files): Likewise.
19337         * modules/freading-tests (Files): Likewise.
19338         * modules/freadptr-tests (Files): Likewise.
19339         * modules/freadseek-tests (Files): Likewise.
19340         * modules/freopen-tests (Files): Likewise.
19341         * modules/frexp-nolibm-tests (Files): Likewise.
19342         * modules/frexp-tests (Files): Likewise.
19343         * modules/frexpl-nolibm-tests (Files): Likewise.
19344         * modules/frexpl-tests (Files): Likewise.
19345         * modules/fseek-tests (Files): Likewise.
19346         * modules/fseeko-tests (Files): Likewise.
19347         * modules/fstrcmp-tests (Files): Likewise.
19348         * modules/fsync-tests (Files): Likewise.
19349         * modules/ftell-tests (Files): Likewise.
19350         * modules/ftello-tests (Files): Likewise.
19351         * modules/func-tests (Files): Likewise.
19352         * modules/futimens-tests (Files): Likewise.
19353         * modules/fwritable-tests (Files): Likewise.
19354         * modules/fwriting-tests (Files): Likewise.
19355         * modules/getcwd-tests (Files): Likewise.
19356         * modules/getdate-tests (Files): Likewise.
19357         * modules/getdelim-tests (Files): Likewise.
19358         * modules/getdtablesize-tests (Files): Likewise.
19359         * modules/getgroups-tests (Files): Likewise.
19360         * modules/getline-tests (Files): Likewise.
19361         * modules/getndelim2-tests (Files): Likewise.
19362         * modules/glob-tests (Files): Likewise.
19363         * modules/hash-tests (Files): Likewise.
19364         * modules/i-ring-tests (Files): Likewise.
19365         * modules/iconv-tests (Files): Likewise.
19366         * modules/iconv_open-utf-tests (Files): Likewise.
19367         * modules/idpriv-drop-tests (Files): Likewise.
19368         * modules/idpriv-droptemp-tests (Files): Likewise.
19369         * modules/inet_ntop-tests (Files): Likewise.
19370         * modules/inet_pton-tests (Files): Likewise.
19371         * modules/isblank-tests (Files): Likewise.
19372         * modules/isfinite-tests (Files): Likewise.
19373         * modules/isinf-tests (Files): Likewise.
19374         * modules/isnan-tests (Files): Likewise.
19375         * modules/isnand-nolibm-tests (Files): Likewise.
19376         * modules/isnand-tests (Files): Likewise.
19377         * modules/isnanf-nolibm-tests (Files): Likewise.
19378         * modules/isnanf-tests (Files): Likewise.
19379         * modules/isnanl-nolibm-tests (Files): Likewise.
19380         * modules/isnanl-tests (Files): Likewise.
19381         * modules/lchown-tests (Files): Likewise.
19382         * modules/ldexpl-tests (Files): Likewise.
19383         * modules/link-tests (Files): Likewise.
19384         * modules/linkat-tests (Files): Likewise.
19385         * modules/linked-list-tests (Files): Likewise.
19386         * modules/linkedhash-list-tests (Files): Likewise.
19387         * modules/localename-tests (Files): Likewise.
19388         * modules/lseek-tests (Files): Likewise.
19389         * modules/lstat-tests (Files): Likewise.
19390         * modules/mbmemcasecmp-tests (Files): Likewise.
19391         * modules/mbmemcasecoll-tests (Files): Likewise.
19392         * modules/mbrtowc-tests (Files): Likewise.
19393         * modules/mbscasecmp-tests (Files): Likewise.
19394         * modules/mbscasestr-tests (Files): Likewise.
19395         * modules/mbschr-tests (Files): Likewise.
19396         * modules/mbscspn-tests (Files): Likewise.
19397         * modules/mbsinit-tests (Files): Likewise.
19398         * modules/mbsncasecmp-tests (Files): Likewise.
19399         * modules/mbsnrtowcs-tests (Files): Likewise.
19400         * modules/mbspbrk-tests (Files): Likewise.
19401         * modules/mbspcasecmp-tests (Files): Likewise.
19402         * modules/mbsrchr-tests (Files): Likewise.
19403         * modules/mbsrtowcs-tests (Files): Likewise.
19404         * modules/mbsspn-tests (Files): Likewise.
19405         * modules/mbsstr-tests (Files): Likewise.
19406         * modules/memchr-tests (Files): Likewise.
19407         * modules/memchr2-tests (Files): Likewise.
19408         * modules/memcmp-tests (Files): Likewise.
19409         * modules/memmem-tests (Files): Likewise.
19410         * modules/memrchr-tests (Files): Likewise.
19411         * modules/mkdir-tests (Files): Likewise.
19412         * modules/mkfifo-tests (Files): Likewise.
19413         * modules/mkfifoat-tests (Files): Likewise.
19414         * modules/mknod-tests (Files): Likewise.
19415         * modules/nanosleep-tests (Files): Likewise.
19416         * modules/nl_langinfo-tests (Files): Likewise.
19417         * modules/obstack-printf-tests (Files): Likewise.
19418         * modules/open-tests (Files): Likewise.
19419         * modules/openat-tests (Files): Likewise.
19420         * modules/pipe-filter-gi-tests (Files): Likewise.
19421         * modules/pipe-filter-ii-tests (Files): Likewise.
19422         * modules/pipe2-tests (Files): Likewise.
19423         * modules/popen-safer-tests (Files): Likewise.
19424         * modules/popen-tests (Files): Likewise.
19425         * modules/posixtm-tests (Files): Likewise.
19426         * modules/pread-tests (Files): Likewise.
19427         * modules/printf-frexp-tests (Files): Likewise.
19428         * modules/printf-frexpl-tests (Files): Likewise.
19429         * modules/printf-posix-tests (Files): Likewise.
19430         * modules/priv-set-tests (Files): Likewise.
19431         * modules/quotearg-tests (Files): Likewise.
19432         * modules/random_r-tests (Files): Likewise.
19433         * modules/rawmemchr-tests (Files): Likewise.
19434         * modules/rbtree-list-tests (Files): Likewise.
19435         * modules/rbtree-oset-tests (Files): Likewise.
19436         * modules/rbtreehash-list-tests (Files): Likewise.
19437         * modules/readlink-tests (Files): Likewise.
19438         * modules/remove-tests (Files): Likewise.
19439         * modules/rename-tests (Files): Likewise.
19440         * modules/renameat-tests (Files): Likewise.
19441         * modules/rmdir-tests (Files): Likewise.
19442         * modules/round-tests (Files): Likewise.
19443         * modules/roundf-tests (Files): Likewise.
19444         * modules/roundl-tests (Files): Likewise.
19445         * modules/safe-alloc-tests (Files): Likewise.
19446         * modules/setenv-tests (Files): Likewise.
19447         * modules/sigaction-tests (Files): Likewise.
19448         * modules/signbit-tests (Files): Likewise.
19449         * modules/sleep-tests (Files): Likewise.
19450         * modules/snprintf-posix-tests (Files): Likewise.
19451         * modules/snprintf-tests (Files): Likewise.
19452         * modules/sprintf-posix-tests (Files): Likewise.
19453         * modules/stat-tests (Files): Likewise.
19454         * modules/stat-time-tests (Files): Likewise.
19455         * modules/strcasestr-tests (Files): Likewise.
19456         * modules/strchrnul-tests (Files): Likewise.
19457         * modules/strerror-tests (Files): Likewise.
19458         * modules/striconv-tests (Files): Likewise.
19459         * modules/striconveh-tests (Files): Likewise.
19460         * modules/striconveha-tests (Files): Likewise.
19461         * modules/strsignal-tests (Files): Likewise.
19462         * modules/strstr-tests (Files): Likewise.
19463         * modules/strtod-tests (Files): Likewise.
19464         * modules/strverscmp-tests (Files): Likewise.
19465         * modules/symlink-tests (Files): Likewise.
19466         * modules/symlinkat-tests (Files): Likewise.
19467         * modules/trunc-tests (Files): Likewise.
19468         * modules/truncf-tests (Files): Likewise.
19469         * modules/truncl-tests (Files): Likewise.
19470         * modules/uname-tests (Files): Likewise.
19471         * modules/unicase/cased-tests (Files): Likewise.
19472         * modules/unicase/ignorable-tests (Files): Likewise.
19473         * modules/unicase/locale-language-tests (Files): Likewise.
19474         * modules/unicase/tolower-tests (Files): Likewise.
19475         * modules/unicase/totitle-tests (Files): Likewise.
19476         * modules/unicase/toupper-tests (Files): Likewise.
19477         * modules/unicase/u8-casecmp-tests (Files): Likewise.
19478         * modules/unicase/u8-casecoll-tests (Files): Likewise.
19479         * modules/unicase/u8-casefold-tests (Files): Likewise.
19480         * modules/unicase/u8-is-cased-tests (Files): Likewise.
19481         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
19482         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
19483         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
19484         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
19485         * modules/unicase/u8-tolower-tests (Files): Likewise.
19486         * modules/unicase/u8-totitle-tests (Files): Likewise.
19487         * modules/unicase/u8-toupper-tests (Files): Likewise.
19488         * modules/unicase/u16-casecmp-tests (Files): Likewise.
19489         * modules/unicase/u16-casecoll-tests (Files): Likewise.
19490         * modules/unicase/u16-casefold-tests (Files): Likewise.
19491         * modules/unicase/u16-is-cased-tests (Files): Likewise.
19492         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
19493         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
19494         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
19495         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
19496         * modules/unicase/u16-tolower-tests (Files): Likewise.
19497         * modules/unicase/u16-totitle-tests (Files): Likewise.
19498         * modules/unicase/u16-toupper-tests (Files): Likewise.
19499         * modules/unicase/u32-casecmp-tests (Files): Likewise.
19500         * modules/unicase/u32-casecoll-tests (Files): Likewise.
19501         * modules/unicase/u32-casefold-tests (Files): Likewise.
19502         * modules/unicase/u32-is-cased-tests (Files): Likewise.
19503         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
19504         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
19505         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
19506         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
19507         * modules/unicase/u32-tolower-tests (Files): Likewise.
19508         * modules/unicase/u32-totitle-tests (Files): Likewise.
19509         * modules/unicase/u32-toupper-tests (Files): Likewise.
19510         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
19511         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
19512         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
19513         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
19514         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
19515         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
19516         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
19517         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
19518         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
19519         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
19520         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
19521         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
19522         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
19523         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
19524         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
19525         * modules/unictype/bidicategory-name-tests (Files): Likewise.
19526         * modules/unictype/bidicategory-of-tests (Files): Likewise.
19527         * modules/unictype/bidicategory-test-tests (Files): Likewise.
19528         * modules/unictype/block-list-tests (Files): Likewise.
19529         * modules/unictype/block-of-tests (Files): Likewise.
19530         * modules/unictype/block-test-tests (Files): Likewise.
19531         * modules/unictype/category-C-tests (Files): Likewise.
19532         * modules/unictype/category-Cc-tests (Files): Likewise.
19533         * modules/unictype/category-Cf-tests (Files): Likewise.
19534         * modules/unictype/category-Cn-tests (Files): Likewise.
19535         * modules/unictype/category-Co-tests (Files): Likewise.
19536         * modules/unictype/category-Cs-tests (Files): Likewise.
19537         * modules/unictype/category-L-tests (Files): Likewise.
19538         * modules/unictype/category-Ll-tests (Files): Likewise.
19539         * modules/unictype/category-Lm-tests (Files): Likewise.
19540         * modules/unictype/category-Lo-tests (Files): Likewise.
19541         * modules/unictype/category-Lt-tests (Files): Likewise.
19542         * modules/unictype/category-Lu-tests (Files): Likewise.
19543         * modules/unictype/category-M-tests (Files): Likewise.
19544         * modules/unictype/category-Mc-tests (Files): Likewise.
19545         * modules/unictype/category-Me-tests (Files): Likewise.
19546         * modules/unictype/category-Mn-tests (Files): Likewise.
19547         * modules/unictype/category-N-tests (Files): Likewise.
19548         * modules/unictype/category-Nd-tests (Files): Likewise.
19549         * modules/unictype/category-Nl-tests (Files): Likewise.
19550         * modules/unictype/category-No-tests (Files): Likewise.
19551         * modules/unictype/category-P-tests (Files): Likewise.
19552         * modules/unictype/category-Pc-tests (Files): Likewise.
19553         * modules/unictype/category-Pd-tests (Files): Likewise.
19554         * modules/unictype/category-Pe-tests (Files): Likewise.
19555         * modules/unictype/category-Pf-tests (Files): Likewise.
19556         * modules/unictype/category-Pi-tests (Files): Likewise.
19557         * modules/unictype/category-Po-tests (Files): Likewise.
19558         * modules/unictype/category-Ps-tests (Files): Likewise.
19559         * modules/unictype/category-S-tests (Files): Likewise.
19560         * modules/unictype/category-Sc-tests (Files): Likewise.
19561         * modules/unictype/category-Sk-tests (Files): Likewise.
19562         * modules/unictype/category-Sm-tests (Files): Likewise.
19563         * modules/unictype/category-So-tests (Files): Likewise.
19564         * modules/unictype/category-Z-tests (Files): Likewise.
19565         * modules/unictype/category-Zl-tests (Files): Likewise.
19566         * modules/unictype/category-Zp-tests (Files): Likewise.
19567         * modules/unictype/category-Zs-tests (Files): Likewise.
19568         * modules/unictype/category-and-not-tests (Files): Likewise.
19569         * modules/unictype/category-and-tests (Files): Likewise.
19570         * modules/unictype/category-byname-tests (Files): Likewise.
19571         * modules/unictype/category-name-tests (Files): Likewise.
19572         * modules/unictype/category-none-tests (Files): Likewise.
19573         * modules/unictype/category-of-tests (Files): Likewise.
19574         * modules/unictype/category-or-tests (Files): Likewise.
19575         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19576         * modules/unictype/combining-class-tests (Files): Likewise.
19577         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19578         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19579         * modules/unictype/ctype-blank-tests (Files): Likewise.
19580         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19581         * modules/unictype/ctype-digit-tests (Files): Likewise.
19582         * modules/unictype/ctype-graph-tests (Files): Likewise.
19583         * modules/unictype/ctype-lower-tests (Files): Likewise.
19584         * modules/unictype/ctype-print-tests (Files): Likewise.
19585         * modules/unictype/ctype-punct-tests (Files): Likewise.
19586         * modules/unictype/ctype-space-tests (Files): Likewise.
19587         * modules/unictype/ctype-upper-tests (Files): Likewise.
19588         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19589         * modules/unictype/decimal-digit-tests (Files): Likewise.
19590         * modules/unictype/digit-tests (Files): Likewise.
19591         * modules/unictype/mirror-tests (Files): Likewise.
19592         * modules/unictype/numeric-tests (Files): Likewise.
19593         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19594         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19595         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19596         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19597         Likewise.
19598         * modules/unictype/property-bidi-block-separator-tests (Files):
19599         Likewise.
19600         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19601         Likewise.
19602         * modules/unictype/property-bidi-common-separator-tests (Files):
19603         Likewise.
19604         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19605         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19606         Likewise.
19607         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19608         Likewise.
19609         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19610         Likewise.
19611         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19612         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19613         Likewise.
19614         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19615         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19616         Likewise.
19617         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19618         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19619         * modules/unictype/property-bidi-segment-separator-tests (Files):
19620         Likewise.
19621         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19622         * modules/unictype/property-byname-tests (Files): Likewise.
19623         * modules/unictype/property-combining-tests (Files): Likewise.
19624         * modules/unictype/property-composite-tests (Files): Likewise.
19625         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19626         * modules/unictype/property-dash-tests (Files): Likewise.
19627         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19628         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19629         Likewise.
19630         * modules/unictype/property-deprecated-tests (Files): Likewise.
19631         * modules/unictype/property-diacritic-tests (Files): Likewise.
19632         * modules/unictype/property-extender-tests (Files): Likewise.
19633         * modules/unictype/property-format-control-tests (Files): Likewise.
19634         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19635         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19636         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19637         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19638         * modules/unictype/property-hyphen-tests (Files): Likewise.
19639         * modules/unictype/property-id-continue-tests (Files): Likewise.
19640         * modules/unictype/property-id-start-tests (Files): Likewise.
19641         * modules/unictype/property-ideographic-tests (Files): Likewise.
19642         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19643         * modules/unictype/property-ids-trinary-operator-tests (Files):
19644         Likewise.
19645         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19646         * modules/unictype/property-iso-control-tests (Files): Likewise.
19647         * modules/unictype/property-join-control-tests (Files): Likewise.
19648         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19649         * modules/unictype/property-line-separator-tests (Files): Likewise.
19650         * modules/unictype/property-logical-order-exception-tests (Files):
19651         Likewise.
19652         * modules/unictype/property-lowercase-tests (Files): Likewise.
19653         * modules/unictype/property-math-tests (Files): Likewise.
19654         * modules/unictype/property-non-break-tests (Files): Likewise.
19655         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19656         * modules/unictype/property-numeric-tests (Files): Likewise.
19657         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19658         * modules/unictype/property-other-default-ignorable-code-point-tests
19659         (Files): Likewise.
19660         * modules/unictype/property-other-grapheme-extend-tests (Files):
19661         Likewise.
19662         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19663         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19664         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19665         * modules/unictype/property-other-math-tests (Files): Likewise.
19666         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19667         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19668         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19669         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19670         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19671         * modules/unictype/property-private-use-tests (Files): Likewise.
19672         * modules/unictype/property-punctuation-tests (Files): Likewise.
19673         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19674         * modules/unictype/property-radical-tests (Files): Likewise.
19675         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19676         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19677         * modules/unictype/property-space-tests (Files): Likewise.
19678         * modules/unictype/property-terminal-punctuation-tests (Files):
19679         Likewise.
19680         * modules/unictype/property-test-tests (Files): Likewise.
19681         * modules/unictype/property-titlecase-tests (Files): Likewise.
19682         * modules/unictype/property-unassigned-code-value-tests (Files):
19683         Likewise.
19684         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19685         * modules/unictype/property-uppercase-tests (Files): Likewise.
19686         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19687         * modules/unictype/property-white-space-tests (Files): Likewise.
19688         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19689         * modules/unictype/property-xid-start-tests (Files): Likewise.
19690         * modules/unictype/property-zero-width-tests (Files): Likewise.
19691         * modules/unictype/scripts-tests (Files): Likewise.
19692         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19693         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19694         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19695         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19696         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19697         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19698         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19699         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19700         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19701         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19702         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19703         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19704         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19705         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19706         * modules/uninorm/composition-tests (Files): Likewise.
19707         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19708         * modules/uninorm/decomposition-tests (Files): Likewise.
19709         * modules/uninorm/filter-tests (Files): Likewise.
19710         * modules/uninorm/nfc-tests (Files): Likewise.
19711         * modules/uninorm/nfd-tests (Files): Likewise.
19712         * modules/uninorm/nfkc-tests (Files): Likewise.
19713         * modules/uninorm/nfkd-tests (Files): Likewise.
19714         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19715         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19716         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19717         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19718         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19719         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19720         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19721         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19722         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19723         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19724         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19725         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19726         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19727         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19728         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19729         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19730         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19731         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19732         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19733         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19734         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19735         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19736         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19737         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19738         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19739         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19740         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19741         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19742         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19743         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19744         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19745         * modules/uniwidth/u8-width-tests (Files): Likewise.
19746         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19747         * modules/uniwidth/u16-width-tests (Files): Likewise.
19748         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19749         * modules/uniwidth/u32-width-tests (Files): Likewise.
19750         * modules/uniwidth/width-tests (Files): Likewise.
19751         * modules/unlink-tests (Files): Likewise.
19752         * modules/unsetenv-tests (Files): Likewise.
19753         * modules/usleep-tests (Files): Likewise.
19754         * modules/utimens-tests (Files): Likewise.
19755         * modules/utimensat-tests (Files): Likewise.
19756         * modules/vasnprintf-posix-tests (Files): Likewise.
19757         * modules/vasnprintf-tests (Files): Likewise.
19758         * modules/vasprintf-posix-tests (Files): Likewise.
19759         * modules/vasprintf-tests (Files): Likewise.
19760         * modules/vdprintf-posix-tests (Files): Likewise.
19761         * modules/vfprintf-posix-tests (Files): Likewise.
19762         * modules/vprintf-posix-tests (Files): Likewise.
19763         * modules/vsnprintf-posix-tests (Files): Likewise.
19764         * modules/vsnprintf-tests (Files): Likewise.
19765         * modules/vsprintf-posix-tests (Files): Likewise.
19766         * modules/wcrtomb-tests (Files): Likewise.
19767         * modules/wcsnrtombs-tests (Files): Likewise.
19768         * modules/wcsrtombs-tests (Files): Likewise.
19769         * modules/wctype-tests (Files): Likewise.
19770         * modules/wcwidth-tests (Files): Likewise.
19771         * modules/xmemdup0-tests (Files): Likewise.
19772         * modules/xprintf-posix-tests (Files): Likewise.
19773         * modules/xvasprintf-tests (Files): Likewise.
19774
19775 2009-12-24  Eric Blake  <ebb9@byu.net>
19776
19777         test-nanosleep: fix typo
19778         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19779         patch.
19780         Reported by Bruno Haible.
19781
19782 2009-12-24  Bruno Haible  <bruno@clisp.org>
19783
19784         Reduce namespace pollution on glibc systems.
19785         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19786         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19787         systems.
19788         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19789         <getopt.h> on glibc systems.
19790         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19791         systems.
19792         * lib/fcntl.c: Include <unistd.h> here instead.
19793
19794 2009-12-24  Bruno Haible  <bruno@clisp.org>
19795
19796         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19797
19798 2009-12-24  Eric Blake  <ebb9@byu.net>
19799
19800         tests: add signature checks
19801         * tests/signature.h (SIGNATURE_CHECK): New file.
19802         * modules/atexit-tests (Files): Use it.
19803         * modules/btowc-tests (Files): Likewise.
19804         * modules/canonicalize-lgpl-tests (Files): Likewise.
19805         * modules/ceilf-tests (Files): Likewise.
19806         * modules/ceill-tests (Files): Likewise.
19807         * modules/chown-tests (Files): Likewise.
19808         * modules/dprintf-posix-tests (Files): Likewise.
19809         * modules/dup2-tests (Files): Likewise.
19810         * modules/dup3-tests (Files): Likewise.
19811         * modules/duplocale-tests (Files): Likewise.
19812         * modules/fchdir-tests (Files): Likewise.
19813         * modules/fcntl-tests (Files): Likewise.
19814         * modules/fdopendir-tests (Files): Likewise.
19815         * modules/fflush-tests (Files): Likewise.
19816         * modules/flock-tests (Files): Likewise.
19817         * modules/floorf-tests (Files): Likewise.
19818         * modules/floorl-tests (Files): Likewise.
19819         * modules/fnmatch-tests (Files): Likewise.
19820         * modules/fopen-tests (Files): Likewise.
19821         * modules/fprintf-posix-tests (Files): Likewise.
19822         * modules/freopen-tests (Files): Likewise.
19823         * modules/frexp-nolibm-tests (Files): Likewise.
19824         * modules/frexp-tests (Files): Likewise.
19825         * modules/frexpl-nolibm-tests (Files): Likewise.
19826         * modules/frexpl-tests (Files): Likewise.
19827         * modules/fseek-tests (Files): Likewise.
19828         * modules/fseeko-tests (Files): Likewise.
19829         * modules/fsync-tests (Files): Likewise.
19830         * modules/ftell-tests (Files): Likewise.
19831         * modules/ftello-tests (Files): Likewise.
19832         * modules/futimens-tests (Files): Likewise.
19833         * modules/getaddrinfo-tests (Files): Likewise.
19834         * modules/getcwd-tests (Files): Likewise.
19835         * modules/getdelim-tests (Files): Likewise.
19836         * modules/getdtablesize-tests (Files): Likewise.
19837         * modules/getgroups-tests (Files): Likewise.
19838         * modules/gethostname-tests (Files): Likewise.
19839         * modules/getline-tests (Files): Likewise.
19840         * modules/getopt-posix-tests (Files): Likewise.
19841         * modules/gettimeofday-tests (Files): Likewise.
19842         * modules/glob-tests (Files): Likewise.
19843         * modules/iconv-tests (Files): Likewise.
19844         * modules/inet_ntop-tests (Files): Likewise.
19845         * modules/inet_pton-tests (Files): Likewise.
19846         * modules/isblank-tests (Files): Likewise.
19847         * modules/lchown-tests (Files): Likewise.
19848         * modules/ldexpl-tests (Files): Likewise.
19849         * modules/link-tests (Files): Likewise.
19850         * modules/linkat-tests (Files): Likewise.
19851         * modules/lseek-tests (Files): Likewise.
19852         * modules/lstat-tests (Files): Likewise.
19853         * modules/mbrtowc-tests (Files): Likewise.
19854         * modules/mbsinit-tests (Files): Likewise.
19855         * modules/mbsnrtowcs-tests (Files): Likewise.
19856         * modules/mbsrtowcs-tests (Files): Likewise.
19857         * modules/memchr-tests (Files): Likewise.
19858         * modules/memcmp-tests (Files): Likewise.
19859         * modules/memmem-tests (Files): Likewise.
19860         * modules/memrchr-tests (Files): Likewise.
19861         * modules/mkdir-tests (Files): Likewise.
19862         * modules/mkfifo-tests (Files): Likewise.
19863         * modules/mkfifoat-tests (Files): Likewise.
19864         * modules/mknod-tests (Files): Likewise.
19865         * modules/nanosleep-tests (Files): Likewise.
19866         * modules/nl_langinfo-tests (Files): Likewise.
19867         * modules/obstack-printf-tests (Files): Likewise.
19868         * modules/open-tests (Files): Likewise.
19869         * modules/openat-tests (Files): Likewise.
19870         * modules/perror-tests (Files): Likewise.
19871         * modules/pipe2-tests (Files): Likewise.
19872         * modules/poll-tests (Files): Likewise.
19873         * modules/popen-tests (Files): Likewise.
19874         * modules/posix_spawn-tests (Files): Likewise.
19875         * modules/posix_spawnp-tests (Files): Likewise.
19876         * modules/pread-tests (Files): Likewise.
19877         * modules/printf-posix-tests (Files): Likewise.
19878         * modules/pty-tests (Files): Likewise.
19879         * modules/random_r-tests (Files): Likewise.
19880         * modules/rawmemchr-tests (Files): Likewise.
19881         * modules/readlink-tests (Files): Likewise.
19882         * modules/remove-tests (Files): Likewise.
19883         * modules/rename-tests (Files): Likewise.
19884         * modules/renameat-tests (Files): Likewise.
19885         * modules/rmdir-tests (Files): Likewise.
19886         * modules/round-tests (Files): Likewise.
19887         * modules/roundf-tests (Files): Likewise.
19888         * modules/roundl-tests (Files): Likewise.
19889         * modules/select-tests (Files): Likewise.
19890         * modules/setenv-tests (Files): Likewise.
19891         * modules/sigaction-tests (Files): Likewise.
19892         * modules/sleep-tests (Files): Likewise.
19893         * modules/snprintf-posix-tests (Files): Likewise.
19894         * modules/snprintf-tests (Files): Likewise.
19895         * modules/sprintf-posix-tests (Files): Likewise.
19896         * modules/stat-tests (Files): Likewise.
19897         * modules/strcasestr-tests (Files): Likewise.
19898         * modules/strchrnul-tests (Files): Likewise.
19899         * modules/strerror-tests (Files): Likewise.
19900         * modules/strsignal-tests (Files): Likewise.
19901         * modules/strstr-tests (Files): Likewise.
19902         * modules/strtod-tests (Files): Likewise.
19903         * modules/strverscmp-tests (Files): Likewise.
19904         * modules/symlink-tests (Files): Likewise.
19905         * modules/symlinkat-tests (Files): Likewise.
19906         * modules/times-tests (Files): Likewise.
19907         * modules/trunc-tests (Files): Likewise.
19908         * modules/truncf-tests (Files): Likewise.
19909         * modules/truncl-tests (Files): Likewise.
19910         * modules/tsearch-tests (Files): Likewise.
19911         * modules/uname-tests (Files): Likewise.
19912         * modules/unlink-tests (Files): Likewise.
19913         * modules/unsetenv-tests (Files): Likewise.
19914         * modules/usleep-tests (Files): Likewise.
19915         * modules/utimensat-tests (Files): Likewise.
19916         * modules/vasprintf-tests (Files): Likewise.
19917         * modules/vdprintf-posix-tests (Files): Likewise.
19918         * modules/vfprintf-posix-tests (Files): Likewise.
19919         * modules/vprintf-posix-tests (Files): Likewise.
19920         * modules/vsnprintf-posix-tests (Files): Likewise.
19921         * modules/vsnprintf-tests (Files): Likewise.
19922         * modules/vsprintf-posix-tests (Files): Likewise.
19923         * modules/wcrtomb-tests (Files): Likewise.
19924         * modules/wcsnrtombs-tests (Files): Likewise.
19925         * modules/wcsrtombs-tests (Files): Likewise.
19926         * modules/wcwidth-tests (Files): Likewise.
19927         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19928         * tests/test-isinf.c (isinf): Likewise.
19929         * tests/test-isnan.c (isnan): Likewise.
19930         * tests/test-signbit.c (signbit): Likewise.
19931         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19932         declaration, either as macro or with correct signature.
19933         (select): Ensure function under test is declared with correct
19934         signature in correct header.
19935         * tests/test-atexit.c (atexit): Likewise.
19936         * tests/test-btowc.c (btowc): Likewise.
19937         * tests/test-canonicalize-lgpl.c (realpath)
19938         (canonicalize_file_name): Likewise.
19939         * tests/test-ceilf1.c (ceilf): Likewise.
19940         * tests/test-ceill.c (ceill): Likewise.
19941         * tests/test-chown.c (chown): Likewise.
19942         * tests/test-dprintf-posix.c (dprintf): Likewise.
19943         * tests/test-dup2.c (dup2): Likewise.
19944         * tests/test-dup3.c (dup3): Likewise.
19945         * tests/test-duplocale.c (duplocale): Likewise.
19946         * tests/test-fchdir.c (fchdir): Likewise.
19947         * tests/test-fchownat.c (fchownat): Likewise.
19948         * tests/test-fcntl.c (fcntl): Likewise.
19949         * tests/test-fdopendir.c (fdopendir): Likewise.
19950         * tests/test-fflush.c (fflush): Likewise.
19951         * tests/test-flock.c (flock): Likewise.
19952         * tests/test-floorf1.c (floorf): Likewise.
19953         * tests/test-floorl.c (floorl): Likewise.
19954         * tests/test-fnmatch.c (fnmatch): Likewise.
19955         * tests/test-fopen.c (fopen): Likewise.
19956         * tests/test-fprintf-posix.c (fprintf): Likewise.
19957         * tests/test-freopen.c (freopen): Likewise.
19958         * tests/test-frexp.c (frexp): Likewise.
19959         * tests/test-frexpl.c (frexpl): Likewise.
19960         * tests/test-fseek.c (fseek): Likewise.
19961         * tests/test-fseeko.c (fseeko): Likewise.
19962         * tests/test-fstatat.c (fstatat): Likewise.
19963         * tests/test-fsync.c (fsync): Likewise.
19964         * tests/test-ftell.c (ftell): Likewise.
19965         * tests/test-ftello.c (ftello): Likewise.
19966         * tests/test-futimens.c (futimens): Likewise.
19967         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19968         (gai_strerror): Likewise.
19969         * tests/test-getcwd.c (getcwd): Likewise.
19970         * tests/test-getdelim.c (getdelim): Likewise.
19971         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19972         * tests/test-getgroups.c (getgroups): Likewise.
19973         * tests/test-gethostname.c (gethostname): Likewise.
19974         * tests/test-getline.c (getline): Likewise.
19975         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19976         Likewise.
19977         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19978         * tests/test-glob.c (glob, globfree): Likewise.
19979         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19980         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19981         * tests/test-inet_pton.c (inet_pton): Likewise.
19982         * tests/test-isblank.c (isblank): Likewise.
19983         * tests/test-lchown.c (lchown): Likewise.
19984         * tests/test-ldexpl.c (ldexpl): Likewise.
19985         * tests/test-link.c (link): Likewise.
19986         * tests/test-linkat.c (linkat): Likewise.
19987         * tests/test-lseek.c (lseek): Likewise.
19988         * tests/test-lstat.c (lstat): Likewise.
19989         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19990         * tests/test-mbsinit.c (mbsinit): Likewise.
19991         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19992         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19993         * tests/test-memchr.c (memchr): Likewise.
19994         * tests/test-memcmp.c (memcmp): Likewise.
19995         * tests/test-memmem.c (memmem): Likewise.
19996         * tests/test-memrchr.c (memrchr): Likewise.
19997         * tests/test-mkdir.c (mkdir): Likewise.
19998         * tests/test-mkdirat.c (mkdirat): Likewise.
19999         * tests/test-mkfifo.c (mkfifo): Likewise.
20000         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20001         * tests/test-mknod.c (mknod): Likewise.
20002         * tests/test-nanosleep.c (nanosleep): Likewise.
20003         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20004         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20005         Likewise.
20006         * tests/test-open.c (open): Likewise.
20007         * tests/test-openat.c (openat): Likewise.
20008         * tests/test-perror.c (perror): Likewise.
20009         * tests/test-pipe2.c (pipe2): Likewise.
20010         * tests/test-poll.c (poll): Likewise.
20011         * tests/test-popen.c (popen, pclose): Likewise.
20012         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20013         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20014         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20015         (posix_spawn_file_actions_destroy)
20016         (posix_spawn_file_actions_addclose)
20017         (posix_spawn_file_actions_addopen)
20018         (posix_spawn_file_actions_adddup2): Likewise.
20019         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20020         * tests/test-pread.c (pread): Likewise.
20021         * tests/test-printf-posix.c (printf): Likewise.
20022         * tests/test-pty.c (openpty, forkpty): Likewise.
20023         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20024         (random_r): Likewise.
20025         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20026         * tests/test-readlink.c (readlink): Likewise.
20027         * tests/test-remove.c (remove): Likewise.
20028         * tests/test-rename.c (rename): Likewise.
20029         * tests/test-renameat.c (renameat): Likewise.
20030         * tests/test-rmdir.c (rmdir): Likewise.
20031         * tests/test-round1.c (round): Likewise.
20032         * tests/test-roundf1.c (roundf): Likewise.
20033         * tests/test-roundl.c (roundl): Likewise.
20034         * tests/test-setenv.c (setenv): Likewise.
20035         * tests/test-sigaction.c (sigaction): Likewise.
20036         * tests/test-sleep.c (sleep): Likewise.
20037         * tests/test-snprintf.c (snprintf): Likewise.
20038         * tests/test-sprintf-posix.c (sprintf): Likewise.
20039         * tests/test-stat.c (stat): Likewise.
20040         * tests/test-stpncpy.c (stpncpy): Likewise.
20041         * tests/test-strcasestr.c (strcasestr): Likewise.
20042         * tests/test-strchrnul.c (strchrnul): Likewise.
20043         * tests/test-strerror.c (strerror): Likewise.
20044         * tests/test-strsignal.c (strsignal): Likewise.
20045         * tests/test-strstr.c (strstr): Likewise.
20046         * tests/test-strtod.c (strtod): Likewise.
20047         * tests/test-strverscmp.c (strverscmp): Likewise.
20048         * tests/test-symlink.c (symlink): Likewise.
20049         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20050         * tests/test-times.c (times): Likewise.
20051         * tests/test-trunc1.c (trunc): Likewise.
20052         * tests/test-truncf1.c (truncf): Likewise.
20053         * tests/test-truncl.c (truncl): Likewise.
20054         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20055         Likewise.
20056         * tests/test-uname.c (uname): Likewise.
20057         * tests/test-unlink.c (unlink): Likewise.
20058         * tests/test-unlinkat.c (unlinkat): Likewise.
20059         * tests/test-unsetenv.c (unsetenv): Likewise.
20060         * tests/test-usleep.c (usleep): Likewise.
20061         * tests/test-utimensat.c (utimensat): Likewise.
20062         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20063         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20064         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20065         * tests/test-vprintf-posix.c (vprintf): Likewise.
20066         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20067         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20068         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20069         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20070         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20071         * tests/test-wcwidth.c (wcwidth): Likewise.
20072
20073         build: pull in conditional headers during GNULIB_POSIXCHECK
20074         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20075         definitions from any conditionally-included headers.
20076         * lib/stdlib.in.h (includes): Likewise.
20077         * lib/unistd.in.h (includes): Likewise.
20078
20079 2009-12-24  Bruno Haible  <bruno@clisp.org>
20080
20081         * tests/test-argv-iter.c: Include header file being tested immediately
20082         after config.h.
20083         * tests/test-base64.c: Likewise.
20084         * tests/test-flock.c: Likewise.
20085         * tests/test-fsync.c: Likewise.
20086         * tests/test-getdate.c: Likewise.
20087         * tests/test-getndelim2.c: Likewise.
20088         * tests/test-isfinite.c: Likewise.
20089         * tests/test-isinf.c: Likewise.
20090         * tests/test-strerror.c: Likewise.
20091         * tests/test-strsignal.c: Likewise.
20092
20093 2009-12-23  Eric Blake  <ebb9@byu.net>
20094
20095         unistd: work around cygwin bug
20096         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20097         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20098         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20099
20100 2009-12-23  Bruno Haible  <bruno@clisp.org>
20101
20102         localename: More tests.
20103         * tests/test-localename.c (SIZEOF): New macro.
20104         (categories): New variable.
20105         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20106         test_locale_name_default): Add test w.r.t. thread locale.
20107         (test_locale_name_thread): New function.
20108         (main): Invoke it.
20109
20110         localename: Make aware of thread locale.
20111         * lib/localename.h (gl_locale_name_thread): New declaration.
20112         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20113         behaviour with respect to thread locale.
20114         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20115         <langinfo.h>, glthread/lock.h.
20116         (SIZE_BITS): New macro.
20117         (string_hash): New function.
20118         (struct hash_node): New type.
20119         (HASH_TABLE_SIZE): New macro.
20120         (struniq_hash_table, struniq_lock): New variables.
20121         (struniq): New function.
20122         (gl_locale_name_thread): New function.
20123         (gl_locale_name): Invoke it.
20124         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20125         * modules/localename (Depends-on): Add lock.
20126         Reported by Mike Gran <spk121@yahoo.com>.
20127
20128 2009-12-23  Eric Blake  <ebb9@byu.net>
20129
20130         va-args: new module
20131         * modules/va-args: New file.
20132         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20133         * MODULES.html.sh (Core language properties): Mention it.
20134
20135         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20136         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20137         named alias for __attribute__((__unused__)).
20138         * lib/chown.c: Update client.
20139         * lib/fchmodat.c: Likewise.
20140         * lib/fts.c: Likewise.
20141         * lib/getdate.y: Likewise.
20142         * lib/getgroups.c: Likewise.
20143         * lib/getopt.c: Likewise.
20144         * lib/getugroups.c: Likewise.
20145         * lib/mkdir.c: Likewise.
20146         * lib/mkfifo.c: Likewise.
20147         * lib/mkfifoat.c: Likewise.
20148         * lib/mknod.c: Likewise.
20149         * lib/mknodat.c: Likewise.
20150         * lib/readlink.c: Likewise.
20151         * lib/se-context.in.h: Likewise.
20152         * lib/se-selinux.in.h: Likewise.
20153         * lib/sockets.c: Likewise.
20154         * lib/symlink.c: Likewise.
20155         * lib/symlinkat.c: Likewise.
20156         * lib/unicodeio.c: Likewise.
20157         * lib/unistr.h: Likewise.
20158         * tests/test-areadlink.c: Likewise.
20159         * tests/test-areadlinkat.c: Likewise.
20160         * tests/test-filenamecat.c: Likewise.
20161         * tests/test-fseeko.c: Likewise.
20162         * tests/test-ftello.c: Likewise.
20163         * tests/test-getdate.c: Likewise.
20164         * tests/test-getgroups.c: Likewise.
20165         * tests/test-gethostname.c: Likewise.
20166         * tests/test-quotearg.c: Likewise.
20167         * tests/test-version-etc.c: Likewise.
20168         * tests/test-xalloc-die.c: Likewise.
20169         * tests/test-xfprintf-posix.c: Likewise.
20170         * tests/test-xprintf-posix.c: Likewise.
20171         * tests/test-xvasprintf.c: Likewise.
20172
20173         tests: avoid compiler warnings
20174         * tests/test-fcntl.c (main): Delete unused parameters.
20175         * tests/test-freopen-safer.c (main): Likewise.
20176         * tests/test-xalloc-die.c (main): Mark unused parameters.
20177         * tests/test-fseeko.c (main): Likewise.
20178         * tests/test-ftello.c (main): Likewise.
20179         * tests/test-nanosleep.c (main): Avoid declaration warning.
20180         * tests/test-sleep.c (main): Likewise.
20181         * tests/test-unsetenv.c (main): Silence warning about string
20182         literal.
20183         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20184
20185 2009-12-23  Bruno Haible  <bruno@clisp.org>
20186
20187         * tests/test-localename.c (test_locale_name): New function, extracted
20188         from main. Also test mixed situations.
20189         (test_locale_name_posix, test_locale_name_environ,
20190         test_locale_name_default): New functions.
20191         (main): Invoke them all.
20192         * modules/localename-tests (configure.ac): Test for newlocale.
20193
20194 2009-12-23  Bruno Haible  <bruno@clisp.org>
20195
20196         unistd: Ensure getcwd gets declared before being overridden.
20197         * lib/unistd.in.h: Conditionally include <io.h>.
20198
20199 2009-12-22  Bruno Haible  <bruno@clisp.org>
20200
20201         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20202         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20203         (gl_WCHAR_H): Invoke it.
20204         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20205         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20206         Reported by Karl Berry <karl@freefriends.org>.
20207
20208 2009-12-22  Eric Blake  <ebb9@byu.net>
20209
20210         math, unistd: avoid redundant includes
20211         * lib/math.in.h (isnan): No need to re-include <math.h>.
20212         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20213
20214         getsubopt: work around cygwin bug
20215         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20216         avoid conflicting with system getsubopt.
20217         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20218         bug.
20219
20220         getopt: synchronize from glibc
20221         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
20222         parameter order.  Adjust all callers.
20223         (_getopt_internal_r, main): Adjust quoting in error messages.
20224         Drop considerations for outdated POSIX 1003.2 error message.
20225         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
20226         callers.
20227         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
20228
20229         test-getopt: test stderr behavior
20230         * modules/getopt-posix-tests (Depends-on): Add dup2.
20231         * tests/test-getopt.c (ASSERT): Avoid stderr.
20232         (main): Move stderr to a temporary file.
20233         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
20234         Instead, add parameter to inform caller if output occurred.
20235         (test_getopt): Adjust all existing tests to expect silence, and
20236         add new tests of leading ":".
20237         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20238         glibc shortcomings with leading "-:" or "+:" in optstring.
20239         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20240         Likewise.
20241         * doc/posix-functions/getopt.texi (getopt): Likewise.
20242
20243         test-getopt: enhance test
20244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
20245         supports optind=0.
20246         * tests/test-getopt.c (OPTIND_MIN): Move...
20247         * tests/test-getopt.h (OPTIND_MIN): ...here.
20248         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
20249         Require that optind=0 works, since modern BSD supports it in
20250         addition to optreset, and since coreutils expects it.
20251         (test_getopt_long_only): New test.
20252         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20253         glibc shortcomings with 'W;', and enforcement of optind=0.
20254         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20255         Likewise.
20256
20257 2009-12-21  Bruno Haible  <bruno@clisp.org>
20258
20259         localename: Improvements for MacOS X and Cygwin.
20260         * lib/localename.h (gl_locale_name_environ): New declaration.
20261         * lib/localename.c (gl_locale_name_environ): New function, extracted from
20262         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
20263         (gl_locale_name_posix): Invoke it.
20264         (gl_locale_name_default): Add comments. Use Windows native API also on
20265         Cygwin.
20266
20267 2009-12-21  Bruno Haible  <bruno@clisp.org>
20268
20269         Update list of Win32 locale ids.
20270         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
20271         (LANG_SAMI): Renamed from LANG_SAAMI.
20272         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
20273         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
20274         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
20275         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
20276         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
20277         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
20278         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
20279         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
20280         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
20281         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
20282         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
20283         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
20284         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
20285         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
20286         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
20287         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
20288         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
20289         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
20290         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
20291         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
20292         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
20293         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
20294         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
20295         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
20296         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
20297         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
20298         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
20299         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
20300         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
20301         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
20302         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
20303         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
20304         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
20305         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
20306         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
20307         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
20308         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
20309         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
20310         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
20311         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
20312         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
20313         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
20314         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
20315         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
20316         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
20317         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
20318         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
20319         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
20320         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
20321         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
20322         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
20323         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
20324         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
20325         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
20326         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
20327         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
20328         Add more languages and countries for Sami, Sorbian. Add more countries
20329         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
20330         for Pashto. Change country for Syriac, Tswana.
20331
20332 2009-12-21  Eric Blake  <ebb9@byu.net>
20333
20334         test-utimens: avoid spurious failure
20335         * tests/test-chown.h (nap): Factor...
20336         * tests/nap.h: ...into new file.
20337         * tests/test-lchown.h (nap): Avoid duplication.
20338         * tests/test-utimens-common.h (nap): Use shared implementation,
20339         necessary on file systems with 1-second resolution.
20340         * modules/chown-tests (Files): Include new file.
20341         * modules/fdutimensat-tests (Files): Likewise.
20342         * modules/futimens-tests (Files): Likewise.
20343         * modules/lchown-tests (Files): Likewise.
20344         * modules/openat-tests (Files): Likewise.
20345         * modules/utimens-tests (Files): Likewise.
20346         * modules/utimensat-tests (Files): Likewise.
20347
20348 2009-12-19  Eric Blake  <ebb9@byu.net>
20349
20350         futimens, utimensat: work around Linux bug
20351         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
20352         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20353         * lib/utimensat.c (rpl_utimensat): Work around it.
20354         * lib/futimens.c (rpl_futimens): Adjust comment.
20355
20356         utimens: work around Linux ctime bug
20357         * lib/utimens.c (detect_ctime_bug): New helper function.
20358         (update_timespec): Differentiate between workaround needed for
20359         this bug vs. what is needed for systems that lack utimensat.
20360         (fdutimens, lutimens): Work around bug.
20361
20362         utimens: check for ctime update
20363         * tests/test-utimens-common.h (check_ctime): Define.
20364         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
20365         * tests/test-futimens.h (test_futimens): Likewise.
20366         * tests/test-lutimens.h (test_lutimens): Likewise.
20367         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20368         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20369
20370 2009-12-19  Bruno Haible  <bruno@clisp.org>
20371
20372         dprintf-posix: Check against memory leak fixed on 2009-12-15.
20373         * tests/test-dprintf-posix2.sh: New file.
20374         * tests/test-dprintf-posix2.c: New file.
20375         * modules/dprintf-posix-tests (Files): Add them.
20376         (configure.ac): Check for getrlimit and setrlimit.
20377         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20378
20379 2009-12-19  Bruno Haible  <bruno@clisp.org>
20380
20381         fprintf-posix: Check against memory leak fixed on 2009-12-15.
20382         * tests/test-fprintf-posix3.sh: New file.
20383         * tests/test-fprintf-posix3.c: New file.
20384         * modules/fprintf-posix-tests (Files): Add them.
20385         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20386
20387 2009-12-19  Eric Blake  <ebb9@byu.net>
20388
20389         dirfd: fix prototype
20390         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
20391         * lib/dirfd.c (dirfd): Likewise.
20392
20393         canonicalize: reduce memory usage
20394         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
20395         allocation to size.
20396         Reported by Solar Designer <solar@openwall.com>.
20397
20398 2009-12-19  Bruno Haible  <bruno@clisp.org>
20399
20400         New module attribute 'Applicability'.
20401         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
20402         * gnulib-tool: New option --extract-applicability.
20403         (func_usage): Document it.
20404         (sed_extract_prog): Recognize it.
20405         (func_get_applicability): New function.
20406         (func_import): Generalize handling of 'link-warning' module.
20407         * modules/link-warning (Applicability): New section.
20408         * modules/arg-nonnull (Applicability): New section.
20409         Repoted by Simon Josefsson <simon@josefsson.org>.
20410
20411 2009-12-19  Bruno Haible  <bruno@clisp.org>
20412
20413         fflush: tweak
20414         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
20415         * lib/fseeko.c (rpl_fseeko): Likewise.
20416
20417 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
20418
20419         * lib/gl_list.h: Fix typo in comment.
20420
20421 2009-12-16  Eric Blake  <ebb9@byu.net>
20422
20423         fcntl: use to simplify other modules
20424         * modules/cloexec (Depends-on): Add fcntl.
20425         * modules/fchdir (Depends-on): Likewise.
20426         * modules/fd-safer-flag (Depends-on): Likewise.
20427         * modules/unistd-safer (Depends-on): Likewise.
20428         * modules/dup3 (configure.ac): Set module indicator.
20429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
20430         missing.
20431         * lib/fchdir.c (_gl_register_dup): Fix comment.
20432         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
20433         * lib/dup-safer.c (dup_safer): Likewise.
20434         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
20435         * lib/dup3.c (dup3): Likewise.
20436         * tests/test-fchdir.c (main): Enhance test.
20437         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
20438
20439         fcntl: port portions of fcntl to mingw
20440         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
20441         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
20442         replacement for mingw.
20443         * modules/fcntl (Description): Update.
20444         (Depends-on): Add dup2.
20445         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
20446         * modules/fcntl-h (Makefile.am): Substitute it.
20447         * lib/fcntl.in.h (fcntl): Update declaration.
20448         (F_DUPFD, F_GETFD): New macros, when needed.
20449         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20450         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
20451         * tests/test-fcntl.c (check_flags, main): Enhance test for items
20452         we now guarantee.
20453
20454         fcntl: work around cygwin bug in F_DUPFD
20455         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
20456         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
20457         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
20458         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
20459         * doc/posix-functions/fcntl.texi (fcntl): Document it.
20460
20461         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
20462         * modules/fcntl (Files): List new files.
20463         (configure.ac): Run a test.
20464         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
20465         * lib/fcntl.c (rpl_fcntl): Likewise.
20466         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
20467         (gl_FCNTL_H): Always replace fcntl.h.
20468         * modules/fcntl-h (Makefile.am): Substitute witnesses.
20469         * lib/fcntl.in.h (fcntl): Declare replacement.
20470         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
20471         needed, plus a witness.
20472         * doc/posix-functions/fcntl.texi (fcntl): Document this.
20473         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20474         * tests/test-fcntl.c: New file.
20475         * modules/fcntl-tests: Likewise.
20476
20477         binary-io: avoid potential compilation warning
20478         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
20479         directives.
20480
20481         fflush: avoid compilation error on NetBSD
20482         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
20483         between off_t and fpos_t, since the latter is sometimes a struct.
20484         * lib/fseeko.c (rpl_fseeko): Likewise.
20485         Reported by Alexander Nasonov <alnsn@yandex.ru>.
20486
20487 2009-12-15  Eric Blake  <ebb9@byu.net>
20488
20489         fcntl-h, stdio, sys_ioctl: fix declarations
20490         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
20491         function must not take arguments.
20492         * lib/sys_ioctl.in.h (ioctl): Likewise.
20493         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
20494         (open): Add a link warning.
20495
20496 2009-12-15  Jim Meyering  <meyering@redhat.com>
20497
20498         areadlink, areadlink-with-size: relax license to LGPLv2+
20499         * modules/areadlink (License): Relax to LGPLv2+.
20500         * modules/areadlink-with-size (License): Likewise.
20501
20502 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
20503             Bruno Haible  <bruno@clisp.org>
20504
20505         *printf: Fix memory leak.
20506         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
20507         * lib/vfprintf.c (vfprintf): Likewise.
20508         * lib/dprintf.c (dprintf): Likewise.
20509         * lib/vdprintf.c (vdprintf): Likewise.
20510
20511 2009-12-14  Eric Blake  <ebb9@byu.net>
20512
20513         accept4: adjust module dependencies
20514         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
20515
20516         utimens: one more try at avoiding compiler warning
20517         * lib/utimens.c (lutimens): Lower scope of result.
20518
20519 2009-12-13  Bruno Haible  <bruno@clisp.org>
20520
20521         Move the malloc checking from module 'list' to new module 'xlist'.
20522         * modules/xlist: New file.
20523         * lib/gl_xlist.h: New file.
20524         * lib/gl_xlist.c: New file.
20525         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
20526         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
20527         gl_list_add_last, gl_list_add_before, gl_list_add_after,
20528         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
20529         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
20530         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
20531         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
20532         gl_sortedlist_nx_add): New declarations.
20533         (struct gl_list_implementation): Rename and change methods accordingly.
20534         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
20535         (gl_list_nx_create): Renamed from gl_list_create.
20536         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20537         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20538         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20539         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20540         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20541         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20542         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20543         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20544         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
20545         gl_list_create_empty.
20546         (gl_list_nx_create): Renamed from gl_list_create.
20547         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20548         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20549         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20550         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20551         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20552         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20553         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20554         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20555         * lib/gl_array_list.c: Don't include xalloc.h.
20556         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20557         NULL upon out-of-memory.
20558         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20559         out-of-memory.
20560         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20561         Change return type to 'int'.
20562         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20563         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20564         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20565         upon out-of-memory.
20566         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20567         upon out-of-memory.
20568         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20569         upon out-of-memory.
20570         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20571         upon out-of-memory.
20572         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20573         out-of-memory.
20574         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20575         Update.
20576         (gl_array_list_implementation): Update.
20577         * lib/gl_carray_list.c: Don't include xalloc.h.
20578         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20579         Return NULL upon out-of-memory.
20580         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20581         out-of-memory.
20582         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20583         Change return type to 'int'.
20584         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20585         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20586         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20587         upon out-of-memory.
20588         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20589         upon out-of-memory.
20590         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20591         out-of-memory.
20592         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20593         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20594         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20595         Update.
20596         (gl_carray_list_implementation): Update.
20597         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20598         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20599         gl_linked_create_empty. Return NULL upon out-of-memory.
20600         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20601         out-of-memory.
20602         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20603         Change return type to 'int'. Return -1 upon out-of-memory.
20604         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20605         out-of-memory.
20606         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20607         upon out-of-memory.
20608         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20609         upon out-of-memory.
20610         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20611         NULL upon out-of-memory.
20612         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20613         upon out-of-memory.
20614         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20615         out-of-memory.
20616         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20617         Update.
20618         * lib/gl_linked_list.c: Don't include xalloc.h.
20619         (gl_linked_list_implementation): Update.
20620         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20621         (add_to_bucket): Change return type to 'int'.
20622         (gl_linkedhash_list_implementation): Update.
20623         * lib/gl_anytree_list1.h (free_subtree): New function.
20624         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20625         gl_tree_create_empty. Return NULL upon out-of-memory.
20626         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20627         Change return type to 'int'. Return -1 upon out-of-memory.
20628         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20629         out-of-memory.
20630         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20631         (gl_tree_remove_node): New function, moved here from
20632         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20633         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20634         Update.
20635         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20636         malloc, not xmalloc. Return NULL upon out-of-memory.
20637         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20638         out-of-memory.
20639         (gl_tree_remove_node_from_tree): New function, extracted from
20640         gl_tree_remove_node.
20641         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20642         upon out-of-memory.
20643         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20644         out-of-memory.
20645         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20646         upon out-of-memory.
20647         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20648         upon out-of-memory.
20649         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20650         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20651         not xmalloc. Return NULL upon out-of-memory.
20652         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20653         out-of-memory.
20654         (gl_tree_remove_node_from_tree): New function, extracted from
20655         gl_tree_remove_node.
20656         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20657         upon out-of-memory.
20658         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20659         out-of-memory.
20660         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20661         upon out-of-memory.
20662         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20663         upon out-of-memory.
20664         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20665         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20666         gl_anytree_list1.h before gl_anyavltree_list2.h.
20667         (gl_avltree_list_implementation): Update.
20668         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20669         gl_anytree_list1.h before gl_anyavltree_list2.h.
20670         (gl_rbtree_list_implementation): Update.
20671         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20672         Change return type to 'int'. Return -1 upon out-of-memory. Use
20673         __builtin_expect.
20674         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20675         (gl_avltreehash_list_implementation): Update.
20676         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20677         (gl_rbtreehash_list_implementation): Update.
20678         * modules/array-list (Depends-on): Remove xalloc.
20679         * modules/carray-list (Depends-on): Likewise.
20680         * modules/linked-list (Depends-on): Likewise.
20681         * modules/linkedhash-list (Depends-on): Likewise.
20682         * modules/avltree-list (Depends-on): Likewise.
20683         * modules/rbtree-list (Depends-on): Likewise.
20684         * modules/avltreehash-list (Depends-on): Likewise.
20685         * modules/rbtreehash-list (Depends-on): Likewise.
20686
20687         * modules/xsublist: New file.
20688         * lib/gl_xsublist.h: New file.
20689         * lib/gl_xsublist.c: New file.
20690         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20691         (gl_sublist_nx_create): New declaration.
20692         * lib/gl_sublist.c: Don't include xalloc.h.
20693         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20694         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20695         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20696         Change return type to 'int'. Return -1 upon out-of-memory.
20697         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20698         upon out-of-memory.
20699         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20700         NULL upon out-of-memory.
20701         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20702         upon out-of-memory.
20703         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20704         NULL upon out-of-memory.
20705         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20706         NULL upon out-of-memory.
20707         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20708         upon out-of-memory.
20709         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20710         (gl_sublist_list_implementation): Update.
20711         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20712         upon out-of-memory.
20713         * modules/sublist (Depends-on): Remove xalloc.
20714
20715         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20716         * tests/test-carray_list.c: Likewise.
20717         * tests/test-linked_list.c: Likewise.
20718         * tests/test-linkedhash_list.c: Likewise.
20719         * tests/test-avltree_list.c: Likewise.
20720         * tests/test-rbtree_list.c: Likewise.
20721         * tests/test-avltreehash_list.c: Likewise.
20722         * tests/test-rbtreehash_list.c: Likewise.
20723         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20724         * modules/carray-list-tests (Makefile.am): Likewise.
20725         * modules/linked-list-tests (Makefile.am): Likewise.
20726         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20727         * modules/avltree-list-tests (Makefile.am): Likewise.
20728         * modules/rbtree-list-tests (Makefile.am): Likewise.
20729         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20730         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20731
20732         * NEWS: Mention the changes.
20733
20734         * lib/clean-temp.c: Include gl_xlist.h.
20735         * modules/clean-temp (Depends-on): Add xlist.
20736
20737         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20738         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20739
20740         * tests/test-array_oset.c: Include gl_xlist.h.
20741         * modules/array-oset-tests (Depends-on): Add xlist.
20742
20743         Reported by José E. Marchesi <jemarch@gnu.org>.
20744
20745 2009-12-13  Bruno Haible  <bruno@clisp.org>
20746
20747         Move the malloc checking from module 'oset' to new module 'xoset'.
20748         * modules/xoset: New file.
20749         * lib/gl_xoset.h: New file.
20750         * lib/gl_xoset.c: New file.
20751         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20752         declarations.
20753         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20754         (struct gl_oset_implementation): Rename and change methods accordingly.
20755         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20756         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20757         'int'. Mark as __warn_unused_result__.
20758         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20759         gl_oset_create_empty.
20760         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20761         'int'.
20762         * lib/gl_array_oset.c: Don't include xalloc.h.
20763         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20764         malloc, not xmalloc.
20765         (grow): Change return type to 'int'. Don't call xalloc_die.
20766         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20767         to 'int'.
20768         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20769         'int'.
20770         (gl_array_oset_implementation): Update.
20771         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20772         gl_tree_create_empty.
20773         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20774         'int'.
20775         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20776         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20777         xmalloc.
20778         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20779         not xmalloc.
20780         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20781         xmalloc.
20782         (gl_avltree_oset_implementation): Update.
20783         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20784         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20785         xmalloc.
20786         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20787         not xmalloc.
20788         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20789         xmalloc.
20790         (gl_rbtree_oset_implementation): Update.
20791         * modules/array-oset (Depends-on): Remove xalloc.
20792         * modules/avltree-oset (Depends-on): Likewise.
20793         * modules/rbtree-oset (Depends-on): Likewise.
20794         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20795         * tests/test-avltree_oset.c: Likewise.
20796         * tests/test-rbtree_oset.c: Likewise.
20797         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20798         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20799         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20800         * NEWS: Mention the change.
20801
20802 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20803
20804         maint.mk: allow a project to override release-prep commands
20805         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20806         commands into a new rule.
20807         (release-prep): New rule.
20808         (release-prep-hook): New overridable variable.
20809
20810 2009-12-13  Bruno Haible  <bruno@clisp.org>
20811
20812         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20813
20814 2009-12-13  Jim Meyering  <meyering@redhat.com>
20815
20816         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20817         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20818
20819 2009-12-12  Bruno Haible  <bruno@clisp.org>
20820
20821         duplocale: Tweak.
20822         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20823
20824 2009-12-12  Karl Berry  <karl@gnu.org>
20825
20826         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20827
20828 2009-12-12  Bruno Haible  <bruno@clisp.org>
20829
20830         * m4/po.m4: Undo incorrect untabification.
20831
20832 2009-12-12  Bruno Haible  <bruno@clisp.org>
20833
20834         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20835         * modules/c-strtod (Depends-on): Add locale.
20836         * modules/c-strtold (Depends-on): Likewise.
20837
20838 2009-12-12  Bruno Haible  <bruno@clisp.org>
20839
20840         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20841
20842 2009-12-11  Eric Blake  <ebb9@byu.net>
20843
20844         setenv: relax requirement in light of POSIX ruling
20845         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20846         not NULL.
20847         * tests/test-setenv.c (main): Relax test.
20848         * tests/test-unsetenv.c (main): Likewise.
20849         * doc/posix-functions/setenv.texi (setenv): Document this.
20850         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20851
20852 2009-12-11  Bruno Haible  <bruno@clisp.org>
20853
20854         New module 'fd-safer-flag'.
20855         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20856         * lib/dup-safer.c (dup_safer_flag): Remove function.
20857         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20858         * lib/fd-safer.c (fd_safer_flag): Remove function.
20859         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20860         * modules/cloexec (configure.ac): Drop indicator macro.
20861         * modules/fd-safer-flag: New file.
20862         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20863         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20864         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20865
20866 2009-12-11  Bruno Haible  <bruno@clisp.org>
20867
20868         Tests for module 'nl_langinfo'.
20869         * modules/nl_langinfo-tests: New file.
20870         * tests/test-nl_langinfo.sh: New file.
20871         * tests/test-nl_langinfo.c: New file.
20872
20873         New module 'nl_langinfo'.
20874         * lib/nl_langinfo.c: New file.
20875         * m4/nl_langinfo.m4: New file.
20876         * modules/nl_langinfo: New file.
20877         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20878
20879 2009-12-11  Bruno Haible  <bruno@clisp.org>
20880
20881         Tests for module 'langinfo'.
20882         * modules/langinfo-tests: New file.
20883         * tests/test-langinfo.c: New file.
20884
20885         New module 'langinfo'.
20886         * lib/langinfo.in.h: New file.
20887         * m4/langinfo_h.m4: New file.
20888         * modules/langinfo: New file.
20889         * doc/posix-headers/langinfo.texi: Mention the new module.
20890
20891 2009-12-11  Bruno Haible  <bruno@clisp.org>
20892
20893         * lib/config.charset: Untabify.
20894
20895 2009-12-11  Bruno Haible  <bruno@clisp.org>
20896
20897         * modules/unistd-safer (configure.ac): Drop indicator macro.
20898
20899 2009-12-11  Bruno Haible  <bruno@clisp.org>
20900
20901         Move pipe2-safer code to its own file.
20902         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20903         * lib/pipe-safer.c (pipe2_safer): Remove function.
20904         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20905         (Makefile.am): Add it to lib_SOURCES.
20906
20907 2009-12-10  Bruno Haible  <bruno@clisp.org>
20908
20909         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20910
20911 2009-12-10  Bruno Haible  <bruno@clisp.org>
20912
20913         Declare which arguments expect non-NULL values, for GCC and clang.
20914         * build-aux/arg-nonnull.h: New file.
20915         * modules/arg-nonnull: New file.
20916         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20917         (inet_ntop, inet_pton): Use it.
20918         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20919         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20920         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20921         (open, openat): Use it.
20922         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20923         (fnmatch): Use it.
20924         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20925         (getopt, getopt_long, getopt_long_only): Use it.
20926         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20927         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20928         Use it.
20929         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20930         (iconv_open): Use it.
20931         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20932         (strtoimax, strtoumax): Use it.
20933         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
20934         (duplocale): Use it.
20935         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
20936         (frexp, frexpl): Use it.
20937         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20938         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20939         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20940         (tsearch, tfind, tdelete, twalk): Use it.
20941         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20942         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20943         sigpending): Use it.
20944         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20945         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20946         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20947         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20948         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20949         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20950         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20951         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20952         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20953         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20954         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20955         Use it.
20956         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20957         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20958         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20959         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20960         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20961         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20962         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20963         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20964         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20965         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20966         strtoull, unsetenv): Use it.
20967         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20968         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20969         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20970         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20971         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20972         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20973         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20974         (strcasecmp, strncasecmp): Use it.
20975         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20976         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20977         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20978         rpl_setsockopt): Use it.
20979         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20980         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20981         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20982         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20983         (gettimeofday): Use it.
20984         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20985         (times): Use it.
20986         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20987         (uname): Use it.
20988         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20989         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20990         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20991         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20992         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20993         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20994         unlinkat, write): Use it.
20995         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20996         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20997         * lib/argv-iter.h: Include arg-nonnull.h.
20998         (_ATTRIBUTE_NONNULL_): Remove macro.
20999         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21000         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21001         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21002         optimization.
21003         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21004         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21005         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21006         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21007         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21008         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21009         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21010         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21011         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21012         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21013         * modules/dirent (Depends-on): Add arg-nonnull.
21014         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21015         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21016         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21017         * modules/fnmatch (Depends-on): Add arg-nonnull.
21018         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21019         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21020         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21021         * modules/glob (Depends-on): Add arg-nonnull.
21022         (Makefile.am): Insert arg-nonnull.h into glob.h.
21023         * modules/iconv_open (Depends-on): Add arg-nonnull.
21024         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21025         * modules/inttypes (Depends-on): Add arg-nonnull.
21026         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21027         * modules/locale (Depends-on): Add arg-nonnull.
21028         (Makefile.am): Insert arg-nonnull.h into locale.h.
21029         * modules/math (Depends-on): Add arg-nonnull.
21030         (Makefile.am): Insert arg-nonnull.h into math.h.
21031         * modules/netdb (Depends-on): Add arg-nonnull.
21032         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21033         * modules/search (Depends-on): Add arg-nonnull.
21034         (Makefile.am): Insert arg-nonnull.h into search.h.
21035         * modules/signal (Depends-on): Add arg-nonnull.
21036         (Makefile.am): Insert arg-nonnull.h into signal.h.
21037         * modules/spawn (Depends-on): Add arg-nonnull.
21038         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21039         * modules/stdio (Depends-on): Add arg-nonnull.
21040         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21041         * modules/stdlib (Depends-on): Add arg-nonnull.
21042         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21043         * modules/string (Depends-on): Add arg-nonnull.
21044         (Makefile.am): Insert arg-nonnull.h into string.h.
21045         * modules/strings (Depends-on): Add arg-nonnull.
21046         (Makefile.am): Insert arg-nonnull.h into strings.h.
21047         * modules/sys_socket (Depends-on): Add arg-nonnull.
21048         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21049         * modules/sys_stat (Depends-on): Add arg-nonnull.
21050         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21051         * modules/sys_time (Depends-on): Add arg-nonnull.
21052         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21053         * modules/sys_times (Depends-on): Add arg-nonnull.
21054         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21055         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21056         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21057         * modules/time (Depends-on): Add arg-nonnull.
21058         (Makefile.am): Insert arg-nonnull.h into time.h.
21059         * modules/unistd (Depends-on): Add arg-nonnull.
21060         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21061         * modules/wchar (Depends-on): Add arg-nonnull.
21062         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21063         * modules/argv-iter (Depends-on): Add arg-nonnull.
21064         * tests/test-canonicalize.c (null_ptr): New function.
21065         (main): Use it.
21066         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21067         (main): Use it.
21068         * tests/test-memmem.c (null_ptr): New function.
21069         (main): Use it.
21070         Reported by Jim Meyering.
21071
21072 2009-12-10  Bruno Haible  <bruno@clisp.org>
21073
21074         Use spaces for indentation, not tabs.
21075         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21076         * m4/*.m4: Untabify.
21077         * build-aux/*.h: Untabify.
21078         * tests/**/*.[hc]: Untabify.
21079         * README: New section "Indent with spaces, not TABs", based on
21080         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21081         * NEWS: Mention the change.
21082
21083 2009-12-10  Bruno Haible  <bruno@clisp.org>
21084
21085         pty test: Fix link error.
21086         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21087         test_pty_LDADD.
21088
21089 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21090
21091         * modules/pty: New file.
21092         * modules/pty-tests: New file.
21093         * m4/pty.m4: New file.
21094         * tests/test-pty.c: New file.
21095         * doc/glibc-headers/pty.texi: Modified.
21096         * doc/glibc-functions/forkpty.texi: Modified.
21097         * doc/glibc-functions/openpty.texi: Modified.
21098
21099 2009-12-10  Bruno Haible  <bruno@clisp.org>
21100
21101         Avoid syntax error in C++ mode.
21102         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21103
21104 2009-12-10  Bruno Haible  <bruno@clisp.org>
21105
21106         Use sed with option -e.
21107         * gnulib-tool (func_version, func_emit_copyright_notice,
21108         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21109         option -e to sed.
21110         * modules/link-warning (Makefile.am): Likewise.
21111
21112 2009-12-10  Jim Meyering  <meyering@redhat.com>
21113
21114         mgetgroups: do not write bytes beyond end of malloc'd buffer
21115         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21116         username, we call getgroups with a one-element-shorter buffer,
21117         but still told it the length was original, max_n_groups.
21118
21119 2009-12-09  Eric Blake  <ebb9@byu.net>
21120
21121         cloexec: relax license
21122         * modules/cloexec (Maintainer): Add myself.
21123         (License): Use LGPL, not GPL.
21124
21125         link-warning: optimize generation
21126         * modules/link-warning (Makefile.am): Reduce process usage.
21127
21128 2009-12-09  Bruno Haible  <bruno@clisp.org>
21129
21130         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21131         workaround was added on 2009-11-17.
21132
21133 2009-12-09  Jim Meyering  <meyering@redhat.com>
21134             Bruno Haible  <bruno@clisp.org>
21135
21136         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21137         * modules/link-warning (Makefile.am): Make the comment-removing sed
21138         command more robust in the face of bootstrap-prepended comment lines.
21139
21140 2009-12-09  Bruno Haible  <bruno@clisp.org>
21141
21142         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21143         most one group.
21144
21145 2009-12-09  Simon Josefsson <simon@josefsson.org>
21146             Bruno Haible  <bruno@clisp.org>
21147
21148         * build-aux/link-warning.h: Add copyright notice.
21149         * modules/link-warning (Makefile.am): Generate link-warning.h from
21150         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21151         * NEWS: Mention change in link-warning module.
21152         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21153         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21154         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21155         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21156         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21157         * modules/math (Makefile.am): Add dependency to math.h.
21158         * modules/search (Makefile.am): Add dependency to search.h.
21159         * modules/signal (Makefile.am): Add dependency to signal.h.
21160         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21161         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21162         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21163         * modules/string (Makefile.am): Add dependency to string.h.
21164         * modules/strings (Makefile.am): Add dependency to strings.h.
21165         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21166         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21167         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21168         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21169         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21170         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21171         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21172         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21173         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21174
21175 2009-12-09  Bruno Haible  <bruno@clisp.org>
21176
21177         fchdir: Optimize away rpl_fstat when possible.
21178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21179         REPLACE_OPEN_DIRECTORY.
21180         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21181
21182 2009-12-09  Bruno Haible  <bruno@clisp.org>
21183
21184         * lib/fchdir.c: Update comment.
21185
21186 2009-12-09  Bruno Haible  <bruno@clisp.org>
21187
21188         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21189
21190 2009-12-08  Eric Blake  <ebb9@byu.net>
21191
21192         fchdir: avoid memory leak on re-registration.
21193         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21194
21195 2009-12-08  Jim Meyering  <meyering@redhat.com>
21196
21197         init.sh: avoid Solaris 10 /bin/sh portability problem
21198         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21199         sourced script:
21200           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21201           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21202           bar
21203         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21204         and two tests used that idiom.
21205         * tests/init.sh: Update suggested usage comments.
21206         (path_prepend_): New function, to be used in place
21207         of the --src-path=DIR option.
21208         (setup_): Move PATH-prepending code into path_prepend_.
21209         * tests/test-pread.sh: Adapt to new usage.
21210         * tests/test-xalloc-die.sh: Likewise.
21211
21212 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21213
21214         * doc/gnulib.texi (Glibc pty.h): Add.
21215         * doc/glibc-functions/forkpty.texi: Add.
21216         * doc/glibc-functions/openpty.texi: Add.
21217         Suggested by Bruno Haible.
21218
21219 2009-12-08  Eric Blake  <ebb9@byu.net>
21220
21221         fchdir: fix logic bugs
21222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
21223         * tests/test-fchdir.c (main): Enhance test.
21224         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
21225         is in use.
21226
21227         dup2: fix logic bugs
21228         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
21229         REPLACE_DUP2 to decide when rpl_dup2 is needed.
21230         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
21231         exists.
21232         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
21233
21234 2009-12-07  Eric Blake  <ebb9@byu.net>
21235
21236         unlink: fix m4 detection
21237         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
21238
21239         unistd-safer: add unit test
21240         * modules/unistd-safer-tests: New file.
21241         * tests/test-dup-safer.c: Likewise.
21242         * tests/test-cloexec.c (setmode): Avoid compiler warning.
21243         * tests/test-dup2.c (setmode): Likewise.
21244         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
21245
21246         cloexec: preserve text vs. binary across dup_cloexec
21247         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
21248         mode.
21249         * modules/dup2-tests (Depends-on): Add binary-io.
21250         * modules/cloexec-tests (Depends-on): Likewise.
21251         * tests/test-dup2.c (setmode, is_mode): New helpers.
21252         (main): Add tests that translation mode is preserved.
21253         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
21254         Reported by Bruno Haible.
21255
21256         mgetgroups: reduce duplicate listings
21257         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
21258         resulting array.
21259         * tests/test-chown.h (test_chown): Simplify client.
21260         * tests/test-lchown.h (test_lchown): Likewise.
21261
21262 2009-12-06  Bruno Haible  <bruno@clisp.org>
21263
21264         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
21265         value.
21266
21267 2009-12-06  Bruno Haible  <bruno@clisp.org>
21268
21269         * lib/progname.c: Include stdio.h, stdlib.h.
21270         (set_program_name): Reject a NULL argument.
21271
21272 2009-12-05  Eric Blake  <ebb9@byu.net>
21273
21274         pipe2-safer: new module
21275         * modules/pipe2-safer: New file.
21276         * lib/unistd-safer.h (pipe2_safer): New prototype.
21277         * lib/unistd--.h (pipe2): New wrapper.
21278         * lib/pipe-safer.c (pipe2_safer): New function.
21279         * modules/pipe (Depends-on): Add pipe2-safer.
21280         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
21281
21282         stdlib-safer: preserve cloexec flag for mkostemp[s]
21283         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
21284         fd_safer_flag.
21285
21286         unistd-safer: allow preservation of cloexec status via flag
21287         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
21288         prototypes.
21289         * lib/dup-safer.c (dup_safer_flag): New function.
21290         * lib/fd-safer.c (fd_safer_flag): Likewise.
21291         * modules/cloexec (configure.ac): Set witness.
21292
21293         test-dup2: enhance test
21294         * modules/dup2-tests (Depends-on): Add cloexec.
21295         * tests/test-dup2.c (main): Enhance test.
21296
21297         cloexec: add dup_cloexec
21298         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
21299         header and comments.
21300         * lib/cloexec.c (set_cloexec_flag): Add comments.
21301         (dup_cloexec): New function, with mingw implementation borrowed
21302         from...
21303         * lib/w32spawn.h (dup_noinherit): ...here.
21304         * modules/execute (Depends-on): Add cloexec.
21305         * modules/pipe (Depends-on): Likewise.
21306         * modules/cloexec (Depends-on): Add dup2.
21307         * modules/cloexec-tests (Files): New file.
21308         * tests/test-cloexec.c: Likewise.
21309
21310         test-xalloc-die: fix test for mingw
21311         * modules/xalloc-die-tests (Files): Add tests/init.sh.
21312         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
21313         directory and .exe suffix off argv[0] output.
21314
21315         test-fseeko: fix test for mingw
21316         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
21317         than undefining fseek, so test will pass on mingw.
21318
21319 2009-12-05  Bruno Haible  <bruno@clisp.org>
21320
21321         * lib/progname.h (set_program_name): Clarify specification.
21322         * lib/progname.c (set_program_name): Likewise.
21323         Reported by Jim Meyering.
21324
21325 2009-12-05  Jim Meyering  <meyering@redhat.com>
21326
21327         maint.mk: backslash-escape parens in default regexp
21328         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
21329         backslash-escape the literal parentheses.
21330
21331         maint.mk: news-date-check: use grep -E
21332         * top/maint.mk (today): Define a Make variable, not a...
21333         (news-date-check): ...shell variable.
21334         (news-date-regexp): Use the Make variable.
21335         Use grep's -E option.  Change the failing diagnostic to mention
21336         the variable, $(news-date-regexp).
21337
21338 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
21339
21340         maintainer-makefile: allow customization of NEWS entry format
21341         * top/maint.mk (news-date-regexp): New overridable variable.
21342         (news-date-check): Use it.
21343
21344 2009-12-04  Eric Blake  <ebb9@byu.net>
21345
21346         mgetgroups: add xgetgroups, and avoid ENOSYS failures
21347         * lib/mgetgroups.h (xgetgroups): New prototype.
21348         * lib/mgetgroups.c (xgetgroups): New wrapper.
21349         (mgetgroups): Handle ENOSYS.
21350         * modules/mgetgroups (Depends-on): Add realloc.
21351         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
21352
21353         mgetgroups: avoid argument promotion issues with -1
21354         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
21355         for invalid gid_t.
21356         * tests/test-chown.h (getegid, test_chown): Likewise.
21357         * tests/test-lchown.h (getegid, test_lchown): Likewise.
21358
21359 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
21360
21361         exclude: Fix header file problems.
21362         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
21363
21364 2009-12-01  Jim Meyering  <meyering@redhat.com>
21365
21366         fts: fts_open: do not let an empty string cause immediate failure
21367         This is required in support of GNU rm, for which the command
21368         "rm A '' B" must process and remove both A and B, in spite of
21369         the empty string argument.
21370         * lib/fts.c (fts_open): Do not let the presence of an empty string
21371         cause fts_open to fail immediately.  Most fts-using tools must be
21372         able to process all arguments, in order, and can be expected to
21373         diagnose such arguments themselves.
21374
21375 2009-11-30  Eric Blake  <ebb9@byu.net>
21376
21377         utimens: fix compilation error
21378         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
21379         Declare variable at right scope.
21380
21381 2009-11-29  Jim Meyering  <meyering@redhat.com>
21382
21383         bootstrap: handle perl-5.11's changed --version output
21384         * build-aux/bootstrap (get_version): Handle perl separately,
21385         since perl-5.11's --version output is different.
21386
21387 2009-11-28  Jim Meyering  <meyering@redhat.com>
21388
21389         userspec: depend on the inttostr module, too
21390         * modules/userspec (Depends-on): Add inttostr.
21391
21392         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
21393         * lib/userspec.c (parse_with_separator): Do not accept a user ID
21394         number of MAXUID when it evaluates to (uid_t) -1.
21395         Likewise for group ID.  Reported by Matt McCutchen in
21396         <http://savannah.gnu.org/bugs/?28113>
21397
21398         userspec: reformat to use spaces, not TABs
21399         * lib/userspec.c: Expand TABs to spaces.
21400         Add Emacs' "indent-tabs-mode: nil" hint.
21401
21402 2009-11-27  Eric Blake  <ebb9@byu.net>
21403
21404         getopt-gnu: flush out another BSD bug
21405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
21406         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
21407         flush out BSD bug.
21408         * tests/test-getopt.h (test_getopt): End lists with NULL.
21409         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21410         (test_getopt_long_posix): Enhance test.
21411         * modules/getopt-posix-tests (Depends-on): Add stdbool.
21412         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
21413         getopt-gnu.
21414         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21415         Likewise.
21416
21417 2009-11-27  Simon Josefsson  <simon@josefsson.org>
21418
21419         * modules/idpriv-droptemp-tests (Notice): Fix text.
21420
21421 2009-11-27  Jim Meyering  <meyering@redhat.com>
21422
21423         test-xalloc-die: avoid spurious failure due to libtool argv difference
21424         In a libtool-enabled project, this test would fail due to a difference
21425         in the emitted program name, e.g.,
21426         -test-xalloc-die: memory exhausted
21427         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
21428         Use program to avoid that.
21429         * modules/xalloc-die-tests (Depends-on): Add progname.
21430         * tests/test-xalloc-die.c: Include progname.h".
21431         (program_name): Remove decl.
21432         (main): Call set_program_name.
21433         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
21434
21435 2009-11-26  Richard Jones  <rjones@redhat.com>
21436
21437         w32sock: leave win32 error in place.
21438         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
21439
21440 2009-11-26  Eric Blake  <ebb9@byu.net>
21441
21442         init.sh: suggest to use skip_ and fail_ functions in comments
21443         * tests/init.sh: Add a sentence.
21444
21445 2009-11-25  Bruno Haible  <bruno@clisp.org>
21446
21447         init.sh: add documentation in comments
21448         * tests/init.sh: Add some developer and user documentation.
21449
21450 2009-11-26  Jim Meyering  <meyering@redhat.com>
21451
21452         init.sh: accommodate even those who specify bogus srcdir manually
21453         * tests/init.sh: Normally, srcdir is guaranteed by automake and
21454         configure-time tests to be sanitized, so that there is no need to
21455         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
21456         (with no double quotes) suffices.  However, since tests may be
21457         invoked manually, and since you may explicitly set srcdir to the
21458         name of a directory containing spaces, do quote its uses here.
21459         * tests/test-pread.sh: Likewise.
21460         Suggested by Bruno Haible.
21461
21462         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
21463         * tests/test-pread.sh: Write no data into the pipe, because
21464         test-pread actually reads none.  This avoids a diagnostic,
21465         "bash: echo: write error: Broken pipe", that arises in the unusual
21466         event something is ignoring SIGPIPE, and might be interpreted
21467         as some sort of failure.  Reported by Bruno Haible.
21468
21469 2009-11-25  Jim Meyering  <meyering@redhat.com>
21470
21471         test-pread: cover failure with ESPIPE and EINVAL
21472         * tests/test-pread.c (main): Test for failure, too.
21473         * tests/test-pread.sh: Invoke with stdin on a pipe.
21474         Suggested by Eric Blake.
21475
21476         pread: improvement and fix
21477         * modules/pread (Depends-on): Depend on lseek, for portability to
21478         e.g., mingw.  Suggested by Eric Blake.
21479         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
21480
21481         unistd.in.h: correct declaration of pread
21482         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
21483         Reported by Richard W.M. Jones.
21484
21485         test-pread.sh: distribute the test script
21486         * modules/pread-tests (Files): Include test-pread.sh.
21487
21488         test-pread.sh: clean up
21489         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
21490         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
21491         That is unnecessary, since it's always ".".
21492         Suggestion from Eric Blake.
21493
21494         test-pread.sh: make executable
21495         * tests/test-pread.sh: Set executable bit.
21496         Reported by Eric Blake.
21497
21498         correct typo in test-pread.sh
21499         * tests/test-pread.sh: Add #! line.
21500
21501         test pread
21502         * tests/test-pread.c: New file.
21503         * tests/test-pread.sh: Likewise.
21504         * modules/pread-tests: Likewise.
21505
21506         pread: new module
21507         * modules/pread: New file.
21508         * lib/unistd.in.h (pread): Define/declare.
21509         * lib/pread.c (pread): New file.
21510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
21511         * modules/unistd (Makefile.am): Substitute witnesses.
21512         * doc/posix-functions/pread.texi (pread): Update.
21513         * MODULES.html.sh: Add pread.
21514
21515 2009-11-25  Jim Meyering  <meyering@redhat.com>
21516
21517         tests/init.sh: new file to be used via most *.sh tests
21518         * tests/init.sh: New file.
21519
21520 2009-11-25  Eric Blake  <ebb9@byu.net>
21521
21522         utimens: work around older Linux failure with symlinks
21523         * lib/utimens.c (lutimensat_works_really): New variable.
21524         (fdutimens, lutimens): Use it to manage kernels that support
21525         nanosecond times on files, but not on symlinks.
21526         Reported by OndÅ™ej Vašík.
21527
21528         utimes: fix configure grammar
21529         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
21530
21531 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
21532
21533         regex: Fix fastmap for multibyte character ranges.
21534         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
21535         characters when a multibyte character range is included.
21536
21537 2009-11-22  Andy Wingo  <wingo@pobox.com>
21538
21539         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
21540         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
21541
21542 2009-11-24  Bruno Haible  <bruno@clisp.org>
21543
21544         doc: Most *_l functions exist in MacOS X 10.5.
21545         * doc/posix-functions/duplocale.texi: Update platforms list.
21546         * doc/posix-functions/freelocale.texi: Likewise.
21547         * doc/posix-functions/newlocale.texi: Likewise.
21548         * doc/posix-functions/uselocale.texi: Likewise.
21549         * doc/posix-functions/isalnum_l.texi: Likewise.
21550         * doc/posix-functions/isalpha_l.texi: Likewise.
21551         * doc/posix-functions/isblank_l.texi: Likewise.
21552         * doc/posix-functions/iscntrl_l.texi: Likewise.
21553         * doc/posix-functions/isdigit_l.texi: Likewise.
21554         * doc/posix-functions/isgraph_l.texi: Likewise.
21555         * doc/posix-functions/islower_l.texi: Likewise.
21556         * doc/posix-functions/isprint_l.texi: Likewise.
21557         * doc/posix-functions/ispunct_l.texi: Likewise.
21558         * doc/posix-functions/isspace_l.texi: Likewise.
21559         * doc/posix-functions/isupper_l.texi: Likewise.
21560         * doc/posix-functions/iswalnum_l.texi: Likewise.
21561         * doc/posix-functions/iswalpha_l.texi: Likewise.
21562         * doc/posix-functions/iswblank_l.texi: Likewise.
21563         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21564         * doc/posix-functions/iswctype_l.texi: Likewise.
21565         * doc/posix-functions/iswdigit_l.texi: Likewise.
21566         * doc/posix-functions/iswgraph_l.texi: Likewise.
21567         * doc/posix-functions/iswlower_l.texi: Likewise.
21568         * doc/posix-functions/iswprint_l.texi: Likewise.
21569         * doc/posix-functions/iswpunct_l.texi: Likewise.
21570         * doc/posix-functions/iswspace_l.texi: Likewise.
21571         * doc/posix-functions/iswupper_l.texi: Likewise.
21572         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21573         * doc/posix-functions/isxdigit_l.texi: Likewise.
21574         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21575         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21576         * doc/posix-functions/strcoll_l.texi: Likewise.
21577         * doc/posix-functions/strfmon_l.texi: Likewise.
21578         * doc/posix-functions/strftime_l.texi: Likewise.
21579         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21580         * doc/posix-functions/strxfrm_l.texi: Likewise.
21581         * doc/posix-functions/tolower_l.texi: Likewise.
21582         * doc/posix-functions/toupper_l.texi: Likewise.
21583         * doc/posix-functions/towctrans_l.texi: Likewise.
21584         * doc/posix-functions/towlower_l.texi: Likewise.
21585         * doc/posix-functions/towupper_l.texi: Likewise.
21586         * doc/posix-functions/wcscoll_l.texi: Likewise.
21587         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21588         * doc/posix-functions/wctrans_l.texi: Likewise.
21589         * doc/posix-functions/wctype_l.texi: Likewise.
21590         * doc/glibc-functions/strptime_l.texi: Likewise.
21591         * doc/glibc-functions/strtod_l.texi: Likewise.
21592         * doc/glibc-functions/strtof_l.texi: Likewise.
21593         * doc/glibc-functions/strtol_l.texi: Likewise.
21594         * doc/glibc-functions/strtold_l.texi: Likewise.
21595         * doc/glibc-functions/strtoll_l.texi: Likewise.
21596         * doc/glibc-functions/strtoul_l.texi: Likewise.
21597         * doc/glibc-functions/strtoull_l.texi: Likewise.
21598         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21599         * doc/glibc-functions/wcstod_l.texi: Likewise.
21600         * doc/glibc-functions/wcstof_l.texi: Likewise.
21601         * doc/glibc-functions/wcstol_l.texi: Likewise.
21602         * doc/glibc-functions/wcstold_l.texi: Likewise.
21603         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21604         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21605         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21606
21607 2009-11-24  Bruno Haible  <bruno@clisp.org>
21608
21609         duplocale: Fix logic bug.
21610         * lib/duplocale.c: Don't include <langinfo.h>.
21611         (_NL_LOCALE_NAME): Remove macro.
21612         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21613         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21614
21615 2009-11-23  Jim Meyering  <meyering@redhat.com>
21616
21617         test-update-copyright: don't hard-code /usr/bin/perl
21618         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21619         perl to print the current year.  Gilles Espinasse reported that
21620         the replaced use of perl was hard-coded as /usr/bin/perl.
21621
21622 2009-11-23  Bruno Haible  <bruno@clisp.org>
21623
21624         duplocale: Add support for glibc 2.3.x.
21625         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21626
21627 2009-11-22  Bruno Haible  <bruno@clisp.org>
21628
21629         vasnprintf: Tiny optimization.
21630         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21631         MacOS X.
21632
21633 2009-11-22  Bruno Haible  <bruno@clisp.org>
21634
21635         Tests for module 'duplocale'.
21636         * modules/duplocale-tests: New file.
21637         * tests/test-duplocale.c: New file.
21638
21639         New module 'duplocale'.
21640         * m4/duplocale.m4: New file.
21641         * lib/locale.in.h (duplocale): New declaration.
21642         * lib/duplocale.c: New file.
21643         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21644         gl_LOCALE_H_DEFAULTS): New macros.
21645         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21646         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21647         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21648         REPLACE_DUPLOCALE.
21649         * modules/duplocale: New file.
21650         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21651
21652 2009-11-22  Bruno Haible  <bruno@clisp.org>
21653
21654         * modules/locale-tests (configure.ac): Test for newlocale function.
21655         * tests/test-locale.c: When the system has extended locale functions,
21656         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21657
21658         locale: Make locale_t available when possible.
21659         * lib/locale.in.h: Include <xlocale.h> when it exists.
21660         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21661         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21662         * modules/locale (Depends-on): Add extensions.
21663         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21664         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21665
21666 2009-11-22  Bruno Haible  <bruno@clisp.org>
21667
21668         Add comments.
21669         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21670         invocation.
21671         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21672         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21673         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21674
21675 2009-11-22  Bruno Haible  <bruno@clisp.org>
21676
21677         error: account for the possibility of freopen (stdout).
21678         * lib/error.c: Include <unistd.h>.
21679         (flush_stdout): New function, extracted from error and error_at_line.
21680         Determine stdout's fd dynamically.
21681         (error, error_at_line): Invoke flush_stdout.
21682         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21683         * modules/error (Depends-on): Add unistd.
21684
21685 2009-11-22  Bruno Haible  <bruno@clisp.org>
21686
21687         diffseq: Add comment.
21688         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21689
21690 2009-11-22  Jim Meyering  <meyering@redhat.com>
21691
21692         c-stack: avoid defining an unused static function
21693         * lib/c-stack.c (find_stack_direction): Do not define this function
21694         when it will not be used.
21695
21696         diffseq: avoid spurious gcc warnings
21697         * lib/diffseq.h (IF_LINT2): Define.
21698         (compareseq): Use it to initialize two members of "part".
21699         This avoids two used-uninitialized warnings.
21700
21701 2009-11-21  Jim Meyering  <meyering@redhat.com>
21702
21703         c-stack: avoid "ignoring return value of `write'" warning
21704         * lib/c-stack.c: Include "ignore-value.h".
21705         (die): Explicitly ignore each write return value.
21706         * modules/c-stack (Depends-on): Add ignore-value.
21707
21708 2009-11-21  Bruno Haible  <bruno@clisp.org>
21709
21710         diffseq: reduce scope of variable 'best'.
21711         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21712         variable, earlier used for two different purposes.
21713
21714 2009-11-21  Jim Meyering  <meyering@redhat.com>
21715
21716         diffseq: remove useless assignment to "best"
21717         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21718         assignment.  At that point "best" is already guaranteed to be zero.
21719
21720 2009-11-20  Eric Blake  <ebb9@byu.net>
21721
21722         build: mention ftp redirector in release announcements
21723         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21724         values that used to come from cfg.mk; mention FTP redirect URL.
21725         * build-aux/announce-gen: Mention the mirror list.
21726         Suggested by Karl Berry.
21727
21728         nanosleep: improve port to mingw
21729         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21731         LIB_NANOSLEEP, but only when needed.
21732         * modules/select (Link): Document LIBSOCKET.
21733         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21734         enough.
21735
21736         nanosleep: work around cygwin bug
21737         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21738         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21739         bug.
21740         (getnow): Delete, not needed.
21741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21742         LIB_CLOCK_GETTIME.
21743         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21744         clock-time, gettime.
21745         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21746         bug.
21747         * modules/nanosleep-tests: New test.
21748         * tests/test-nanosleep.c: New file.
21749
21750         sleep: work around cygwin bug
21751         * lib/sleep.c (rpl_sleep): Work around the bug.
21752         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21753         (gl_PREREQ_SLEEP): Delete unused macro.
21754         * modules/sleep (Depends-on): Add verify.
21755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21756         * modules/unistd (Makefile.am): Substitute witness.
21757         * lib/unistd.in.h (sleep): Update prototype.
21758         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21759         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21760         * modules/sleep-tests (Depends-on): Check for alarm.
21761
21762 2009-11-20  Jim Meyering  <meyering@redhat.com>
21763
21764         maint.mk: improve sc_prohibit_magic_number_exit
21765         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21766         so it does not match uses like System.exit(1).
21767         Add comments showing how to correct all offenders.
21768
21769 2009-11-19  Eric Blake  <ebb9@byu.net>
21770
21771         xalloc-die-tests: add missing library
21772         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21773
21774         test-xvasprintf: silence compiler warnings
21775         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21776         empty string from gcc.
21777
21778 2009-11-19  Jim Meyering  <meyering@redhat.com>
21779
21780         xfreopen: new module, from coreutils
21781         * modules/xfreopen: New module.
21782         * lib/xfreopen.c: New file.
21783         * lib/xfreopen.h: New file.
21784         * MODULES.html.sh (File stream based Input/Output"): Add it.
21785
21786 2009-11-19  Eric Blake  <ebb9@byu.net>
21787
21788         manywarnings: depend on warnings
21789         * modules/manywarnings (Depends-on): Add warnings.
21790
21791         build: avoid compiler warnings
21792         * lib/select.c (rpl_select): Delete unused variable.
21793         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21794
21795 2009-11-18  Eric Blake  <ebb9@byu.net>
21796
21797         tests: avoid false negative with --with-packager
21798         * tests/test-version-etc.sh: Discard packager information.
21799         * tests/test-argp-version-etc-1.sh: Likewise.
21800         Reported by Mike Frysinger.
21801
21802         utimens: fix regression on Solaris
21803         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21804         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21805         can only change fd timestamps via futimesat.  Instead, use an
21806         additional witness macro to avoid BSD bug.
21807         Reported by Jim Meyering.
21808
21809 2009-11-17  Eric Blake  <ebb9@byu.net>
21810
21811         usleep: use it to simplify tests
21812         * modules/stat-time-tests (Depends-on): Add usleep.
21813         (configure.ac): Drop usleep check.
21814         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21815         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21816         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21817         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21818         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21819         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21820         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21821         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21822         Likewise.
21823         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21824         * tests/test-lchown.h (nap): Likewise.
21825         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21826         * tests/test-stat-time.c (nap): Likewise.
21827         * tests/test-utimens-common.h (nap): Update comments.
21828
21829         usleep: new module
21830         * modules/usleep: New file.
21831         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21832         * lib/usleep.c (usleep): Likewise.
21833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21834         * modules/unistd (Makefile.am): Substitute witnesses.
21835         * lib/unistd.in.h (usleep): Add declaration.
21836         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21837         * MODULES.html.sh (Date and time): Likewise.
21838         * modules/usleep-tests (Depends-on): New test.
21839         * tests/test-usleep.c: New file.
21840
21841         chown: work around OpenBSD bug
21842         * lib/chown.c (rpl_chown): Work around the bug.
21843         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21844         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21845         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21846         * modules/chown (Depends-on): Add stdbool.
21847         * modules/lchown (Depends-on): Likewise.
21848         * doc/posix-functions/chown.texi (chown): Document the bug.
21849         * doc/posix-functions/lchown.texi (lchown): Likewise.
21850         * tests/test-lchown.h (test_chown): Relax test.
21851
21852         mkstemp: avoid conflict with C++ keyword template
21853         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21854         * lib/mkostemp.c (mkostemp): Likewise.
21855         * lib/mkostemps.c (mkostemps): Likewise.
21856         * lib/mkstemp.c (mkstemp): Likewise.
21857         * lib/mkstemps.c (mkstemps): Likewise.
21858
21859         xalloc-die-tests: optimize
21860         * tests/test-xalloc-die.sh: Reduce number of processes.
21861
21862 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21863
21864         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21865         patch from ludo@gnu.org (Ludovic Courtès).
21866
21867 2009-11-17  Jim Meyering  <meyering@redhat.com>
21868
21869         version-etc: use proper license string
21870         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21871         * modules/version-etc-fsf: Likewise.
21872
21873 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21874
21875         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21876         printed to stdout.  Deal with EOL differences.
21877
21878 2009-11-17  Eric Blake  <ebb9@byu.net>
21879
21880         unsetenv: work around Solaris bug
21881         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21882         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21883         Reported by Jim Meyering.
21884
21885         vasnprintf: avoid compiler warnings
21886         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21887         variables.
21888         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21889
21890 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21891
21892         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21893         settings since xalloc-die is no longer the self test,
21894         xalloc-die.sh is.
21895
21896 2009-11-17  Jim Meyering  <meyering@redhat.com>
21897
21898         test-xalloc-die.sh: make the code agree with the commit log
21899         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21900         at the end, just in case you happen to have a test-xalloc-die
21901         program in some other PATH directory.
21902
21903         test-xalloc-die.sh: fix a portability bug
21904         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21905         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21906         Otherwise, argv[0] (as often seen in diagnostics) would be too
21907         system-dependent, sometimes with, and sometimes without the leading "./".
21908
21909         version-etc-fsf: relax license to LGPLv3+
21910         * modules/version-etc-fsf (License): Relax license.
21911
21912 2009-11-16  Eric Blake  <ebb9@byu.net>
21913
21914         xalloc-die-tests: avoid printing null pointer
21915         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21916         shell script.
21917         * tests/test-xalloc-die.c (program_name): Declare.
21918         * tests/test-xalloc-die.sh (tmpfiles): New file.
21919
21920         setenv, unsetenv: work around various bugs
21921         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21922         (setenv) [HAVE_SETENV]: Work around bugs.
21923         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21924         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21925         for bugs.
21926         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21927         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21929         * modules/stdlib (Makefile.am): Update substitutions.
21930         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21931         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21932         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21933         * modules/setenv-tests: New test.
21934         * modules/unsetenv-tests: Likewise.
21935         * tests/test-setenv.c: New file.
21936         * tests/test-unsetenv.c: Likewise.
21937
21938 2009-11-16  Jim Meyering  <meyering@redhat.com>
21939
21940         version-etc: relax license to LGPLv3+
21941         * modules/version-etc (License): Relax license.
21942
21943         better AC_REQUIRE expanded-before-required-warning avoidance
21944         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21945         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21946         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21947         which is no longer needed.
21948
21949 2009-11-16  Eric Blake  <ebb9@byu.net>
21950
21951         test-freading: clean up temporary file
21952         * tests/test-freading.c (main): Remove file on success, and use
21953         ASSERT more liberally.
21954         Reported by Jim Meyering.
21955
21956 2009-11-16  Jim Meyering  <meyering@redhat.com>
21957
21958         avoid new AC_REQUIRE expanded-before-required warnings
21959         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21960         merely using it.
21961         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21962         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21963
21964 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21965
21966         * tests/test-xalloc-die.c: New file.
21967         * modules/xalloc-die-tests: New file.
21968         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21969         XFAIL_TESTS so it can be appended by modules.
21970
21971 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21972
21973         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21974         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21975
21976 2009-11-14  Eric Blake  <ebb9@byu.net>
21977
21978         fnmatch: avoid compiler warning
21979         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21980         to silence compiler warning about mismatch signedness in ?:.
21981         Reported by Robert Millan.
21982
21983         intprops: add double-inclusion guard
21984         * lib/intprops.h: Allow idempotent includes.
21985         Suggested by Bruce Korb.
21986
21987         openat: detect Solaris fchownat bug
21988         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21989         penalizing glibc chownat when only lchownat is broken.
21990         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21991         trailing slash bugs.
21992         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21993         * modules/openat-tests (Files): Include more files.
21994         (Depends-on): Add mgetgroups, sleep, stat-time.
21995         (configure.ac): Add additional checks.
21996         (Makefile.am): Build new test.
21997         * tests/test-fchownat.c: New file.
21998
21999         lchown: detect Solaris and FreeBSD bug
22000         * lib/lchown.c (rpl_lchown): Work around bug.
22001         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22003         * modules/unistd (Makefile.am): Populate it.
22004         * lib/unistd.in.h (lchown): Update declaration.
22005         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22006         * modules/lchown-tests: New file.
22007         * tests/test-lchown.h (test_lchown): Likewise.
22008         * tests/test-lchown.c (main): Likewise.
22009
22010         chown: detect Solaris and FreeBSD bug
22011         * lib/chown.c (rpl_chown): Work around bug.
22012         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22013         (gl_PREREQ_CHOWN): Delete.
22014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22015         * modules/unistd (Makefile.am): Populate it.
22016         * lib/unistd.in.h (chown): Update declaration.
22017         * lib/lchown.c (chown): Update client.
22018         * modules/lchown (Depends-on): Add lstat.
22019         * doc/posix-functions/chown.texi (chown): Document the bug.
22020         * doc/posix-functions/getgroups.texi (getgroups): Document
22021         getgroups pitfall.
22022         * modules/chown-tests: New file.
22023         * tests/test-chown.h (test_chown): Likewise.
22024         * tests/test-chown.c (main): Likewise.
22025
22026 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22027
22028         gnulib-tool: correctly detect absence of m4 directories
22029         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22030
22031 2009-11-14  Jim Meyering  <meyering@redhat.com>
22032
22033         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22034         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22035
22036 2009-11-14  John W. Eaton  <jwe@gnu.org>
22037
22038         strftime.h: wrap funtion declaration in extern "C" block
22039         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22040
22041 2009-11-13  Eric Blake  <ebb9@byu.net>
22042
22043         getgroups: avoid compiler warning
22044         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22045
22046         getgroups: work around FreeBSD bug
22047         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22048         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22049         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22050         * tests/test-getgroups.c (main): Fix buffer overrun.
22051
22052         getgroups: avoid compilation failure
22053         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22054         * modules/getgroups (Depends-on): Add stdint.
22055
22056 2009-11-13  Jim Meyering  <meyering@redhat.com>
22057
22058         test-getgroups: avoid compilation failure
22059         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22060
22061 2009-11-13  Eric Blake  <ebb9@byu.net>
22062
22063         mgetgroups: new module, taken from coreutils
22064         * modules/mgetgroups: New file.
22065         * lib/mgetgroups.h: Likewise.
22066         * lib/mgetgroups.c (mgetgroups): Likewise.
22067         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22068         * MODULES.html.sh (Users and groups): Mention it.
22069
22070         getgroups: don't expose GETGROUPS_T to user
22071         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22072         an element at a time if GETGROUPS_T is wrong size.
22073         * lib/getugroups.h (getugroups): Change signature.
22074         * lib/unistd.in.h (getgroups): Likewise.
22075         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22076         signature needs fixing.
22077         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22078         AC_TYPE_GETGROUPS.
22079         * modules/group-member (Depends-on): Add getgroups.
22080         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22081         (group_member): Rely on getgroups replacement.
22082         * lib/getugroups.c (getugroups): Use gid_t.
22083         * tests/test-getgroups.c (main): Likewise.
22084         * NEWS: Mention the signature change.
22085         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22086         problem with signature.
22087         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22088         GETGROUPS_T is still useful for setgroups.
22089
22090         getgroups, getugroups: provide stubs for mingw
22091         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22092         * lib/getugroups.c (getugroups): Likewise.
22093         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22094         function.  Modernize replacement scheme.
22095         (gl_PREREQ_GETGROUPS): Delete.
22096         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22097         * modules/getgroups (configure.ac): Declare witness.
22098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22099         * modules/unistd (Depends-on): Substitute witness.
22100         * lib/unistd.in.h (getgroups): Declare replacement.
22101
22102         getgroups: avoid calling exit
22103         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22104         drop xalloc.
22105         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22106         dependencies.
22107         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22108         exiting, in the rare case of malloc failure.
22109
22110         getgroups: fix logic error
22111         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22112         has more than 20 groups.
22113         * modules/getgroups-tests: New test.
22114         * tests/test-getgroups.c: New file.
22115
22116 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22117
22118         * tests/test-base64.c: Improve.
22119
22120 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22121
22122         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22123         Blake <ebb9@byu.net>.
22124
22125 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22126
22127         * tests/test-xvasprintf.c: Add %s%s related checks.
22128
22129 2009-11-12  Eric Blake  <ebb9@byu.net>
22130
22131         version-etc: match standards.texi style
22132         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22133         and use <> only for URLs.
22134
22135 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22136
22137         fts: do not fail on a submount during traversal
22138         * lib/fts.c (fts_build): Read the stat info again after opening
22139         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22140         Original report at http://bugzilla.redhat.com/501848.
22141
22142 2009-11-12  Jim Meyering  <meyering@redhat.com>
22143
22144         bootstrap: sync from coreutils
22145         * build-aux/bootstrap (bootstrap_epilogue): New function.
22146         Use git_modules_config in one more place.  This make bootstrap's
22147         --gnulib-srcdir option more useful for testing.
22148
22149         bootstrap: generalize autoheader check
22150         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22151         AC_CONFIG_HEADERS.
22152
22153 2009-11-11  Eric Blake  <ebb9@byu.net>
22154
22155         mkfifoat: use new modules for Solaris and BSD bugs
22156         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22157         * lib/mkfifoat.c (mknodat): Split...
22158         * lib/mknodat.c (mknodat): ...into new file.
22159         * modules/mkfifoat (Files): Ship new file.
22160         (Depends-on): Add mkfifo, mknod.
22161         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22162         (Depends-on): Add symlink.
22163         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22164         redundant with test_mkfifo.h.
22165         (do_mkfifoat, do_mknodat): New helpers.
22166
22167         mknod: new module
22168         * modules/mknod: New file.
22169         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22170         * lib/mknod.c (mknod): Likewise.
22171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22172         defaults.
22173         * modules/sys_stat (Makefile.am): Substitute them.
22174         * lib/sys_stat.in.h (mknod): Declare replacement.
22175         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22176         Document it.
22177         * doc/posix-functions/mknod.texi (mknod): Likewise.
22178         * modules/mknod-tests: New test.
22179         * tests/test-mknod.c: Likewise.
22180
22181         mkfifo: new module
22182         * modules/mkfifo: New file.
22183         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22184         * lib/mkfifo.c (mkfifo): Likewise.
22185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22186         defaults.
22187         * modules/sys_stat (Makefile.am): Substitute them.
22188         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22189         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22190         Document it.
22191         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22192         * modules/mkfifo-tests: New test.
22193         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22194         from test-mkfifoat.c.
22195         * tests/test-mkfifo.c: New file.
22196
22197         readlink: detect FreeBSD bug
22198         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22199         slash on symlink.
22200         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22201         * tests/test-readlink.h (test_readlink): Enhance test.
22202
22203         symlink: detect FreeBSD bug
22204         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22205         slash on symlink.
22206         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22207         * tests/test-symlink.h (test_symlink): Enhance test.
22208
22209 2009-11-10  Eric Blake  <ebb9@byu.net>
22210
22211         link: detect FreeBSD bug
22212         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22213         symlink.
22214         * doc/posix-functions/link.texi (link): Document the bug.
22215         * tests/test-link.h (test_link): Enhance test.
22216         * tests/test-linkat.c (main): Update caller.
22217
22218         unlink, remove: detect FreeBSD bug
22219         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22220         slash on symlink.
22221         * doc/posix-functions/unlink.texi (unlink): Document the bug.
22222         * doc/posix-functions/remove.texi (remove): Likewise.
22223         * tests/test-unlink.h (test_unlink): Enhance test.
22224         * tests/test-remove.c (main): Likewise.
22225
22226 2009-11-09  Eric Blake  <ebb9@byu.net>
22227
22228         rename: detect FreeBSD bug
22229         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
22230         slash on symlink.
22231         * modules/renameat-tests (Depends-on): Add filenamecat.
22232         * tests/test-rename.h (test_rename): Allow one more errno.
22233         * tests/test-renameat.c (main): Likewise.
22234         * doc/posix-functions/rename.texi (rename): Document the bug.
22235
22236         open: detect FreeBSD bug
22237         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
22238         symlink.
22239         * doc/posix-functions/open.texi (open): Document the bug.
22240         * doc/posix-functions/utimes.texi (utimes): Likewise.
22241         * tests/test-open.h (test_open): Add parameters, and test symlink
22242         handling.
22243         * tests/test-open.c (main): Adjust caller.
22244         * tests/test-fcntl-safer.c (main): Likewise.
22245         * modules/open-tests (Depends-on): Add stdbool, symlink.
22246         * modules/fcntl-safer-tests (Depends-on): Likewise.
22247         * tests/test-openat.c (main): Add test-open tests.
22248
22249         stat: detect FreeBSD bug
22250         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
22251         symlink.
22252         * doc/posix-functions/stat.texi (stat): Document the bug.
22253         * tests/test-stat.h (test_stat_func): Add argument.
22254         * tests/test-stat.c (main): Adjust caller.
22255         * tests/test-fstatat.c (main): Likewise.
22256         * modules/stat-tests (Depends-on): Add stdbool, symlink.
22257         Reported by Jim Meyering.
22258
22259 2009-11-09  James Youngman  <jay@gnu.org>
22260
22261         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
22262         * lib/strftime.c: Correct placement of #include "ignore-value.h".
22263
22264 2009-11-08  Jim Meyering  <meyering@redhat.com>
22265
22266         utimens: remove invalid futimesat call
22267         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
22268         It used the file descriptor of the target file as the DIR_FD
22269         parameter and NULL as the file name.  That caused failure with
22270         errno == EFAULT on FreeBSD-8.0-rc2
22271
22272 2009-11-07  Eric Blake  <ebb9@byu.net>
22273
22274         fflush, freadseek: use fseeko, not fseek
22275         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
22276         (clear_ungetc_buffer): Avoid potential problems on large files.
22277         * lib/freadseek.c (freadseek): Likewise.
22278         * modules/freadseek (Depends-on): Add fseeko.
22279         * modules/fseek (configure.ac): Set a witness.
22280         * tests/test-fflush.c (main): Use fseeko.
22281         * tests/test-fpurge.c (fseek): Disable link warning.
22282         * tests/test-freadable.c (fseek): Likewise.
22283         * tests/test-freading.c (fseek): Likewise.
22284         * tests/test-fseeko.c (fseek): Likewise.
22285         * tests/test-ftell.c (fseek): Likewise.
22286         * tests/test-ftello.c (fseek): Likewise.
22287         * tests/test-fwritable.c (fseek): Likewise.
22288         * tests/test-fwriting.c (fseek): Likewise.
22289
22290 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22291
22292         * modules/memchr (Depends-on): Drop getpagesize dependency.
22293
22294 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22295
22296         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
22297         Reported by Ludovic Courtès.
22298         * build-aux/pmccabe2html: Improve example usage.
22299         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
22300
22301 2009-11-06  Jim Meyering  <meyering@redhat.com>
22302
22303         do-release-commit-and-tag: New module.
22304         Automate the release-commit and tag process.
22305         * build-aux/do-release-commit-and-tag: New script, from coreutils.
22306         * modules/do-release-commit-and-tag: New file.
22307         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22308
22309 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22310
22311         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
22312         because test-select.c uses inet_pton.
22313
22314 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22315
22316         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
22317         GETADDRINFO_LIB.  Bump serial number.
22318         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
22319         Suggested by Eric Blake <ebb9@byu.net>.
22320
22321 2009-11-05  Eric Blake  <ebb9@byu.net>
22322
22323         strtod: detect darwin bug
22324         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
22325         Reported by Leo Davis.
22326
22327         freopen-safer: new module
22328         * modules/freopen-safer: New module.
22329         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
22330         * lib/freopen-safer.c (freopen_safer): New file.
22331         * lib/stdio-safer.h (freopen_safer): New declaration.
22332         * lib/stdio--.h (freopen): New override.
22333         * MODULES.html.sh (File stream based Input/Output): Mention it.
22334         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
22335         freopen-safer module.
22336         * doc/posix-functions/stderr.texi (stderr): Likewise.
22337         * doc/posix-functions/stdin.texi (stdin): Likewise.
22338         * doc/posix-functions/stdout.texi (stdout): Likewise.
22339         * modules/freopen-safer-tests: New test.
22340         * tests/test-reopen-safer.c: New file.
22341
22342 2009-11-05  Jim Meyering  <meyering@redhat.com>
22343
22344         maint.mk: Prohibit inclusion of "close-stream.h" without use.
22345         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22346
22347 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22348
22349         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
22350
22351 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22352
22353         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
22354
22355 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22356
22357         Fix link error.
22358         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22359         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22360
22361 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22362
22363         * tests/test-func.c: Also test value of __func__.
22364
22365 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22366
22367         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
22368         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
22369
22370 2009-11-05  Bruno Haible  <bruno@clisp.org>
22371
22372         Fix link error.
22373         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22374         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22375         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
22376
22377 2009-11-05  Bruno Haible  <bruno@clisp.org>
22378
22379         Tests for module 'inet_pton'.
22380         * modules/inet_pton-tests: New file.
22381         * tests/test-inet_pton.c: New file.
22382
22383 2009-11-05  Bruno Haible  <bruno@clisp.org>
22384
22385         Tests for module 'inet_ntop'.
22386         * modules/inet_ntop-tests: New file.
22387         * tests/test-inet_ntop.c: New file.
22388
22389 2009-11-04  Eric Blake  <ebb9@byu.net>
22390
22391         stdlib-safer: wrap all mkstemp variants
22392         * modules/mkostemp (configure.ac): Set witness.
22393         * modules/mkostemps (configure.ac): Likewise.
22394         * modules/mkstemps (configure.ac): Likewise.
22395         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
22396         (mkstemps_safer): Wrap more functions.
22397         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
22398         wrapping.
22399         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
22400         (mkstemps_safer): Implement the wrappers.
22401
22402         mkstemps, mkostemps: new modules
22403         * modules/mkostemps: New module.
22404         * modules/mkstemps: Likewise.
22405         * lib/mkostemps.c (mkostemps): New file.
22406         * lib/mkstemps.c (mkstemps): Likewise.
22407         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
22408         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
22409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
22410         * modules/stdlib (Makefile.am): Substitute them.
22411         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
22412         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
22413         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22414         * doc/gnulib.texi (Glibc stdlib.h): Include them.
22415         * MODULES.html.sh (File system functions): Mention them.
22416
22417         tempname: resync from glibc
22418         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
22419         same values for __GT_FILE as glibc.  Abort even when assertions
22420         are disabled.
22421         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
22422         match its value otherwise.  Allow idempotent inclusion.
22423         * lib/mkdtemp.c (mkdtemp): Adjust caller.
22424         * lib/mkostemp.c (mkostemp): Likewise.
22425         * lib/mkstemp.c (mkstemp): Likewise.
22426         * lib/tmpfile.c (tmpfile): Likewise.
22427         * NEWS: Document this.
22428
22429         utimens: fix use of futimens on older Linux
22430         * lib/utimens.c (fdutimens): Use updated, rather than original,
22431         timespec to avoid bug in older Linux kernel.
22432         Reported by Simon Josefsson.
22433
22434 2009-11-04  Bruno Haible  <bruno@clisp.org>
22435
22436         Make num_processors more flexible and consistent.
22437         * lib/nproc.h (enum nproc_query): New type.
22438         (num_processors): Add a 'query' argument.
22439         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
22440         (num_processors): Add a 'query' argument. Test the value of the
22441         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
22442         mingw, count the number of CPUs available for the current process.
22443         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
22444         Check for sched_getaffinity and sched_getaffinity_np.
22445         * modules/nproc (Depends-on): Add c-ctype, extensions.
22446         * NEWS: Mention the change.
22447
22448 2009-11-03  Bruno Haible  <bruno@clisp.org>
22449
22450         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
22451
22452 2009-11-03  Jim Meyering  <meyering@redhat.com>
22453
22454         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
22455         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
22456         if it is defined.
22457
22458 2009-11-02  Eric Blake  <ebb9@byu.net>
22459
22460         mktime, timegm: share common declaration
22461         * lib/mktime-internal.h: New file.
22462         * lib/mktime.c: Use it rather than open-coding a declaration.
22463         * lib/timegm.c: Likewise.
22464         * modules/mktime (Files): Ship it.
22465         * modules/timegm (Files): Likewise.
22466         Suggested by Bruno Haible.
22467
22468         test-update-copyright: update test to match script changes
22469         * tests/test-update-copyright.sh: Avoid hard-coding perl
22470         location.  Don't update *.bak created by earlier runs.
22471
22472 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22473             Simon Josefsson  <simon@josefsson.org>
22474             Bruno Haible  <bruno@clisp.org>
22475
22476         Fix link error on Solaris 8.
22477         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
22478         also in libnsl. Define also INET_PTON_LIB.
22479         * modules/inet_pton (Link): New section.
22480
22481 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22482             Bruno Haible  <bruno@clisp.org>
22483
22484         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
22485         * modules/inet_ntop (Link): New section.
22486         Reported by Boyan Kasarov <bkasarov@gmail.com>.
22487
22488 2009-11-02  Eric Blake  <ebb9@byu.net>
22489
22490         maint: avoid compiler warnings in m4 macros
22491         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
22492         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
22493
22494 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22495
22496         * m4/pmccabe2html.m4: Remove file.
22497         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
22498         function.  Change maintainer.
22499         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
22500         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
22501         Courtès).
22502
22503 2009-10-31  Eric Blake  <ebb9@byu.net>
22504
22505         fseeko: fix m4 regression
22506         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
22507         regression from 2009-10-27.
22508         Reported by Ralf Wildenhues.
22509
22510 2009-10-31  Jim Meyering  <meyering@redhat.com>
22511
22512         inttostr: aesthetics and improved (compile-time) safety
22513         Define inttype_is_signed rather than inttype_is_unsigned,
22514         since the sole use is via "#if inttype_is_signed".
22515         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
22516         inttype_is_unsigned.
22517         * lib/offtostr.c (inttype_is_signed): Likewise.
22518         * lib/uinttostr.c (inttype_is_signed): Likewise.
22519         * lib/umaxtostr.c (inttype_is_signed): Likewise.
22520         * lib/inttostr.c (inttostr): Use verify to cross-check the
22521         inttype_is_signed value and the signedness of the actual type.
22522         * modules/inttostr (Depends-on): Add verify.
22523
22524 2009-10-30  Eric Blake  <ebb9@byu.net>
22525
22526         build: avoid compiler warnings
22527         * lib/fchmodat.c (lchmod): Mark unused variables.
22528         * lib/getopt.c (_getopt_initialize): Likewise.
22529         * lib/mktime.c (__mktime_internal): Provide prototype.
22530         * lib/inttostr.c (inttostr): Avoid compiler warning even with
22531         older gcc that do not understand #pragma GCC diagnostic.
22532         * lib/uinttostr.c (inttype_is_unsigned): Define.
22533         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
22534
22535 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22536
22537         stat: fix compilation on AIX
22538         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
22539         only see struct stat64.
22540
22541 2009-10-30  Eric Blake  <ebb9@byu.net>
22542
22543         exclude: make more robust
22544         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
22545         rather than masking a coding bug.
22546         Suggested by Bruno Haible.
22547
22548 2009-10-30  Jim Meyering  <meyering@redhat.com>
22549
22550         perl scripts: remove #!/usr/bin/perl in favor of more portable...
22551         Rather than putting #!/usr/bin/perl on the first line,
22552         start with a variant of what's recommended by "man perlrun" that
22553         invokes the first "perl" program from your shell's search path.
22554         * build-aux/gitlog-to-changelog: Replace #!... as above.
22555         Add a "Local Variables" perl mode setting.
22556         Prompted by a patch from Ludovic Courtès.
22557         Improved by Eric Blake.
22558         * build-aux/useless-if-before-free: Likewise.
22559         * build-aux/announce-gen: Likewise.
22560         * build-aux/update-copyright: Likewise.
22561
22562 2009-10-29  Eric Blake  <ebb9@byu.net>
22563
22564         filenamecat-lgpl: adjust clients
22565         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22566         filenamecat.
22567         * modules/renameat (Depends-on): Likewise.
22568
22569         filenamecat: split into filenamecat-lgpl
22570         * modules/filenamecat-lgpl: New module.
22571         * modules/filenamecat (Files): Move library-safe files into
22572         filenamecat-lgpl.
22573         (Depends-on): Add filenamecat-lgpl.
22574         (configure.ac): Declare witness.
22575         * lib/filenamecat.h (file_name_concat): Only declare when using
22576         GPL module.
22577         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22578         Move...
22579         * lib/filenamecat-lgpl.c: ...into new file.
22580         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22581         (gl_FILE_NAME_CONCAT): Use it.
22582         * MODULES.html.sh (File system functions): Mention new module.
22583
22584         argp: avoid memory leak
22585         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22586         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22587         base_name, since the latter malloc()s and can call exit().
22588         Leak introduced 2006-07-03.
22589
22590         dirname-lgpl: adjust clients that don't need full dirname
22591         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22592         * modules/filenamecat (Depends-on): Likewise.
22593         * modules/linkat (Depends-on): Likewise.
22594         * modules/mkancesdirs (Depends-on): Likewise.
22595         * modules/mkdir (Depends-on): Likewise.
22596         * modules/openat (Depends-on): Likewise.
22597         * modules/savewd (Depends-on): Likewise.
22598         * modules/rename (Depends-on): Likewise.
22599         (License): Relax license.
22600         * modules/mkdir-tests (Depends-on): Drop progname.
22601         (Makefile.am): Delete unneeded LDADD.
22602         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22603
22604         dirname: split into dirname-lgpl
22605         * modules/dirname-lgpl: New module.
22606         * modules/dirname (Files): Move library-safe files into
22607         dirname-lgpl.
22608         (Depends-on): Add dirname-lgpl.
22609         (configure.ac): Declare witness.
22610         * modules/double-slash-root (License): Relax license.
22611         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22612         module.
22613         * lib/dirname.c (dir_len, mdir_name): Move...
22614         * lib/dirname-lgpl.c: ...into new file.
22615         * lib/basename.c (last_component, base_len): Move...
22616         * lib/basename-lgpl.c: ...into new file.
22617         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22618         (gl_DIRNAME): Use it.
22619         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22620         Mention new module.
22621         * modules/dirname-tests (Depends-on): Add progname.
22622         * tests/test-dirname.c (program_name): Delete.
22623
22624         mkdir: make safe for libraries
22625         * modules/mkdir (Depends-on): Drop xalloc.
22626         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22627         exit.
22628
22629         tests: avoid some compiler warnings
22630         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22631         literals.
22632         * tests/test-memchr.c (main): Avoid type mismatch.
22633         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22634         * tests/test-base64.c (main): Likewise.
22635         * tests/test-getdelim.c (main): Likewise.
22636         * tests/test-gethostname.c (main): Likewise.
22637         * tests/test-getline.c (main): Likewise.
22638         * tests/test-netinet_in.c (main): Likewise.
22639         * tests/test-select.c (open_server_socket, main): Likewise.
22640         * tests/test-select-stdin.c (main): Likewise.
22641         * tests/test-sockets.c (main): Likewise.
22642         * tests/test-strsignal.c (main): Likewise.
22643         * tests/test-sys_select.c (main): Likewise.
22644         * tests/test-sys_socket.c (main): Likewise.
22645         * tests/test-u64.c (main): Likewise.
22646         * tests/test-xfprintf-posix.c (main): Likewise.
22647         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22648
22649         sockets: avoid compiler warning
22650         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22651
22652         maint: detect usage(1) and other suspicious exits
22653         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22654
22655 2009-10-29  Jim Meyering  <meyering@redhat.com>
22656
22657         timespec: long-to-int truncation could make timespec_cmp malfunction
22658         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22659         a multiple of 2^32 nanoseconds as no difference.
22660
22661 2009-10-28  Jim Meyering  <meyering@redhat.com>
22662
22663         fprintftime: wrap macro code argument in "do {...} while(0)"
22664         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22665         cpy macro must be a statement that can be followed by a semicolon.
22666         Now that the else clause contains a comment and is hence longer
22667         than one line, I require curly braces.  That in turn requires
22668         that we wrap this code block in the standard do...while(0).
22669
22670         fprintftime: remove stray semicolon from previous change
22671         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22672
22673         fprintftime: avoid a warning about ignored fwrite return value
22674         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22675         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22676         that is unsafe.
22677         * modules/fprintftime (Depends-on): Add ignore-value.
22678
22679         exclude: avoid an unwarranted warning
22680         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22681
22682 2009-10-27  Eric Blake  <ebb9@byu.net>
22683
22684         fseek: avoid compilation failure when fflush is replaced
22685         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22686         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22687         module is in use.
22688         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22689         module is not in use; since REPLACE_FSEEK worked otherwise.
22690         (GNULIB_FTELLO): Likewise for ftell.
22691         Reported by Ian Beckwith and others.
22692
22693 2009-10-27  Bruno Haible  <bruno@clisp.org>
22694
22695         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22696         Reported by Jim Meyering.
22697
22698 2009-10-27  Jim Meyering  <jim@meyering.net>
22699             Bruno Haible  <bruno@clisp.org>
22700
22701         Avoid warning despite dropping the return value of fwrite.
22702         * lib/unicodeio.c: Include ignore-value.h.
22703         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22704         * modules/unicodeio (Depends-on): Add ignore-value.
22705
22706 2009-10-26  Eric Blake  <ebb9@byu.net>
22707
22708         areadlinkat: fix fallback path
22709         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22710         pointer and zero.
22711
22712 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22713
22714         Use a better IO block size for modern systems
22715         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22716         * lib/md2.c: Likewise.
22717         * lib/md4.c: Likewise.
22718         * lib/md5.c: Likewise.
22719         * lib/sha1.c: Likewise.
22720         * lib/sha256.c: Likewise.
22721         * lib/sha512.c: Likewise.
22722
22723 2009-10-22  Eric Blake  <ebb9@byu.net>
22724
22725         tests: avoid several compiler warnings
22726         * tests/test-getcwd.c (main): Avoid buffer underflow.
22727         * tests/test-getdate.c (main): String literals are not safe with
22728         putenv, so use setenv.  Declare unused argument.
22729         * modules/getdate-tests (Depends-on): Add setenv.
22730         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22731         problems with string literals in char *.
22732         * tests/test-hash.c (main): Avoid shadowing declaration.
22733         (insert_new): Treat string literals as char const *.
22734         * tests/test-getopt.h (test_getopt): Likewise.
22735         (getopt_loop): Alter types to minimize casting elsewhere.
22736         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22737         (test_getopt_long_posix): Likewise.
22738         (do_getopt_long): Add wrapper to minimize casting.
22739         * tests/test-atexit.c (clear_temp_file): Use void.
22740         * tests/test-areadlink-with-size.c (main): Declare unused
22741         arguments.
22742         * tests/test-areadlink.c (main): Likewise.
22743         * tests/test-areadlinkat-with-size.c (main): Likewise.
22744         * tests/test-areadlinkat.c (main): Likewise.
22745         * tests/test-canonicalize-lgpl.c (main): Likewise.
22746         * tests/test-canonicalize.c (main): Likewise.
22747         * tests/test-dirent-safer.c (main): Likewise.
22748         * tests/test-dirname.c (main): Likewise.
22749         * tests/test-dup2.c (main): Likewise.
22750         * tests/test-fchdir.c (main): Likewise.
22751         * tests/test-fcntl-h.c (main): Likewise.
22752         * tests/test-fcntl-safer.c (main): Likewise.
22753         * tests/test-fdopendir.c (main): Likewise.
22754         * tests/test-fdutimensat.c (main): Likewise.
22755         * tests/test-fflush.c (main): Likewise.
22756         * tests/test-filenamecat.c (main): Likewise.
22757         * tests/test-filevercmp.c (main): Likewise.
22758         * tests/test-fopen-safer.c (main): Likewise.
22759         * tests/test-fopen.c (main): Likewise.
22760         * tests/test-fpending.c (main): Likewise.
22761         * tests/test-fpurge.c (main): Likewise.
22762         * tests/test-freading.c (main): Likewise.
22763         * tests/test-fstatat.c (main): Likewise.
22764         * tests/test-fsync.c (main): Likewise.
22765         * tests/test-futimens.c (main): Likewise.
22766         * tests/test-getndelim2.c (main): Likewise.
22767         * tests/test-gettimeofday.c (main): Likewise.
22768         * tests/test-getopt.c (main): Likewise.
22769         * tests/test-i-ring.c (main): Likewise.
22770         * tests/test-inttypes.c (main): Likewise.
22771         * tests/test-link.c (main): Likewise.
22772         * tests/test-lstat.c (main): Likewise.
22773         * tests/test-math.c (main): Likewise.
22774         * tests/test-md5.c (main): Likewise.
22775         * tests/test-memchr2.c (main): Likewise.
22776         * tests/test-memrchr.c (main): Likewise.
22777         * tests/test-mkdir.c (main): Likewise.
22778         * tests/test-mkdirat.c (main): Likewise.
22779         * tests/test-mkfifoat.c (main): Likewise.
22780         * tests/test-open.c (main): Likewise.
22781         * tests/test-openat-safer.c (main): Likewise.
22782         * tests/test-openat.c (main): Likewise.
22783         * tests/test-quotearg.c (main): Likewise.
22784         * tests/test-rawmemchr.c (main): Likewise.
22785         * tests/test-readlink.c (main): Likewise.
22786         * tests/test-remove.c (main): Likewise.
22787         * tests/test-rename.c (main): Likewise.
22788         * tests/test-renameat.c (main): Likewise.
22789         * tests/test-rmdir.c (main): Likewise.
22790         * tests/test-sha1.c (main): Likewise.
22791         * tests/test-signal.c (main): Likewise.
22792         * tests/test-sigaction.c (main): Likewise.
22793         * tests/test-stat.c (main): Likewise.
22794         * tests/test-stat-time.c (main): Likewise.
22795         * tests/test-stddef.c (main): Likewise.
22796         * tests/test-stdint.c (main): Likewise.
22797         * tests/test-stdio.c (main): Likewise.
22798         * tests/test-stdlib.c (main): Likewise.
22799         * tests/test-strchrnul.c (main): Likewise.
22800         * tests/test-strerror.c (main): Likewise.
22801         * tests/test-string.c (main): Likewise.
22802         * tests/test-strtod.c (main): Likewise.
22803         * tests/test-strverscmp.c (main): Likewise.
22804         * tests/test-symlink.c (main): Likewise.
22805         * tests/test-symlinkat.c (main): Likewise.
22806         * tests/test-sys_stat.c (main): Likewise.
22807         * tests/test-sys_time.c (main): Likewise.
22808         * tests/test-time.c (main): Likewise.
22809         * tests/test-unistd.c (main): Likewise.
22810         * tests/test-unlink.c (main): Likewise.
22811         * tests/test-unlinkat.c (main): Likewise.
22812         * tests/test-utimens.c (main): Likewise.
22813         * tests/test-utimensat.c (main): Likewise.
22814         * tests/test-version-etc.c (main): Likewise.
22815         * tests/test-wchar.c (main): Likewise.
22816         * tests/test-wctype.c (main): Likewise.
22817         * tests/test-xprintf-posix.c (main): Likewise.
22818         * tests/test-posixtm.c (main): Likewise.
22819         (STREQ): Delete unused macro.
22820         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22821         shadowed variables.
22822         * tests/test-memchr.c (main): Likewise.
22823
22824 2009-10-21  Eric Blake  <ebb9@byu.net>
22825
22826         areadlinkat: avoid failure on older glibc
22827         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22828         rather than mis-comparing 0 against FUNC_RESULT of char*.
22829
22830 2009-10-21  Bruno Haible  <bruno@clisp.org>
22831
22832         * modules/stpncpy (License): Relicense under LGPLv2+.
22833         Reported by David Lutterkort <lutter@redhat.com>.
22834
22835 2009-10-20  Eric Blake  <ebb9@byu.net>
22836
22837         utimensat: work around Solaris 9 bug
22838         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22839         has trailing slash bugs.
22840         * tests/test-lutimens.h (test_lutimens): Enhance test.
22841         * tests/test-utimens.h (test_utimens): Likewise.
22842         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22843         * doc/posix-functions/utimes.texi (utimes): Likewise.
22844         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22845         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22846         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22847         * doc/posix-functions/futimens.texi (futimens): Likewise.
22848
22849         fdutimensat: new module
22850         * modules/fdutimensat: New file.
22851         * lib/fdutimensat.c (fdutimensat): Likewise.
22852         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22853         * MODULES.html.sh (File system functions): Mention module.
22854         * modules/fdutimensat-tests: New test.
22855         * tests/test-fdutimensat.c: Likewise.
22856
22857         doc: regenerate INSTALL
22858         * doc/INSTALL: Reflect recent autoconf update.
22859         * doc/INSTALL.ISO: Likewise.
22860         * doc/INSTALL.UTF-8: Likewise.
22861
22862 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22863
22864         acl: warn if ACL support is not detected
22865         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22866
22867 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22868
22869         * lib/nproc.h: Add extern "C" block for C++.
22870
22871 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22872             Bruno Haible  <bruno@clisp.org>
22873
22874         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22875         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22876         * doc/posix-functions/isalpha.texi: Likewise.
22877         * doc/posix-functions/isblank.texi: Likewise.
22878         * doc/posix-functions/iscntrl.texi: Likewise.
22879         * doc/posix-functions/isdigit.texi: Likewise.
22880         * doc/posix-functions/isgraph.texi: Likewise.
22881         * doc/posix-functions/islower.texi: Likewise.
22882         * doc/posix-functions/isprint.texi: Likewise.
22883         * doc/posix-functions/ispunct.texi: Likewise.
22884         * doc/posix-functions/isspace.texi: Likewise.
22885         * doc/posix-functions/isupper.texi: Likewise.
22886         * doc/posix-functions/isxdigit.texi: Likewise.
22887
22888 2009-10-18  Bruno Haible  <bruno@clisp.org>
22889
22890         Tests for module 'isblank'.
22891         * modules/isblank-tests: New file.
22892         * tests/test-isblank.c: New file.
22893
22894         New module 'isblank'.
22895         * lib/isblank.c: New file.
22896         * m4/isblank.m4: New file.
22897         * modules/isblank: New file.
22898         * doc/posix-functions/isblank.texi: Mention the new module.
22899
22900 2009-10-18  Bruno Haible  <bruno@clisp.org>
22901
22902         New module 'ctype'.
22903         * lib/ctype.in.h: New file.
22904         * m4/ctype.m4: New file.
22905         * modules/ctype: New file.
22906         * doc/posix-headers/ctype.texi: Mention the new module.
22907
22908 2009-10-18  Jim Meyering  <meyering@redhat.com>
22909
22910         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22911         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22912         right after its initialization, rather than farther down.
22913         Keeping these in close proximity makes it easier to ensure
22914         that each such variable is initialized.  E.g.,
22915
22916             LIB_CLOCK_GETTIME=
22917             AC_SUBST([LIB_CLOCK_GETTIME])
22918
22919         This change also increments these serial numbers.
22920         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22921         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22923
22924 2009-10-18  Bruno Haible  <bruno@clisp.org>
22925
22926         Don't let environment variables perturb build.
22927         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22928         (gl_PREREQ_GETHRXTIME): ... not here.
22929
22930 2009-10-18  Bruno Haible  <bruno@clisp.org>
22931
22932         Avoid symlink attack in localcharset module.
22933         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
22934         (O_NOFOLLOW): Define fallback.
22935         (get_charset_aliases): Don't open the file if it is a symbolic link.
22936         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22937         gl_FCNTL_H.
22938         (gl_FCNTL_H): Require it.
22939         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22940         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22941         Reported by Fergal Glynn <fglynn@veracode.com>.
22942
22943 2009-10-18  Bruno Haible  <bruno@clisp.org>
22944
22945         Implement nproc for mingw.
22946         * lib/nproc.c: Include <windows.h>
22947         (num_processors): On native Windows platforms, try GetSystemInfo.
22948
22949 2009-10-18  Bruno Haible  <bruno@clisp.org>
22950
22951         Implement nproc for IRIX.
22952         * lib/nproc.c: Include <sys/sysmp.h>.
22953         (num_processors): On IRIX systems, try sysmp.
22954         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22955
22956 2009-10-18  Bruno Haible  <bruno@clisp.org>
22957
22958         Implement nproc for HP-UX.
22959         * lib/nproc.c: Include <sys/pstat.h>
22960         (num_processors): On HP-UX systems, try pstat_getdynamic.
22961         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22962         pstat_getdynamic.
22963
22964 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22965             Bruno Haible  <bruno@clisp.org>
22966
22967         Implement nproc for NetBSD, OpenBSD.
22968         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22969         (ARRAY_SIZE): New macro.
22970         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22971         * m4/nproc.m4: New file.
22972         * modules/nproc (Files): Add m4/nproc.m4.
22973         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22974         (Makefile.am): Instead, augment lib_SOURCES.
22975
22976 2009-10-18  Bruno Haible  <bruno@clisp.org>
22977
22978         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22979         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22980         sys/param.h.
22981
22982 2009-10-16  Eric Blake  <ebb9@byu.net>
22983
22984         utimensat: new module
22985         * modules/utimensat: New file.
22986         * lib/utimensat.c (utimensat): Likewise.
22987         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22988         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22989         so we can work around Linux bugs.
22990         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22991         * modules/sys_stat (Makefile.am): Substitute them.
22992         * lib/sys_stat.in.h (utimensat): Declare it.
22993         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22994         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22995         * modules/utimensat-tests: New test.
22996         * tests/test-utimensat.c: Likewise.
22997
22998         utimens: let lutimens work on non-symlinks
22999         * lib/utimens.c (lutimens): Fall back to utimens rather than
23000         failing with ENOSYS, when file is not a symlink.
23001         (utimens): Reduce redirection.
23002         * tests/test-lutimens.h (test_lutimens): Update test to cover
23003         non-symlinks.
23004         * tests/test-utimens.h (test_utimens): Update test to cover
23005         symlinks.
23006         * tests/test-utimens.c (main): Update caller.
23007
23008         utimens: cache whether utimensat syscall works
23009         * lib/utimens.c (utimensat_works_really): New cache variable.
23010         (fdutimens, lutimens): Use it to avoid failing syscall.
23011
23012         test-stat-time, test-utimens: improve portability
23013         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23014         ext4 on alpha, and for cygwin.
23015         * tests/test-utimens-common.h: New file.
23016         (nap): Factor delays into single function.
23017         * tests/test-lutimens.h (test_lutimens): Use new header.
23018         * tests/test-futimens.h (test_futimens): Likewise.
23019         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23020         timestamps to occur from same machine, as was done previously for
23021         test_utimens.
23022         * modules/utimens-tests (Files): Ship new file.
23023         * modules/futimens-tests (Files): Likewise.
23024         Reported in part by Jim Meyering.
23025
23026         sys_stat: sort replacement declarations
23027         * lib/sys_stat.in.h: Sort declarations.
23028         * lib/futimens.c (futimens): Fix typo.
23029
23030 2009-10-15  Jim Meyering  <meyering@redhat.com>
23031
23032         don't let environment settings perturb build
23033         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23034         could cause a configure-time and/or build-time malfunction.
23035         Typically, a configure-time function-in-library test is performed
23036         via code like this:
23037
23038           LIB_VAR=
23039           AC_SUBST([LIB_VAR])
23040           prefix_saved_LIBS=$LIBS
23041             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23042                        [test "$ac_cv_search_FUNC" = "none required" ||
23043                         LIB_VAR=$ac_cv_search_FUNC])
23044           LIBS=$prefix_saved_LIBS
23045
23046         However, in each of the files affected by this change, the LIB_VAR=
23047         initialization was omitted.  Thus, when set in the environment, its
23048         value would propagate into generated Makefiles when FUNC is not found
23049         in LIB_NAME.
23050         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23051         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23053
23054 2009-10-14  Eric Blake  <ebb9@byu.net>
23055
23056         fchdir: avoid infinite recursion in mingw
23057         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23058         recursing.
23059
23060         test-stat-time: port to mingw
23061         * tests/test-stat-time.c (force_unlink): Return a value.
23062         (test_ctime) [W32]: Fix compilation error.
23063         (nap): Don't call usleep with too large an argument.  Use
23064         force_unlink.
23065         * doc/pastposix-functions/usleep.texi (usleep): Document the
23066         portability issue.
23067
23068 2009-10-13  Jim Meyering  <meyering@redhat.com>
23069
23070         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23071         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23072         * modules/pipe-filter-ii: Likewise.
23073         * modules/sys_socket-tests: Likewise.
23074         * modules/tsearch-tests: Likewise.
23075         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23076         (check): Depend on it.
23077
23078 2009-10-12  Eric Blake  <ebb9@byu.net>
23079
23080         utimens-tests: port to NFS file systems
23081         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23082         comparisons to avoid spurious failures from timestamp drift
23083         between NFS machines.
23084
23085 2009-10-12  Eric Blake  <ebb9@byu.net>
23086
23087         stat-time-tests: minor cleanups
23088         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23089         * tests/test-stat-time.c (nap): Separate assignment from call.
23090         Suggested by Paolo Bonzini and Bruno Haible.
23091
23092         sys_stat: guarantee struct timespec
23093         * lib/sys_stat.in.h (includes): Always include <time.h>
23094         * modules/sys_stat (Depends-on): Add time.
23095         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23096         mode_t permission values.
23097         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23098         get at subsecond timestamps.
23099
23100 2009-10-10  Eric Blake  <ebb9@byu.net>
23101
23102         futimens: new module
23103         * modules/futimens: New file.
23104         * lib/futimens.c (futimens): Likewise.
23105         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23106         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23107         we can work around Linux bugs.
23108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23109         * modules/sys_stat (Makefile.am): Substitute them.
23110         * lib/sys_stat.in.h (futimens): Declare it.
23111         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23112         * doc/posix-functions/futimens.texi (futimens): Likewise.
23113         * modules/futimens-tests: New test.
23114         * tests/test-futimens.c: Likewise.
23115
23116         utimens: introduce fdutimens
23117         * lib/utimens.h (fdutimens): New prototype.
23118         * lib/utimens.c (gl_futimens): Move guts...
23119         (fdutimens): ...to new interface.
23120         * tests/test-utimens.c (do_fdutimens): Use it.
23121
23122         utimens: add UTIME_NOW and UTIME_OMIT support
23123         * lib/utimens.c (validate_timespec, update_timespec): New helper
23124         functions.
23125         (gl_futimens, lutimens): Use them.
23126         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23127         stdbool, sys_stat.
23128         (Link): Mention resulting library dependency.
23129         * modules/utimecmp (Link): Likewise.
23130         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23131         (Makefile.am): Pick up library dependency.
23132         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23133         definition.
23134         * tests/test-sys_stat.c: Test the definitions.
23135         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23136         * NEWS: Document library dependency.
23137
23138         utimecmp: support symlink timestamps
23139         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23140         hashing when possible.  Use pathconf when available.
23141         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23142         * modules/utimecmp (Depends-on): Add lstat.
23143
23144         utimens: add lutimens interface
23145         * lib/utimens.c (lutimens): New function.
23146         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23147         * lib/utimens.h (lutimens): Declare new interface.
23148         * tests/test-utimens.c (main): Enhance test.
23149         * tests/test-lutimens.h (test_lutimens): New file.
23150         * modules/utimens-tests (Files): Distribute it.
23151         (Depends-on): Add symlink.
23152         (configure.ac): Check for usleep.
23153
23154         utimens: validate futimens usage
23155         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23156         fewer syscalls on failure later on.  Avoid compiler warning on
23157         mingw.
23158         * modules/utimens (Depends-on): Add dup2.
23159
23160         utimens: add test
23161         * modules/utimens-tests: New test.
23162         * tests/test-utimens.h: New file.
23163         * tests/test-futimens.h: Likewise.
23164         * tests/test-utimens.c: Likewise.
23165
23166         doc: mention timestamp portability issues
23167         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23168         instead.
23169         * doc/posix-functions/utime.texi (utime): Likewise.
23170         * doc/posix-functions/utimes.texi (utimes): Likewise.
23171         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23172         instead.
23173         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23174         module.
23175         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23176         Mention weakness with symlink timestamps.
23177         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23178         to utimensat/futimens instead.
23179         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23180
23181         test-dup2: enhance test
23182         * tests/test-dup2.c (main): Also check AT_FDCWD.
23183
23184         test-stat-time: avoid more spurious failures
23185         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23186         xfs; and avoid race if the two timestamps cross quantization edge.
23187
23188         relocatable: prefer 'file system' over 'filesystem'
23189         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23190         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23191         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23192         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23193         * lib/relocatable.c (compute_curr_prefix): Likewise.
23194
23195 2009-10-10  Jim Meyering  <meyering@redhat.com>
23196
23197         stat-time-tests: check for the usleep function
23198         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23199
23200 2009-10-10  Bruno Haible  <bruno@clisp.org>
23201
23202         * modules/xnanosleep: Put the Link section after the Include section.
23203
23204 2009-10-09  Eric Blake  <ebb9@byu.net>
23205
23206         dup2: work around FreeBSD 6.1 bug
23207         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23208         * doc/posix-functions/dup2.texi (dup2): Document it.
23209         Reported by Nelson H. F. Beebe and Jim Meyering.
23210
23211         test-stat-time: port to buggy NFS clients
23212         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23213         (test_ctime): Also skip test if mtime and ctime are skewed.
23214
23215         maint: prefer 'file system' over 'filesystem'
23216         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23217         * doc/posix-functions/lstat.texi (lstat): Likewise.
23218         * lib/file-has-acl.c (file_has_acl): Likewise.
23219         * lib/fwriteerror.c [TEST]: Likewise.
23220         * tests/test-areadlink.h (test_areadlink): Likewise.
23221         * tests/test-areadlinkat-with-size.c (main): Likewise.
23222         * tests/test-areadlinkat.c (main): Likewise.
23223         * tests/test-canonicalize-lgpl.c (main): Likewise.
23224         * tests/test-canonicalize.c (main): Likewise.
23225         * tests/test-fstatat.c (main): Likewise.
23226         * tests/test-linkat.c (main): Likewise.
23227         * tests/test-lstat.h (test_lstat_func): Likewise.
23228         * tests/test-mkdir.h (test_mkdir): Likewise.
23229         * tests/test-readlink.h (test_readlink): Likewise.
23230         * tests/test-remove.c (main): Likewise.
23231         * tests/test-rename.h (test_rename): Likewise.
23232         * tests/test-renameat.c (main): Likewise.
23233         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23234         * tests/test-symlink.h (test_symlink): Likewise.
23235         * tests/test-symlinkat.c (main): Likewise.
23236         * tests/test-unlink.h (test_unlink_func): Likewise.
23237         * tests/test-unlinkat.c (main): Likewise.
23238
23239         maint: make realtime library usage explicit
23240         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
23241         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
23242         * modules/settime (Link): Likewise.
23243         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
23244
23245         test-stat-time: speed up execution
23246         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
23247         warning on mingw.
23248         (nap): New helper function.
23249         (prepare_test): Use it to reduce sleep time.
23250         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
23251         execution.
23252         * modules/stat-time-tests (configure.ac): Check for usleep.
23253
23254 2009-10-09  Jim Meyering  <meyering@redhat.com>
23255
23256         selinux-h: always use getfilecon wrappers
23257         * lib/getfilecon.c: New file.
23258         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
23259         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
23260         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
23261         (fgetfilecon): Provide a stub.
23262         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
23263         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
23264         file unconditionally.
23265         When <selinux/selinux.h> is found, arrange to use wrappers.
23266         * modules/selinux-h (Files): Add getfilecon.c.
23267         (Makefile.am): Substitute include-next-related bits
23268         into the now-always-generated selinux/selinux.h file.
23269         * doc/glibc-functions/lgetfilecon.texi: New file.
23270         * doc/glibc-functions/fgetfilecon.texi: New file.
23271         * doc/glibc-functions/getfilecon.texi: New file.
23272         * doc/glibc-functions/getfilecon-desc.texi: New file.
23273         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
23274         which to pull in the new files.
23275         * MODULES.html.sh (Misc): Add selinux-h.
23276
23277 2009-10-08  Jim Meyering  <meyering@redhat.com>
23278
23279         unistd: fix comment typo
23280         * lib/unistd.in.h (euidaccess): Fix a comment typo.
23281
23282 2009-10-08  Eric Blake  <ebb9@byu.net>
23283
23284         areadlink: use SIZE_MAX consistently
23285         * modules/areadlink (Depends-on): Add stdint.
23286         * modules/areadlink-with-size (Depends-on): Likewise.
23287         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
23288         gives NULL; drop sys/types, since unistd gives size_t; and add
23289         stdint for SIZE_MAX.
23290         (SIZE_MAX): Rely on headers.
23291         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
23292         and add stdint.
23293         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
23294         (SIZE_MAX): Likewise.
23295         (INITIAL_BUF_SIZE): Turn into enum.
23296         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
23297
23298 2009-10-08  Jim Meyering  <meyering@redhat.com>
23299
23300         areadlinkat: avoid compilation failure
23301         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
23302         Fix typo in comment.
23303
23304 2009-10-07  Eric Blake  <ebb9@byu.net>
23305
23306         areadlinkat-with-size: new module
23307         * modules/areadlinkat-with-size: New module.
23308         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
23309         * lib/areadlink.h (areadlinkat): Declare it.
23310         * MODULES.html.sh (File system functions): Mention it.
23311         * modules/areadlinkat-with-size-tests: New test.
23312         * tests/test-areadlinkat-with-size.c: New file.
23313
23314         xreadlinkat: new module
23315         * modules/xreadlinkat: New module.
23316         * lib/xreadlinkat.c (xreadlinkat): New file.
23317         * lib/xreadlink.h (xreadlinkat): Declare it.
23318         * MODULES.html.sh (File system functions): Mention it.
23319
23320         areadlinkat: new module
23321         * lib/at-func.c (FUNC_FAIL): New define.
23322         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
23323         * modules/areadlinkat: New module.
23324         * lib/linkat.c (areadlinkat): Move...
23325         * lib/areadlinkat.c (areadlinkat): ...to new file.
23326         * lib/areadlink.h (areadlinkat): Declare it.
23327         * modules/linkat (Depends-on): Add areadlinkat.
23328         * MODULES.html.sh (File system functions): Mention it.
23329         * modules/areadlinkat-tests: New test.
23330         * tests/test-areadlinkat.c: New file.
23331
23332         areadlink, areadlink-with-size: add tests
23333         * modules/areadlink-tests: New test.
23334         * modules/areadlink-with-size-tests: Likewise.
23335         * tests/test-areadlink.h: New file.
23336         * tests/test-areadlink.c: Likewise.
23337         * tests/test-areadlink-with-size.c: Likewise.
23338
23339         maint: minor cleanups
23340         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
23341         _UNUSED_PARAMETER_ instead.
23342         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
23343         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
23344         * modules/linkat-tests (Files): Distribute test-link.h.
23345
23346         openat, utimens: whitespace cleanup
23347         * lib/openat.c: Prefer space throughout, rather than mix of 8
23348         spaces vs. tabs.
23349         * lib/at-func.c: Likewise.
23350         * lib/utimens.c: Likewise.
23351
23352         openat: avoid using wrong fd
23353         * lib/openat.c (openat_permissive): Reject user's fd if saving the
23354         working directory chooses same fd.
23355         * lib/at-func.c (AT_FUNC_NAME): Likewise.
23356
23357         mkdir, mkdirat: fix cygwin 1.5.x bug
23358         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
23359         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
23360         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
23361         bug.
23362         (gl_PREREQ_MKDIR): Delete unused macro.
23363         * modules/mkdir (Files): Track file rename.
23364         (configure.ac): Update macro name.
23365         * modules/openat (Depends-on): Add mkdir.
23366         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
23367
23368         mkdir, mkdirat: add tests
23369         * modules/mkdir-tests: New test.
23370         * tests/test-mkdir.h: New file.
23371         * tests/test-mkdir.c: Likewise.
23372         * tests/test-mkdirat.c: Likewise.
23373         * modules/openat-tests (Files): Add new files.
23374         (Makefile.am): Run new test.
23375
23376 2009-10-06  Eric Blake  <ebb9@byu.net>
23377
23378         doc: tweak *at function documentation
23379         * doc/posix-functions/faccessat.texi (faccessat): Mention
23380         known issue with replacement.
23381         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
23382         * doc/posix-functions/linkat.texi (linkat): Likewise.
23383         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23384         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23385         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23386         * doc/posix-functions/renameat.texi (renameat): Likewise.
23387         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23388
23389         openat: fix GNU/Hurd bug in unlinkat
23390         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
23391         broken.
23392         * doc/posix-functions/unlink.texi (unlink): Document this.
23393         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
23394
23395         fdopendir: fix GNU/Hurd bug
23396         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
23397         allowing non-directory fds.
23398         * lib/fdopendir.c (rpl_fdopendir): Work around it.
23399         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23400         * modules/dirent (Makefile.am): Substitute it.
23401         * lib/dirent.in.h (fdopendir): Declare replacement.
23402         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
23403         * tests/test-fdopendir.c (main): Test something other than
23404         /dev/null, since on Hurd that behaves like a directory.
23405
23406         test-symlink: port to GNU/Hurd
23407         * tests/test-symlink.h (test_symlink): Relax expected errno.
23408
23409         doc: tweak more cygwin information
23410         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
23411         now compatible with glibc.
23412         * doc/posix-functions/getopt.texi (getopt): Likewise.
23413
23414         getopt-gnu: add another test
23415         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
23416         guarantee behavior relied on by m4.
23417         * tests/test-getopt.c (main): Use it.
23418         * modules/getopt-posix-tests (Depends-on): Add setenv.
23419         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
23420
23421         getopt: fix compilation on darwin
23422         * lib/getopt.in.h (includes): Leave breadcrumbs during system
23423         include.
23424         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
23425         Reported by Ludovic Courtès.
23426
23427 2009-10-06  Bruno Haible  <bruno@clisp.org>
23428
23429         * modules/size_max (Description): Discourage its use.
23430         Reported by Simon Josefsson.
23431
23432 2009-10-06  Jim Meyering  <meyering@redhat.com>
23433
23434         linkat: avoid compilation failure
23435         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
23436
23437 2009-10-05  Eric Blake  <ebb9@byu.net>
23438
23439         linkat: support Linux 2.6.17
23440         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
23441         linkat on Linux, but allow cache variable override.
23442         * lib/linkat.c (rpl_linkat): Define override.
23443         * modules/linkat (Depends-on): Add symlinkat.
23444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
23445         * modules/unistd (Makefile.am): Substitute it.
23446         * lib/unistd.in.h (linkat): Declare replacement.
23447         Reported by Pádraig Brady.
23448
23449         quotearg: port test to systems with C.UTF-8 locale
23450         * tests/test-quotearg.c (struct result_strings): Add another
23451         member, differentiating between C.ASCII and C.UTF-8 handling.
23452         (compare_strings): Add parameter.
23453         (main): Adjust all callers.
23454
23455         getopt: avoid clash with FreeBSD _getopt_internal
23456         * lib/getopt.in.h (_getopt_internal): Override the name.
23457         * lib/getopt_int.h (includes): Pick up any overrides.
23458         Reported by Reuben Thomas.
23459
23460         hash: allow C89 compilation
23461         * lib/hash.c (check_tuning): Move declaration before statement.
23462         Reported by Reuben Thomas.
23463
23464 2009-10-05  Karl Berry  <karl@gnu.org>
23465
23466         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
23467
23468 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
23469             Bruno Haible  <bruno@clisp.org>
23470
23471         * lib/uname.c (uname): Use a table-driven algorithm to compute
23472         Windows NT versions.
23473
23474 2009-10-04  Bruno Haible  <bruno@clisp.org>
23475
23476         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
23477         program_invocation_short_name.
23478         * modules/progname (configure.ac): Test for presence of
23479         program_invocation_short_name.
23480         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23481
23482 2009-10-04  Bruno Haible  <bruno@clisp.org>
23483
23484         * lib/progname.c (set_program_name): Fix comment.
23485         Reported by Jim Meyering.
23486
23487 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23488             Bruno Haible  <bruno@clisp.org>
23489
23490         * lib/uname.c: Include <string.h>.
23491         (uname): Do only one call to GetVersionEx in the common case.
23492
23493 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23494             Bruno Haible  <bruno@clisp.org>
23495
23496         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
23497         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
23498         (uname): Add support for Windows CE and various non-x86 CPU types.
23499
23500 2009-10-03  Bruno Haible  <bruno@clisp.org>
23501
23502         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
23503         invocation to tests/configure.ac.
23504         Reported by Ian Beckwith <ianb@erislabs.net>.
23505
23506 2009-10-02  Eric Blake  <ebb9@byu.net>
23507
23508         fchdir: avoid compiler warning
23509         * lib/fchdir.c (canonicalize_file_name)
23510         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
23511
23512         test-open: support mingw errno values
23513         * tests/test-open.h (test_open): Relax test.
23514         * tests/test-fopen.h (test_fopen): Likewise.
23515         * tests/test-openat-safer.c (main): Likewise.
23516
23517         open: fix opening directory on mingw
23518         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
23519
23520         test-open: on GNU/Hurd, /dev/null is a directory
23521         * tests/test-fopen.h (main): Rename...
23522         (test_fopen): ...to this.  Use a guaranteed non-directory when
23523         confirming open behavior on trailing slash.
23524         * tests/test-openat-safer.c (main): Likewise.
23525         * tests/test-open.h (main): Likewise....
23526         (test_open): ...to this.
23527         * tests/test-fopen.c (main): Adjust caller.
23528         * tests/test-fopen-safer.c (main): Likewise.
23529         * tests/test-open.c (main): Likewise.
23530         * tests/test-fcntl-safer.c (main): Likewise.
23531         Reported by Samuel Thibault.
23532
23533         rename, fchdir: don't ignore chdir failure
23534         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
23535         * lib/rename.c (rpl_rename) [W32]: Likewise.
23536         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
23537         an empty destination directory if source cannot be renamed,
23538         although there is still possibility for failure.
23539         * doc/posix-functions/rename.texi (rename): Document the race.
23540         Reported by Jim Meyering.
23541
23542         maint: cleanup whitespace in recent commits
23543         * lib/rename.c (rpl_rename): Remove tabs.
23544         * tests/test-link.h (test_link): Likewise.
23545         * lib/fchdir.c (get_name): Likewise.
23546         Reported by Jim Meyering.
23547
23548 2009-10-02  Ben Pfaff  <blp@gnu.org>
23549
23550         relocatable-prog-wrapper: Add missing dependency on
23551         double-slash-root.
23552         * modules/relocatable-prog-wrapper: Add dependency.
23553         Reported by Ian Beckwith <ianb@erislabs.net>.
23554
23555 2009-10-02  Eric Blake  <ebb9@byu.net>
23556
23557         renameat: fix Solaris bugs
23558         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23559         needed fixing.
23560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23561         * modules/stdio (Makefile.am): Substitute it.
23562         * lib/stdio.in.h (renameat): Declare replacement.
23563         * lib/renameat.c (rpl_renameat): Implement fix.
23564
23565         renameat: new module
23566         * modules/renameat: New file.
23567         * lib/renameat.c (renameat): Likewise.
23568         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23570         * modules/stdio (Makefile.am): Substitute them.
23571         * lib/stdio.in.h (renameat): Declare it.
23572         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23573         * doc/posix-functions/renameat.texi (renameat): Likewise.
23574         * modules/renameat-tests: New test.
23575         * tests/test-renameat.c: Likewise.
23576
23577         rename: fix mingw bugs
23578         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23579         directory overwrite bugs.
23580
23581         rename: fix another cygwin 1.5 bug
23582         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23583         checks.
23584         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23585         unnecessary cygwin workarounds.  Also work around bug with moving
23586         full directory onto an empty one.
23587         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23588
23589         rename-dest-slash: merge into rename module
23590         * modules/rename-dest-slash (Status): Mark obsolete.
23591         (Depends-on): Add rename.
23592         (Files): Let rename do it all.
23593         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23594         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23595         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23596         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23597         * lib/rename.c (rpl_rename): Update comments.
23598
23599         rename: fix cygwin 1.5.x bugs
23600         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23601         * lib/rename.c (rpl_rename): Work around them.
23602         * modules/rename (Depends-on): Add same-inode.
23603
23604         rename: fix Solaris 10 bug
23605         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23606         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23607         was the only bug.
23608
23609         rename: fix Solaris 9 bug
23610         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23611         on non-directory.  Avoid calling exit.
23612         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23613         strdup.
23614         * modules/rename-tests (Depends-on): Drop lstat.
23615         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23616         (gl_PREREQ_RENAME): Delete unused macro.
23617
23618         rename-dest-slash: fix NetBSD bug
23619         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23620         links.
23621         * modules/rename-dest-slash (Depends-on): Add same-inode.
23622
23623         rename-tests: new test, exposes several platform bugs
23624         * modules/rename-tests: New file.
23625         * tests/test-rename.h: Likewise.
23626         * tests/test-rename.c: Likewise.
23627         * doc/posix-functions/rename.texi (rename): Improve documentation,
23628         including bugs that will eventually be fixed in gnulib.
23629
23630 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23631
23632         * lib/uname.c: Include <stdlib.h>
23633         (uname): Assume version info is available.
23634
23635 2009-10-02  Jim Meyering  <meyering@redhat.com>
23636
23637         gnu-web-doc-update: correct --help output
23638         * build-aux/gnu-web-doc-update: Make --help output relevant.
23639
23640         gnu-web-doc-update: add standard options
23641         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23642
23643         gnu-web-doc-update: New module.
23644         Use this script to automatically update the on-line web documentation
23645         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23646         * modules/gnu-web-doc-update: New file, from coreutils.
23647         * build-aux/gnu-web-doc-update: New script.
23648
23649 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23650
23651         link: LoadLibrary is not needed.
23652         * lib/link.c: Use GetModuleHandle.
23653
23654 2009-10-01  Eric Blake  <ebb9@byu.net>
23655
23656         getopt: bump serial number
23657         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23658         change.
23659
23660         tests: tighten link, rmdir, and remove tests
23661         * tests/test-link.h (includes): No need to use <config.h> here.
23662         Clean up if directory hard link was created, otherwise test for
23663         trailing '.'.
23664         * tests/test-linkat.c (main): Simplify.
23665         * tests/test-remove.c (main): Enhance test for trailing '.'.
23666         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23667
23668 2009-10-01  Jim Meyering  <meyering@redhat.com>
23669
23670         maint.mk: requiring "make major" was annoying, for a "minor" release.
23671         What is intended is "stable", to contrast with alpha and beta,
23672         so require "make stable", not "make major".
23673         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23674         (get_tool_versions): Likewise.
23675         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23676
23677 2009-09-30  Ben Pfaff  <blp@gnu.org>
23678
23679         Fix broken build of replacement for Windows tmpfile().
23680         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23681         flags argument added along with the 'mkostemp' module.
23682
23683 2009-09-28  Bruno Haible  <bruno@clisp.org>
23684
23685         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23686         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23687         to 'remove_elt'.
23688         (gl_list_remove): Update.
23689         * lib/gl_list.c (gl_list_remove): Update.
23690         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23691         to 'remove_elt'.
23692         (gl_oset_remove): Update.
23693         * lib/gl_list.c (gl_oset_remove): Update.
23694         Reported by Eric Blake.
23695
23696 2009-09-28  Eric Blake  <ebb9@byu.net>
23697
23698         doc: mention yet more cygwin 1.7 status
23699         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23700         cygwin.
23701         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23702         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23703
23704         argp: fix test failure
23705         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23706         that are not upper-case.  Pass correct range to tolower.
23707
23708 2009-09-27  Jim Meyering  <meyering@redhat.com>
23709
23710         test-yesno: work around sparc-dash here-document infelicity
23711         Without this change, the literal \177 byte in a here document
23712         would make dash 0.5.5.1-3 access uninitialized memory.
23713         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23714         Instead, use a marker, "@", and filter through tr to create the desired
23715         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23716
23717 2009-09-27  Bruno Haible  <bruno@clisp.org>
23718
23719         Disable untested support for new flavours of ACLs on AIX.
23720         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23721         progress.
23722         * lib/set-mode-acl.c (qset_acl): Likewise.
23723
23724 2008-12-07  Bruno Haible  <bruno@clisp.org>
23725
23726         Add support for new flavours of ACLs on AIX. (Untested.)
23727         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23728         (file_has_acl): Add support for newer AIX.
23729         * lib/set-mode-acl.c (qset_acl): Likewise.
23730         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23731         Rainer Tammer <tammer@tammer.net>.
23732
23733 2009-09-26  Eric Blake  <ebb9@byu.net>
23734
23735         argp: fix compilation of getopt
23736         * lib/getopt.in.h (includes): Use different guard than glibc.
23737         Reported by Sergey Poznyakoff.
23738
23739         doc: mention more cygwin 1.7 status
23740         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23741         bug.
23742         * doc/posix-functions/execl.texi (execl): Likewise.
23743         * doc/posix-functions/execle.texi (execle): Likewise.
23744         * doc/posix-functions/execlp.texi (execlp): Likewise.
23745         * doc/posix-functions/execv.texi (execv): Likewise.
23746         * doc/posix-functions/execve.texi (execve): Likewise.
23747         * doc/posix-functions/execvp.texi (execvp): Likewise.
23748         * doc/glibc-functions/canonicalize_file_name.texi
23749         (canonicalize_file_name): Cygwin 1.7 now provides this.
23750         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23751         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23752         on AT_SYMLINK_NOFOLLOW.
23753
23754 2009-09-24  Eric Blake  <ebb9@byu.net>
23755
23756         test-linkat: make test more robust
23757         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23758
23759         getopt: fix inclusion guards for cygwin
23760         * modules/getopt-posix (Depends-on): Add include-next.
23761         (Makefile.am): Substitute more items in replacement header.
23762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23763         <getopt.h>.
23764         * lib/getopt.in.h (includes): Use split inclusion guard, and
23765         prefer <getopt.h> over include <unistd.h> when one is present.
23766         (option): Also override name of 'struct option'.
23767
23768         same-inode: revert prior change; it is not yet ready
23769         * NEWS: Undo mention of this change.
23770         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23771         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23772         * lib/cycle-check.c (cycle_check): Likewise.
23773         * lib/same.c (same_name): Likewise.
23774         * lib/at-func2.c (at_func2): Likewise.
23775
23776 2009-09-23  Eric Blake  <ebb9@byu.net>
23777
23778         linkat: new module
23779         * modules/linkat: New file.
23780         * lib/at-func2.c (at_func2): Likewise.
23781         * lib/linkat.c (linkat): Likewise.
23782         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23783         * lib/openat-priv.h (at_func2): Add declaration.
23784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23785         * modules/unistd (Makefile.am): Substitute them.
23786         * lib/unistd.in.h (linkat): Declare it.
23787         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23788         * doc/posix-functions/linkat.texi (linkat): Likewise.
23789         * doc/posix-functions/link.texi (link): Tweak wording.
23790         * tests/test-link.c (main): Move guts...
23791         * tests/test-link.h (test_link): ...into new file.
23792         * modules/linkat-tests: New test.
23793         * tests/test-linkat.c: Likewise.
23794         * modules/link-tests (Files): Ship new file.
23795         (Depends-on): Add stdbool.
23796
23797         dirname: add library-safe mdir_name
23798         * lib/dirname.h (mdir_name): New prototype.
23799         * lib/dirname.c (dir_name): Move guts...
23800         (mdir_name): ...to new function that avoids xalloc_die.
23801
23802         fchdir: another mingw fix
23803         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23804         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23805         on mingw (where it has not yet been ported), and make it optional
23806         elsewhere.
23807         (_gl_register_fd): Use it.
23808
23809         same-inode: make SAME_INODE tri-state, to port to mingw
23810         * NEWS: Mention this change.
23811         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23812         st_ino always being 0.
23813         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23814         * lib/cycle-check.c (cycle_check): Likewise.
23815         * lib/same.c (same_name): Likewise.
23816
23817         lstat: avoid mingw compilation error
23818         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23820         lstat ourselves.
23821         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23822         was adequate.
23823         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23824         the checks for lstat.
23825         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23826
23827         link: fix test failure on Solaris 9
23828         * lib/link.c (rpl_link): Don't assume link will catch bogus
23829         trailing slash on source.
23830
23831         test-symlinkat: enhance test
23832         * tests/test-readlink.c (main): Move guts...
23833         * tests/test-readlink.h (test_readlink): ...into new file.
23834         * tests/test-symlink.c (main): Move guts...
23835         * tests/test-symlink.h (test_symlink): ...into new file.
23836         * tests/test-symlinkat.c (main): Use new files for further
23837         coverage.
23838         (do_symlink, do_readlink): New helper functions.
23839         * modules/symlink-tests (Files): Ship new file.
23840         (Depends-on): Add stdbool.
23841         * modules/readlink-tests (Files): Ship new file.
23842         (Depends-on): Add stdbool.
23843         * modules/symlinkat-tests (Files): Use new files.
23844
23845 2009-09-23  Eric Blake  <ebb9@byu.net>
23846
23847         readlink: document portability issue with symlink length
23848         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23849         systems have bogus st_size on symlinks, and mention the
23850         areadlink-with-size module.
23851         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23852         * doc/posix-functions/readlink.texi (readlink): Mention the
23853         areadlink module, and ERANGE failure.
23854         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23855         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23856
23857         readlink: fix Solaris 9 bug with trailing slash
23858         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23859         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23860         * doc/posix-functions/readlink.texi (readlink): Document this.
23861         * modules/readlink-tests: New test.
23862         * tests/test-readlink.c: Likewise.
23863
23864         readlink: fix cygwin 1.5.x bug with return type
23865         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23866         * lib/unistd.in.h (readlink): Use ssize_t.
23867         * lib/readlink.c (readlink): Likewise.
23868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23869         * modules/unistd (Makefile.am): Substitute it.
23870         * lib/unistd.in.h (readlink): Declare replacement.
23871         * doc/posix-functions/readlink.texi (readlink): Document this.
23872
23873         symlink: use throughout gnulib
23874         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23875         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23876         symlink is not used.
23877         * modules/symlinkat (Depends-on): Add symlink.
23878         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23879         * modules/canonicalize-tests (Depends-on): Likewise.
23880         * modules/lstat-tests (Depends-on): Likewise.
23881         * modules/openat-tests (Depends-on): Likewise.
23882         * modules/remove-tests (Depends-on): Likewise.
23883         * modules/rmdir-tests (Depends-on): Likewise.
23884         * modules/unlink-tests (Depends-on): Likewise.
23885         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23886         * tests/test-canonicalize.c (symlink): Likewise.
23887         * tests/test-fstatat.c (symlink): Likewise.
23888         * tests/test-lstat.c (symlink): Likewise.
23889         * tests/test-remove.c (symlink): Likewise.
23890         * tests/test-rmdir.c (symlink): Likewise.
23891         * tests/test-unlink.c (symlink): Likewise.
23892         * tests/test-unlinkat.c (symlink): Likewise.
23893
23894         symlink: new module, for Solaris 9 bug
23895         * modules/symlink: New file.
23896         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23897         * lib/symlink.c: Likewise.
23898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23899         * modules/unistd (Makefile.am): Substitute them.
23900         * lib/unistd.in.h (symlink): Declare replacement.
23901         * MODULES.html.sh (File system functions): Mention it.
23902         * doc/posix-functions/symlink.texi (symlink): Likewise.
23903         * modules/symlink-tests: New test.
23904         * tests/test-symlink.c: Likewise.
23905
23906 2009-09-23  Bruno Haible  <bruno@clisp.org>
23907
23908         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23909         when needed.
23910         Test case: gnulib-tool --import --with-tests atexit inttypes.
23911         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23912
23913 2009-09-23  Bruno Haible  <bruno@clisp.org>
23914
23915         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23916         subcommand, not in a subshell.
23917
23918 2009-09-22  Eric Blake  <ebb9@byu.net>
23919
23920         unistd: sort replacement declarations
23921         * lib/unistd.in.h: Sort declarations.
23922
23923         open, openat: minor optimization
23924         * lib/open.c (open): If open succeeded, len is non-zero.
23925         * lib/openat.c (rpl_openat): Likewise.
23926
23927         link-follow: ensure correct result
23928         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23929         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23930         distinguish between possible failures.
23931
23932 2009-09-21  Eric Blake  <ebb9@byu.net>
23933
23934         fts: avoid compiler warning
23935         * lib/fts.c (dirent_inode_sort_may_be_useful)
23936         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23937
23938 2009-09-19  Bruno Haible  <bruno@clisp.org>
23939
23940         * lib/progreloc.c (canonicalize_file_name): New declaration.
23941
23942 2009-09-19  Eric Blake  <ebb9@byu.net>
23943
23944         link: fix quoting
23945         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23946
23947         openat: fix openat bugs on Solaris 9
23948         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23949         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23950         * modules/openat (Depends-on): Add open.
23951         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23952         * modules/fcntl-h (Makefile.am): Substitute it.
23953         * lib/fcntl.in.h (openat): Declare replacement.
23954         * doc/posix-functions/openat.texi (openat): Document this.
23955
23956         openat: move fstatat and unlinkat into correct files
23957         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23958         compiled.
23959         * lib/openat.c (fstatat, unlinkat): Move...
23960         * lib/fstatat.c (fstatat): ...into correct files.
23961         * lib/unlinkat.c (unlinkat): Likewise.
23962
23963         openat: fix unlinkat bugs on Solaris 9
23964         * lib/unlinkat.c (unlinkat): New file.
23965         * modules/openat (Depends-on): Add unlink.
23966         (Files): Distribute it.
23967         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23968         trailing slash behavior is broken.
23969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23970         * modules/unistd (Makefile.am): Substitute it.
23971         * lib/unistd.in.h (unlinkat): Declare replacement.
23972         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23973
23974         openat: fix fstatat bugs on Solaris 9
23975         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23976         stat.
23977         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23978
23979         test-unlinkat: enhance test, to expose Solaris 9 bug
23980         * tests/test-unlink.c (main): Factor guts...
23981         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23982         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23983         * tests/test-rmdir.c (main): Adjust caller.
23984         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23985         (unlinker): New helper function.
23986         (rmdirat): Enhance check.
23987         * modules/rmdir-tests (Depends-on): Add stdbool.
23988         * modules/unlink-tests (Depends-on): Likewise.
23989         (Files): Add test-unlink.h.
23990         * modules/openat-tests (Files): Likewise.
23991         (Depends-on): Add unlinkdir.
23992
23993         test-fstatat: new test, to expose Solaris 9 bugs
23994         * tests/test-stat.c (main): Factor guts...
23995         * tests/test-stat.h (test_stat_func): ...into new file.
23996         * tests/test-lstat.c (main): Factor guts...
23997         * tests/test-lstat.h (test_lstat_func): ...into new file.
23998         * tests/test-fstatat.c: New file.
23999         * modules/stat-tests (Files): Add test-stat.h.
24000         * modules/lstat-tests (Files): Add test-lstat.h.
24001         (Depends-on): Add stdbool.
24002         * modules/openat-tests (Depends-on): Add pathmax.
24003         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24004         (Makefile.am): Run new test.
24005
24006         remove: new module, for mingw and Solaris 9 bugs
24007         * modules/remove: New file.
24008         * lib/remove.c: Likewise.
24009         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24011         * modules/stdio (Makefile.am): Use them.
24012         * lib/stdio.in.h (remove): Declare replacement.
24013         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24014         * doc/posix-functions/remove.texi (remove): Likewise.
24015         * modules/remove-tests: New test.
24016         * tests/test-remove.c: Likewise.
24017
24018         unlink: new module, for Solaris 9 bug
24019         * modules/unlink: New file.
24020         * lib/unlink.c: Likewise.
24021         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24023         * modules/unistd (Makefile.am): Use them.
24024         * lib/unistd.in.h (stat): Declare replacement.
24025         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24026         * doc/posix-functions/unlink.texi (unlink): Likewise.
24027         * modules/unlink-tests: New test.
24028         * tests/test-unlink.c: Likewise.
24029
24030         lstat: fix Solaris 9 bug
24031         * lib/lstat.c (lstat): Also check for trailing slash on
24032         non-symlink, non-directories.  Use stat module to simplify logic.
24033         * doc/posix-functions/lstat.texi (lstat): Document it.
24034         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24035         (configure.ac): Check for symlink.
24036         * tests/test-lstat.c (main): Add more tests.
24037
24038         stat: add as dependency to other modules
24039         * modules/chown (Depends-on): Add stat.
24040         * modules/euidaccess (Depends-on): Likewise.
24041         * modules/fchdir (Depends-on): Likewise.
24042         * modules/isdir (Depends-on): Likewise.
24043         * modules/link (Depends-on): Likewise.
24044         * modules/lstat (Depends-on): Likewise.
24045         * modules/mkdir-p (Depends-on): Likewise.
24046         * modules/modechange (Depends-on): Likewise.
24047         * modules/open (Depends-on): Likewise.
24048         * modules/readlink (Depends-on): Likewise.
24049         * modules/same (Depends-on): Likewise.
24050
24051         stat: fix Solaris 9 bug
24052         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24053         slash.
24054         * lib/stat.c (rpl_stat): Work around it.
24055         * doc/posix-functions/stat.texi (stat): Update documentation.
24056
24057         stat: new module, for mingw bug
24058         * modules/stat: New file.
24059         * lib/stat.c: Likewise.
24060         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24061         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24062         * modules/sys_stat (Makefile.am): Use them.
24063         * lib/sys_stat.in.h (stat): Declare replacement.
24064         * lib/openat.c (fstatat): Deal with lstat and stat being function
24065         macros.
24066         * modules/openat (Depends-on): Add inline.
24067         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24068         * doc/posix-functions/stat.texi (stat): Likewise.
24069         * modules/stat-tests: New test.
24070         * tests/test-stat.c: Likewise.
24071
24072 2009-09-19  Jim Meyering  <meyering@redhat.com>
24073
24074         syntax-check: detect unnecessary inclusion of canonicalize.h
24075         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24076
24077 2009-09-19  Eric Blake  <ebb9@byu.net>
24078
24079         canonicalize-lgpl: adjust clients to use correct header
24080         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24081         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24082         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24083         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24084         * lib/progreloc.c (includes): Likewise.
24085
24086 2009-09-19  Jim Meyering  <meyering@redhat.com>
24087
24088         test-posixtm.c: correct a comment
24089         * tests/test-posixtm.c: Correct first-line comment.
24090         Spotted by Eric Blake.
24091
24092 2009-09-16  Jim Meyering  <meyering@redhat.com>
24093
24094         posixtm-tests: make T const-correct; add a test case
24095         * tests/test-posixtm.c (T): Declare const.
24096         Add a test for -(2^31+1).
24097         Remove useless can-succeed-only-in-2002 test.
24098
24099         posixtm-tests: adjust the sole failing test
24100         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24101         expected output matches what mktime now produces.  Cross-checked via
24102         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24103
24104         posixtm: move #ifdef'd tests into a new module
24105         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24106         * tests/test-posixtm.c: ... this new file.
24107         * modules/posixtm-tests: New module.
24108
24109 2009-09-19  Eric Blake  <ebb9@byu.net>
24110
24111         openat: simplify use of at-func.c
24112         * lib/at-func.c (includes): Include prerequisites here, to
24113         simplify requirements on client files.
24114         * lib/openat-priv.h: Add double-inclusion guard.
24115         * lib/faccessat.c (includes): Simplify.
24116         * lib/fchmodat.c (includes): Likewise.
24117         * lib/fchownat.c (includes): Likewise.
24118         * lib/mkdirat.c (includes): Likewise.
24119         * lib/mkfifoat.c (includes): Likewise.
24120         * lib/symlinkat.c (includes): Likewise.
24121
24122         openat: allow return of fd 0
24123         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24124         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24125         unistd-safer.
24126         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24127         <fcntl.h>; this module does not leak fds.
24128         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24129         must be allowed to return 0, leaving openat_safer to add the
24130         safety.
24131         (openat_permissive): Avoid writing to just-opened fd 2 if
24132         restoring the current directory fails.
24133         * lib/openat-die.c (openat_restore_fail): Add comment.
24134         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24135         (save_cwd): Guarantee safe fd, but without use of open_safer.
24136         * tests/test-openat.c: New test.
24137         * modules/openat-tests (Files, Makefile.am): Distribute and build
24138         new file.
24139
24140         relocatable-prog-wrapper: fix build
24141         * modules/relocatable-prog-wrapper (Files): Update name of
24142         canonicalize m4 file, broken on 2009-09-17.
24143         Reported by emad hajjar <aleppos@hotmail.com>.
24144
24145 2009-09-19  Bruno Haible  <bruno@clisp.org>
24146
24147         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24148         * lib/safe-alloc.c: Likewise.
24149         Reported by Ian Beckwith <ianb@erislabs.net>.
24150
24151 2009-09-18  Bruno Haible  <bruno@clisp.org>
24152
24153         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24154         Reported by <erobles@sensacd.com.mx>.
24155
24156 2009-09-17  Eric Blake  <ebb9@byu.net>
24157
24158         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24159         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24160         slashes when checking if last component is missing.
24161         * tests/test-canonicalize.c (main): Test this.
24162
24163         canonicalize, canonicalize-lgpl: honor // if distinct from /
24164         * modules/canonicalize (Files): Add double-slash-root.m4.
24165         * modules/canonicalize-lgpl (Files): Likewise.
24166         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24167         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24168         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24169         fallback definition.
24170         (canonicalize_filename_mode): Use it to protect //.
24171         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24172         (__realpath): Likewise.
24173         * tests/test-canonicalize.c (main): Test this.
24174         * tests/test-canonicalize-lgpl.c (main): Likewise.
24175         * modules/canonicalize-tests (Depends-on): Add same-inode.
24176         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24177
24178         canonicalize-lgpl: fix glibc bug with trailing slash
24179         * m4/canonicalize-lgpl.m4: Move contents...
24180         * m4/canonicalize.m4: ...here.
24181         (gl_CANONICALIZE_LGPL): Factor realpath check...
24182         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24183         glibc 2.3.5 bug, fixed 2005-04-27.
24184         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24185         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24186         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24187         * modules/canonicalize-lgpl (Files): Manage file rename.
24188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24189         * modules/stdlib (Makefile.am): Substitute witness.
24190         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24191         is needed.
24192         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24193         replacement is required.
24194         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24195         * doc/glibc-functions/canonicalize_file_name.texi
24196         (canonicalize_file_name): Document this.
24197         * doc/posix-functions/realpath.texi (realpath): Likewise.
24198
24199         canonicalize-lgpl: reject non-directory with trailing slash
24200         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24201         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24202         catches failures in glibc 2.3.5.
24203         * tests/test-canonicalize.c (main): Likewise.
24204
24205         canonicalize-lgpl: use native realpath if it works
24206         * lib/canonicalize-lgpl.c (realpath): Guard with
24207         FUNC_REALPATH_WORKS.
24208         * lib/stdlib.in.h (realpath): Make declaration optional based on
24209         HAVE_REALPATH.
24210         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24211         native realpath works.
24212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24213         * modules/stdlib (Makefile.am): Substitute witness.
24214
24215         canonicalize, canonicalize-lgpl: use <stdlib.h>
24216         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24217         (Include): Mention <stdlib.h>.
24218         (configure.ac): Mention functions we provide.
24219         * modules/canonicalize (configure.ac): Likewise.
24220         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
24221         realpath if canonicalize_file_name is missing.
24222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
24223         * modules/stdlib (Makefile.am): Substitute witnesses.
24224         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
24225         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
24226         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
24227         * NEWS: Document this.
24228         * doc/glibc-functions/canonicalize_file_name.texi
24229         (canonicalize_file_name): Likewise.
24230         * doc/posix-functions/realpath.texi (realpath): Likewise.
24231         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
24232
24233         test-canonicalize: consolidate into single C program
24234         * tests/test-canonicalize.sh: Delete; move setup into...
24235         * tests/test-canonicalize.c (main): ...the program, making it
24236         easier to run in debugger.  Add some tests.
24237         * modules/canonicalize-tests (Files): Remove unused file.
24238         (Depends-on): Add progname.
24239         (configure.ac, Makefile.am): Simplify.
24240
24241         test-canonicalize-lgpl: consolidate into single C program
24242         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
24243         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
24244         easier to run in debugger.  Add some tests.
24245         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
24246         (configure.ac, Makefile.am): Simplify.
24247
24248         canonicalize: avoid resolvepath
24249         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
24250         unnecessary checks.
24251         * lib/canonicalize.c (includes): Simplify.
24252         (canonicalize_file_name): Drop resolvepath implementation.
24253         * modules/canonicalize (Depends-on): Drop filenamecat.
24254
24255         canonicalize: don't lose errno
24256         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
24257         over calls to free.
24258
24259         canonicalize: simplify errno handling
24260         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
24261         assignment.
24262
24263         canonicalize, canonicalize-lgpl: update module dependencies
24264         * modules/canonicalize (Depends-on): Add extensions, lstat,
24265         pathmax, stdlib.
24266         (Files): Drop pathmax.h.
24267         (configure.ac): Adjust macro name.
24268         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
24269         lstat, stdlib, sys_stat.
24270         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
24271         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
24272         extensions.
24273         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
24274         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
24275         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
24276         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
24277         declaration, if available.
24278         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
24279         we can rely on the readlink module.
24280         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
24281         (includes): Use <unistd.h> unconditionally.
24282
24283 2009-09-17  Eric Blake  <ebb9@byu.net>
24284
24285         maint: make Include sections of modules consistent
24286         * modules/alloca: Use only header name; no need to list #include.
24287         * modules/alloca-opt: Likewise.
24288         * modules/arpa_inet: Likewise.
24289         * modules/canon-host: Likewise.
24290         * modules/configmake: Likewise.
24291         * modules/dirent: Likewise.
24292         * modules/eealloc: Likewise.
24293         * modules/environ: Likewise.
24294         * modules/fchdir: Likewise.
24295         * modules/fcntl: Likewise.
24296         * modules/fcntl-h: Likewise.
24297         * modules/gethrxtime: Likewise.
24298         * modules/gettime: Likewise.
24299         * modules/ignore-value: Likewise.
24300         * modules/inet_ntop: Likewise.
24301         * modules/inet_pton: Likewise.
24302         * modules/inttypes: Likewise.
24303         * modules/isnand-nolibm: Likewise.
24304         * modules/isnanf-nolibm: Likewise.
24305         * modules/mbchar: Likewise.
24306         * modules/mbfile: Likewise.
24307         * modules/mbiter: Likewise.
24308         * modules/mbuiter: Likewise.
24309         * modules/netdb: Likewise.
24310         * modules/netinet_in: Likewise.
24311         * modules/nproc: Likewise.
24312         * modules/pagealign_alloc: Likewise.
24313         * modules/poll: Likewise.
24314         * modules/printf-frexp: Likewise.
24315         * modules/pthread: Likewise.
24316         * modules/putenv: Likewise.
24317         * modules/random_r: Likewise.
24318         * modules/relocatable-prog: Likewise.
24319         * modules/search: Likewise.
24320         * modules/select: Likewise.
24321         * modules/selinux-h: Likewise.
24322         * modules/settime: Likewise.
24323         * modules/signal: Likewise.
24324         * modules/size_max: Likewise.
24325         * modules/socklen: Likewise.
24326         * modules/ssize_t: Likewise.
24327         * modules/stdarg: Likewise.
24328         * modules/stdbool: Likewise.
24329         * modules/stddef: Likewise.
24330         * modules/stdint: Likewise.
24331         * modules/stdio: Likewise.
24332         * modules/stdlib: Likewise.
24333         * modules/string: Likewise.
24334         * modules/strings: Likewise.
24335         * modules/sys_file: Likewise.
24336         * modules/sys_ioctl: Likewise.
24337         * modules/sys_select: Likewise.
24338         * modules/sys_socket: Likewise.
24339         * modules/sys_stat: Likewise.
24340         * modules/sys_time: Likewise.
24341         * modules/sys_times: Likewise.
24342         * modules/sys_utsname: Likewise.
24343         * modules/sys_wait: Likewise.
24344         * modules/sysexits: Likewise.
24345         * modules/time: Likewise.
24346         * modules/times: Likewise.
24347         * modules/tmpfile: Likewise.
24348         * modules/trim: Likewise.
24349         * modules/unistd: Likewise.
24350         * modules/wchar: Likewise.
24351         * modules/wctype: Likewise.
24352
24353 2009-09-17  Bruno Haible  <bruno@clisp.org>
24354
24355         Make getdate.y compile on QNX and NetBSD 5 / i386.
24356         * m4/getdate.m4 (gl_GETDATE): Conditionally define
24357         TIME_T_FITS_IN_LONG_INT.
24358         * lib/getdate.y (long_time_t): New type.
24359         (relative_time): Change type of 'seconds' field to long_time_t.
24360         (get_date): Update types of local variables. Check against overflow
24361         during conversion from long_time_t to time_t.
24362         Reported by Matt Kraai <kraai@ftbfs.org>
24363         and Hasso Tepper <hasso@netbsd.org>.
24364
24365 2009-09-17  Bruno Haible  <bruno@clisp.org>
24366
24367         * modules/COPYING: Update copyright years.
24368         * modules/README: Likeiwse.
24369         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
24370         Reported by Ian Beckwith <ianb@erislabs.net>.
24371
24372 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24373
24374         * users.txt: Update references for gnuit package.
24375
24376 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24377
24378         * m4/getdelim.m4: Fix typo in copyright line.
24379
24380 2009-09-17  Bruno Haible  <bruno@clisp.org>
24381
24382         * lib/atoll.c: Use the standard header with GPL copyright.
24383         * lib/argz.in.h: Likewise.
24384         * lib/glob.c: Likewise.
24385         * lib/glob-libc.h: Likewise.
24386         * lib/random_r.c: Likewise.
24387         * lib/siglist.h: Likewise.
24388         * lib/strsignal.c: Likewise.
24389         Reported by Ian Beckwith <ianb@erislabs.net>.
24390
24391 2009-09-17  Eric Blake  <ebb9@byu.net>
24392
24393         rmdir: ensure correct dependency order
24394         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
24395
24396 2009-09-17  Bruno Haible  <bruno@clisp.org>
24397
24398         Disable assertion that fails on NetBSD 5 / i386.
24399         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
24400         Reported by Sam Steingold <sds@gnu.org>
24401         and Hasso Tepper <hasso@netbsd.org>.
24402
24403 2009-09-16  Eric Blake  <ebb9@byu.net>
24404
24405         unlinkdir: port to mingw
24406         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
24407         on which no one can unlink a directory.
24408
24409         stdlib: sort witness names
24410         * modules/stdlib (Makefile.am): Sort replacements.
24411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24412         * lib/stdlib.in.h: Likewise.
24413
24414         parse-duration-tests: avoid link failure
24415         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
24416         LIBINTL.
24417         Reported by Tom G. Christensen.
24418
24419         openat-tests: ensure unlinkat behaves like rmdir
24420         * tests/test-rmdir.c (main): Factor guts...
24421         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
24422         * modules/rmdir-tests (Files): Ship new file.
24423         * modules/openat-tests: New test.
24424         * tests/test-unlinkat.c: Likewise.
24425
24426         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
24427         * modules/rmdir-errno (Status, Notice): Now obsolete.
24428
24429         rmdir: work around cygwin 1.5.x and mingw bugs
24430         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
24431         * lib/rmdir.c (rmdir): Work around it.
24432         * modules/rmdir (Status, Notice): No longer obsolete.
24433         (Files): Add dos.m4.
24434         (Depends-on): Add unistd.
24435         (configure.ac): Set witnesses.
24436         (License): Relax to LGPLv2+.
24437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
24438         * modules/unistd (Makefile.am): Substitute witnesses.
24439         * lib/unistd.in.h (rmdir): Declare replacement.
24440         * doc/posix-functions/rmdir.texi (rmdir): Document this.
24441         * modules/rmdir-tests: New tests.
24442         * tests/test-rmdir.c: Likewise.
24443
24444 2009-09-15  Eric Blake  <ebb9@byu.net>
24445
24446         fchdir: improve use of replacement functions
24447         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
24448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
24449         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
24450         REPLACE_CLOSEDIR.
24451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
24452         * modules/sys_stat (Makefile.am): Substitute correct witness.
24453         * modules/dirent (Makefile.am): Likewise.
24454         * modules/unistd (Makefile.am): Likewise.
24455         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
24456         * lib/unistd.in.h (dup): Likewise.
24457         * lib/sys_stat.in.h (fstat): Likewise.
24458
24459         maint: ignore gnulib-tool temp files
24460         * .gitignore: Ignore files created during gnulib-tool --test.
24461
24462 2009-09-13  Jim Meyering  <meyering@redhat.com>
24463
24464         posixtm: don't reject a time that specify "60" as the number of seconds
24465         * lib/posixtm.c (posixtime): The code to reject invalid dates
24466         would also reject a time specified with the .60 suffix.
24467         But POSIX allows that, in order to accommodate leap seconds.
24468         So don't reject it.
24469         (main): Adjust tests accordingly.
24470         * modules/posixtm (Depends-on): Add stpcpy.
24471
24472 2009-09-11  Jim Meyering  <meyering@redhat.com>
24473
24474         announce-gen: include [$release_type] in emitted Subject:
24475         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
24476         e.g., [stable] in the emitted Subject: line.
24477
24478 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24479
24480         Remove obsolete macros from several modules.
24481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
24482         obsolete Autoconf macros with their modern counterparts.
24483         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
24484         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
24485         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24486         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24487         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
24488         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24490         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24491         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24492         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
24493         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24495         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
24496         * m4/sockets.m4 (gl_SOCKETS): Likewise.
24497         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
24498         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
24499         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24500         * m4/time_r.m4 (gl_TIME_R): Likewise.
24501         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24502         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
24503         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24504
24505         Fix copyright header in build-aux scripts.
24506         * build-aux/git-version-gen: Fix copyright header to match GPLv3
24507         recommendation.
24508         * build-aux/ncftpput-ftp: Likewise.
24509         * build-aux/update-copyright: Likewise.
24510
24511 2009-09-09  Eric Blake  <ebb9@byu.net>
24512
24513         test-link: allow Linux choice of errno
24514         * tests/test-link.c (main): Relax test for alternate error.
24515
24516         strndup: fix improper m4 caching
24517         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
24518         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
24519         (gl_PREREQ_STRNDUP): Delete.
24520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
24521         * modules/string (Makefile.am): Substitute it.
24522         * lib/string.in.h (strndup): Modernize prototype.
24523
24524         getcwd: port to mingw
24525         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
24526         different from the POSIX assumptions made throughout the getcwd
24527         module; fortunately, the mingw getcwd does not need replacement.
24528         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
24529         * modules/getcwd-tests: New test.
24530         * tests/test-getcwd.c: Likewise.
24531
24532         link: fix platform bugs
24533         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
24534         * lib/link.c (link): Work around them.  Fix related mingw bug.
24535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
24536         * modules/unistd (Makefile.am): Substitute it.
24537         * lib/unistd.in.h (link): Declare replacement.
24538         * doc/posix-functions/link.texi (link): Document this.
24539         * modules/link (Depends-on): Add strdup-posix, sys_stat.
24540
24541         test-link: consolidate into single C program, test more cases
24542         * tests/test-link.sh: Delete.
24543         * tests/test-link.c: Test more error conditions.  Exposes bugs on
24544         at least Cygwin and Solaris.
24545         * modules/link-tests (Files): Remove unused file.
24546         (Depends-on): Add errno, sys_stat.
24547         (Makefile.am): Simplify.
24548
24549 2009-09-08  Bruno Haible  <bruno@clisp.org>
24550
24551         Work around towlower, towupper bug on mingw.
24552         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
24553         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
24554         * doc/posix-functions/towlower.texi: Mention the mingw bug.
24555         * doc/posix-functions/towupper.texi: Likewise.
24556         Reported by Eric Blake.
24557
24558 2009-09-08  Jim Meyering  <meyering@redhat.com>
24559
24560         build: don't try to run autoheader if we don't use it
24561         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24562         is not used in configure.ac.
24563
24564 2009-09-08  Eric Blake  <ebb9@byu.net>
24565
24566         euidaccess: fix compilation error
24567         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24568
24569         rawmemchr: relax license
24570         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24571         okay.
24572         Reported by Jim Meyering.
24573
24574         mkfifoat: new module
24575         * modules/mkfifoat: New file.
24576         * lib/mkfifoat.c: Likewise.
24577         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24578         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24579         * modules/sys_stat (Makefile.am): Use them.
24580         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24581         * MODULES.html.sh (File system functions): Mention module.
24582         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24583         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24584         * modules/mkfifoat-tests: New test.
24585         * tests/test-mkfifoat.c: Likewise.
24586
24587         strchrnul: relax license
24588         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24589         okay.
24590         Reported by Jim Meyering.
24591
24592 2009-09-08  Eric Blake  <ebb9@byu.net>
24593
24594         fstatat: fix compilation on Solaris
24595         * lib/fstatat.c (includes): Add fcntl.h.
24596         Reported by Pádraig Brady.
24597
24598 2009-09-07  Eric Blake  <ebb9@byu.net>
24599
24600         rename: modernize replacement
24601         * modules/rename (Depends-on): Add stdio.
24602         (configure.ac): Declare witness.
24603         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24604         stdio take care of replacement.
24605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24606         * modules/stdio (Makefile.am): Substitute them.
24607         * lib/stdio.in.h (rename): Declare replacement.
24608         * lib/rename.c (includes): Allow cross-compilation to non-windows
24609         machines.
24610         * doc/posix-functions/rename.texi (rename): Improve
24611         documentation.
24612
24613         stdio: sort witness names
24614         * modules/stdio (Makefile.am): Sort replacements.
24615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24616         * lib/stdio.in.h: Likewise.
24617
24618         getcwd: minor cleanups
24619         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24620         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24621
24622         openat: provide more convenience names
24623         * modules/faccessat (configure.ac): Add C witness.
24624         * lib/unistd.in.h (readlinkat): Fix typo.
24625         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24626         convenience wrappers.
24627         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24628         wrappers in syntax checks.
24629
24630 2009-09-06  Eric Blake  <ebb9@byu.net>
24631
24632         doc: fix comments in recent patches
24633         * lib/faccessat.c: Mention correct function.
24634         * lib/fchmodat.c: Likewise.
24635         * lib/fchownat.c: Likewise.
24636         * lib/symlinkat.c: Likewise.
24637         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24638         constants.
24639
24640         faccessat, symlinkat: continue cleanup of previous patch
24641         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24642         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24643         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24645         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24646         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24647         set.
24648
24649 2009-09-06  Bruno Haible  <bruno@clisp.org>
24650
24651         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24652         (fstatat): Declare if GNULIB_FSTATAT is set.
24653         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24654         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24655         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24656         * modules/fcntl-h (Files): Remove m4/openat.m4.
24657         * modules/sys_stat (Files): Remove m4/openat.m4.
24658         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24659         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24660         * modules/unistd (Files): Remove m4/openat.m4.
24661         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24662         GNULIB_OPENAT.
24663         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24664         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24665         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24666         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24667         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24668         gl_OPENAT_DEFAULTS.
24669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24670         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24671         Don't require gl_OPENAT_DEFAULTS.
24672         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24673         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24674         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24675         (gl_OPENAT_DEFAULTS): Remove macro.
24676
24677 2009-09-06  Bruno Haible  <bruno@clisp.org>
24678
24679         * modules/openat (configure.ac): Remove unneeded witness.
24680
24681 2009-09-06  Bruno Haible  <bruno@clisp.org>
24682
24683         Set errno to ENOSYS when a function is entirely unsupported.
24684         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24685         EOPNOTSUPP.
24686         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24687         * modules/chown (Depends-on): Remove errno.
24688
24689 2009-09-06  Bruno Haible  <bruno@clisp.org>
24690
24691         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24692
24693 2009-09-06  Bruno Haible  <bruno@clisp.org>
24694
24695         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24696
24697 2009-09-06  Ben Pfaff  <blp@gnu.org>
24698             Bruno Haible  <bruno@clisp.org>
24699
24700         Work around a glibc bug in strtok_r.
24701         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24702         Undefine if UNDEFINE_STRTOK_R is set.
24703         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24705         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24706         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24707         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24708         UNDEFINE_STRTOK_R.
24709         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24710
24711 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24712
24713         exclude: minor fix
24714         * lib/exclude.c: Include wctype.h
24715
24716 2009-09-06  Akim Demaille  <demaille@gostai.com>
24717
24718         bootstrap: improve error message
24719         * build-aux/bootstrap (find_tool): Upon failure, report the list
24720         of candidates.
24721         Honor the initial value of the envvar.
24722
24723 2009-09-05  Eric Blake  <ebb9@byu.net>
24724
24725         symlinkat: new module
24726         * modules/symlinkat: New file.
24727         * lib/symlinkat.c: Likewise.
24728         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24730         * modules/unistd (Makefile.am): Use them.
24731         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24732         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24733         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24734         * MODULES.html.sh (File system functions): Mention module.
24735         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24736         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24737         * modules/symlinkat-tests: New test.
24738         * tests/test-symlinkat.c: Likewise.
24739
24740         test-openat-safer: add more checks
24741         * tests/test-openat-safer.c (main): Check more code paths.
24742
24743 2009-09-05  Jim Meyering  <meyering@redhat.com>
24744
24745         syntax-check: detect unnecessary inclusion of openat.h
24746         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24747
24748 2009-09-05  Bruno Haible  <bruno@clisp.org>
24749
24750         Support towlower, towupper.
24751         * doc/posix-functions/towlower.texi: Mention module wctype.
24752         * doc/posix-functions/towupper.texi: Likewise.
24753         * lib/wctype.in.h (towlower, towupper): New functions.
24754         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24755         (ASSERT): New macro.
24756         (e): New variable.
24757         (main): Test also towlower, towupper. Test WEOF argument.
24758         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24759
24760 2009-09-05  Bruno Haible  <bruno@clisp.org>
24761
24762         Fix conversion behaviour when the input is invalid.
24763         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24764         mark occurring in first pass of indirect conversion.
24765         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24766         input.
24767         Found by clang's static analyzer.
24768
24769 2009-09-05  Bruno Haible  <bruno@clisp.org>
24770
24771         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24772         where direct conversion is possible.
24773
24774 2009-09-04  Eric Blake  <ebb9@byu.net>
24775
24776         openat: fail with ENOENT on empty name
24777         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24778         buffer.
24779
24780         link-follow: fix logic bug in prior patch
24781         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24782         reversed sense of yes and no in prior patch.  Avoid confusing
24783         compilation failure with desired semantics.
24784
24785         link-follow: accomodate mingw and cross-compilation
24786         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24787         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24788         cross-compilation results to -1, to make linkat easier to
24789         implement when cross-compiling.  Trivially support mingw.
24790         * modules/link-follow (configure.ac): Call new name.
24791         * NEWS: Mention this.
24792
24793 2009-09-03  Eric Blake  <ebb9@byu.net>
24794
24795         faccessat: compile replacement
24796         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24797         needed.
24798
24799         fts: fix compilation error
24800         * lib/fts.c (includes): Re-add "openat.h", for
24801         openat_needs_fchdir.
24802
24803         faccessat: new module
24804         * modules/faccessat: New file.
24805         * lib/faccessat.c: Likewise.
24806         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24808         * modules/unistd (Makefile.am): Use it.
24809         * lib/unistd.in.h (faccessat): Declare it.
24810         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24811         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24812         * MODULES.html.sh (File system functions): Mention it.
24813         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24814         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24815
24816         euidaccess: prefer POSIX over non-standard implementation
24817         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24818         * lib/euidaccess.c (euidaccess): Use it if available.
24819
24820         openat: make template easier to use
24821         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24822         AT_FUNC_F2 to be undefined.
24823         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24824         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24825         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24826         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24827         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24828         Likewise.
24829         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24830         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24831         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24832         Likewise.
24833
24834         openat: declare in POSIX headers
24835         * NEWS: Mention this.
24836         * modules/openat (configure.ac): Declare witnesses.
24837         (Depends-on): Add fcntl-h, sys_stat, unistd.
24838         (Include): Mention correct headers.
24839         * modules/fcntl-h (Depends-on): Add link-warning.
24840         (Files): Add openat.m4.
24841         (Makefile.am): Substitute witnesses.
24842         * modules/sys_stat (Files, Makefile.am): Likewise.
24843         * modules/unistd (Files, Makefile.am): Likewise.
24844         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24845         (gl_OPENAT_DEFAULTS): New macro.
24846         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24848         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24849         (SYS_STAT_H): Remove unused variable.
24850         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24851         * lib/fcntl--.h (includes): Remove unneeded header.
24852         * lib/openat-safer.c (includes): Likewise.
24853         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24854         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24855         appropriate headers.
24856         (__OPENAT_PREFIX): Delete.
24857         * lib/fcntl.in.h (openat): Provide declaration.
24858         (AT_FDCWD): Fix Solaris bug.
24859         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24860         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24861         * lib/fchmodat.c (includes):  Adjust to find declaration.
24862         * lib/fchownat.c (includes): Likewise.
24863         * lib/mkdirat.c (includes): Likewise.
24864         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24865         still visible.
24866
24867 2009-09-02  Eric Blake  <ebb9@byu.net>
24868
24869         errno: use consistently
24870         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24871         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24872         * lib/canonicalize.c (ELOOP): Likewise.
24873         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24874         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24875         * lib/lchown.c (EOPNOTSUPP): Likewise.
24876         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24877         * lib/savewd.c (ESTALE): Likewise.
24878         * lib/settime.c (ENOSYS): Likewise.
24879         * lib/utimens.c (ENOSYS): Likewise.
24880         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24881         * lib/chdir-safer.c (ELOOP): Likewise.
24882         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24883         * modules/c-stack (Depends-on): Add errno.
24884         * modules/canonicalize (Depends-on): Likewise.
24885         * modules/chdir-safer (Depends-on): Likewise.
24886         * modules/fdopendir (Depends-on): Likewise.
24887         * modules/inet_ntop (Depends-on): Likewise.
24888         * modules/inet_pton (Depends-on): Likewise.
24889         * modules/lchown (Depends-on): Likewise.
24890         * modules/openat (Depends-on): Likewise.
24891         * modules/savewd (Depends-on): Likewise.
24892         * modules/settime (Depends-on): Likewise.
24893         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24894
24895         fts: avoid leaking fds
24896         * modules/fts (Depends-on): Add cloexec.
24897         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24898         flag.
24899
24900         fts: make directory fds more robust
24901         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24902         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24903
24904         backupfile, chdir-long, fts, savedir: make safer
24905         * lib/backupfile.c (includes): Use "dirent--.h", since
24906         numbered_backup can write to stderr during readdir.
24907         * lib/savedir.c (includes): Likewise.
24908         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24909         emulation can write to stderr on failure.
24910         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24911         * lib/getcwd.c: Document why opendir_safer is unused.
24912         * lib/glob.c: Likewise.
24913         * lib/scandir.c: Likewise.
24914         * lib/openat-proc.c: Likewise, for open_safer.
24915         * modules/backupfile (Depends-on): Add dirent-safer.
24916         * modules/savedir (Depends-on): Likewise.
24917         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24918         * modules/chdir-long (Depends-on): Add openat-safer.
24919
24920         openat-safer: new module
24921         * modules/openat-safer: New file.
24922         * lib/openat-safer.c: Likewise.
24923         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24924         * lib/fcntl-safer.h (openat_safer): Declare.
24925         * lib/fcntl--.h (openat): Override.
24926         * MODULES.html.sh (File descriptor based I/O): Mention it.
24927         * lib/openat.h: Add double-inclusion guards.
24928         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24929         "fcntl--.h", so we can implement openat.
24930         * modules/openat-safer-tests: New test.
24931         * tests/test-openat-safer.c: New file.
24932
24933         dirent-safer: new module
24934         * modules/dirent-safer: New file.
24935         * lib/dirent--.h: Likewise.
24936         * lib/dirent-safer.h: Likewise.
24937         * lib/opendir-safer.c: Likewise.
24938         * m4/dirent-safer.m4: Likewise.
24939         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24940         * modules/dirent-safer-tests: New test.
24941         * tests/test-dirent-safer.c: New file.
24942         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24943
24944         fdopendir: optimize on mingw
24945         * lib/unistd.in.h (_gl_directory_name): New prototype.
24946         * lib/fchdir.c (_gl_directory_name): Implement it.
24947         (fchdir): Use it to simplify implementation.
24948         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24949         fchdir, when available, to avoid calling [f]chdir().
24950
24951         fdopendir: split into its own module
24952         * lib/openat.c (fdopendir): Move...
24953         * lib/fdopendir.c: ...into new file.
24954         * modules/fdopendir: New module.
24955         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24956         * modules/openat (Depends-on): Add fdopendir.
24957         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24958         fdopendir here.
24959         * modules/savedir (Depends-on): Only need fdopendir, not full
24960         openat.
24961         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24962         * lib/openat.h (fdopendir): Drop prototype.
24963         * lib/dirent.in.h (fdopendir): Provide prototype.
24964         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24965         * modules/dirent (Makefile.am): Substitute them.
24966         * MODULES.html.sh (File system functions): Mention it.
24967         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24968         * modules/fdopendir-tests: New file.
24969         * tests/test-fdopendir.c: Likewise.
24970
24971         fchdir: use more consistent macro convention
24972         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24973         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24974         REPLACE_FCHDIR, rather than relying on config.h macros.
24975         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24976         inside a single make-time REPLACE_FCHDIR block, rather than using
24977         the config.h FCHDIR_REPLACEMENT.
24978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24979         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24980         Manage fstat replacement.
24981         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24982         REPLACE_FCHDIR.
24983         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24984         (Makefile.am): Substitute REPLACE_FCHDIR.
24985         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24986         FCHDIR_REPLACEMENT.
24987         * lib/dup-safer.c (dup_safer): Likewise.
24988         * lib/dup2.c (rpl_dup2): Likewise.
24989         * lib/dup3.c (rpl_dup3): Likewise.
24990         * lib/open.c (rpl_open): Likewise.
24991
24992         fchdir: simplify error handling, and support dup3
24993         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24994         stdbool, malloc-posix, realloc-posix.
24995         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24996         (ensure_dirs_slot): Return false on allocation failure.
24997         (rpl_dup2): Delete.
24998         (_gl_register_dup): New function.
24999         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25000         (_gl_register_fd): Close fd on allocation failure.
25001         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25002         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25003         prototype.
25004         (rpl_dup2_fchdir): Delete prototype.
25005         * lib/open.c (open): Update caller.
25006         * lib/dup2.c (dup2): Track fchdir metadata.
25007         * lib/dup3.c (dup3): Likewise.
25008         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25010
25011 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25012
25013         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25014         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25015         don't pass arguments to AC_OUTPUT.
25016
25017 2009-09-02  Bruno Haible  <bruno@clisp.org>
25018
25019         * modules/mkdtemp (License): Relicense under LGPLv2+.
25020         Reported by Paolo Bonzini.
25021
25022 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25023
25024         Replace uses of obsolete autoconf macros in Jim's modules.
25025         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25026         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25027         can evoke a warning from autoconf when run with -Wobsolete
25028         enabled.  They were declared obsolete for good reasons (see
25029         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25030         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25031         should not continue using the deprecated macros.
25032         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25033         obsolete Autoconf macros with modern counterparts.
25034         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25035         * m4/dos.m4 (gl_AC_DOS): Likewise.
25036         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25037         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25038         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25039         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25040         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25041         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25042         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25043         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25044         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25045         Likewise.
25046         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25047         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25048         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25049         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25050         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25051         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25052
25053 2009-09-01  Eric Blake  <ebb9@byu.net>
25054
25055         fchdir: fix off-by-one bug in previous patch
25056         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25057         (_gl_unregister_fd): Delete useless if.
25058
25059 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25060
25061         maint.mk: sort the list of syntax-check rules
25062         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25063         easier to get a sense of progress when the rules are run sequentially
25064         and take a long time.
25065
25066 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25067
25068         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25069         * modules/netinet_in: Likewise.
25070         * modules/sys_file: Likewise.
25071         * modules/sys_ioctl: Likewise.
25072         * modules/sys_select: Likewise.
25073         * modules/sys_socket: Likewise.
25074         * modules/sys_stat: Likewise.
25075         * modules/sys_time: Likewise.
25076         * modules/sys_times: Likewise.
25077         * modules/sys_utsname: Likewise.
25078         * modules/sys_wait: Likewise.
25079
25080 2009-09-01  Jim Meyering  <meyering@redhat.com>
25081
25082         fts: help ensure that return values are not ignored
25083         * lib/fts_.h (__GNUC_PREREQ): Define.
25084         (__attribute_warn_unused_result__): Define.
25085         (fts_children, fts_close, fts_open, fts_read): Declare with
25086         __attribute_warn_unused_result__.
25087
25088         fts: fts_close now fails also when closing a dir file descriptor fails
25089         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25090         and propagate to caller, along with errno.
25091
25092         announce-gen: correct formatting in --help output
25093         * build-aux/announce-gen (usage): Move the one-line description in
25094         --help output "up", to where it belongs, just after Usage:.
25095
25096 2009-08-31  Eric Blake  <ebb9@byu.net>
25097
25098         fchdir: port to mingw
25099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25100         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25101         opened, then use a substitute.
25102         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25103         replacement.
25104         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25105         (_gl_register_fd): No need to check stat if open already filters
25106         all directories.
25107         (fchdir): Fix error condition to match POSIX.
25108         * modules/fchdir (Depends-on): Add sys_stat.
25109         * doc/posix-functions/open.texi (open): Document the limitation.
25110         * modules/fchdir-tests: New file.
25111         * tests/test-fchdir.c: Likewise.
25112
25113         canonicalize: allow cross-testing from cygwin to mingw
25114         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25115         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25116         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25117         Likewise.
25118         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25119         target does not support symlinks.
25120         * tests/test-canonicalize-lgpl.sh: Likewise.
25121
25122         chown: avoid compilation warning on mingw
25123         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25124         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25125         mingw.
25126         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25127         * modules/chown (Depends-on): Add errno.
25128
25129 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25130
25131         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25132         command.
25133
25134 2009-08-31  Jim Meyering  <meyering@redhat.com>
25135
25136         canonicalize: remove useless initialization
25137         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25138         initialization of local, "end".
25139
25140 2009-08-30  Bruno Haible  <bruno@clisp.org>
25141
25142         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25143         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25144         ENOSYS.
25145
25146 2009-08-30  Bruno Haible  <bruno@clisp.org>
25147
25148         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25149         /usr/xpg4/bin/tr when it exists.
25150         * tests/test-pipe-filter-gi1.sh: Likewise.
25151
25152 2009-08-30  Bruno Haible  <bruno@clisp.org>
25153
25154         Work around deficient /usr/bin/id program on Solaris.
25155         * tests/test-file-has-acl.sh (ID): New variable.
25156         * tests/test-set-mode-acl.sh (ID): Likewise.
25157         * tests/test-copy-acl.sh (ID): Likewise.
25158         * tests/test-copy-file.sh (ID): Likewise.
25159
25160 2009-08-30  Bruno Haible  <bruno@clisp.org>
25161
25162         New module 'xstriconveh'.
25163         * lib/xstriconveh.h: New file.
25164         * lib/xstriconveh.c: New file.
25165         * modules/xstriconveh: New file.
25166
25167 2009-08-30  Bruno Haible  <bruno@clisp.org>
25168
25169         Make it easier to use mem_cd_iconveh.
25170         * lib/striconveh.h (iconveh_t): New type.
25171         (iconveh_open, iconveh_close): New declarations.
25172         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25173         with a single 'const iconveh_t *' argument.
25174         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25175         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25176         with a single 'const iconveh_t *' argument.
25177         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25178         * tests/test-striconveh.c (main): Update.
25179         * NEWS: Mention the change.
25180
25181 2009-08-30  Bruno Haible  <bruno@clisp.org>
25182
25183         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25184         problem.
25185
25186 2009-08-30  Bruno Haible  <bruno@clisp.org>
25187
25188         Work around iconv_open problem on Solaris.
25189         * lib/iconv_open-solaris.gperf: New file.
25190         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25191         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25192         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25193         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25194         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25195         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25196
25197 2009-08-29  Jim Meyering  <meyering@redhat.com>
25198
25199         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25200         * top/maint.mk (cvs-check): Remove target; it was just an alias
25201         to the better-named vc-diff-check.
25202         (maintainer-distcheck): Remove rule.  It was used only from
25203         the (alpha/beta/major) target, and all of its commands but one
25204         were coreutils-specific.
25205         (vc-dist): Remove rule.
25206         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25207         Run vc-diff-check, not vc-dist.
25208         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25209
25210 2009-08-27  Bruno Haible  <bruno@clisp.org>
25211
25212         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25213         of 0.
25214
25215 2009-08-27  Bruno Haible  <bruno@clisp.org>
25216
25217         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25218         compilers.
25219         * doc/func.texi: Document the SunPRO C bug.
25220
25221 2009-08-27  Bruno Haible  <bruno@clisp.org>
25222
25223         Fix link error on Solaris.
25224         * tests/test-parse-duration.c (xstrdup): Remove function.
25225
25226 2009-08-26  Pádraig Brady  <P@draigbrady.com>
25227
25228         ignore-value: handle pointer types, too
25229         * lib/ignore-value.h (__attribute__): Remove definition.
25230         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
25231         of a more concise and more-often effective "(void) i" statement.
25232         (ignore_ptr): New function to suppress warnings from functions that
25233         return pointers, and to make it explicit that one function doesn't
25234         handle all cases.
25235
25236 2009-08-25  Bruno Haible  <bruno@clisp.org>
25237
25238         dup2: work around a Linux bug.
25239         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
25240         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
25241         * doc/posix-functions/dup2.texi: Mention the Linux bug.
25242         Reported by Simon Josefsson.
25243
25244 2009-08-25  Jim Meyering  <meyering@redhat.com>
25245
25246         libguestfs uses gnulib
25247         * users.txt: Add libguestfs.
25248
25249 2009-08-24  Eric Blake  <ebb9@byu.net>
25250
25251         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
25252         * lib/pipe2.c (includes): Add binary-io.h.
25253         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
25254
25255 2009-08-24  Bruno Haible  <bruno@clisp.org>
25256
25257         Tolerate declared but missing accept4 syscall.
25258         * lib/accept4.c (accept4): Invoke original accept4 function first, if
25259         available.
25260         * lib/sys_socket.in.h (accept4): If the function is already present,
25261         override it.
25262         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
25263         * modules/accept4 (Makefile.am): Compile accept4.c always.
25264         Reported by Paolo Bonzini and Eric Blake.
25265
25266 2009-08-23  Bruno Haible  <bruno@clisp.org>
25267
25268         New module 'accept4'.
25269         * lib/sys_socket.in.h (accept4): New declaration.
25270         * lib/accept4.c: New file.
25271         * m4/accept4.m4: New file.
25272         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25273         GNULIB_ACCEPT4, HAVE_ACCEPT4.
25274         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
25275         HAVE_ACCEPT4.
25276         * modules/accept4: New file.
25277         * doc/glibc-functions/accept4.texi: Mention the new module.
25278
25279 2009-08-24  Jim Meyering  <meyering@redhat.com>
25280
25281         progname: also set global program_invocation_name, when possible
25282         Before this change, a libtool-enabled program that calls glibc's
25283         error function would report the program name as
25284         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
25285         * modules/progname (configure.ac): Check for a declaration of
25286         program_invocation_name.
25287         * lib/progname.c:  Include <errno.h>.
25288         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
25289         Set program_invocation_name.
25290
25291 2009-08-23  Bruno Haible  <bruno@clisp.org>
25292
25293         * lib/dup3.c: Include <string.h>.
25294
25295 2009-08-23  Bruno Haible  <bruno@clisp.org>
25296
25297         * lib/dup3.c (dup3): Test only once whether the system actually exists.
25298         * lib/pipe2.c (pipe2): Likewise.
25299         Suggested by Eric Blake.
25300
25301 2009-08-23  Bruno Haible  <bruno@clisp.org>
25302
25303         Tolerate declared but missing dup3 syscall.
25304         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
25305         * lib/unistd.in.h (dup3): If the function is already present,
25306         override it.
25307         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
25308         * modules/dup3 (Makefile.am): Compile dup3.c always.
25309         Reported by Paolo Bonzini.
25310
25311 2009-08-23  Bruno Haible  <bruno@clisp.org>
25312
25313         Tolerate declared but missing pipe2 syscall.
25314         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
25315         available.
25316         * lib/unistd.in.h (pipe2): If the function is already present,
25317         override it.
25318         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
25319         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
25320         Reported by Paolo Bonzini.
25321
25322 2009-08-23  Bruno Haible  <bruno@clisp.org>
25323
25324         * lib/pipe2.c (pipe2): Move #ifs inside function.
25325
25326 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25327
25328         quotearg: document limitations of quote_these_too
25329         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
25330         those limitations are created.
25331         * lib/quotearg.h (set_char_quoting): Document that digits and
25332         letters that are special after backslash are not permitted.
25333         (quotearg_char): Cross-reference set_char_quoting documentation.
25334
25335 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
25336
25337         quotearg: implement custom_quoting_style
25338         * lib/quotearg.c: (struct quoting_options): Add left_quote and
25339         right_quote fields.
25340         (set_custom_quoting): New public function.
25341         (quotearg_buffer_restyled): Add left_quote and right_quote
25342         arguments, handle them very much like locale quoting, and update
25343         all uses.
25344         (quotearg_n_custom): New public function.
25345         (quotearg_n_custom_mem): New public function.
25346         (quotearg_custom): New public function.
25347         (quotearg_custom_mem): New public function.
25348         * lib/quotearg.h: Prototype and document new public functions.
25349         (enum quoting_style): For escape_quoting_style and
25350         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
25351         ignored even though they're otherwise like c_quoting_style.
25352         Add custom_quoting_style member and document with comparison to
25353         clocale_quoting_style.
25354         * tests/test-quotearg.c (custom_quotes): New array.
25355         (custom_results): New array.
25356         (main): Extend to test custom quoting.
25357
25358 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25359
25360         quotearg: fix right quote escaping when it's in quote_these_too
25361         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
25362         quote, be sure to prepend only one backslash.
25363         * tests/test-quotearg.c (use_quote_double_quotes): New function.
25364         (main): Test it.
25365
25366 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25367
25368         quotearg-tests: test escaping of embedded locale quotes
25369         * tests/test-quotearg.c (struct result_strings): Add member for
25370         new input.
25371         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
25372         (inputs): Add new input.
25373         (results_g): Add expected results.
25374         (flag_results): Likewise.
25375         (locale_results): Likewise.
25376         (compare_strings): Check those.
25377
25378 2009-08-23  Bruno Haible  <bruno@clisp.org>
25379
25380         Tests for module 'dup3'.
25381         * modules/dup3-tests: New file.
25382         * tests/test-dup3.c: New file.
25383
25384         New module 'dup3'.
25385         * lib/unistd.in.h (dup3): New declaration.
25386         * lib/dup3.c: New file.
25387         * m4/dup3.m4: New file.
25388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
25389         HAVE_DUP3.
25390         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
25391         * modules/dup3: New file.
25392         * doc/glibc-functions/dup3.texi: Mention the new module.
25393
25394 2009-08-23  Bruno Haible  <bruno@clisp.org>
25395
25396         Tweak the dup2 test.
25397         * tests/test-dup2.c (main): Create the test file empty. Verify that an
25398         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
25399         the test file is still empty. Fix argument order of lseek.
25400
25401 2009-08-23  Bruno Haible  <bruno@clisp.org>
25402
25403         Avoid test link errors when the modules getopt-gnu, gettext are used.
25404         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
25405         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25406
25407 2009-08-23  Bruno Haible  <bruno@clisp.org>
25408
25409         Fix getdtablesize() on mingw.
25410         * lib/getdtablesize.c (getdtablesize): Implement differently.
25411         * lib/unistd.in.h (getdtablesize): Improve comment.
25412
25413 2009-08-23  Bruno Haible  <bruno@clisp.org>
25414
25415         New module 'mkostemp'.
25416         Based on Ulrich Drepper's 2007-08-10 change in glibc.
25417         * lib/stdlib.in.h (mksotemp): New declaration.
25418         * lib/mkostemp.c: New file, from glibc with modifications.
25419         * lib/tempname.h (GT_FILE): Remove outdated comment.
25420         (gen_tempname): Add flags argument.
25421         * lib/tempname.c (__GT_BIGFILE): Remove macro.
25422         (__GT_FILE): Map to 1.
25423         (small_open, large_open): Remove macros.
25424         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
25425         * lib/mkstemp.c (mkstemp): Update.
25426         * lib/mkdtemp.c (mkdtemp): Likewise.
25427         * m4/mkostemp.m4: New file.
25428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
25429         HAVE_MKOSTEMP.
25430         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
25431         HAVE_MKOSTEMP.
25432         * modules/mkostemp: New file, based on modules/mkstemp.
25433         * doc/glibc-functions/mkostemp.texi: Mention the new module.
25434         * NEWS: Mention the change.
25435
25436 2009-08-23  Bruno Haible  <bruno@clisp.org>
25437
25438         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
25439         Reported by Eric Blake.
25440
25441 2009-08-23  Bruno Haible  <bruno@clisp.org>
25442
25443         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
25444         Reported by Eric Blake.
25445
25446 2009-08-23  Bruno Haible  <bruno@clisp.org>
25447
25448         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
25449         * modules/pipe2 (Depends-on): Likewise.
25450
25451 2009-08-23  Eric Blake  <ebb9@byu.net>
25452
25453         fcntl-h: add O_TTY_INIT support
25454         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
25455         * tests/test-fcntl-h.c (o): Test it.
25456         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25457
25458         fcntl-h: rename from fcntl, in preparation for fcntl(2)
25459         * modules/fcntl: Move <fcntl.h> header replacement...
25460         * modules/fcntl-h: ...to new name, so as not to collide with
25461         like-named function.
25462         * tests/test-fcntl.c: Rename...
25463         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
25464         * modules/fcntl-tests: Rename...
25465         * modules/fcntl-h-tests: ...to this.  Update test file name.
25466         * modules/chdir-long (Depends-on): Update clients.
25467         * modules/chdir-safer (Depends-on): Likewise.
25468         * modules/fcntl-safer (Depends-on): Likewise.
25469         * modules/fts (Depends-on): Likewise.
25470         * modules/mkancesdirs (Depends-on): Likewise.
25471         * modules/mkdir-p (Depends-on): Likewise.
25472         * modules/open (Depends-on): Likewise.
25473         * modules/savewd (Depends-on): Likewise.
25474         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
25475         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25476
25477 2009-08-22  Bruno Haible  <bruno@clisp.org>
25478
25479         * modules/binary-io (License): Relicense under LGPL.
25480         * modules/pipe2 (License): Likewise.
25481
25482 2009-08-22  Bruno Haible  <bruno@clisp.org>
25483
25484         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
25485         return value.
25486         * lib/pipe-filter-gi.c (filter_init): Likewise.
25487         Reported by Eric Blake.
25488
25489 2009-08-22  Bruno Haible  <bruno@clisp.org>
25490
25491         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
25492         * modules/pipe (Depends-on): Add pipe2.
25493
25494 2009-08-22  Bruno Haible  <bruno@clisp.org>
25495
25496         Tests for module 'pipe2'.
25497         * modules/pipe2-tests: New file.
25498         * tests/test-pipe2.c: New file.
25499
25500         New module 'pipe2'.
25501         * lib/unistd.in.h (pipe2): New declaration.
25502         * lib/pipe2.c: New file.
25503         * m4/pipe2.m4: New file.
25504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
25505         HAVE_PIPE2.
25506         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
25507         * modules/pipe2: New file.
25508         * doc/glibc-functions/pipe2.texi: Mention the new module.
25509
25510 2009-08-22  Bruno Haible  <bruno@clisp.org>
25511
25512         Reference some new glibc functions.
25513         * doc/glibc-functions/accept4.texi: New file.
25514         * doc/glibc-functions/dup3.texi: New file.
25515         * doc/glibc-functions/mkostemp.texi: New file.
25516         * doc/glibc-functions/pipe2.texi: New file.
25517         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
25518         (Glibc sys/socket.h): Refer to accept4.
25519         (Glibc unistd.h): Refer to dup3, pipe2.
25520         Reported by Eric Blake.
25521
25522 2009-08-22  Jim Meyering  <meyering@redhat.com>
25523             Bruno Haible  <bruno@clisp.org>
25524
25525         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
25526         This makes it so packages using automake-1.11's silent-rules option
25527         can print e.g., a single "GEN    configmake.h" line, rather than
25528         the 30+ statements that perform the job.  If you want to see the
25529         actual commands, you can still run "make V=1".
25530         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
25531         so that make output is abbreviated when those variables are defined
25532         appropriately.
25533         * modules/argz: Likewise.
25534         * modules/arpa_inet: Likewise.
25535         * modules/byteswap: Likewise.
25536         * modules/configmake: Likewise.
25537         * modules/dirent: Likewise.
25538         * modules/errno: Likewise.
25539         * modules/fcntl: Likewise.
25540         * modules/float: Likewise.
25541         * modules/fnmatch: Likewise.
25542         * modules/getopt-posix: Likewise.
25543         * modules/glob: Likewise.
25544         * modules/iconv_open: Likewise.
25545         * modules/inttypes: Likewise.
25546         * modules/localcharset: Likewise.
25547         * modules/locale: Likewise.
25548         * modules/math: Likewise.
25549         * modules/netdb: Likewise.
25550         * modules/netinet_in: Likewise.
25551         * modules/poll: Likewise.
25552         * modules/posix_spawnp-tests: Likewise.
25553         * modules/sched: Likewise.
25554         * modules/search: Likewise.
25555         * modules/selinux-h: Likewise.
25556         * modules/signal: Likewise.
25557         * modules/spawn: Likewise.
25558         * modules/stdarg: Likewise.
25559         * modules/stdbool: Likewise.
25560         * modules/stddef: Likewise.
25561         * modules/stdint: Likewise.
25562         * modules/stdio: Likewise.
25563         * modules/stdlib: Likewise.
25564         * modules/string: Likewise.
25565         * modules/strings: Likewise.
25566         * modules/sys_file: Likewise.
25567         * modules/sys_ioctl: Likewise.
25568         * modules/sys_select: Likewise.
25569         * modules/sys_socket: Likewise.
25570         * modules/sys_stat: Likewise.
25571         * modules/sys_time: Likewise.
25572         * modules/sys_times: Likewise.
25573         * modules/sys_utsname: Likewise.
25574         * modules/sys_wait: Likewise.
25575         * modules/sysexits: Likewise.
25576         * modules/time: Likewise.
25577         * modules/unistd: Likewise.
25578         * modules/wchar: Likewise.
25579         * modules/wctype: Likewise.
25580
25581 2009-08-22  Jim Meyering  <meyering@redhat.com>
25582
25583         announce-gen: detect write failure
25584         * build-aux/announce-gen: Add Coda at end.
25585         Remove equivalent-but-more-verbose block at top.
25586
25587 2009-08-19  Akim Demaille  <demaille@gostai.com>
25588
25589         bootstrap: --help to stdout.
25590         * bootstrap (usage): Don't send --help to stderr.
25591         Use a here doc instead of a long string.
25592
25593 2009-08-21  Eric Blake  <ebb9@byu.net>
25594
25595         test-popen-safer: split from test-popen
25596         * tests/test-popen.c (main): Move...
25597         * tests/test-popen.h: ...into new file.
25598         * tests/test-popen-safer2.c: New file.
25599         * modules/popen-tests (Files): Add test-popen.h.
25600         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25601         Suggested by Bruno Haible.
25602
25603         test-fcntl-safer: split from test-open
25604         * tests/test-open.c (main): Move...
25605         * tests/test-open.h: ...into new file.
25606         * tests/test-fcntl-safer.c: New file.
25607         * modules/open-tests (Files): Add test-open.h.
25608         * modules/fcntl-safer-tests: New file.
25609         Suggested by Bruno Haible.
25610
25611         test-fopen-safer: split from test-fopen
25612         * tests/test-fopen.c (main): Move...
25613         * tests/test-fopen.h: ...into new file.
25614         * tests/test-fopen-safer.c: New file.
25615         * modules/fopen-tests (Files): Add test-fopen.h.
25616         * modules/fopen-safer-tests: New file.
25617         Suggested by Bruno Haible.
25618
25619 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25620
25621         popen-safer: test O_CLOEXEC at run-time.
25622         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25623
25624 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25625
25626         fcntl: move more flags to the header
25627         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25628         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25629         * lib/fcntl.in.h: Do both things here.
25630
25631 2009-08-21  Jim Meyering  <meyering@redhat.com>
25632
25633         consistently remove $@-t before redirecting to it
25634         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25635         * modules/alloca-opt: Likewise.
25636         * modules/byteswap: Likewise.
25637         * modules/fnmatch: Likewise.
25638         * modules/getopt-posix: Likewise.
25639         * modules/glob: Likewise.
25640         * modules/poll: Likewise.
25641         * modules/posix_spawnp-tests: Likewise.
25642         * modules/sys_socket: Likewise.
25643         * modules/sysexits: Likewise.
25644
25645 2009-08-21  Eric Blake  <ebb9@byu.net>
25646
25647         popen: simplify access to original popen
25648         * lib/popen.c (rpl_popen): No need to worry about popen being a
25649         macro.
25650         Reported by Bruno Haible.
25651
25652 2009-08-20  Eric Blake  <ebb9@byu.net>
25653
25654         build: avoid some compiler warnings
25655         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25656         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25657         type.
25658         (new_exclude_segment, excluded_file_pattern_p)
25659         (excluded_file_name_p): Reduce scope.
25660         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25661         old-style declaration.
25662
25663 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25664
25665         * tests/test-exclude1.sh: Handle Windows EOL.
25666         * tests/test-exclude2.sh: Likewise.
25667         * tests/test-exclude3.sh: Likewise.
25668         * tests/test-exclude4.sh: Likewise.
25669         * tests/test-exclude5.sh: Likewise.
25670         * tests/test-exclude6.sh: Likewise.
25671         * tests/test-exclude7.sh: Likewise.
25672
25673 2009-08-19  Akim Demaille  <demaille@gostai.com>
25674
25675         bootstrap: find sha1sum when named gsha1sum.
25676         * bootstrap (find_tool): New.
25677         ($SHA1SUM): New.
25678         Use it.
25679
25680 2009-08-20  Jim Meyering  <meyering@redhat.com>
25681
25682         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25683         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25684         expression that converts "." in a file name to "\." in the resulting
25685         regexp.  Start with a dummy statement, so that prior shell variable
25686         definitions are expanded portably.  Reported by Simon Josefsson.
25687
25688 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25689
25690         Fix polling for writeability of a screen buffer.
25691         * lib/poll.c: Distinguish input and screen buffers for the
25692         Win32 implementation.
25693         * lib/select.c: Likewise.
25694
25695 2009-08-19  Eric Blake  <ebb9@byu.net>
25696
25697         popen-safer: prevent popen from clobbering std descriptors
25698         * modules/popen-safer: New file.
25699         * lib/popen-safer.c: Likewise.
25700         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25701         * lib/stdio--.h (popen): Provide override.
25702         * lib/stdio-safer.h (popen_safer): Provide declaration.
25703         * tests/test-popen.c (includes): Partially test this.
25704         * modules/popen-safer-tests: New file, for more tests.
25705         * tests/test-popen-safer.c: Likewise.
25706         * MODULES.html.sh (file stream based Input/Output): Mention it.
25707
25708         tests: test some of the *-safer modules
25709         * modules/fopen-safer (Depends-on): Add fopen.
25710         * modules/fcntl-safer (Depends-on): Add fcntl.
25711         * modules/stdlib-safer (Depends-on): Add stdlib.
25712         (configure.ac): Set indicator.
25713         * modules/unistd-safer (configure.ac): Likewise.
25714         * modules/tmpfile-safer (configure.ac): Likewise.
25715         (Depends-on): Add tmpfile.
25716         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25717         active.
25718         * tests/test-fopen.c (includes): Test safer versions when they are
25719         in use.
25720         * tests/test-open.c (includes): Likewise.
25721
25722         popen: fix cygwin 1.5 bug when stdin closed
25723         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25724         * modules/popen: New file.
25725         * modules/popen-tests: Likewise.
25726         * tests/test-popen.c: Likewise.
25727         * m4/popen.m4: Likewise.
25728         * lib/popen.c: Likewise.
25729         * lib/stdio.in.h (popen): New declaration.
25730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25731         * modules/stdio (Makefile.am): Likewise.
25732         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25733
25734 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25735
25736         maint.mk: give full control over update-copyright exclusions
25737         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25738         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25739         (update-copyright): Don't force inclusion of top-level
25740         ChangeLog.  Don't force exclusion of all COPYING files, but make
25741         them the default exclusion instead.
25742
25743 2009-08-16  Bruno Haible  <bruno@clisp.org>
25744
25745         Fix test failures on Solaris 10.
25746         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25747         tests when Solaris iconv() is used.
25748         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25749         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25750         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25751         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25752         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25753
25754 2009-08-16  Bruno Haible  <bruno@clisp.org>
25755
25756         Fix test failures on Solaris 10.
25757         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25758         'tr' program and pass it as first argument.
25759         * tests/test-pipe-filter-gi1.sh: Likewise.
25760         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25761         program as first argument.
25762         * tests/test-pipe-filter-gi1.c (main): Likewise.
25763
25764 2009-08-16  Eric Blake  <ebb9@byu.net>
25765
25766         fpurge: fix previous commits
25767         * modules/fpurge (Makefile.am): Make replacement conditional,
25768         partially reverting 2007-04-29 change; missed in previous
25769         attempt.
25770         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25771         is missing.
25772
25773 2009-08-16  Bruno Haible  <bruno@clisp.org>
25774
25775         Clarify fpurge's effect on the file position.
25776         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25777         * tests/test-fpurge.c (main): Make a second pass for checking the file
25778         position.
25779
25780 2009-08-16  Bruno Haible  <bruno@clisp.org>
25781
25782         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25783         declaration of fpurge is missing.
25784         * tests/test-fpurge.c (main): Check that the file has not more contents
25785         than expected. Close the file before removing it.
25786
25787 2009-08-15  Eric Blake  <ebb9@byu.net>
25788
25789         fpurge: don't wrap working cygwin implementation
25790         * lib/fpurge.c (fpurge): Fix comment typo.
25791         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25792         1.7 to avoid replacement.
25793         * tests/test-fpurge.c (main): Enhance test.
25794
25795 2009-08-15  Eric Blake  <ebb9@byu.net>
25796         and Jim Meyering  <meyering@redhat.com>
25797
25798         test-update-copyright: skip if perl is insufficient
25799         * tests/test-update-copyright.sh: Failure to run maintainer tool
25800         should not cause testsuite failure on cygwin 1.5.
25801
25802 2009-08-14  Eric Blake  <ebb9@byu.net>
25803
25804         doc: mention more functions added in cygwin 1.7.0
25805         * doc/posix-headers/limits.texi (limits.h): Update for recent
25806         cygwin additions.
25807         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25808         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25809         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25810         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25811         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25812
25813 2009-08-14  Eric Blake  <ebb9@byu.net>
25814
25815         maint.mk: simplify update-copyright rule
25816         * top/maint.mk (update-copyright-local): Delete, and document how
25817         to do it in cfg.mk instead.
25818         (update-copyright-exclude-regexp): Delete, and document how to do
25819         it in .x-update-copyright instead.
25820         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25821         exclude ChangeLog.
25822
25823 2009-08-14  Bruno Haible  <bruno@clisp.org>
25824
25825         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25826
25827 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25828
25829         maint.mk: support update-copyright-env
25830         * top/maint.mk (update-copyright-env): Define place-holder.
25831         (update-copyright): Expand $(update-copyright-env) before
25832         invoking update-copyright.
25833
25834 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25835
25836         update-copyright: implement forced reformatting
25837         * build-aux/update-copyright: Implement and document
25838         UPDATE_COPYRIGHT_FORCE.
25839         * tests/test-update-copyright.sh: Test it.
25840
25841 2009-08-14  Eric Blake  <ebb9@byu.net>
25842         and Bruno Haible  <bruno@clisp.org>
25843
25844         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25845         * tests/test-locale.c: Revert previous patch related to NULL.
25846         * tests/test-stdio.c: Likewise.
25847         * tests/test-stdlib.c: Likewise.
25848         * tests/test-string.c: Likewise.
25849         * tests/test-unistd.c: Likewise.
25850         * modules/time-tests (Depends-on): Add verify.
25851         * modules/wchar-tests (Depends-on): Likewise.
25852         * tests/test-time.c: Test for NULL compliance.
25853         * tests/test-wchar.c: Likewise.
25854         * modules/locale (Depends-on): Add stddef.
25855         * modules/stdio (Depends-on): Likewise.
25856         * modules/stdlib (Depends-on): Likewise.
25857         * modules/string (Depends-on): Likewise.
25858         * modules/time (Depends-on): Likewise.
25859         * modules/unistd (Depends-on): Likewise.
25860         * modules/wchar (Depends-on): Likewise.
25861         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25862         * lib/stdlib.in.h (includes): Likewise.
25863         * lib/string.in.h (includes): Likewise.
25864         * lib/time.in.h (includes): Likewise.
25865         * lib/unistd.in.h (includes): Likewise.
25866         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25867         replaced.
25868         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25869         * m4/stddef_h.m4: New file.
25870         * modules/stddef: Likewise.
25871         * lib/stddef.in.h: Likewise.
25872         * modules/stddef-tests: Likewise.
25873         * tests/test-stddef.c: Likewise.
25874         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25875         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25876         * doc/posix-headers/locale.texi (locale.h): Likewise.
25877         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25878         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25879         * doc/posix-headers/string.texi (string.h): Likewise.
25880         * doc/posix-headers/time.texi (time.h): Likewise.
25881         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25882         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25883
25884 2009-08-14  Eric Blake  <ebb9@byu.net>
25885
25886         doc: improve git diff of texinfo files
25887         * .gitattributes: Add rule for *.texi files, with hint on how to
25888         use it.
25889         Copied from m4, and based on a report by Bruno Haible.
25890
25891 2009-08-14  Bruno Haible  <bruno@clisp.org>
25892
25893         Disable multithread support by default on Cygwin 1.5.x for real.
25894         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25895
25896 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25897
25898         update-copyright: much ado about intervals
25899         * build-aux/update-copyright: Implement and document
25900         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25901         of copyright year intervals.
25902         Also, document UPDATE_COPYRIGHT_YEAR.
25903         * tests/test-update-copyright.sh: Test it.
25904
25905         update-copyright: convert 2-digit to 4-digit years
25906         * build-aux/update-copyright: Implement and document.
25907         * tests/test-update-copyright.sh: Update.
25908
25909 2009-08-14  Jim Meyering  <meyering@redhat.com>
25910
25911         test-exclude: avoid coreutils "make check" failure
25912         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25913         just as in test-argmatch.c.
25914
25915 2009-08-13  Eric Blake  <ebb9@byu.net>
25916
25917         test-dup2: fix bad assumption
25918         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25919         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25920
25921         test-version-etc: fix CRLF portability issue
25922         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25923         recognize \r.
25924         * tests/test-argp-version-etc-1.sh: Likewise.
25925
25926         getopt: update client modules
25927         * modules/argp (Depends-on): Use getopt-gnu.
25928         * modules/git-merge-changelog (Depends-on): Likewise.
25929         * modules/long-options (Depends-on): Likewise.
25930         * modules/xstrtol (Depends-on): Likewise.
25931
25932 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25933
25934         * tests/test-version-etc.sh: Don't fail on different
25935         project/version.  Don't fail on CRLF differences.  Rewrite to use
25936         multiple -e instead of multiple sed forks, suggested by Eric Blake
25937         <ebb9@byu.net>.
25938         * tests/test-argp-version-etc-1.sh: Likewise.
25939
25940 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25941
25942         * tests/test-version-etc.sh: Don't fail on different
25943         project/version.
25944
25945 2009-08-12  Bruno Haible  <bruno@clisp.org>
25946
25947         Tests for modules 'getopt-posix', 'getopt-gnu'.
25948         * modules/getopt-posix-tests: New file.
25949         * tests/test-getopt.c: New file.
25950         * tests/test-getopt.h: New file.
25951         * tests/test-getopt_long.h: New file.
25952
25953         New modules 'getopt-posix', 'getopt-gnu'.
25954         * modules/getopt-gnu: New file, renamed from modules/getopt.
25955         * modules/getopt-posix: New file.
25956         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25957         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25958         (gl_GETOPT): Remove macro.
25959         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25960         Disable the test against BSD systems that declare optreset. Test
25961         against mingw bug. Test against lack of support of optional arguments
25962         on many platforms.
25963         * doc/glibc-headers/getopt.texi: Update module name and list of
25964         relevant platforms.
25965         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25966         'getopt-gnu' and more portability problems.
25967         * NEWS: Mention the changes.
25968
25969 2009-08-12  Bruno Haible  <bruno@clisp.org>
25970
25971         Ensure that optarg etc. get declared by <unistd.h>.
25972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25973         AC_USE_SYSTEM_EXTENSIONS.
25974         * modules/getopt (Depends-on): Add 'extensions'.
25975
25976 2009-08-12  Bruno Haible  <bruno@clisp.org>
25977
25978         Avoid test link errors.
25979         * modules/pipe-filter-ii-tests (Makefile.am): Define
25980         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25981         * modules/pipe-filter-gi-tests (Makefile.am): Define
25982         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25984
25985 2009-08-12  Bruno Haible  <bruno@clisp.org>
25986
25987         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25988         gl_GETOPT_SUBSTITUTE before.
25989         (gl_GETOPT): Use it.
25990         * m4/argp.m4 (gl_ARGP): Update.
25991         Reported by Sergey Poznyakoff.
25992
25993         * m4/getopt.m4: Reorder macros.
25994         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25995         (gl_GETOPT_SUBSTITUTE): Remove macro.
25996
25997 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25998
25999         Minor improvement in gitlog-to-changelog
26000
26001         * build-aux/gitlog-to-changelog: New option `--format' makes
26002         output format string configurable.
26003
26004 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26005
26006         Optimize exclude: use hash tables for non-wildcard patterns.
26007
26008         * lib/exclude.c: Include hash.h and mbuiter.h
26009         (struct exclude_pattern, exclude_segment): New data types.
26010         (struct exclude): Rewrite.
26011         (fnmatch_pattern_has_wildcards): New function.
26012         (new_exclude_segment, free_exclude_segment): New functions.
26013         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26014         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26015         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26016         * modules/exclude: Depend on hash and mbuiter.
26017
26018         * modules/exclude-tests: New file.
26019         * tests/test-exclude.c: New file.
26020         * tests/test-exclude1.sh: New file.
26021         * tests/test-exclude2.sh: New file.
26022         * tests/test-exclude3.sh: New file.
26023         * tests/test-exclude4.sh: New file.
26024         * tests/test-exclude5.sh: New file.
26025         * tests/test-exclude6.sh: New file.
26026         * tests/test-exclude7.sh: New file.
26027
26028 2009-08-12  Bruno Haible  <bruno@clisp.org>
26029
26030         Ensure that getopt() gets declared by <unistd.h>.
26031         * lib/unistd.in.h: Conditionally include getopt.h.
26032         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26033         Set GNULIB_UNISTD_H_GETOPT.
26034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26035         GNULIB_UNISTD_H_GETOPT.
26036         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26037
26038 2009-08-12  Bruno Haible  <bruno@clisp.org>
26039
26040         Clarify logic.
26041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26042         gl_replace_getopt instead of GETOPT_H.
26043
26044 2009-08-12  Bruno Haible  <bruno@clisp.org>
26045
26046         * m4/getopt.m4: Add comments.
26047
26048 2009-08-12  Bruno Haible  <bruno@clisp.org>
26049
26050         Disable multithread support by default on Cygwin 1.5.x.
26051         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26052         set gl_use_threads=no if not specified otherwise.
26053
26054 2009-08-11  Bruno Haible  <bruno@clisp.org>
26055
26056         Avoid compilation error on NetBSD 5.0.
26057         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26058         * tests/test-stdio.c: Likewise.
26059         * tests/test-stdlib.c: Likewise.
26060         * tests/test-string.c: Likewise.
26061         * tests/test-unistd.c: Likewise.
26062         Reported by Greg Troxel <gdt@ir.bbn.com>
26063         at <https://savannah.gnu.org/support/?106973>.
26064
26065 2009-08-11  Bruno Haible  <bruno@clisp.org>
26066
26067         * modules/dup2-tests (Depends-on): Remove close.
26068
26069         Undo 2009-07-19 commit.
26070         * modules/acl-tests (Depends-on): Remove close.
26071         * modules/binary-io-tests (Depends-on): Likewise.
26072         * modules/closein-tests (Depends-on): Likewise.
26073         * modules/flock-tests (Depends-on): Likewise.
26074         * modules/fsync-tests (Depends-on): Likewise.
26075         * modules/lseek-tests (Depends-on): Likewise.
26076         * modules/pipe-tests (Depends-on): Likewise.
26077         * modules/posix_spawn-tests (Depends-on): Likewise.
26078         * modules/posix_spawnp-tests (Depends-on): Likewise.
26079         * modules/stat-time-tests (Depends-on): Likewise.
26080         * modules/yesno-tests (Depends-on): Likewise.
26081
26082 2009-08-10  Bruno Haible  <bruno@clisp.org>
26083
26084         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26085
26086 2009-08-10  Bruno Haible  <bruno@clisp.org>
26087
26088         Fix a gcc warning.
26089         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26090
26091 2009-08-10  Bruno Haible  <bruno@clisp.org>
26092
26093         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26094         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26095         not only the first time.
26096         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26097         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26098         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26099         is 1, not only the the first time.
26100
26101 2009-08-10  Bruno Haible  <bruno@clisp.org>
26102
26103         Make it possible to use module 'gethostname' without module 'close'.
26104         * lib/unistd.in.h (close): Evoke a link error only if
26105         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26107         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26108         * modules/unistd (Makefile.am): Substitute
26109         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26110         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26111         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26112         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26113         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26114         * modules/sys_ioctl (Makefile.am): Substitute
26115         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26116         * modules/socket (configure.ac): On native Windows, set
26117         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26118         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26119         Reported by Sam Steingold <sds@gnu.org>.
26120
26121 2009-08-10  Bruno Haible  <bruno@clisp.org>
26122
26123         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26124         * modules/ioctl (configure.ac): Likewise.
26125
26126 2009-08-10  Bruno Haible  <bruno@clisp.org>
26127
26128         Avoid collision between gnulib wrapper and libintl wrapper.
26129         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26130         already defined in intl/printf.c.
26131         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26132         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26133
26134 2009-08-09  Bruno Haible  <bruno@clisp.org>
26135
26136         Make <sys/select.h> really self-contained, also on Solaris 10.
26137         * lib/sys_select.in.h: Include <string.h>.
26138         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26139         Solaris 10 problem.
26140         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26141         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26142         Reported by Jim Meyering.
26143
26144 2009-08-09  Bruno Haible  <bruno@clisp.org>
26145
26146         Avoid warnings from 'aclocal' that are due to a use of macro name
26147         AM_XGETTEXT_OPTION that is not defined in automake.
26148         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26149         automake.
26150         * modules/error (configure.ac): Likewise.
26151         * modules/propername (configure.ac): Likewise.
26152         * modules/vasprintf (configure.ac): Likewise.
26153         * modules/verror (configure.ac): Likewise.
26154         * modules/xprintf (configure.ac): Likewise.
26155         * modules/xvasprintf (configure.ac): Likewise.
26156
26157 2009-08-08  Bruno Haible  <bruno@clisp.org>
26158
26159         Avoid compilation error in C++ mode.
26160         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26161         Reported by Sam Steingold <sds@gnu.org>.
26162
26163 2009-08-08  Bruno Haible  <bruno@clisp.org>
26164
26165         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26166         for the various Unix platforms.
26167         * doc/posix-headers/limits.texi: Update platforms list regarding
26168         HOST_NAME_MAX.
26169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26170
26171 2009-08-07  Jim Meyering  <meyering@redhat.com>
26172
26173         selinux-at: fix typo in a comment
26174         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26175         Spotted by Paolo Bonzini.
26176
26177         selinux-at: remove redundant m4 code, add documentation
26178         * modules/selinux-at (configure.ac): Remove redundant code.
26179         LIB_SELINUX is already set via the dependent module, selinux-h.
26180         (Include): Add quotes around selinux-at.h.
26181         * lib/selinux-at.h: Add documentation.
26182         Reported by Bruno Haible in
26183         http://marc.info/?l=gnulib-bug&m=124958988300749
26184
26185 2009-08-07  Bruno Haible  <bruno@clisp.org>
26186
26187         Avoid link error on MacOS X 10.3 and 10.4.
26188         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26189         on non-ELF systems.
26190         * lib/argp-pv.c (argp_program_version): Likewise.
26191         Reported by Simon Josefsson.
26192
26193 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26194
26195         * tests/test-version-etc.sh: Use $EXEEXT.
26196
26197 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26198
26199         update-copyright: update documentation to point to maint.mk
26200         * build-aux/update-copyright: Here.
26201
26202 2009-08-06  Jim Meyering  <meyering@redhat.com>
26203
26204         maint.mk: support update-copyright-local
26205         * top/maint.mk (update-copyright-local): Define place-holder.
26206         (update-copyright): Depend on $(update-copyright-local).
26207
26208 2009-08-06  Jim Meyering  <meyering@redhat.com>
26209
26210         selinux-at: new module
26211         Initially written for coreutils, this module will soon be
26212         used by findutils, too.
26213         * MODULES.html.sh [Misc]: Add selinux-at.
26214         * lib/selinux-at.h: New file, from coreutils.
26215         * lib/selinux-at.c: Likewise.
26216         * modules/selinux-at: Likewise.
26217         (License): Change from LGPL to GPL, since it depends
26218         on the GPL'd openat module.
26219
26220         doc: update README
26221         * README: Remove references to cogito.
26222         Remove cvs-repo-updating instructions from 2007.
26223         Don't imply that CVS is better if you have limited disk space.
26224
26225 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26226
26227         update-copyright: support C-style comments
26228         * build-aux/update-copyright: Implement and document.
26229         * tests/test-update-copyright.sh: Test.
26230
26231 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26232
26233         update-copyright: support omitted "(C)"
26234         * build-aux/update-copyright: Implement and document.  Also,
26235         allow variable whitespace before "(C)".
26236         * tests/test-update-copyright.sh: Test.
26237
26238 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26239
26240         update-copyright: don't trip on non-FSF copyright statements
26241         * build-aux/update-copyright: Fix so that the first correctly
26242         formatted FSF copyright statement is recognized no matter what
26243         appears before it.  Update documentation.
26244         * tests/test-update-copyright.sh: Test that.
26245
26246 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26247
26248         update-copyright: clean up code a little
26249         * build-aux/update-copyright: Append "_re" to the name of any
26250         variable holding a regular expression.
26251         Replace "old" and "new" with "stmt" in variable names.
26252         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
26253         handled correctly.
26254         Format code more consistently.
26255
26256 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26257
26258         update-copyright-tests: improve portability
26259         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
26260         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
26261
26262 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26263
26264         update-copyright: support @copyright{} and &copy;
26265         * build-aux/update-copyright: Implement and document.
26266         * tests/test-update-copyright.sh: Test.
26267
26268 2009-08-04  Jim Meyering  <meyering@redhat.com>
26269
26270         update-copyright-tests: correctly test EOL=\r\n handling
26271         * tests/test-update-copyright.sh: Put \r at the end of some lines
26272         for the dos-eol tests.  Based on a patch by Joel E. Denny.
26273
26274         maint.mk: make update-copyright exclusion list more configurable
26275         * top/maint.mk (update-copyright): Default to excluding COPYING,
26276         but allow an override, in case someone does want to update that file.
26277
26278         maint.mk: don't update copyright date in COPYING
26279         * top/maint.mk (update-copyright): Exclude COPYING.
26280
26281         maint.mk: add a copyright-updating rule
26282         * top/maint.mk (update-copyright): New rule.
26283         Derived from coreutils/Makefile.am.
26284
26285         update-copyright: rename some variables
26286         * build-aux/update-copyright: Rename a few variables for clarity.
26287         Tweak syntax.  List Joel E. Denny as coauthor.
26288
26289 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26290
26291         update-copyright: fix bug for 2-digit last year and add tests
26292         * build-aux/update-copyright: Fix bug.
26293         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
26294         specified.
26295         * modules/update-copyright-tests: New
26296         * tests/test-update-copyright.sh: New.
26297
26298 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26299
26300         update-copyright: handle leading tabs in line prefix
26301         * build-aux/update-copyright: Count leading tabs as 8 spaces
26302         when computing margin.  This helps with the formatting of
26303         ChangeLogs, for example.
26304         Fix documentation a little.
26305
26306 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26307
26308         update-copyright: support EOL=\r\n
26309         * build-aux/update-copyright: Implement that.
26310
26311 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26312
26313         update-copyright: automatically format copyright statements
26314         * build-aux/update-copyright: Implement that.
26315         Also, be a little more predictable and safer by always failing
26316         when the full copyright format is not perfectly recognized as an
26317         unbroken whole.  Discussed at
26318         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
26319         Rewrite documentation.
26320
26321 2009-08-03  Bruno Haible  <bruno@clisp.org>
26322
26323         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
26324
26325 2009-08-02  Bruno Haible  <bruno@clisp.org>
26326
26327         Tests for module 'uname'.
26328         * modules/uname-tests: New file.
26329         * tests/test-uname.c: New file.
26330
26331         New module 'uname'.
26332         * lib/uname.c: New file.
26333         * m4/uname.m4: New file.
26334         * modules/uname: New file.
26335         * doc/posix-functions/uname.texi: Mention the new module.
26336
26337 2009-08-02  Bruno Haible  <bruno@clisp.org>
26338
26339         Tests for module 'sys_utsname'.
26340         * modules/sys_utsname-tests: New file.
26341         * tests/test-sys_utsname.c: New file.
26342
26343         New module 'sys_utsname'.
26344         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
26345         * m4/sys_utsname_h.m4: New file.
26346         * modules/sys_utsname: New file.
26347         * doc/posix-headers/sys_utsname.texi: Mention the new module.
26348
26349 2009-08-02  Bruno Haible  <bruno@clisp.org>
26350
26351         Implicitly initialize the sockets library.
26352         * lib/gethostname.c: Include sockets.h.
26353         (rpl_gethostname): Invoke gl_sockets_startup.
26354         * lib/socket.c: Include sockets.h.
26355         (rpl_socket): Invoke gl_sockets_startup.
26356         * modules/gethostname (Depends-on): Add sockets.
26357         * modules/socket (Depends-on): Likewise.
26358         * tests/test-poll.c: Don't include sockets.h.
26359         (main): Don't invoke gl_sockets_startup.
26360         * tests/test-select.c: Don't include sockets.h.
26361         (main): Don't invoke gl_sockets_startup.
26362
26363 2009-08-02  Bruno Haible  <bruno@clisp.org>
26364
26365         Allow multiple calls to gl_sockets_startup.
26366         * lib/sockets.c (initialized_sockets_version): New variable.
26367         (gl_sockets_startup): Do nothing if already called for this or a higher
26368         version.
26369         (gl_sockets_cleanup): Reset initialized_sockets_version.
26370
26371 2009-08-03  Simon Josefsson  <simon@josefsson.org>
26372
26373         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
26374         different project/version.
26375
26376 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
26377             Bruno Haible  <bruno@clisp.org>
26378
26379         Tests for module 'pipe-filter-gi'.
26380         * modules/pipe-filter-gi-tests: New file.
26381         * tests/test-pipe-filter-gi1.sh: New file.
26382         * tests/test-pipe-filter-gi1.c: New file.
26383         * tests/test-pipe-filter-gi2.sh: New file.
26384         * tests/test-pipe-filter-gi2-main.c: New file.
26385         * tests/test-pipe-filter-gi2-child.c: New file.
26386
26387         New module 'pipe-filter-gi'.
26388         * lib/pipe-filter-gi.c: New file.
26389         * modules/pipe-filter-gi: New file.
26390
26391 2009-08-02  Bruno Haible  <bruno@clisp.org>
26392             Paolo Bonzini  <bonzini@gnu.org>
26393
26394         Tests for module 'pipe-filter-ii'.
26395         * modules/pipe-filter-ii-tests: New file.
26396         * tests/test-pipe-filter-ii1.sh: New file.
26397         * tests/test-pipe-filter-ii1.c: New file.
26398         * tests/test-pipe-filter-ii2.sh: New file.
26399         * tests/test-pipe-filter-ii2-main.c: New file.
26400         * tests/test-pipe-filter-ii2-child.c: New file.
26401
26402         New module 'pipe-filter-ii'.
26403         * lib/pipe-filter.h: New file.
26404         * lib/pipe-filter-ii.c: New file.
26405         * lib/pipe-filter-aux.h: New file.
26406         * modules/pipe-filter-ii: New file.
26407
26408 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26409
26410         * lib/gc-libgcrypt.c: Change copyright to FSF.
26411         * lib/gc-gnulib.c: Likewise.
26412
26413 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
26414
26415         * lib/gethostname.c: Include limits.h.
26416
26417 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26418             Bruno Haible  <bruno@clisp.org>
26419
26420         Ensure HOST_NAME_MAX as part of the gethostname module.
26421         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
26422         define also HOST_NAME_MAX.
26423         * tests/test-gethostname.c: Include <limits.h>.
26424         (main): Check also HOST_NAME_MAX.
26425         * doc/posix-headers/limits.texi: Document the mingw problem.
26426
26427 2009-08-02  Bruno Haible  <bruno@clisp.org>
26428
26429         * lib/gethostname.c (gethostname): Fix handling of large len argument.
26430         Add comments.
26431
26432 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26433
26434         * lib/gethostname.c: Add Windows wrapper.
26435         * m4/gethostname.m4: Look for gethostname in -lws2_32.
26436         * modules/gethostname: Depend on sys_socket & errno, for also
26437         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
26438         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
26439
26440 2009-07-31  Jim Meyering  <meyering@redhat.com>
26441
26442         getloadavg: fix symbol name in comment
26443         * lib/getloadavg.c: Correct a typo I introduced when adding
26444         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
26445         Matt Kraai spotted the problem.
26446
26447 2009-07-29  Matt Kraai  <mkraai@beckman.com>
26448
26449         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
26450         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
26451         code also if ! defined N_NAME_POINTER.
26452         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
26453         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
26454         but the n_name member is a 12-byte array.
26455
26456 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
26457
26458         update-copyright: generalize comment handling
26459         * build-aux/update-copyright: Handle copyright statements
26460         within more comment styles.
26461         Document usage.
26462         Report any file with an external copyright holder or parse failure.
26463
26464 2009-07-29  Jim Meyering  <meyering@redhat.com>
26465
26466         mktime: correct setting of REPLACE_MKTIME
26467         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
26468
26469         update-copyright: new module
26470         * modules/update-copyright: New file.
26471         * build-aux/update-copyright: New file.
26472         * MODULES.html.sh (maint+release support): Add update-copyright.
26473
26474 2009-07-27  Bruno Haible  <bruno@clisp.org>
26475
26476         Fix compilation error when <ctime> is used and mktime is replaced.
26477         * lib/time.in.h (mktime): New declaration.
26478         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
26479         REPLACE_MKTIME instead of defining mktime in config.h.
26480         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
26481         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
26482         Reported by Ross McFarland <rwmcfa1@neces.com>.
26483
26484 2009-07-27  Bruno Haible  <bruno@clisp.org>
26485
26486         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
26487         Reported by Matt Kraai <mkraai@beckman.com>.
26488
26489 2009-07-25  Jim Meyering  <meyering@redhat.com>
26490
26491         maint.mk: avoid warnings about missing files
26492         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
26493         diagnostic when .prev-version does not exist.
26494         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
26495         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
26496         nonexistent cfg.mk.
26497         Suggestions from Simon Josefsson.
26498
26499 2009-07-25  Bruno Haible  <bruno@clisp.org>
26500
26501         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
26502         defined as macros. Needed on QNX 6.4.1.
26503         Reported by Matt Kraai <mkraai@beckman.com>.
26504
26505 2009-07-23  Jim Meyering  <meyering@redhat.com>
26506
26507         maint.mk: invoke "make dist" with a working value of XZ_OPT
26508         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
26509
26510 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
26511
26512         Make fseeko.c compile on QNX.
26513         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
26514
26515 2009-07-22  Peter Simons  <simons@cryp.to>
26516
26517         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
26518         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
26519         * lib/md4.h: Likewise.
26520         * lib/md5.h: Likewise.
26521         * lib/sha1.h: Likewise.
26522         * lib/sha256.h: Likewise.
26523         * lib/sha512.h: Likewise.
26524
26525         tests-sha1: don't assign literal string to 'char *' variable
26526         * tests/test-sha1.c (main): Declare locals with "const" to match
26527         attributes of the right hand side.
26528
26529 2009-07-21  Eric Blake  <ebb9@byu.net>
26530
26531         dup2: fix more mingw problems
26532         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
26533         fd to itself.
26534         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26535         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
26536         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
26537         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
26538         care of mingw bugs.
26539
26540 2009-07-21  Jim Meyering  <meyering@redhat.com>
26541
26542         vc-list-files: avoid failure when /bin/sh is dash
26543         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
26544         On some Debian based systems, /bin/sh is a symlink to dash, and running
26545         this command would omit the "/" following each 'tests' prefix:
26546           dash -x build-aux/vc-list-files -C . tests
26547         That is because bash and dash work differently:
26548           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
26549           bash ok
26550           dash odd
26551
26552 2009-07-21  Eric Blake  <ebb9@byu.net>
26553
26554         dup2-tests: test previous patch
26555         * modules/dup2-tests: New file.
26556         * tests/test-dup2.c: Likewise.
26557         * tests/test-open.c (main): Avoid unspecified behavior.
26558         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26559         test.
26560
26561         dup2: work around mingw and cygwin 1.5 bug
26562         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26564         * modules/unistd (Makefile.am): Substitute it.
26565         * lib/unistd.in.h (dup2): Declare the replacement.
26566         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26567         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26568         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26569         * modules/execute (Depends-on): Add dup2.
26570         * modules/fseterr (Depends-on): Likewise.
26571         * modules/pipe (Depends-on): Likewise.
26572         * modules/posix_spawn-internal (Depends-on): Likewise.
26573
26574 2009-07-21  Bruno Haible  <bruno@clisp.org>
26575
26576         * modules/.gitattributes: New file.
26577
26578 2009-07-20  Bruno Haible  <bruno@clisp.org>
26579
26580         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26581         (main): Use it.
26582
26583 2009-07-20  Eric Blake  <ebb9@byu.net>
26584
26585         test-pipe: make a bit more robust.
26586         * tests/test-pipe.c (myerr): Allow error messages regardless of
26587         what we do to stderr.
26588         (test_pipe): Rearrange to avoid deadlock.
26589         (child_main): Try a larger read, to ensure we avoided deadlock.
26590         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26591         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26592         if misused.
26593
26594 2009-07-19  Jim Meyering  <meyering@redhat.com>
26595
26596         fts: avoid false-positive cycle-detection
26597         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26598         for each new command line argument.
26599
26600 2009-07-19  Bruno Haible  <bruno@clisp.org>
26601
26602         Fix build error on mingw with the modules sys_select and unistd.
26603         * modules/acl-tests (Depends-on): Add close.
26604         * modules/binary-io-tests (Depends-on): Likewise.
26605         * modules/closein-tests (Depends-on): Likewise.
26606         * modules/flock-tests (Depends-on): Likewise.
26607         * modules/fsync-tests (Depends-on): Likewise.
26608         * modules/lseek-tests (Depends-on): Likewise.
26609         * modules/pipe-tests (Depends-on): Likewise.
26610         * modules/posix_spawn-tests (Depends-on): Likewise.
26611         * modules/posix_spawnp-tests (Depends-on): Likewise.
26612         * modules/stat-time-tests (Depends-on): Likewise.
26613         * modules/yesno-tests (Depends-on): Likewise.
26614
26615 2009-07-19  Bruno Haible  <bruno@clisp.org>
26616
26617         Unify conditionals.
26618         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26619         macros, not at the compiler macros.
26620         * lib/pipe.c: Likewise.
26621         * lib/execute.c: Likewise.
26622         * lib/spawni.c: Likewise.
26623
26624 2009-07-19  Bruno Haible  <bruno@clisp.org>
26625
26626         Fix handling of closed stdin/stdout/stderr on mingw.
26627         * lib/w32spawn.h: Include unistd.h.
26628         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26629         file descriptor with O_NOINHERIT flag.
26630         (fd_safer_noinherit): New function, based on fd-safer.c.
26631         (dup_safer_noinherit): New function, based on dup-safer.c.
26632         (undup_safer_noinherit): New function.
26633         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26634         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26635         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26636         instead of fd_safer.
26637         * tests/test-pipe.c: Include <windows.h>.
26638         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26639
26640         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26641         from main.
26642         (test_pipe): Pass an extra argument for disambiguation.
26643         (main): Invoke parent_main or child_main.
26644
26645         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26646         consistently.
26647
26648 2009-07-18  Eric Blake  <ebb9@byu.net>
26649
26650         test-pipe: fix mingw build
26651         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26652
26653 2009-07-18  Bruno Haible  <bruno@clisp.org>
26654
26655         * modules/pipe-tests (Makefile.am): Fix typo.
26656
26657 2009-07-18  Eric Blake  <ebb9@byu.net>
26658
26659         error: fix mingw build
26660         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26661         Reported by Bruno Haible.
26662
26663         error: avoid undefined use of stdout
26664         * lib/error.c (error, error_at_line): Check that fd 1 is open
26665         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26666         is handling faults and the close_stdout module wants to report the
26667         detection of closed stdout as an error.
26668
26669 2009-07-17  Eric Blake  <ebb9@byu.net>
26670
26671         pipe: be robust in face of closed fds
26672         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26673         should cause child to misbehave.
26674         * modules/pipe-tests: New module.
26675         * tests/test-pipe.c: New file.
26676         * tests/test-pipe.sh: New file.
26677         Reported by Akim Demaille.
26678
26679 2009-07-14  Bruno Haible  <bruno@clisp.org>
26680
26681         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26682         Reported by anonymous kc.
26683
26684 2009-07-07  Jim Meyering  <meyering@redhat.com>
26685
26686         maint.mk: don't look for translatable strings in *.m4 or *.mk
26687         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26688         when searching for translatable strings.
26689
26690 2009-07-05  Jim Meyering  <meyering@redhat.com>
26691
26692         remove superfluous parentheses in STREQ definition
26693         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26694         * lib/getugroups.c (STREQ): Likewise.
26695         * lib/fnmatch.c (STREQ): Likewise.
26696         Spotted by Bruno Haible.
26697
26698 2009-07-04  Jim Meyering  <meyering@redhat.com>
26699
26700         argv-iter: new module
26701         * MODULES.html.sh: Add argv-iter.
26702         * lib/argv-iter.c, lib/argv-iter.h: New files.
26703         * modules/argv-iter: New file.
26704         * modules/argv-iter-tests: New file.
26705         * tests/test-argv-iter.c: Test it.
26706
26707 2009-07-04  Bruno Haible  <bruno@clisp.org>
26708
26709         Fix assertion.
26710         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26711         contains more exact copies of a given entry than file2, leave the extra
26712         copies unpaired rather than aborting.
26713         Reported by Eric Blake.
26714
26715 2009-07-02  Bruno Haible  <bruno@clisp.org>
26716
26717         Speedup git-merge-changelog for git cherry-pick.
26718         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26719         (entries_mapping_get): New function, extracted from compute_mapping.
26720         (entries_mapping_reverse_get): New function.
26721         (compute_mapping): Add a 'full' argument. Return the result in a
26722         'struct entries_mapping'.
26723         (main): Update. Access the mappings through entries_mapping_get.
26724         Reported by Eric Blake.
26725
26726 2009-07-02  Bruno Haible  <bruno@clisp.org>
26727
26728         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26729         best_i.
26730
26731 2009-07-02  Bruno Haible  <bruno@clisp.org>
26732
26733         Speed up approximate search for matching ChangeLog entries.
26734         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26735         argument. Call fstrcmp_bounded instead of fstrcmp.
26736         (compute_mapping, try_split_merged_entry, main): Update callers.
26737
26738 2009-07-02  Bruno Haible  <bruno@clisp.org>
26739
26740         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26741
26742 2009-06-30  Bruno Haible  <bruno@clisp.org>
26743
26744         Reduce the number of uc_is_cased calls.
26745         * lib/unicase.h (casing_suffix_context_t): Add
26746         'first_char_except_ignorable' field.
26747         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26748         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26749         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26750         Update initializer.
26751         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26752         case-ignorable characters.
26753         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26754         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26755         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26756         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26757         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26758
26759 2009-06-30  Bruno Haible  <bruno@clisp.org>
26760
26761         Tests for module 'unicase/ignorable'.
26762         * modules/unicase/ignorable-tests: New file.
26763         * tests/unicase/test-ignorable.c: New file, generated by
26764         gen-uni-tables.
26765
26766         Tests for module 'unicase/cased'.
26767         * modules/unicase/cased-tests: New file.
26768         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26769         * tests/unicase/test-predicate-part1.h: New file, derived from
26770         tests/unictype/test-predicate-part1.h.
26771         * tests/unicase/test-predicate-part2.h: New file, same as
26772         tests/unictype/test-predicate-part2.h.
26773
26774         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26775         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26776         (output_casing_properties): New function.
26777         (main): Call it.
26778         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26779         * lib/unicase/cased.c: Include unictype/bitmap.h.
26780         (uc_is_cased): Define through a bitmap lookup.
26781         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26782         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26783         (uc_is_case_ignorable): Define through a bitmap lookup.
26784         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26785         lib/unictype/bitmap.h.
26786         (Depends-on): Add inline. Clean up.
26787         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26788         lib/unictype/bitmap.h.
26789         (Depends-on): Add inline. Clean up.
26790         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26791         recognition.
26792         * tests/unicase/test-u16-tolower.c (main): Likewise.
26793         * tests/unicase/test-u32-tolower.c (main): Likewise.
26794
26795 2009-06-30  Bruno Haible  <bruno@clisp.org>
26796
26797         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26798         * lib/unicase/u16-casemap.c: Likewise.
26799         * lib/unicase/u32-casemap.c: Likewise.
26800
26801 2009-06-29  Bruno Haible  <bruno@clisp.org>
26802
26803         Define u32_casefold as a wrapper around u32_ct_casefold.
26804         * lib/unicase/u32-casefold.c: Update.
26805         * modules/unicase/u32-casefold (Depends-on): Add
26806         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26807         unicase/empty-suffix-context. Clean up.
26808
26809         Define u16_casefold as a wrapper around u16_ct_casefold.
26810         * lib/unicase/u16-casefold.c: Update.
26811         * modules/unicase/u16-casefold (Depends-on): Add
26812         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26813         unicase/empty-suffix-context. Clean up.
26814
26815         Define u8_casefold as a wrapper around u8_ct_casefold.
26816         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26817         * lib/unicase/u8-casefold.c: Update.
26818         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26819         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26820
26821         Define u32_totitle as a wrapper around u32_ct_totitle.
26822         * lib/unicase/u32-totitle.c: Update.
26823         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26824         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26825
26826         Define u16_totitle as a wrapper around u16_ct_totitle.
26827         * lib/unicase/u16-totitle.c: Update.
26828         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26829         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26830
26831         Define u8_totitle as a wrapper around u8_ct_totitle.
26832         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26833         functions.
26834         (FUNC): Delegate to U_CT_TOTITLE.
26835         * lib/unicase/u8-totitle.c: Update.
26836         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26837         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26838
26839         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26840         invocation.
26841         * modules/unicase/u32-tolower (Depends-on): Add
26842         unicase/empty-prefix-context, unicase/empty-suffix-context.
26843
26844         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26845         invocation.
26846         * modules/unicase/u16-tolower (Depends-on): Add
26847         unicase/empty-prefix-context, unicase/empty-suffix-context.
26848
26849         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26850         * modules/unicase/u8-tolower (Depends-on): Add
26851         unicase/empty-prefix-context, unicase/empty-suffix-context.
26852
26853         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26854         invocation.
26855         * modules/unicase/u32-toupper (Depends-on): Add
26856         unicase/empty-prefix-context, unicase/empty-suffix-context.
26857
26858         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26859         invocation.
26860         * modules/unicase/u16-toupper (Depends-on): Add
26861         unicase/empty-prefix-context, unicase/empty-suffix-context.
26862
26863         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26864         * modules/unicase/u8-toupper (Depends-on): Add
26865         unicase/empty-prefix-context, unicase/empty-suffix-context.
26866
26867         New module 'unicase/u32-ct-casefold'.
26868         * lib/unicase/u32-ct-casefold.c: New file.
26869         * modules/unicase/u32-ct-casefold: New file.
26870
26871         New module 'unicase/u16-ct-casefold'.
26872         * lib/unicase/u16-ct-casefold.c: New file.
26873         * modules/unicase/u16-ct-casefold: New file.
26874
26875         New module 'unicase/u8-ct-casefold'.
26876         * lib/unicase/u8-ct-casefold.c: New file.
26877         * lib/unicase/u-ct-casefold.h: New file, derived from
26878         lib/unicase/u-casefold.h.
26879         * modules/unicase/u8-ct-casefold: New file.
26880
26881         New module 'unicase/u32-ct-totitle'.
26882         * lib/unicase/u32-ct-totitle.c: New file.
26883         * modules/unicase/u32-ct-totitle: New file.
26884
26885         New module 'unicase/u16-ct-totitle'.
26886         * lib/unicase/u16-ct-totitle.c: New file.
26887         * modules/unicase/u16-ct-totitle: New file.
26888
26889         New module 'unicase/u8-ct-totitle'.
26890         * lib/unicase/u8-ct-totitle.c: New file.
26891         * lib/unicase/u-ct-totitle.h: New file, derived from
26892         lib/unicase/u-totitle.h.
26893         * modules/unicase/u8-ct-totitle: New file.
26894
26895         New module 'unicase/u32-ct-tolower'.
26896         * lib/unicase/u32-ct-tolower.c: New file.
26897         * modules/unicase/u32-ct-tolower: New file.
26898
26899         New module 'unicase/u16-ct-tolower'.
26900         * lib/unicase/u16-ct-tolower.c: New file.
26901         * modules/unicase/u16-ct-tolower: New file.
26902
26903         New module 'unicase/u8-ct-tolower'.
26904         * lib/unicase/u8-ct-tolower.c: New file.
26905         * modules/unicase/u8-ct-tolower: New file.
26906
26907         New module 'unicase/u32-ct-toupper'.
26908         * lib/unicase/u32-ct-toupper.c: New file.
26909         * modules/unicase/u32-ct-toupper: New file.
26910
26911         New module 'unicase/u16-ct-toupper'.
26912         * lib/unicase/u16-ct-toupper.c: New file.
26913         * modules/unicase/u16-ct-toupper: New file.
26914
26915         New module 'unicase/u8-ct-toupper'.
26916         * lib/unicase/u8-ct-toupper.c: New file.
26917         * modules/unicase/u8-ct-toupper: New file.
26918
26919         Add context arguments to u*_casemap functions.
26920         * lib/unicase/unicasemap.h: Include unicase.h.
26921         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26922         suffix_context arguments.
26923         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26924         functions.
26925         (FUNC): Add prefix_context and suffix_context arguments. Use
26926         uc_is_cased and uc_is_case_ignorable.
26927         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26928         * lib/unicase/u16-casemap.c: Likewise.
26929         * lib/unicase/u32-casemap.c: Likewise.
26930         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26931         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26932         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26933         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26934         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
26935         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26936
26937         New module 'unicase/u32-suffix-context'.
26938         * lib/unicase/u32-suffix-context.c: New file.
26939         * modules/unicase/u32-suffix-context: New file.
26940
26941         New module 'unicase/u16-suffix-context'.
26942         * lib/unicase/u16-suffix-context.c: New file.
26943         * modules/unicase/u16-suffix-context: New file.
26944
26945         New module 'unicase/u8-suffix-context'.
26946         * lib/unicase/u8-suffix-context.c: New file.
26947         * lib/unicase/u-suffix-context.h: New file.
26948         * modules/unicase/u8-suffix-context: New file.
26949
26950         New module 'unicase/empty-suffix-context'.
26951         * lib/unicase/empty-suffix-context.c: New file.
26952         * modules/unicase/empty-suffix-context: New file.
26953
26954         New module 'unicase/u32-prefix-context'.
26955         * lib/unicase/u32-prefix-context.c: New file.
26956         * modules/unicase/u32-prefix-context: New file.
26957
26958         New module 'unicase/u16-prefix-context'.
26959         * lib/unicase/u16-prefix-context.c: New file.
26960         * modules/unicase/u16-prefix-context: New file.
26961
26962         New module 'unicase/u8-prefix-context'.
26963         * lib/unicase/u8-prefix-context.c: New file.
26964         * lib/unicase/u-prefix-context.h: New file.
26965         * lib/unicase/context.h: New file.
26966         * modules/unicase/u8-prefix-context: New file.
26967
26968         New module 'unicase/empty-prefix-context'.
26969         * lib/unicase/empty-prefix-context.c: New file.
26970         * modules/unicase/empty-prefix-context: New file.
26971
26972         New module 'unicase/ignorable'.
26973         * lib/unicase/ignorable.c: New file.
26974         * modules/unicase/ignorable: New file.
26975
26976         New module 'unicase/cased'.
26977         * lib/unicase/caseprop.h: New file.
26978         * lib/unicase/cased.c: New file.
26979         * modules/unicase/cased: New file.
26980
26981         New functions for case mapping of substrings.
26982         * lib/unicase.h (casing_prefix_context_t): New type.
26983         (unicase_empty_prefix_context): New variable.
26984         (u8_casing_prefix_context, u16_casing_prefix_context,
26985         u32_casing_prefix_context, u8_casing_prefixes_context,
26986         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26987         declarations.
26988         (casing_suffix_context_t): New type.
26989         (unicase_empty_suffix_context): New variable.
26990         (u8_casing_suffix_context, u16_casing_suffix_context,
26991         u32_casing_suffix_context, u8_casing_suffixes_context,
26992         u16_casing_suffixes_context, u32_casing_suffixes_context,
26993         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26994         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26995         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26996         declarations.
26997
26998 2009-06-28  Jim Meyering  <meyering@redhat.com>
26999
27000         boostrap: indent only with spaces
27001         * build-aux/bootstrap: Indent only with spaces, never TABs.
27002
27003         bootstrap: split long lines
27004         * build-aux/bootstrap: Keep line length < 80.
27005
27006         bootstrap: sync from coreutils
27007         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27008         just as autoreconf does.  Verify a list of prerequisite
27009         package-name,version-number pairs if defined in bootstrap.conf.
27010         Refer to README-prereq, if prerequisites are not satisfied.
27011
27012 2009-06-27  Eric Blake  <ebb9@byu.net>
27013
27014         tests: add test for bogus NULL definition
27015         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27016         * tests/test-stdlib.c: Likewise.
27017         * tests/test-string.c: Likewise.
27018         * tests/test-locale.c: Likewise.
27019         * tests/test-unistd.c: Likewise.
27020         * modules/stdio-tests (Depends-on): Add verify.
27021         * modules/stdlib-tests (Depends-on): Likewise.
27022         * modules/string-tests (Depends-on): Likewise.
27023         * modules/locale-tests (Depends-on): Likewise.
27024         * modules/unistd-tests (Depends-on): Likewise.
27025
27026 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27027
27028         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27029         self-explaining comment.
27030         * m4/selinux-selinux-h: Update serial.
27031         (gl_LIBSELINUX): New macro, adding a warning for missing development
27032         packages to code extracted from...
27033         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27034         Add warning for missing development packages here, too.
27035
27036 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27037
27038         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27039
27040 2009-06-25  Eric Blake  <ebb9@byu.net>
27041
27042         version-etc: fix regression
27043         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27044         gcc.
27045         (version_etc): Use it, to catch bugs with trailing NULL.
27046         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27047         (version_etc_va): Fix logic bug.
27048         * modules/version-etc-tests: Add test.
27049         * tests/test-version-etc.c: New file.
27050         * tests/test-version-etc.sh: Likewise.
27051
27052 2009-06-25  Sam Steingold  <sds@gnu.org>
27053
27054         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27055         mbtowc declaration.
27056
27057 2009-06-25  Eric Blake  <ebb9@byu.net>
27058
27059         fpurge: migrate into <stdio.h>
27060         * lib/fpurge.h: Delete...
27061         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27062         * lib/fpurge.c (fpurge): Change declaring header.
27063         * modules/fpurge (Files): Drop deleted file.
27064         (Depends-on): Add stdio.
27065         (configure.ac): Set witness.
27066         * modules/stdio (Makefile.am): Support fpurge macros.
27067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27068         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27069         * lib/fflush.c: Update client.
27070         * tests/test-fpurge.c: Likewise.
27071         * NEWS: Mention the change.
27072
27073 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27074
27075         * lib/argp-version-etc.c (program_authors): Add const
27076         qualifier.
27077         * lib/version-etc.c: Fix typos in the comments.
27078         * modules/argp-version-etc: Depends on version-etc.
27079
27080 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27081
27082         argp-version-etc: new module.
27083
27084         * lib/argp-version-etc.c: New file.
27085         * lib/argp-version-etc.h: New file.
27086         * modules/argp-version-etc: New file.
27087         * modules/argp-version-etc-tests: New file.
27088         * tests/test-argp-version-etc.c: New test.
27089         * tests/test-argp-version-etc-1.sh: New test.
27090
27091 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27092
27093         Provide additional interfaces and documentation for version-etc
27094         module.
27095
27096         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27097         interfaces.
27098         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27099         prototypes.
27100
27101 2009-06-24  Bruno Haible  <bruno@clisp.org>
27102
27103         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27104         HAVE_LIB${NAME} macro.
27105         Reported by Sam Steingold <sds@gnu.org>.
27106
27107 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27108
27109         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27110         needed.
27111
27112 2009-06-21  Bruno Haible  <bruno@clisp.org>
27113
27114         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27115         work.
27116         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27117         together with LIB${NAME}, LTLIB${NAME}.
27118         Reported by Sam Steingold <sds@gnu.org>.
27119
27120 2009-06-20  Jim Meyering  <meyering@redhat.com>
27121
27122         tests: make sc_require_test_exit_idiom more generic
27123         * top/maint.mk (Exit_witness_file): New overridable variable.
27124         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27125         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27126
27127 2009-06-19  Jim Meyering  <meyering@redhat.com>
27128
27129         hash: reverse order of src/dst parameters in an internal interface
27130         * lib/hash.c (transfer_entries): Reverse order of parameters to
27131         put DST before SRC.  Adjust callers.
27132
27133         tests: test-hash: avoid wholesale duplication
27134         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27135         Instead, use a loop and add a single conditional.
27136
27137         tests: test-hash: allow seed selection via a command line argument
27138         * tests/test-hash.c (get_seed): New function.
27139         (main): Use it.
27140
27141 2009-06-19  Eric Blake  <ebb9@byu.net>
27142
27143         hash: avoid memory leak on allocation failure
27144         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27145         failure.  Factor repeated algorithm...
27146         (transfer_entries): ...into new helper routine.
27147         (hash_delete): React to hash_rehash return value.
27148
27149         hash: reduce memory pressure in hash_rehash no-op case
27150         * lib/hash.c (next_prime): Avoid overflow.
27151         (hash_initialize): Factor bucket size computation...
27152         (compute_bucket_size): ...into new helper function.
27153         (hash_rehash): Use new function and open coding to reduce memory
27154         pressure, and avoid a memory leak in USE_OBSTACK code.
27155         Reported by Jim Meyering.
27156
27157 2009-06-18  Eric Blake  <ebb9@byu.net>
27158
27159         hash: make rotation more obvious
27160         * modules/hash (Depends-on): Add bitrotate and stdint.
27161         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27162         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27163         (SIZE_MAX): Rely on headers for definition.
27164         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27165         (raw_hasher): Use rotr_sz.
27166         Suggested by Jim Meyering.
27167
27168         hash: fix memory leak in last patch
27169         * lib/hash.c (hash_rehash): Avoid memory leak.
27170
27171         hash: avoid no-op rehashing
27172         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27173
27174         hash: provide default callback functions
27175         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27176         (hash_initialize): Use them as defaults.
27177         * tests/test-hash.c (main): Test this.
27178
27179         hash: minor optimization
27180         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27181         when possible.
27182         (hash_initialize): Document this promise.
27183         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27184         * tests/test-hash.c (hash_compare_strings): Test this.
27185
27186 2009-06-18  Bruno Haible  <bruno@clisp.org>
27187
27188         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27189         going to be replaced anyway.
27190
27191 2009-06-18  Bruno Haible  <bruno@clisp.org>
27192
27193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27194         in one place.
27195         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27196         be replaced anyway.
27197
27198 2009-06-18  Eric Blake  <ebb9@byu.net>
27199
27200         hash: check for resize before insertion
27201         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27202         threshold before insertion, so that a pathological hash_rehash
27203         that fills every bucket can still trigger another rehash.
27204
27205 2009-06-18  Jim Meyering  <meyering@redhat.com>
27206
27207         hash-tests: add a loop around the small tests
27208         * tests/test-hash.c (main): Repeat small tests with selected
27209         small initial table sizes.
27210
27211 2009-06-17  Eric Blake  <ebb9@byu.net>
27212
27213         hash: minor cleanups
27214         * lib/hash.h (hash_entry): Make opaque, by moving...
27215         * lib/hash.c (hash_entry): ...here.
27216         (hash_insert): Clarify restrictions on what can be inserted.
27217         (hash_get_next): Clarify when it is safe to remove an element
27218         during traversal.
27219         (check_tuning): Skip verification when tuning is known safe.
27220         (hash_initialize): Clarify restrictions on tuning.
27221
27222 2009-06-17  Jim Meyering  <jim@meyering.net>
27223         and Eric Blake  <ebb9@byu.net>
27224
27225         hash-tests: new module
27226         * modules/hash-tests: New file.
27227         * tests/test-hash.c: New file.
27228
27229 2009-06-17  Eric Blake  <ebb9@byu.net>
27230
27231         strstr-simple: document new module
27232         * MODULES.html.sh: Document new module.
27233
27234         strstr, strcasestr: replace on platforms with broken memchr
27235         * modules/strstr: Split into...
27236         * modules/strstr-simple: ...new module that does not care about
27237         performance, but does care about glibc bug.
27238         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
27239         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
27240         if platform memchr is broken, per Debian bug 521737.
27241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
27242         memchr.
27243         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
27244         * doc/posix-functions/strstr.texi (strstr): Document the fix.
27245         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27246         * modules/mountlist (Depends-on): Add strstr-simple.
27247         * modules/gen-uni-tables (Depends-on): Likewise.
27248         * modules/argz (Depends-on): Add strstr.
27249
27250 2009-06-17  Bruno Haible  <bruno@clisp.org>
27251
27252         * modules/posix_spawn-internal (Depends-on): Add errno.
27253
27254 2009-06-17  Bruno Haible  <bruno@clisp.org>
27255
27256         Define missing ESTALE on Interix 3.5.
27257         * lib/errno.in.h (ESTALE): Assign a value if missing.
27258         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
27259         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
27260         missing.
27261         * doc/posix-headers/errno.texi: Mention the Interix bug.
27262         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
27263
27264 2009-06-15  Eric Blake  <ebb9@byu.net>
27265
27266         memchr, memchr2: add valgrind exception
27267         * lib/memchr.valgrind: New file.
27268         * lib/memchr2.valgrind: New file.
27269         * modules/memchr (Files): Distribute valgrind file.
27270         * modules/memchr2 (Files): Likewise.
27271
27272         docs: memchr is no longer obsolete
27273         * MODULES.html.sh: Move memchr from obsolete to string.h section.
27274         * lib/string.in.h (memchr): Simplify logic.
27275
27276 2009-06-14  Jim Meyering  <meyering@redhat.com>
27277
27278         link-follow: fix the "checking..." message to not mention trailing slash
27279         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
27280         never considered trailing slashes.
27281
27282 2009-06-14  Bruno Haible  <bruno@clisp.org>
27283
27284         * m4/memchr.m4: Mention also the bug on IA-64.
27285         * doc/posix-functions/memchr.texi: Likewise.
27286
27287 2009-06-12  Eric Blake  <ebb9@byu.net>
27288
27289         memchr: detect broken x86_64 and alpha implementations
27290         * modules/memchr-tests (Depends-on): Move mmap detection...
27291         * modules/memchr (Depends-on): ...here.
27292         (configure.ac): Set indicator.
27293         * lib/string.in.h (memchr): Declare replacement.
27294         * modules/string (Makefile.am): Trigger replacement.
27295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27296         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
27297         bugs.
27298         * doc/posix-functions/memchr.texi (memchr): Document the bug.
27299         * modules/getpagesize (License): Relax license.
27300
27301 2009-06-11  Bruno Haible  <bruno@clisp.org>
27302
27303         * lib/idpriv.h: Add more references.
27304
27305 2009-06-08  Bruno Haible  <bruno@clisp.org>
27306
27307         Tests for module 'idpriv-droptemp'.
27308         * modules/idpriv-droptemp-tests: New file.
27309         * tests/test-idpriv-droptemp.sh: New file.
27310         * tests/test-idpriv-droptemp.su.sh: New file.
27311         * tests/test-idpriv-droptemp.c: New file.
27312
27313         New module 'idpriv-droptemp'.
27314         * lib/idpriv-droptemp.c: New file.
27315         * modules/idpriv-droptemp: New file.
27316
27317 2009-06-08  Bruno Haible  <bruno@clisp.org>
27318
27319         Tests for module 'idpriv-drop'.
27320         * modules/idpriv-drop-tests: New file.
27321         * tests/test-idpriv-drop.sh: New file.
27322         * tests/test-idpriv-drop.su.sh: New file.
27323         * tests/test-idpriv-drop.c: New file.
27324
27325         New module 'idpriv-drop'.
27326         * lib/idpriv.h: New file.
27327         * lib-idpriv-drop.c: New file.
27328         * m4/idpriv.m4: New file.
27329         * modules/idpriv-drop: New file.
27330
27331 2009-06-08  Bruno Haible  <bruno@clisp.org>
27332
27333         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
27334         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27335         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27336         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27337         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27338         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27339         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27340
27341 2009-06-08  Eric Blake  <ebb9@byu.net>
27342
27343         test-strstr: use memory fence, when possible
27344         * tests/test-strstr.c (main): Use memory fence, in order to be
27345         more likely to trigger Debian bug 521737.
27346         * modules/strstr-tests (Files): Pull in additional files.
27347
27348         memchr: no longer obsolete, for wider field testing
27349         * modules/memchr (Status, Notice): Delete, this module is no
27350         longer obsolete.
27351         * modules/vasnprintf (Depends-on): Add memchr.
27352
27353 2009-06-07  Jim Meyering  <meyering@redhat.com>
27354
27355         hash: declare some functions with the warn_unused_result attribute
27356         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
27357
27358 2009-06-07  Bruno Haible  <bruno@clisp.org>
27359
27360         * tests/test-alignof.c: Don't test int64_t if it does not exist.
27361         Reported by Eric Blake.
27362
27363 2009-06-06  Eric Blake  <ebb9@byu.net>
27364
27365         test-alignof: fix typo with long double
27366         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
27367         compiler error.
27368
27369 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
27370
27371         Escape non-texinfo { and }s.
27372         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
27373         markup error.
27374
27375 2009-06-04  Jim Meyering  <meyering@redhat.com>
27376
27377         gitlog-to-changelog: don't infloop on an empty commit log
27378         * build-aux/gitlog-to-changelog: Warn about an empty log message.
27379         Reported by Boris Petersen <transacid@centerim.org>.
27380
27381 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
27382
27383         version-etc: extend for packagers
27384         Add three new configure options, intended for packagers:
27385           --with-packager="packager name"
27386           --with-packager-version="packager-specific version"
27387           --with-packager-bug-reports="packager bug reporting"
27388         An example with coreutils:
27389           $ ./configure \
27390             --with-packager=Gentoo \
27391             --with-packager-bug-report=http://bugs.gentoo.org/ \
27392             --with-packager-version="patchset 1.6"
27393           $ ./src/ls --version | head -n2
27394           ls (GNU coreutils) 7.1-dirty
27395           Packaged by Gentoo (patchset 1.6)
27396         Note that the bug reporting info via --help doesn't show up because
27397         coreutils uses its own custom emit_bug_reporting_address() implementation
27398         in src/system.h.  If it didn't, it'd look like:
27399           $ ./src/ls --help | tail -n4
27400           Report bugs to <bug-coreutils@gnu.org>.
27401           Report Gentoo bugs to <http://bugs.gentoo.org/>.
27402           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
27403           General help using GNU software: <http://www.gnu.org/gethelp/>.
27404         * lib/version-etc.c: Print new information, if provided.
27405         * m4/version-etc.m4: New file.
27406         * modules/version-etc (Files): Add m4/version-etc.m4.
27407         (configure.ac): Add gl_VERSION_ETC.
27408
27409 2009-05-31  Bruno Haible  <bruno@clisp.org>
27410
27411         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
27412         and 'int64_t'.
27413         * modules/alignof-tests (Dependencies): Add stdint.
27414         Reported by Eric Blake.
27415
27416 2009-05-31  Bruno Haible  <bruno@clisp.org>
27417
27418         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
27419         restriction due to compiler bugs.
27420         Reported by Eric Blake.
27421
27422 2009-05-31  Simon Josefsson  <simon@josefsson.org>
27423             Bruno Haible  <bruno@clisp.org>
27424
27425         Fix test-alignof failure.
27426         * lib/alignof.h (alignof_slot): New macro.
27427         (alignof_type): New macro, with the same semantics as the previous
27428         'alignof'.
27429         (alignof): Alias to alignof_slot.
27430         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
27431         check that the results are usable as constant expressions.
27432
27433 2009-05-31  Bruno Haible  <bruno@clisp.org>
27434
27435         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
27436         * tests/test-memchr.c (main): Check that memchr does not read past the
27437         first occurrence of the byte.
27438         * tests/test-strstr.c (main): Update comment.
27439         Suggested by Eric Blake.
27440
27441 2009-05-30  Bruno Haible  <bruno@clisp.org>
27442
27443         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
27444         detail how to use dumpbin.
27445         Reported by David Byron <dbyron@dbyron.com>.
27446
27447 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27448
27449         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
27450
27451 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27452
27453         * m4/manywarnings.m4: Add GCC 4.4 warnings.
27454
27455 2009-05-28  Bruno Haible  <bruno@clisp.org>
27456
27457         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
27458         build-aux/ files.
27459
27460 2009-05-28  Simon Josefsson  <simon@josefsson.org>
27461
27462         * gnulib-tool (func_import): Transform license on build-aux/ files too.
27463
27464 2009-05-27  Simon Josefsson  <simon@josefsson.org>
27465
27466         * gnulib-tool (sed_transform_main_lib_file)
27467         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
27468         regexps.
27469
27470 2009-05-26  Simon Josefsson  <simon@josefsson.org>
27471
27472         * tests/test-strstr.c: Add another self-test.
27473         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
27474         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
27475
27476 2009-05-23  Bruno Haible  <bruno@clisp.org>
27477
27478         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
27479         change.
27480
27481 2009-05-21  Bruno Haible  <bruno@clisp.org>
27482
27483         Simplify use of mode_t varargs.
27484         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
27485         uses 'mode_t' or 'int'.
27486         * lib/openat.c (openat): Likewise.
27487         * lib/open-safer.c (open_safer): Likewise.
27488         * m4/mode_t.m4: New file.
27489         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
27490         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
27491         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
27492         * modules/open (Files): Add m4/mode_t.m4.
27493         * modules/openat (Files): Likewise.
27494         * modules/fcntl-safer (Files): Likewise.
27495         Suggested by Eric Blake.
27496
27497 2009-05-21  Pádraig Brady  <P@draigbrady.com>
27498
27499         * doc/glibc-functions/fallocate.texi: New file.
27500         * doc/gnulib.texi: Include it.
27501
27502 2009-05-21  Eric Blake  <ebb9@byu.net>
27503             Bruno Haible  <bruno@clisp.org>
27504
27505         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
27506         invocations.
27507         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27508
27509 2009-05-21  Eric Blake  <ebb9@byu.net>
27510             Bruno Haible  <bruno@clisp.org>
27511
27512         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
27513         include_next. Fix of 2008-11-20 commit.
27514         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
27515         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
27516         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
27517         NEXT_MATH_H.
27518         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
27519         instead of NEXT_MATH_H.
27520
27521 2009-05-21  Bruno Haible  <bruno@clisp.org>
27522
27523         Avoid redefinition warnings for SIZE_MAX.
27524         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
27525         Reported by Simon Josefsson.
27526
27527 2009-05-21  Bruno Haible  <bruno@clisp.org>
27528
27529         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
27530         AC_CACHE_VAL.
27531
27532 2009-05-20  Bruno Haible  <bruno@clisp.org>
27533
27534         Make zeroptr.h work on mingw.
27535         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
27536         mprotect.
27537         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
27538         * modules/memchr2-tests (configure.ac): Likewise.
27539         * modules/memcmp-tests (configure.ac): Likewise.
27540         * modules/memmem-tests (configure.ac): Likewise.
27541         * modules/memrchr-tests (configure.ac): Likewise.
27542         Reported by Simon Josefsson.
27543
27544 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27545
27546         * tests/test-glob.c: Include string.h for strcmp prototype.
27547
27548 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27549
27550         * modules/getdelim (Depends-on): Add explicit stdint, although it
27551         was implicitly already pulled in via realloc-posix.
27552         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
27553
27554 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27555
27556         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27557         G. Christensen" <tgc@jupiterrise.com>.
27558         * m4/sys_socket_h.m4: Check for sa_family_t.
27559         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27560         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27561         * tests/test-sys_socket.c: Check that sa_family_t works.
27562
27563 2009-05-18  Eric Blake  <ebb9@byu.net>
27564
27565         maint.mk: allow gnulib_dir in VPATH build
27566         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27567
27568 2009-05-15  Jim Meyering  <meyering@redhat.com>
27569
27570         maint.mk: Give gnulib_dir a default definition.
27571         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27572         Thus, most packages no longer need to specify this variable in cfg.mk
27573
27574 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27575
27576         rename.m4: fix typos that would make non-mingw cross-configure fail
27577         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27578
27579 2009-05-13  Eric Blake  <ebb9@byu.net>
27580
27581         mmap-anon: avoid out-of-order autoconf expansion
27582         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27583         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27584         * modules/memchr-tests (Depends-on): Add extensions.
27585         * modules/memchr2-tests (Depends-on): Add extensions.
27586         * modules/memcmp-tests (Depends-on): Add extensions.
27587         * modules/memmem-tests (Depends-on): Add extensions.
27588         * modules/memrchr-tests (Depends-on): Add extensions.
27589
27590 2009-05-13  Bruno Haible  <bruno@clisp.org>
27591
27592         Make some tests ISO C 99 compliant.
27593         * tests/zerosize-ptr.h: New file.
27594         * tests/test-memchr.c: Include zerosize-ptr.h.
27595         (main): Use a zero-size object pointer instead of NULL.
27596         * tests/test-memchr2.c: Include zerosize-ptr.h.
27597         (main): Use a zero-size object pointer instead of NULL.
27598         * tests/test-memcmp.c: Include zerosize-ptr.h.
27599         (main): Use a zero-size object pointer instead of NULL.
27600         * tests/test-memmem.c: Include zerosize-ptr.h.
27601         (main): Use a zero-size object pointer instead of NULL.
27602         * tests/test-memrchr.c: Include zerosize-ptr.h.
27603         (main): Use a zero-size object pointer instead of NULL.
27604         * modules/memchr-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/memchr2-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         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27613         m4/mmap-anon.m4.
27614         (Depends-on): Add getpagesize.
27615         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27616         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27617         m4/mmap-anon.m4.
27618         (Depends-on): Add getpagesize.
27619         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27620         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27621         m4/mmap-anon.m4.
27622         (Depends-on): Add getpagesize.
27623         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27624
27625 2009-05-12  Bruno Haible  <bruno@clisp.org>
27626
27627         Tests for module 'alignof'.
27628         * modules/alignof-tests: New file.
27629         * tests/test-alignof.c: New file.
27630
27631 2009-05-12  Bruno Haible  <bruno@clisp.org>
27632
27633         Fix alignof macro.
27634         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27635         vendor compilers that are always correct.
27636
27637 2009-05-12  Bruno Haible  <bruno@clisp.org>
27638
27639         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27640         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27641         not whether its fully works.
27642
27643 2009-05-12  Bruno Haible  <bruno@clisp.org>
27644
27645         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27646
27647 2009-05-12  Jim Meyering  <meyering@redhat.com>
27648
27649         * top/maint.mk: Adjust backslash alignment.
27650
27651 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27652
27653         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27654
27655 2009-05-11  Eric Blake  <ebb9@byu.net>
27656
27657         argp: avoid undefined behavior
27658         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27659         macros.
27660
27661 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27662
27663         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27664         user.name to prevent git commit from complaining.
27665
27666 2009-05-10  Bruno Haible  <bruno@clisp.org>
27667
27668         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27669         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27670         it rewrites every file name only once.
27671         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27672
27673 2009-05-08  Bruno Haible  <bruno@clisp.org>
27674
27675         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27676         instead of 'max'.
27677
27678 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27679
27680         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27681         sockaddr_storage test.
27682
27683 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27684
27685         * modules/sys_socket (Makefile.am): Substitute
27686         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27687         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27688         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27689         * tests/test-sys_socket.c: Check sockaddr_storage.
27690
27691 2009-05-08  Bruno Haible  <bruno@clisp.org>
27692
27693         New module 'alignof'.
27694         * lib/alignof.h: New file.
27695         * modules/alignof: New file.
27696
27697 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27698             Bruno Haible  <bruno@clisp.org>
27699
27700         Fix test-file-has-acl on FreeBSD.
27701         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27702         mask is implicitly added.
27703         * tests/test-file-has-acl.c: Include <signal.h>.
27704         (main): Terminate the test after 5 seconds.
27705         * modules/acl-tests (configure.ac): Check for alarm function.
27706
27707 2009-05-04  Bruno Haible  <bruno@clisp.org>
27708
27709         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27710         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27711         * modules/errno (configure.ac): Drop AC_REQUIRE.
27712         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27713         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27714
27715 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27716
27717         * modules/glob-tests: New module.
27718         * tests/test-glob.c: Add.
27719
27720 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27721
27722         * modules/fnmatch-tests: New module.
27723         * tests/test-fnmatch.c: Add.
27724
27725 2009-05-04  Eric Blake  <ebb9@byu.net>
27726
27727         maint: make the new no-submodule-changes rule VPATH-safe
27728         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27729
27730 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27731             Bruno Haible  <bruno@clisp.org>
27732
27733         acl: Fix infinite loop on FreeBSD.
27734         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27735         of return value from acl_get_entry.
27736         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27737         Likewise.
27738
27739 2009-05-03  Bruno Haible  <bruno@clisp.org>
27740
27741         * lib/acl-internal.h (acl_entries): Clarify return value.
27742         * lib/acl_entries.c (acl_entries): Likewise.
27743
27744 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27745
27746         Bug fix in acl module.
27747         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27748
27749 2009-05-03  Bruno Haible  <bruno@clisp.org>
27750
27751         Create gperf-generated file in the source dir, not in the build dir.
27752         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27753         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27754         * modules/unicase/locale-language (unicase/locale-languages.h):
27755         Likewise.
27756         * modules/unicase/special-casing (unicase/special-casing-table.h):
27757         Likewise.
27758         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27759         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27760         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27761         Reported by Ralf Wildenhues.
27762
27763 2009-05-03  Bruno Haible  <bruno@clisp.org>
27764
27765         * modules/fnmatch (Description, configure.ac): Taken from
27766         fnmatch-posix.
27767         * modules/fnmatch-posix: Turn into a symbolic reference to the
27768         'fnmatch' module, and deprecate.
27769         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27770
27771 2009-05-03  Bruno Haible  <bruno@clisp.org>
27772
27773         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27774         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27775         Reported by Ralf Wildenhues.
27776
27777 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27778
27779         * m4/fnmatch.m4: Fix fnmatch re-define.
27780
27781 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27782
27783         priv-set: new module and tests; adapt write-any-file
27784         * lib/priv-set.c: New file.
27785         * lib/priv-set.h: New file.
27786         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27787         * lib/write-any-file.c: Simplify by using priv-set module.
27788         * m4/priv-set.m4: New file.
27789         * modules/priv-set: New file.
27790         * modules/unlinkdir: Add dependency on priv-set module.
27791         * modules/write-any-file: Likewise.
27792
27793         Tests for module 'priv-set'.
27794         * modules/priv-set-tests: New file.
27795         * tests/test-priv-set.c: New file.
27796
27797 2009-05-03  Jim Meyering  <meyering@redhat.com>
27798             Bruno Haible  <bruno@clisp.org>
27799
27800         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27801         use the converted UTF-8 variant of the name instead.
27802
27803 2009-05-03  Jim Meyering  <meyering@redhat.com>
27804
27805         tests: tighten some getdate tests
27806         * tests/test-getdate.c (main): Tighten tests: require equality,
27807         not just greater than.  Set TZ envvar to UTC0.
27808
27809 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27810
27811         getdate: correctly interpret "next monday" when run on a Monday
27812         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27813         that e.g., "next tues" (when run on a tuesday) results in a date
27814         that is one week in the future, and not today's date.
27815         I.e., add a week when the wday is the same as the current one.
27816         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27817         and earlier by Martin Bernreuther and Jan Minář.
27818         * tests/test-getdate.c (main): Check that "next DAY" is always in
27819         the future and that "last DAY" is always in the past.
27820
27821 2009-05-02  Jim Meyering  <meyering@redhat.com>
27822
27823         build: ensure that a release build fails when a submodule is unclean
27824         * top/maint.mk (no-submodule-changes): New rule.
27825         (alpha beta major): Depend on it.
27826
27827 2009-05-02  Bruno Haible  <bruno@clisp.org>
27828
27829         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27830         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27831         shell variable gl_fnmatch_required to detect which variant is
27832         requested.
27833         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27834         gl_FUNC_FNMATCH_POSIX.
27835         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27836         exclude fnmatch-posix.
27837
27838 2009-05-02  Bruno Haible  <bruno@clisp.org>
27839
27840         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27841         * modules/mbsrtowcs (License): Change to LGPLv2+.
27842         * modules/strnlen1 (License): Likewise.
27843         Reported by Simon Josefsson.
27844
27845 2009-05-02  Bruno Haible  <bruno@clisp.org>
27846
27847         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27848         "cross".
27849         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27850         gnulib-tool was called with option --source-base=lib.
27851
27852 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27853
27854         Use automake *-local hooks without commands, for extensibility.
27855         * modules/localcharset (Makefile.am): Rename install-exec-local
27856         rule to install-exec-localcharset, and make it a prerequisite of
27857         install-exec-local.  Likewise, rename the uninstall-local rule to
27858         uninstall-localcharset, and make it a prerequisite of the former.
27859
27860 2009-05-01  Bruno Haible  <bruno@clisp.org>
27861
27862         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27863         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27864         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27865         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27866         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27867         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27868         m4/locale-zh.m4, m4/codeset.m4.
27869
27870         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27871         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27872         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27873         m4/locale-zh.m4.
27874
27875         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27876         REPLACE_WCRTOMB if mbstate_t must be replaced.
27877         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27878         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27879
27880 2009-05-01  Bruno Haible  <bruno@clisp.org>
27881
27882         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27883         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27884         dngettext, dcngettext, textdomain, bindtextdomain,
27885         bind_textdomain_codeset): Undefine before redefining.
27886
27887 2009-04-30  Bruno Haible  <bruno@clisp.org>
27888
27889         Fix bug introduced on 2009-04-25.
27890         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27891         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27892         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27893         is defined.
27894         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27895         is defined.
27896         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27897         is defined.
27898         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27899
27900 2009-04-28  Bruno Haible  <bruno@clisp.org>
27901
27902         Comment tweaks.
27903         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27904         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27905         * lib/unicase.h (u*_casexfrm): Likewise.
27906         Reported by Paolo Bonzini.
27907
27908 2009-04-28  Bruno Haible  <bruno@clisp.org>
27909
27910         Fix a compilation error.
27911         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27912         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27913         Reported by Jim Meyering.
27914
27915 2009-04-27  Bruno Haible  <bruno@clisp.org>
27916
27917         New module 'libunistring'.
27918         * modules/libunistring: New file.
27919         * m4/libunistring.m4: New file.
27920         * MODULES.html.sh (Unicode string functions): Add it.
27921
27922 2009-04-27  Eric Blake  <ebb9@byu.net>
27923
27924         maint.mk: allow package-specific header to provide <config.h>
27925         * top/maint.mk (sc_require_config_h): New variable.
27926         (sc_require_config_h, sc_require_config_h_first): Use it.
27927
27928 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27929
27930         * top/maint.mk (sc_avoid_if_before_free): Except
27931         useless-if-before-free script.
27932
27933 2009-04-27  Eric Blake  <ebb9@byu.net>
27934
27935         maintainer-makefile: depend on all required helper scripts
27936         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27937         useless-if-before-free.
27938         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27939         version, rather than assuming gnulib checkout is available.
27940         Reported by Simen Josefsson.
27941
27942 2009-04-26  Bruno Haible  <bruno@clisp.org>
27943
27944         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27945         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27946         "../" or "..".
27947
27948 2009-04-26  Bruno Haible  <bruno@clisp.org>
27949
27950         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27951         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27952         AC_LIB_HAVE_LINKFLAGS.
27953
27954 2009-04-26  Bruno Haible  <bruno@clisp.org>
27955
27956         Simplify calling convention of u*_conv_from_encoding.
27957         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27958         u32_conv_from_encoding): Expect a resultbuf argument and return the
27959         result directly as a pointer.
27960         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27961         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27962         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27963         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27964         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27965         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27966         Update.
27967         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27968         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27969         * lib/vasnprintf.c (VASNPRINTF): Update.
27970         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27971         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27972         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27973         * NEWS: Mention the change.
27974
27975 2009-04-26  Bruno Haible  <bruno@clisp.org>
27976
27977         Simplify calling convention of u*_conv_to_encoding.
27978         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27979         u32_conv_to_encoding): Expect a resultbuf argument and return the
27980         result directly as a pointer.
27981         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27982         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27983         freeing scaled_offsets if mem_iconveha failed.
27984         * lib/unicase/u-casexfrm.h (FUNC): Update.
27985         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27986         * lib/vasnprintf.c (VASNPRINTF): Update.
27987         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27988         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27989         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27990         * NEWS: Mention the change.
27991
27992 2009-04-26  Bruno Haible  <bruno@clisp.org>
27993
27994         Avoid test failures on AIX and OSF/1.
27995         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27996         malloc(0).
27997         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27998         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27999         Likewise.
28000         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28001         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28002         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28003         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28004         * doc/posix-functions/malloc.texi: Document the portability problem
28005         related to malloc(0).
28006
28007 2009-04-26  Bruno Haible  <bruno@clisp.org>
28008
28009         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28010         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28011         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28012
28013 2009-04-25  Bruno Haible  <bruno@clisp.org>
28014
28015         Avoid link error when creating a namespace clean library.
28016         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28017         as macro with arguments if already defined as an alias.
28018         * lib/signbitf.c (gl_signbitf): Don't undefine.
28019         * lib/signbitd.c (gl_signbitd): Don't undefine.
28020         * lib/signbitl.c (gl_signbitl): Don't undefine.
28021
28022 2009-04-25  Jim Meyering  <meyering@redhat.com>
28023
28024         vc-list-files: fix another quoting bug
28025         * build-aux/vc-list-files: Avoid sed backslash expansion
28026         of pathological directory names.
28027
28028 2009-04-25  Eric Blake  <ebb9@byu.net>
28029
28030         vc-list-files: fix shell quoting error
28031         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28032         timestamp.
28033
28034 2009-04-25  Jim Meyering  <meyering@redhat.com>
28035
28036         vc-list-files: restore lost functionality with subdir argument
28037         * build-aux/vc-list-files: When given a non-"." sub-directory
28038         argument, substitute the $dir/ prefix back onto each resulting name.
28039         Otherwise, coreutils' root_tests check would fail.
28040
28041 2009-04-24  Eric Blake  <ebb9@byu.net>
28042
28043         vc-list-files: ignore git symlinks
28044         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28045         than ls-files, to ignore git symlinks.
28046
28047         maint.mk: import improvements from m4
28048         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28049         (move_if_change): Delete unused macro.
28050         (news-date-check, vc-diff-check): Support VPATH builds.
28051         (announcement): Likewise.  Split --bootstrap-tools list...
28052         (boostrap-tools): ...into separate list, which can be overridden
28053         in cfg.mk.
28054         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28055         requiring dependency on useless-if-before-free module.
28056         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28057         Support VPATH builds.
28058
28059 2009-04-24  Jim Meyering  <meyering@redhat.com>
28060
28061         maint.mk: remove coreutils-specific rules and variables
28062         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28063         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28064         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28065
28066         maint.mk: remove obsolete rule
28067         * top/maint.mk (rel-check): Remove rule.
28068         (WGET, WGETFLAGS): Remove now-unused variables.
28069
28070 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28071
28072         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28073         consistency.
28074
28075         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28076         '$(PATH_SEPARATOR)' instead of ':'.
28077
28078 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28079
28080         * lib/getopt1.c (main): Use 'const' for static array.
28081
28082 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28083
28084         * top/maint.mk: Sync with coreutils.
28085         * NEWS: Explain incompatibilities.
28086
28087 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28088             Bruno Haible  <bruno@clisp.org>
28089
28090         Fix cross-compilation results.
28091         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28092         statement, as third argument of AC_TRY_RUN.
28093         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28094         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28095         Likewise.
28096         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28097         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28098         Likewise.
28099         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28100         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28101         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28102
28103 2009-04-20  Bruno Haible  <bruno@clisp.org>
28104
28105         Avoid test failure on mingw.
28106         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28107
28108 2009-04-20  Bruno Haible  <bruno@clisp.org>
28109
28110         Avoid compilation error on mingw.
28111         * modules/localename-tests (Depends-on): Add locale.
28112
28113 2009-04-19  Bruno Haible  <bruno@clisp.org>
28114
28115         Support for building a shared library on Windows platforms.
28116         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28117         (main): Test the presence of UNINORM_NFC here.
28118         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28119         (main): Test the presence of UNINORM_NFD here.
28120         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28121         (main): Test the presence of UNINORM_NFKC here.
28122         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28123         (main): Test the presence of UNINORM_NFKD here.
28124
28125 2009-04-19  Bruno Haible  <bruno@clisp.org>
28126
28127         Avoid a compiler warning.
28128         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28129         Change type of variable 'sequence'.
28130
28131 2009-04-19  Bruno Haible  <bruno@clisp.org>
28132
28133         * modules/configmake (Makefile.am): When the contents of configmake.h
28134         does not change, arrange to preserve its modification time.
28135
28136 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28137
28138         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28139         gettext domain.
28140
28141 2009-04-16  Jim Meyering  <meyering@redhat.com>
28142
28143         useless-if-before-free: improve conversion code
28144         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28145         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28146
28147 2009-04-14  Bruno Haible  <bruno@clisp.org>
28148
28149         * modules/fcntl (Depends-on): Add extensions.
28150         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28151
28152 2009-04-12  Ben Pfaff  <blp@gnu.org>
28153
28154         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28155         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28156
28157 2009-03-20  Ben Pfaff  <blp@gnu.org>
28158
28159         Make rename replace existing destinations on Windows.
28160         * m4/rename.m4: Add test for Mingw.
28161         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28162         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28163         * doc/posix-functions/rename.texi: Document.
28164
28165 2009-04-10  Bruno Haible  <bruno@clisp.org>
28166
28167         New include file "iconveh.h".
28168         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28169         * lib/striconveh.h: Include it.
28170         (enum iconv_ilseq_handler): Remove definition.
28171         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28172         striconveh.h.
28173         * lib/striconveha.c: Include striconveh.h.
28174         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28175         * modules/striconveh (Files): Add lib/iconveh.h.
28176         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28177         lib/striconveh.h.
28178
28179 2009-04-10  Bruno Haible  <bruno@clisp.org>
28180
28181         * lib/uniconv.h: Update comment.
28182
28183 2009-04-10  Bruno Haible  <bruno@clisp.org>
28184
28185         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28186         always.
28187         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28188         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28189         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28190         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28191         "unistring-notinline.h", so that the function gets defined always.
28192         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28193         * lib/unistr/u8-uctomb.c: Likewise.
28194         * lib/unistr/u16-mbtouc.c: Likewise.
28195         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28196         * lib/unistr/u16-uctomb.c: Likewise.
28197         * lib/unistr/u32-mbtouc.c: Likewise.
28198         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28199         * lib/unistr/u32-uctomb.c: Likewise.
28200
28201 2009-04-10  Bruno Haible  <bruno@clisp.org>
28202
28203         Mark 'utime' obsolete.
28204         * modules/utime (Status, Notice): New sections.
28205         Suggested by Jim Meyering.
28206
28207         Fix cross-compile guess for utime test.
28208         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28209         autoconf.
28210         * doc/posix-functions/utime.texi: Give more precisions.
28211         Reported by Jan <ipif@ymail.com>.
28212
28213 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28214
28215         filevercmp: correct today's change
28216         * lib/filevercmp.c: Also handle coreutils' test inputs.
28217         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28218
28219         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28220         for reporting it.
28221         * lib/filevercmp.c: Special handle for "", "." and "..".
28222         * tests/test-filevercmp.c: Enlarge the set suite.
28223
28224 2009-04-07  Jim Meyering  <meyering@redhat.com>
28225
28226         useless-if-before-free: show how to remove braced useless free, too
28227         * build-aux/useless-if-before-free: still only in a comment, though.
28228
28229 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
28230
28231         maint.mk: import changes to syntax-check macros from coreutils
28232         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
28233         Use them in the relevant macros.
28234
28235 2009-04-06  Bruno Haible  <bruno@clisp.org>
28236
28237         Fix unportable use of bit-fields.
28238         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
28239         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
28240         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
28241
28242 2009-04-06  Bruno Haible  <bruno@clisp.org>
28243
28244         Avoid test failures on AIX and OSF/1.
28245         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
28246         that malloc(0) = NULL.
28247         * tests/unicase/test-u8-tolower.c (check): Likewise.
28248         * tests/unicase/test-u8-totitle.c (check): Likewise.
28249         * tests/unicase/test-u8-toupper.c (check): Likewise.
28250         * tests/unicase/test-u16-casefold.c (check): Likewise.
28251         * tests/unicase/test-u16-tolower.c (check): Likewise.
28252         * tests/unicase/test-u16-totitle.c (check): Likewise.
28253         * tests/unicase/test-u16-toupper.c (check): Likewise.
28254         * tests/unicase/test-u32-casefold.c (check): Likewise.
28255         * tests/unicase/test-u32-tolower.c (check): Likewise.
28256         * tests/unicase/test-u32-totitle.c (check): Likewise.
28257         * tests/unicase/test-u32-toupper.c (check): Likewise.
28258         * tests/uninorm/test-u8-nfc.c (check): Likewise.
28259         * tests/uninorm/test-u8-nfd.c (check): Likewise.
28260         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
28261         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
28262         * tests/uninorm/test-u16-nfc.c (check): Likewise.
28263         * tests/uninorm/test-u16-nfd.c (check): Likewise.
28264         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
28265         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
28266         * tests/uninorm/test-u32-nfc.c (check): Likewise.
28267         * tests/uninorm/test-u32-nfd.c (check): Likewise.
28268         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
28269         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
28270
28271 2009-04-05  Bruno Haible  <bruno@clisp.org>
28272
28273         Work around an autoconf limitation.
28274         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
28275         comment line if it would be longer than 3 KB.
28276
28277 2009-04-05  Bruno Haible  <bruno@clisp.org>
28278
28279         Avoid test failure with libiconv-1.13.
28280         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
28281         of the expected test results.
28282
28283 2009-04-05  Bruno Haible  <bruno@clisp.org>
28284
28285         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
28286         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
28287         that it should be installed.
28288
28289 2009-04-05  Bruno Haible  <bruno@clisp.org>
28290
28291         * gnulib-tool: New option --copy-file.
28292         (func_usage): Document it.
28293         (func_dest_tmpfilename): Moved out of func_import.
28294         (func_add_file, func_update_file): New functions, extracted from
28295         func_import.
28296         (func_import): Update.
28297
28298 2009-04-05  Karl Berry  <karl@gnu.org>
28299
28300         * README: prominently mention gnulib-tool.
28301         Rearrange sections so getting the code is near the top.
28302
28303 2009-04-05  Bruno Haible  <bruno@clisp.org>
28304
28305         * lib/unicase.h: Mention u*_cmp2.
28306         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28307         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
28308         * lib/unicase/ulc-casecmp.c: Likewise.
28309         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
28310         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
28311         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
28312         unistr/u8-cmp.
28313         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
28314         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
28315         unistr/u16-cmp.
28316         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
28317         unistr/u32-cmp.
28318
28319         * lib/uninorm.h: Mention u*_cmp2.
28320         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28321         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
28322         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
28323         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
28324         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
28325         unistr/u8-cmp.
28326         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
28327         unistr/u16-cmp.
28328         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
28329         unistr/u32-cmp.
28330
28331         New module 'unistr/u32-cmp2'.
28332         * lib/unistr/u32-cmp2.c: New file.
28333         * modules/unistr/u32-cmp2: New file.
28334
28335         New module 'unistr/u16-cmp2'.
28336         * lib/unistr/u16-cmp2.c: New file.
28337         * modules/unistr/u16-cmp2: New file.
28338
28339         New module 'unistr/u8-cmp2'.
28340         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
28341         * lib/unistr/u8-cmp2.c: New file.
28342         * lib/unistr/u-cmp2.h: New file.
28343         * modules/unistr/u8-cmp2: New file.
28344
28345 2009-04-05  Bruno Haible  <bruno@clisp.org>
28346
28347         * lib/unictype.h (uc_property_is_valid): New macro.
28348         * tests/unictype/test-pr_byname.c (main): Use it.
28349
28350         * lib/unistr.h: Doc fixes.
28351         * lib/uniconv.h: Doc fixes.
28352         * lib/unictype.h: Doc fixes.
28353
28354 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28355
28356         Port coreutils 7.2 to Solaris 8.
28357
28358         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
28359         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
28360         for Solaris 8.  This is a bit of a hack, as it means it's the
28361         caller's responsibility to add -lnsl if needed, but most likely it
28362         won't be needed since only getaddrinfo uses this and getaddrinfo
28363         isn't needed on Solaris 8.
28364
28365         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
28366         problem to Solaris 8 encountered with coreutils 7.2, which
28367         resulted in a message "fnmatch.c:292: warning: passing argument 4
28368         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
28369         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
28370
28371 2009-04-03  Simon Josefsson  <simon@josefsson.org>
28372
28373         * m4/ld-version-script.m4: Add FIXME comment.
28374
28375 2009-04-02  Simon Josefsson  <simon@josefsson.org>
28376
28377         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
28378         SOVERSION variable.
28379
28380 2009-04-02  Bruno Haible  <bruno@clisp.org>
28381
28382         * Makefile (info, html, dvi, pdf): Combine the rules.
28383         Suggested by Jim Meyering.
28384
28385 2009-04-01  Bruno Haible  <bruno@clisp.org>
28386
28387         * Makefile (info, html, dvi, pdf): New targets.
28388         Reported by Reuben Thomas <rrt@sc3d.org>.
28389
28390 2009-04-01  Bruno Haible  <bruno@clisp.org>
28391
28392         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
28393         can be put into PATH.
28394         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
28395
28396 2009-04-01  Bruno Haible  <bruno@clisp.org>
28397
28398         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
28399
28400 2009-04-01  Bruno Haible  <bruno@clisp.org>
28401
28402         Rename module 'visibility'.
28403         * modules/lib-symbol-visibility: Renamed from modules/visibility.
28404         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
28405         * doc/gnulib.texi: Update.
28406         * MODULES.html.sh (Misc): Update.
28407         * NEWS: Mention the change.
28408
28409 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28410
28411         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
28412         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
28413         Eric Blake <ebb9@byu.net> for review.
28414         * MODULES.html.sh: Add lib-msvc-compat.
28415         * doc/gnulib.texi: Link to new section.
28416         * m4/ld-output-def.m4: New file.
28417         * doc/ld-output-def.texi: New file.
28418
28419 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28420
28421         Rename ld-version-script to lib-symbol-versions.  Suggested by
28422         Bruno Haible <bruno@clisp.org>.
28423         * modules/ld-version-script: Renamed to lib-symbol-versions.
28424         * doc/ld-version-script.texi: Fix module name.
28425         * MODULES.html.sh: Add lib-symbol-versions.
28426
28427 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28428
28429         * modules/u64-tests: New file.
28430         * tests/test-u64.c: New file.
28431
28432 2009-03-04  Simon Josefsson  <simon@josefsson.org>
28433
28434         * MODULES.html.sh: Mention u64.
28435         * modules/u64: New module.
28436         * modules/crypto/sha512: Depend on u64 module instead of providing
28437         u64.h.
28438
28439 2009-03-27  Eric Blake  <ebb9@byu.net>
28440
28441         test-strerror: make debugging EAI_SYSTEM easier
28442         * modules/getaddrinfo-tests (Depends-on): Add strerror.
28443         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
28444         failure was EAI_SYSTEM.
28445
28446 2009-03-25  Bruno Haible  <bruno@clisp.org>
28447
28448         Fix a problem with --enable-relocatable on Solaris 7.
28449         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
28450         since 2008-02-24.
28451
28452 2009-03-25  Eric Blake  <ebb9@byu.net>
28453
28454         test-sockets: avoid gcc warning
28455         * tests/test-sockets.c (main): Silence compiler warning.
28456
28457 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28458
28459         New modules nproc, pthread, contributed by Glen Lenker.
28460
28461         * MODULES.html.sh: Add pthread, nproc.
28462         * lib/nproc.c: New file.
28463         * lib/nproc.h: New file.
28464         * lib/pthread.in.h: New file.
28465         * m4/pthread.m4: New file.
28466         * modules/nproc: New file.
28467         * modules/pthread: New file.
28468
28469 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28470
28471         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
28472         New variable.
28473
28474 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
28475
28476         filevercmp: handle simple~ and numbered.~3~ backup suffixes
28477         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
28478         * tests/test-filevercmp.c: Add tests for backup suffixes.
28479
28480 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28481
28482         * modules/stdlib (Depends-on): Add stdint, needed when defining
28483         struct random_data on, for example, HP-UX 10.20.  Reported by
28484         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28485
28486 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28487
28488         * lib/readline.c (readline): Call fflush on stdout after printing
28489         prompt.
28490
28491 2009-03-20  Bruno Haible  <bruno@clisp.org>
28492
28493         Remove dependency from 'close' module to -lws2_32 on native Windows.
28494         * lib/close-hook.h: New file.
28495         * lib/close-hook.c: New file.
28496         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
28497         w32sock.h.
28498         (_gl_close_fd_maybe_socket): Remove function.
28499         (rpl_close): Invoke execute_all_close_hooks instead of
28500         _gl_close_fd_maybe_socket.
28501         * lib/sockets.c: Include close-hook.h, w32sock.h.
28502         (close_fd_maybe_socket): New function, essentially from lib/close.c.
28503         (close_sockets_hook): New variable.
28504         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
28505         (gl_sockets_cleanup): Unregister it.
28506         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
28507         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
28508         * modules/close-hook: New file.
28509         * modules/close (Files): Remove lib/w32sock.h.
28510         (Depends-on): Add close-hook.
28511         (Link): Remove section.
28512         * modules/sockets (Files): Add lib/w32sock.h.
28513         (Depends-on): Add close-hook.
28514         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
28515         invocation.
28516         * NEWS: Mention that LIB_CLOSE is gone.
28517
28518 2009-03-23  Eric Blake  <ebb9@byu.net>
28519
28520         signal-tests: test previous patch
28521         * tests/test-signal.c: New file.
28522         * modules/signal-tests: Likewise.
28523
28524         signal.h: always support 'volatile sig_atomic_t'
28525         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
28526         (gl_SIGNAL_H_DEFAULTS): Add a default.
28527         * modules/signal (Makefile.am): Substitute if needed.
28528         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
28529         users can blindly add volatile.
28530         * doc/posix-headers/signal.texi (signal.h): Document it.
28531         Reported by Matthew Woehlke.
28532
28533 2009-03-23  Jim Meyering  <meyering@redhat.com>
28534
28535         pathmax: PATH_MAX: use pathconf only when available
28536         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
28537         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
28538         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
28539         This avoids a link failure in a PSP cross-compilation environment
28540         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
28541
28542         * lib/vasnprintf.c (divide): Fix typo in comment.
28543
28544 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28545
28546         * gnulib-tool (func_filter_filelist): Fix comment.
28547
28548 2009-03-20  Bruno Haible  <bruno@clisp.org>
28549
28550         Make sockets.h self-contained.
28551         * lib/sockets.c: Include sockets.h first.
28552         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
28553
28554 2009-03-19  Eric Blake  <ebb9@byu.net>
28555
28556         doc: mention more functions added in cygwin 1.7.0
28557         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28558         addition.
28559         * doc/posix-functions/log2f.texi: Likewise.
28560
28561 2009-03-19  Jim Meyering  <meyering@redhat.com>
28562
28563         fsusage: avoid syntax error due to statement-before-declaration
28564         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28565         after all declarations.  Reported by Matthew Woehlke in
28566         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28567
28568 2009-03-18  Eric Blake  <ebb9@byu.net>
28569
28570         build-aux/compile: sync from automake
28571         * build-aux/compile: New file, from automake.
28572         * config/srclist.txt: Mention build-aux/compile.
28573
28574 2009-03-17  Bruno Haible  <bruno@clisp.org>
28575
28576         * lib/git-merge-changelog.c: Fix typo in comment.
28577         Reported by Reuben Thomas <rrt@sc3d.org>.
28578
28579 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28580
28581         * m4/regex.m4: update and improve help for
28582         --without-included-regex.
28583
28584 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28585
28586         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28587         failure on missing include files.
28588
28589 2009-03-17  Eric Blake  <ebb9@byu.net>
28590
28591         doc: mention more functions added in cygwin 1.7.0
28592         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28593         addition.
28594         * doc/posix-functions/fwscanf.texi: Likewise.
28595         * doc/posix-functions/swprintf.texi: Likewise.
28596         * doc/posix-functions/swscanf.texi: Likewise.
28597         * doc/posix-functions/vfwprintf.texi: Likewise.
28598         * doc/posix-functions/vfwscanf.texi: Likewise.
28599         * doc/posix-functions/vswprintf.texi: Likewise.
28600         * doc/posix-functions/vswscanf.texi: Likewise.
28601         * doc/posix-functions/vwprintf.texi: Likewise.
28602         * doc/posix-functions/vwscanf.texi: Likewise.
28603         * doc/posix-functions/wcscasecmp.texi: Likewise.
28604         * doc/posix-functions/wcsdup.texi: Likewise.
28605         * doc/posix-functions/wcsftime.texi: Likewise.
28606         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28607         * doc/posix-functions/wprintf.texi: Likewise.
28608         * doc/posix-functions/wscanf.texi: Likewise.
28609         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28610
28611 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28612
28613         maint.mk: really add $(AM_MAKEFLAGS)
28614         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28615         was inadvertently omitted in the last commit.
28616         Spotted by Bruno Haible.
28617
28618         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28619         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28620         $(AM_MAKEFLAGS)' rather than plain `make'.
28621
28622         gnulib-tool: execute $MAKE not make
28623         * gnulib-tool: Default $MAKE to 'make'.
28624         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28625         than make.  Initialize $MAKE in the do-autobuild script.
28626
28627         gnulib-tool: use $MAKE not make in generated files
28628         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28629         make, in generated files.  Initialize $MAKE in the do-autobuild
28630         script.
28631
28632         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28633
28634         GNUmakefile: disable parallelism only for multiple, recursive targets
28635         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28636         additions in the Makefile.
28637         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28638         by Automake.
28639         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28640         are listed on the command line and at least one of them is
28641         listed in $(ALL_RECURSIVE_TARGETS).
28642
28643 2009-03-14  Bruno Haible  <bruno@clisp.org>
28644
28645         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28646         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28647         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28648         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28649         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28650         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28651         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28652         unistr/u8-uctomb.
28653         * modules/unistr/u8-strchr (Depends-on): Likewise.
28654         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28655         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28656         unistr/u16-uctomb.
28657         * modules/unistr/u16-strchr (Depends-on): Likewise.
28658         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28659
28660 2009-03-12  Bruno Haible  <bruno@clisp.org>
28661
28662         Work around select() bug on Interix 3.5.
28663         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28664         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28665         * m4/select.m4: New file.
28666         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28667         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28668         * modules/select (Files): Add m4/select.m4.
28669         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28670         * modules/nanosleep (Depends-on): Add select.
28671         * modules/poll (Depends-on): Likewise.
28672         * doc/posix-functions/select.texi: Mention the Interix bug.
28673         Reported by Markus Duft <mduft@gentoo.org>.
28674
28675         * lib/select.c: Renamed from lib/winsock-select.c.
28676         * modules/select (Files): Add lib/select.c, remove
28677         lib/winsock-select.c.
28678         (configure.ac): Update.
28679
28680 2009-03-12  Jim Meyering  <meyering@redhat.com>
28681
28682         avoid gcc warnings about unused macro definitions
28683         * lib/readtokens.c (STREQ): Remove unused definition.
28684         * lib/xmalloc.c (SIZE_MAX): Likewise.
28685         * lib/openat-die.c (N_): Likewise.
28686         * lib/mountlist.c (SIZE_MAX): Remove definition.
28687         Instead, include <stdint.h>.
28688         * lib/readutmp.c: Likewise.
28689         * modules/readutmp (Depends-on): Add stdint.
28690         * modules/mountlist (Depends-on): Add stdint.
28691         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28692
28693 2009-03-10  Bruno Haible  <bruno@clisp.org>
28694
28695         Tests for module 'mbmemcasecoll'.
28696         * modules/mbmemcasecoll-tests: New file.
28697         * tests/test-mbmemcasecoll1.sh: New file.
28698         * tests/test-mbmemcasecoll2.sh: New file.
28699         * tests/test-mbmemcasecoll3.sh: New file.
28700         * tests/test-mbmemcasecoll.c: New file.
28701
28702         New module 'mbmemcasecoll'.
28703         * lib/mbmemcasecoll.h: New file.
28704         * lib/mbmemcasecoll.c: New file.
28705         * modules/mbmemcasecoll: New file.
28706
28707         * tests/test-mbmemcasecmp.h: New file, extracted from
28708         tests/test-mbmemcasecmp.c.
28709         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28710         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28711         (main): Update.
28712         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28713
28714 2009-03-09  Bruno Haible  <bruno@clisp.org>
28715
28716         Tests for module 'mbmemcasecmp'.
28717         * modules/mbmemcasecmp-tests: New file.
28718         * tests/test-mbmemcasecmp1.sh: New file.
28719         * tests/test-mbmemcasecmp2.sh: New file.
28720         * tests/test-mbmemcasecmp3.sh: New file.
28721         * tests/test-mbmemcasecmp.c: New file.
28722
28723         New module 'mbmemcasecmp'.
28724         * lib/mbmemcasecmp.h: New file.
28725         * lib/mbmemcasecmp.c: New file.
28726         * modules/mbmemcasecmp: New file.
28727
28728 2009-03-09  Bruno Haible  <bruno@clisp.org>
28729
28730         Tests for module 'unicase/ulc-casecoll'.
28731         * modules/unicase/ulc-casecoll-tests: New file.
28732         * tests/unicase/test-ulc-casecoll1.sh: New file.
28733         * tests/unicase/test-ulc-casecoll2.sh: New file.
28734         * tests/unicase/test-ulc-casecoll.c: New file.
28735
28736         New module 'unicase/ulc-casecoll'.
28737         * lib/unicase.h (ulc_casecoll): New declaration.
28738         * lib/unicase/ulc-casecoll.c: New file.
28739         * modules/unicase/ulc-casecoll: New file.
28740
28741         New module 'unicase/ulc-casexfrm'.
28742         * lib/unicase.h (ulc_casexfrm): New declaration.
28743         * lib/unicase/ulc-casexfrm.c: New file.
28744         * modules/unicase/ulc-casexfrm: New file.
28745
28746 2009-03-09  Bruno Haible  <bruno@clisp.org>
28747
28748         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28749         invocations.
28750
28751         * m4/mbscasecmp.m4: Remove file.
28752         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28753         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28754
28755         * m4/mbscasestr.m4: Remove file.
28756         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28757         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28758
28759         * m4/mbschr.m4: Remove file.
28760         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28761         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28762
28763         * m4/mbscspn.m4: Remove file.
28764         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28765         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28766
28767         * m4/mbslen.m4: Remove file.
28768         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28769         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28770
28771         * m4/mbsncasecmp.m4: Remove file.
28772         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28773         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28774
28775         * m4/mbsnlen.m4: Remove file.
28776         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28777         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28778
28779         * m4/mbspbrk.m4: Remove file.
28780         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28781         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28782
28783         * m4/mbspcasecmp.m4: Remove file.
28784         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28785         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28786
28787         * m4/mbsrchr.m4: Remove file.
28788         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28789         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28790
28791         * m4/mbssep.m4: Remove file.
28792         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28793         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28794
28795         * m4/mbsspn.m4: Remove file.
28796         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28797         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28798
28799         * m4/mbsstr.m4: Remove file.
28800         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28801         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28802
28803         * m4/mbstok_r.m4: Remove file.
28804         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28805         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28806
28807         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28808
28809         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28810         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28811
28812         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28813
28814 2009-03-08  Bruno Haible  <bruno@clisp.org>
28815
28816         Tests for module 'unicase/ulc-casecmp'.
28817         * modules/unicase/ulc-casecmp-tests: New file.
28818         * tests/unicase/test-ulc-casecmp1.sh: New file.
28819         * tests/unicase/test-ulc-casecmp2.sh: New file.
28820         * tests/unicase/test-ulc-casecmp.c: New file.
28821
28822         New module 'unicase/ulc-casecmp'.
28823         * lib/unicase.h (ulc_casecmp): New declaration.
28824         * lib/unicase/ulc-casecmp.c: New file.
28825         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28826         'const SRC_UNIT *'.
28827         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28828         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28829         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28830         * modules/unicase/ulc-casecmp: New file.
28831
28832         Tests for module 'unicase/u32-is-cased'.
28833         * modules/unicase/u32-is-cased-tests: New file.
28834         * tests/unicase/test-u32-is-cased.c: New file.
28835
28836         Tests for module 'unicase/u16-is-cased'.
28837         * modules/unicase/u16-is-cased-tests: New file.
28838         * tests/unicase/test-u16-is-cased.c: New file.
28839
28840         Tests for module 'unicase/u8-is-cased'.
28841         * modules/unicase/u8-is-cased-tests: New file.
28842         * tests/unicase/test-u8-is-cased.c: New file.
28843         * tests/unicase/test-is-cased.h: New file.
28844
28845         New module 'unicase/u32-is-cased'.
28846         * lib/unicase/u32-is-cased.c: New file.
28847         * modules/unicase/u32-is-cased: New file.
28848
28849         New module 'unicase/u16-is-cased'.
28850         * lib/unicase/u16-is-cased.c: New file.
28851         * modules/unicase/u16-is-cased: New file.
28852
28853         New module 'unicase/u8-is-cased'.
28854         * lib/unicase/u8-is-cased.c: New file.
28855         * lib/unicase/u-is-cased.h: New file.
28856         * modules/unicase/u8-is-cased: New file.
28857
28858         Tests for module 'unicase/u32-is-casefolded'.
28859         * modules/unicase/u32-is-casefolded-tests: New file.
28860         * tests/unicase/test-u32-is-casefolded.c: New file.
28861
28862         Tests for module 'unicase/u16-is-casefolded'.
28863         * modules/unicase/u16-is-casefolded-tests: New file.
28864         * tests/unicase/test-u16-is-casefolded.c: New file.
28865
28866         Tests for module 'unicase/u8-is-casefolded'.
28867         * modules/unicase/u8-is-casefolded-tests: New file.
28868         * tests/unicase/test-u8-is-casefolded.c: New file.
28869         * tests/unicase/test-is-casefolded.h: New file.
28870
28871         New module 'unicase/u32-is-casefolded'.
28872         * lib/unicase/u32-is-casefolded.c: New file.
28873         * modules/unicase/u32-is-casefolded: New file.
28874
28875         New module 'unicase/u16-is-casefolded'.
28876         * lib/unicase/u16-is-casefolded.c: New file.
28877         * modules/unicase/u16-is-casefolded: New file.
28878
28879         New module 'unicase/u8-is-casefolded'.
28880         * lib/unicase/u8-is-casefolded.c: New file.
28881         * modules/unicase/u8-is-casefolded: New file.
28882
28883         Tests for module 'unicase/u32-is-titlecase'.
28884         * modules/unicase/u32-is-titlecase-tests: New file.
28885         * tests/unicase/test-u32-is-titlecase.c: New file.
28886
28887         Tests for module 'unicase/u16-is-titlecase'.
28888         * modules/unicase/u16-is-titlecase-tests: New file.
28889         * tests/unicase/test-u16-is-titlecase.c: New file.
28890
28891         Tests for module 'unicase/u8-is-titlecase'.
28892         * modules/unicase/u8-is-titlecase-tests: New file.
28893         * tests/unicase/test-u8-is-titlecase.c: New file.
28894         * tests/unicase/test-is-titlecase.h: New file.
28895
28896         New module 'unicase/u32-is-titlecase'.
28897         * lib/unicase/u32-is-titlecase.c: New file.
28898         * modules/unicase/u32-is-titlecase: New file.
28899
28900         New module 'unicase/u16-is-titlecase'.
28901         * lib/unicase/u16-is-titlecase.c: New file.
28902         * modules/unicase/u16-is-titlecase: New file.
28903
28904         New module 'unicase/u8-is-titlecase'.
28905         * lib/unicase/u8-is-titlecase.c: New file.
28906         * modules/unicase/u8-is-titlecase: New file.
28907
28908         Tests for module 'unicase/u32-is-lowercase'.
28909         * modules/unicase/u32-is-lowercase-tests: New file.
28910         * tests/unicase/test-u32-is-lowercase.c: New file.
28911
28912         Tests for module 'unicase/u16-is-lowercase'.
28913         * modules/unicase/u16-is-lowercase-tests: New file.
28914         * tests/unicase/test-u16-is-lowercase.c: New file.
28915
28916         Tests for module 'unicase/u8-is-lowercase'.
28917         * modules/unicase/u8-is-lowercase-tests: New file.
28918         * tests/unicase/test-u8-is-lowercase.c: New file.
28919         * tests/unicase/test-is-lowercase.h: New file.
28920
28921         New module 'unicase/u32-is-lowercase'.
28922         * lib/unicase/u32-is-lowercase.c: New file.
28923         * modules/unicase/u32-is-lowercase: New file.
28924
28925         New module 'unicase/u16-is-lowercase'.
28926         * lib/unicase/u16-is-lowercase.c: New file.
28927         * modules/unicase/u16-is-lowercase: New file.
28928
28929         New module 'unicase/u8-is-lowercase'.
28930         * lib/unicase/u8-is-lowercase.c: New file.
28931         * modules/unicase/u8-is-lowercase: New file.
28932
28933         Tests for module 'unicase/u32-is-uppercase'.
28934         * modules/unicase/u32-is-uppercase-tests: New file.
28935         * tests/unicase/test-u32-is-uppercase.c: New file.
28936
28937         Tests for module 'unicase/u16-is-uppercase'.
28938         * modules/unicase/u16-is-uppercase-tests: New file.
28939         * tests/unicase/test-u16-is-uppercase.c: New file.
28940
28941         Tests for module 'unicase/u8-is-uppercase'.
28942         * modules/unicase/u8-is-uppercase-tests: New file.
28943         * tests/unicase/test-u8-is-uppercase.c: New file.
28944         * tests/unicase/test-is-uppercase.h: New file.
28945
28946         New module 'unicase/u32-is-uppercase'.
28947         * lib/unicase/u32-is-uppercase.c: New file.
28948         * modules/unicase/u32-is-uppercase: New file.
28949
28950         New module 'unicase/u16-is-uppercase'.
28951         * lib/unicase/u16-is-uppercase.c: New file.
28952         * modules/unicase/u16-is-uppercase: New file.
28953
28954         New module 'unicase/u8-is-uppercase'.
28955         * lib/unicase/u8-is-uppercase.c: New file.
28956         * modules/unicase/u8-is-uppercase: New file.
28957
28958         New module 'unicase/u32-is-invariant'.
28959         * lib/unicase/u32-is-invariant.c: New file.
28960         * modules/unicase/u32-is-invariant: New file.
28961
28962         New module 'unicase/u16-is-invariant'.
28963         * lib/unicase/u16-is-invariant.c: New file.
28964         * modules/unicase/u16-is-invariant: New file.
28965
28966         New module 'unicase/u8-is-invariant'.
28967         * lib/unicase/u8-is-invariant.c: New file.
28968         * lib/unicase/invariant.h: New file.
28969         * lib/unicase/u-is-invariant.h: New file.
28970         * modules/unicase/u8-is-invariant: New file.
28971
28972         Tests for module 'unicase/u32-casecoll'.
28973         * modules/unicase/u32-casecoll-tests: New file.
28974         * tests/unicase/test-u32-casecoll.c: New file.
28975
28976         Tests for module 'unicase/u16-casecoll'.
28977         * modules/unicase/u16-casecoll-tests: New file.
28978         * tests/unicase/test-u16-casecoll.c: New file.
28979
28980         Tests for module 'unicase/u8-casecoll'.
28981         * modules/unicase/u8-casecoll-tests: New file.
28982         * tests/unicase/test-u8-casecoll.c: New file.
28983
28984         New module 'unicase/u32-casecoll'.
28985         * lib/unicase/u32-casecoll.c: New file.
28986         * modules/unicase/u32-casecoll: New file.
28987
28988         New module 'unicase/u16-casecoll'.
28989         * lib/unicase/u16-casecoll.c: New file.
28990         * modules/unicase/u16-casecoll: New file.
28991
28992         New module 'unicase/u8-casecoll'.
28993         * lib/unicase/u8-casecoll.c: New file.
28994         * lib/unicase/u-casecoll.h: New file.
28995         * modules/unicase/u8-casecoll: New file.
28996
28997         New module 'unicase/u32-casexfrm'.
28998         * lib/unicase/u32-casexfrm.c: New file.
28999         * modules/unicase/u32-casexfrm: New file.
29000
29001         New module 'unicase/u16-casexfrm'.
29002         * lib/unicase/u16-casexfrm.c: New file.
29003         * modules/unicase/u16-casexfrm: New file.
29004
29005         New module 'unicase/u8-casexfrm'.
29006         * lib/unicase/u8-casexfrm.c: New file.
29007         * lib/unicase/u-casexfrm.h: New file.
29008         * modules/unicase/u8-casexfrm: New file.
29009
29010         Tests for module 'unicase/u32-casecmp'.
29011         * modules/unicase/u32-casecmp-tests: New file.
29012         * tests/unicase/test-u32-casecmp.c: New file.
29013
29014         Tests for module 'unicase/u16-casecmp'.
29015         * modules/unicase/u16-casecmp-tests: New file.
29016         * tests/unicase/test-u16-casecmp.c: New file.
29017
29018         Tests for module 'unicase/u8-casecmp'.
29019         * modules/unicase/u8-casecmp-tests: New file.
29020         * tests/unicase/test-u8-casecmp.c: New file.
29021         * tests/unicase/test-casecmp.h: New file.
29022
29023         New module 'unicase/u32-casecmp'.
29024         * lib/unicase/u32-casecmp.c: New file.
29025         * modules/unicase/u32-casecmp: New file.
29026
29027         New module 'unicase/u16-casecmp'.
29028         * lib/unicase/u16-casecmp.c: New file.
29029         * modules/unicase/u16-casecmp: New file.
29030
29031         New module 'unicase/u8-casecmp'.
29032         * lib/unicase/u8-casecmp.c: New file.
29033         * lib/unicase/u-casecmp.h: New file.
29034         * modules/unicase/u8-casecmp: New file.
29035
29036         Tests for module 'unicase/u32-casefold'.
29037         * modules/unicase/u32-casefold-tests: New file.
29038         * tests/unicase/test-u32-casefold.c: New file.
29039
29040         Tests for module 'unicase/u16-casefold'.
29041         * modules/unicase/u16-casefold-tests: New file.
29042         * tests/unicase/test-u16-casefold.c: New file.
29043
29044         Tests for module 'unicase/u8-casefold'.
29045         * modules/unicase/u8-casefold-tests: New file.
29046         * tests/unicase/test-u8-casefold.c: New file.
29047
29048         New module 'unicase/u32-casefold'.
29049         * lib/unicase/u32-casefold.c: New file.
29050         * modules/unicase/u32-casefold: New file.
29051
29052         New module 'unicase/u16-casefold'.
29053         * lib/unicase/u16-casefold.c: New file.
29054         * modules/unicase/u16-casefold: New file.
29055
29056         New module 'unicase/u8-casefold'.
29057         * lib/unicase/u8-casefold.c: New file.
29058         * lib/unicase/u-casefold.h: New file.
29059         * modules/unicase/u8-casefold: New file.
29060
29061         New module 'unicase/tocasefold'.
29062         * lib/unicase/casefold.h: New file.
29063         * lib/unicase/tocasefold.c: New file.
29064         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29065         * modules/unicase/tocasefold: New file.
29066
29067         Tests for module 'unicase/u32-totitle'.
29068         * modules/unicase/u32-totitle-tests: New file.
29069         * tests/unicase/test-u32-totitle.c: New file.
29070
29071         Tests for module 'unicase/u16-totitle'.
29072         * modules/unicase/u16-totitle-tests: New file.
29073         * tests/unicase/test-u16-totitle.c: New file.
29074
29075         Tests for module 'unicase/u8-totitle'.
29076         * modules/unicase/u8-totitle-tests: New file.
29077         * tests/unicase/test-u8-totitle.c: New file.
29078
29079         New module 'unicase/u32-totitle'.
29080         * lib/unicase/u32-totitle.c: New file.
29081         * modules/unicase/u32-totitle: New file.
29082
29083         New module 'unicase/u16-totitle'.
29084         * lib/unicase/u16-totitle.c: New file.
29085         * modules/unicase/u16-totitle: New file.
29086
29087         New module 'unicase/u8-totitle'.
29088         * lib/unicase/u8-totitle.c: New file.
29089         * lib/unicase/u-totitle.h: New file.
29090         * modules/unicase/u8-totitle: New file.
29091
29092         Tests for module 'unicase/u32-tolower'.
29093         * modules/unicase/u32-tolower-tests: New file.
29094         * tests/unicase/test-u32-tolower.c: New file.
29095
29096         Tests for module 'unicase/u16-tolower'.
29097         * modules/unicase/u16-tolower-tests: New file.
29098         * tests/unicase/test-u16-tolower.c: New file.
29099
29100         Tests for module 'unicase/u8-tolower'.
29101         * modules/unicase/u8-tolower-tests: New file.
29102         * tests/unicase/test-u8-tolower.c: New file.
29103
29104         New module 'unicase/u32-tolower'.
29105         * lib/unicase/u32-tolower.c: New file.
29106         * modules/unicase/u32-tolower: New file.
29107
29108         New module 'unicase/u16-tolower'.
29109         * lib/unicase/u16-tolower.c: New file.
29110         * modules/unicase/u16-tolower: New file.
29111
29112         New module 'unicase/u8-tolower'.
29113         * lib/unicase/u8-tolower.c: New file.
29114         * modules/unicase/u8-tolower: New file.
29115
29116         Tests for module 'unicase/u32-toupper'.
29117         * modules/unicase/u32-toupper-tests: New file.
29118         * tests/unicase/test-u32-toupper.c: New file.
29119
29120         Tests for module 'unicase/u16-toupper'.
29121         * modules/unicase/u16-toupper-tests: New file.
29122         * tests/unicase/test-u16-toupper.c: New file.
29123
29124         Tests for module 'unicase/u8-toupper'.
29125         * modules/unicase/u8-toupper-tests: New file.
29126         * tests/unicase/test-u8-toupper.c: New file.
29127
29128         New module 'unicase/u32-toupper'.
29129         * lib/unicase/u32-toupper.c: New file.
29130         * modules/unicase/u32-toupper: New file.
29131
29132         New module 'unicase/u16-toupper'.
29133         * lib/unicase/u16-toupper.c: New file.
29134         * modules/unicase/u16-toupper: New file.
29135
29136         New module 'unicase/u8-toupper'.
29137         * lib/unicase/u8-toupper.c: New file.
29138         * modules/unicase/u8-toupper: New file.
29139
29140         New module 'unicase/u32-casemap'.
29141         * lib/unicase/u32-casemap.c: New file.
29142         * modules/unicase/u32-casemap: New file.
29143
29144         New module 'unicase/u16-casemap'.
29145         * lib/unicase/u16-casemap.c: New file.
29146         * modules/unicase/u16-casemap: New file.
29147
29148         New module 'unicase/u8-casemap'.
29149         * lib/unicase/unicasemap.h: New file.
29150         * lib/unicase/u8-casemap.c: New file.
29151         * lib/unicase/u-casemap.h: New file.
29152         * modules/unicase/u8-casemap: New file.
29153
29154         New module 'unicase/special-casing'.
29155         * lib/unicase/special-casing.h: New file.
29156         * lib/unicase/special-casing.c: New file.
29157         * lib/unicase/special-casing-table.gperf: New file, generated by
29158         gen-uni-tables.c.
29159         * modules/unicase/special-casing: New file.
29160
29161         Tests for module 'unicase/locale-language'.
29162         * modules/unicase/locale-language-tests: New file.
29163         * tests/unicase/test-locale-language.sh: New file.
29164         * tests/unicase/test-locale-language.c: New file.
29165
29166         New module 'unicase/locale-language'.
29167         * lib/unicase/locale-language.c: New file.
29168         * lib/unicase/locale-languages.gperf: New file.
29169         * modules/unicase/locale-language: New file.
29170
29171         Generate more tables for case conversion and case folding.
29172         * lib/gen-uni-tables.c (SCC_*): New enum items.
29173         (struct special_casing_rule): New type.
29174         (casing_rules, num_casing_rules, allocated_casing_rules): New
29175         variables.
29176         (add_casing_rule, fill_casing_rules): New functions.
29177         (struct casefold_rule): New type.
29178         (casefolding_rules, num_casefolding_rules,
29179         allocated_casefolding_rules): New variables.
29180         (fill_casefolding_rules): New function.
29181         (unicode_casefold): New variable.
29182         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29183         sort_casing_rules, output_casing_rules): New functions.
29184         (main): Accept to more arguments: SpecialCasing.txt and
29185         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29186         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29187         Output mapping for casefolding.
29188
29189         * lib/unicase.h: Include stdbool.h, uninorm.h.
29190         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29191         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29192         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29193         arguments.
29194         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29195         resultp arguments.
29196         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29197         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29198         resultp arguments.
29199         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29200         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29201         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29202         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29203         declarations.
29204         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29205
29206 2009-03-08  Bruno Haible  <bruno@clisp.org>
29207
29208         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29209         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29210         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29211         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29212
29213 2009-03-07  Bruno Haible  <bruno@clisp.org>
29214
29215         Adjust u*_normcmp, u*_normcoll API.
29216         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29217         u16_normcoll, u32_normcoll): Change failure conventions.
29218         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29219         errno and return -1.
29220         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29221
29222 2009-03-07  Bruno Haible  <bruno@clisp.org>
29223
29224         Tests for module 'uninorm/u32-normcoll'.
29225         * modules/uninorm/u32-normcoll-tests: New file.
29226         * tests/uninorm/test-u32-normcoll.c: New file.
29227
29228         Tests for module 'uninorm/u16-normcoll'.
29229         * modules/uninorm/u16-normcoll-tests: New file.
29230         * tests/uninorm/test-u16-normcoll.c: New file.
29231
29232         Tests for module 'uninorm/u8-normcoll'.
29233         * modules/uninorm/u8-normcoll-tests: New file.
29234         * tests/uninorm/test-u8-normcoll.c: New file.
29235
29236 2009-03-07  Bruno Haible  <bruno@clisp.org>
29237
29238         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
29239         tests/uninorm/test-u32-normcmp.c.
29240         * tests/uninorm/test-u32-normcmp.c: Include it.
29241         (test_nonascii): New function, extracted from main. Add some more
29242         tests.
29243         (main): Invoke test_ascii and test_nonascii.
29244         * modules/uninorm/u32-normcmp-tests (Files): Add
29245         tests/uninorm/test-u32-normcmp.h.
29246         (Depends-on): Remove uninorm/u32-normcmp.
29247
29248         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
29249         tests/uninorm/test-u16-normcmp.c.
29250         * tests/uninorm/test-u16-normcmp.c: Include it.
29251         (test_nonascii): New function, extracted from main. Add some more
29252         tests.
29253         (main): Invoke test_ascii and test_nonascii.
29254         * modules/uninorm/u16-normcmp-tests (Files): Add
29255         tests/uninorm/test-u16-normcmp.h.
29256         (Depends-on): Remove uninorm/u16-normcmp.
29257
29258         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
29259         tests/uninorm/test-u8-normcmp.c.
29260         * tests/uninorm/test-u8-normcmp.c: Include it.
29261         (test_nonascii): New function, extracted from main. Add some more
29262         tests.
29263         (main): Invoke test_ascii and test_nonascii.
29264         * modules/uninorm/u8-normcmp-tests (Files): Add
29265         tests/uninorm/test-u8-normcmp.h.
29266         (Depends-on): Remove uninorm/u8-normcmp.
29267
29268 2009-03-07  Bruno Haible  <bruno@clisp.org>
29269
29270         New module 'uninorm/u32-normcoll'.
29271         * lib/uninorm/u32-normcoll.c: New file.
29272         * modules/uninorm/u32-normcoll: New file.
29273
29274         New module 'uninorm/u16-normcoll'.
29275         * lib/uninorm/u16-normcoll.c: New file.
29276         * modules/uninorm/u16-normcoll: New file.
29277
29278         New module 'uninorm/u8-normcoll'.
29279         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
29280         declarations.
29281         * lib/uninorm/u8-normcoll.c: New file.
29282         * lib/uninorm/u-normcoll.h: New file.
29283         * modules/uninorm/u8-normcoll: New file.
29284
29285         New module 'uninorm/u32-normxfrm'.
29286         * lib/uninorm/u32-normxfrm.c: New file.
29287         * modules/uninorm/u32-normxfrm: New file.
29288
29289         New module 'uninorm/u16-normxfrm'.
29290         * lib/uninorm/u16-normxfrm.c: New file.
29291         * modules/uninorm/u16-normxfrm: New file.
29292
29293         New module 'uninorm/u8-normxfrm'.
29294         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
29295         declarations.
29296         * lib/uninorm/u8-normxfrm.c: New file.
29297         * lib/uninorm/u-normxfrm.h: New file.
29298         * modules/uninorm/u8-normxfrm: New file.
29299
29300 2009-03-07  Bruno Haible  <bruno@clisp.org>
29301
29302         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
29303         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
29304         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
29305
29306 2009-03-07  Bruno Haible  <bruno@clisp.org>
29307
29308         New module 'memxfrm'.
29309         * lib/memxfrm.h: New file.
29310         * lib/memxfrm.c: New file.
29311         * modules/memxfrm: New file.
29312
29313 2009-03-07  Bruno Haible  <bruno@clisp.org>
29314
29315         New module 'memcmp2'.
29316         * lib/memcmp2.h: New file.
29317         * lib/memcmp2.c: New file.
29318         * modules/memcmp2: New file.
29319
29320 2009-03-07  Bruno Haible  <bruno@clisp.org>
29321
29322         Tests for module 'uninorm/decomposing-form'.
29323         * modules/uninorm/decomposing-form-tests: New file.
29324         * tests/uninorm/test-decomposing-form.c: New file.
29325
29326         New module 'uninorm/decomposing-form'.
29327         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
29328         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
29329         Add 'decomposing_variant' field.
29330         * lib/uninorm/decomposing-form.c: New file.
29331         * lib/uninorm/nfc.c (uninorm_nfc): Update.
29332         * lib/uninorm/nfd.c (uninorm_nfd): Update.
29333         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
29334         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
29335         * modules/uninorm/decomposing-form: New file.
29336         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
29337         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
29338
29339 2009-03-07  Bruno Haible  <bruno@clisp.org>
29340
29341         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
29342         strings.
29343
29344 2009-03-06  Bruno Haible  <bruno@clisp.org>
29345
29346         Tests for module 'uninorm/u32-normcmp'.
29347         * tests/uninorm/test-u32-normcmp.c: New file.
29348         * modules/uninorm/u32-normcmp-tests: New file.
29349
29350         Tests for module 'uninorm/u16-normcmp'.
29351         * tests/uninorm/test-u16-normcmp.c: New file.
29352         * modules/uninorm/u16-normcmp-tests: New file.
29353
29354         Tests for module 'uninorm/u8-normcmp'.
29355         * tests/uninorm/test-u8-normcmp.c: New file.
29356         * modules/uninorm/u8-normcmp-tests: New file.
29357
29358         New module 'uninorm/u32-normcmp'.
29359         * lib/uninorm/u32-normcmp.c: New file.
29360         * modules/uninorm/u32-normcmp: New file.
29361
29362         New module 'uninorm/u16-normcmp'.
29363         * lib/uninorm/u16-normcmp.c: New file.
29364         * modules/uninorm/u16-normcmp: New file.
29365
29366         New module 'uninorm/u8-normcmp'.
29367         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
29368         declarations.
29369         * lib/uninorm/u8-normcmp.c: New file.
29370         * lib/uninorm/u-normcmp.h: New file.
29371         * modules/uninorm/u8-normcmp: New file.
29372
29373 2009-03-06  Bruno Haible  <bruno@clisp.org>
29374
29375         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
29376         Reported by Eric Blake.
29377
29378 2009-03-06  Eric Blake  <ebb9@byu.net>
29379             Bruno Haible  <bruno@clisp.org>
29380
29381         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
29382         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
29383         condition.
29384         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29385         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
29386         condition.
29387         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29388
29389 2009-03-06  Eric Blake  <ebb9@byu.net>
29390
29391         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
29392         to avoid compiler warnings.
29393         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
29394
29395 2009-03-05  Bruno Haible  <bruno@clisp.org>
29396
29397         * tests/test-ftell.c (main): Disable test beyond end of file on
29398         FreeMiNT.
29399         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29400
29401 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
29402
29403         * lib/filevercmp.c: Move hidden files up in ordering.
29404         * tests/test-filevercmp.c: Add tests for hidden files.
29405
29406 2009-03-04  Bruno Haible  <bruno@clisp.org>
29407
29408         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
29409         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
29410         AM_CFLAGS.
29411         Reported by Simon Josefsson.
29412
29413 2009-03-03  Bruno Haible  <bruno@clisp.org>
29414
29415         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
29416         Reported by Simon Josefsson.
29417
29418         * doc/ld-version-script.texi: Update node reference.
29419
29420 2009-03-03  Bruno Haible  <bruno@clisp.org>
29421
29422         * modules/visibility (License): Change to 'unlimited'.
29423         Suggested by Simon Josefsson.
29424
29425 2009-03-03  Jim Meyering  <meyering@redhat.com>
29426
29427         unlinkdir: cannot_unlink_dir may modify process state
29428         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
29429         it's neither thread-safe nor appropriate for use in a library.
29430
29431 2009-03-03  Eric Blake  <ebb9@byu.net>
29432
29433         test-closein: silence test under Darwin
29434         * tests/test-closein.sh: Ignore stderr from cat, since we don't
29435         care if it dies from EPIPE or EBADF.
29436
29437 2009-03-03  Bruno Haible  <bruno@clisp.org>
29438
29439         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
29440         earlier.
29441         * doc/visibility.texi: Fix @node and @section.
29442
29443 2009-03-03  Simon Josefsson  <simon@josefsson.org>
29444
29445         * doc/gnulib.texi: Link to sections for ld version script and
29446         visibility.
29447         * doc/visibility.texi: Add @node and @section.
29448         * modules/ld-version-script: New module.
29449         * m4/ld-version-script.m4: New file.
29450         * doc/ld-version-script.texi: New file.
29451
29452 2009-03-02  David Lutterkort  <lutter@redhat.com>
29453
29454         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
29455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29456
29457 2009-03-02  Bruno Haible  <bruno@clisp.org>
29458
29459         * doc/visibility.texi: Mention libtool's -export-symbols option.
29460
29461 2009-03-02  Jim Meyering  <meyering@redhat.com>
29462
29463         announce-gen: new option: --no-print-checksums
29464         * build-aux/announce-gen (usage): Describe it.
29465         (print_checksums): Print a newline here, not in the [*] footnote.
29466         (main): Honor it.
29467
29468 2009-03-01  Bruno Haible  <bruno@clisp.org>
29469
29470         Use socklen_t in the native Windows replacements prototypes.
29471         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
29472         instead of 'int'.
29473         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29474         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29475         * modules/getsockopt (Depends-on): Add socklen.
29476         * modules/setsockopt (Depends-on): Add socklen.
29477
29478 2009-03-01  Bruno Haible  <bruno@clisp.org>
29479
29480         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
29481         least 4.2.
29482
29483 2009-03-01  Eric Blake  <ebb9@byu.net>
29484             Bruno Haible  <bruno@clisp.org>
29485
29486         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
29487         error messages.
29488         * lib/wait-process.c (wait_subprocess): Omit error message about
29489         deadly signal sent to the child of termsigp != NULL.
29490
29491 2009-03-01  Eric Blake  <ebb9@byu.net>
29492
29493         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
29494
29495 2009-03-01  Bruno Haible  <bruno@clisp.org>
29496
29497         Avoid a gcc warning.
29498         * tests/test-sched.c (b): Make global.
29499         Reported by Eric Blake.
29500
29501 2009-01-19  Martin Lambers  <marlam@marlam.de>
29502
29503         Provide POSIX semantics for socket timeout options on W32.
29504         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
29505         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
29506         * modules/setsockopt: Depend on sys_time module for struct timeval.
29507         * modules/getsockopt: Depend on sys_time module for struct timeval.
29508
29509 2009-03-01  Simon Josefsson  <simon@josefsson.org>
29510
29511         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
29512         __USE_GNU, for consistency with netdb.in.h.
29513         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29514
29515 2009-03-01  Bruno Haible  <bruno@clisp.org>
29516
29517         More support for FreeMiNT.
29518         * lib/fseeko.c (rpl_fseeko): Complete last commit.
29519         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29520
29521 2009-03-01  Bruno Haible  <bruno@clisp.org>
29522
29523         More support for FreeMiNT.
29524         * lib/fpurge.c (fpurge): Correct last commit.
29525         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29526
29527 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29528
29529         Fix unportable awk script in vc-list-files.
29530         * build-aux/vc-list-files: In the replacement awk script, use
29531         substr with a second argument of 1, not zero.
29532         Report by Simon Josefsson.
29533
29534 2009-02-28  Bruno Haible  <bruno@clisp.org>
29535
29536         More support for FreeMiNT.
29537         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
29538         to FreeMiNT today.
29539         * lib/fwriting.c (fwriting): Likewise.
29540         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
29541
29542 2009-02-28  Bruno Haible  <bruno@clisp.org>
29543
29544         * tests/test-freadseek.c (main): Disable test beyond end of file on
29545         FreeMiNT.
29546         * tests/test-ftello.c (main): Likewise.
29547         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29548
29549 2009-02-28  Bruno Haible  <bruno@clisp.org>
29550
29551         Add tentative support for FreeMiNT.
29552         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
29553         * lib/fpurge.c (fpurge): Likewise.
29554         * lib/freadable.c (freadable): Likewise.
29555         * lib/freading.c (freading): Likewise.
29556         * lib/freadptr.c (freadptr): Likewise.
29557         * lib/freadseek.c (freadptrinc): Likewise.
29558         * lib/fseeko.c (rpl_fseeko): Likewise.
29559         * lib/fseterr.c (fseterr): Likewise.
29560         * lib/fwritable.c (fwritable): Likewise.
29561         * lib/fwriting.c (fwriting): Likewise.
29562         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29563         Hourihane.
29564         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29565
29566 2009-02-28  Bruno Haible  <bruno@clisp.org>
29567
29568         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29569         SIGCHLD.
29570         Reported by Jim Meyering.
29571
29572 2009-02-28  Bruno Haible  <bruno@clisp.org>
29573
29574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29575         Mention the results of these tests on various platforms.
29576         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29577         order.
29578         * doc/posix-functions/printf.texi: Likewise.
29579         * doc/posix-functions/snprintf.texi: Likewise.
29580         * doc/posix-functions/sprintf.texi: Likewise.
29581         * doc/posix-functions/vfprintf.texi: Likewise.
29582         * doc/posix-functions/vprintf.texi: Likewise.
29583         * doc/posix-functions/vsnprintf.texi: Likewise.
29584         * doc/posix-functions/vsprintf.texi: Likewise.
29585         * doc/glibc-functions/obstack_printf.texi: Likewise.
29586         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29587
29588 2009-02-28  Bruno Haible  <bruno@clisp.org>
29589
29590         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29591         Reported by Loïc Minier <lool@dooz.org>.
29592
29593 2009-02-27  Bruno Haible  <bruno@clisp.org>
29594
29595         * gnulib-tool (func_import): Make the sed expression used to create the
29596         sed script for updating the .gitignore file POSIX compliant.
29597         Reported by Eric Blake.
29598
29599 2009-02-27  Bruno Haible  <bruno@clisp.org>
29600
29601         * gnulib-tool (sed): Don't alias as "sed --posix".
29602         Reported by Eric Blake.
29603
29604 2009-02-27  Bruno Haible  <bruno@clisp.org>
29605
29606         Avoid test link errors.
29607         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29608         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29609         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29610         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29612
29613 2009-02-27  Bruno Haible  <bruno@clisp.org>
29614
29615         Avoid spurious "(cached)" in configure output.
29616         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29617         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29618         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29619         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29620         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29621         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29622         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29623         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29624         Reported by Eric Blake.
29625
29626 2009-02-27  Eric Blake  <ebb9@byu.net>
29627
29628         printf: fix regression in previous patch
29629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29630
29631 2009-02-27  Bruno Haible  <bruno@clisp.org>
29632
29633         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29634         value.
29635         * lib/stdint.in.h: Likewise.
29636         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29637
29638 2009-02-27  Eric Blake  <ebb9@byu.net>
29639
29640         doc: mention more functions added in cygwin 1.7.0
29641         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29642         addition.
29643         * doc/posix-functions/open_wmemstream.texi: Likewise.
29644         * doc/posix-functions/wcsnlen.texi: Likewise.
29645         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29646         * doc/posix-functions/wcstod.texi: Likewise.
29647         * doc/posix-functions/wcstof.texi: Likewise.
29648         * doc/posix-functions/wcstoimax.texi: Likewise.
29649         * doc/posix-functions/wcstok.texi: Likewise.
29650         * doc/posix-functions/wcstoumax.texi: Likewise.
29651
29652         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29653         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29654         * doc/posix-functions/fprintf.texi: Update.
29655         * doc/posix-functions/printf.texi: Update.
29656         * doc/posix-functions/snprintf.texi: Update.
29657         * doc/posix-functions/sprintf.texi: Update.
29658         * doc/posix-functions/vfprintf.texi: Update.
29659         * doc/posix-functions/vprintf.texi: Update.
29660         * doc/posix-functions/vsnprintf.texi: Update.
29661         * doc/posix-functions/vsprintf.texi: Update.
29662         * doc/glibc-functions/obstack_printf.texi: Update.
29663         * doc/glibc-functions/obstack_vprintf.texi: Update.
29664
29665 2009-02-26  Eric Blake  <ebb9@byu.net>
29666
29667         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29668         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29669         compilation bug by using runtime conversion.
29670         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29671         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29672         * modules/ceill-tests (Files): Use nan.h.
29673         * modules/floorl-tests (Files): Likewise.
29674         * modules/frexpl-tests (Files): Likewise.
29675         * modules/isnanl-tests (Files): Likewise.
29676         * modules/ldexpl-tests (Files): Likewise.
29677         * modules/roundl-tests (Files): Likewise.
29678         * modules/truncl-tests (Files): Likewise.
29679         * tests/test-ceill.c (main): Use a working NaN.
29680         * tests/test-floorl.c (main): Likewise.
29681         * tests/test-frexpl.c (main): Likewise.
29682         * tests/test-isnan.c (test_long_double): Likewise.
29683         * tests/test-isnanl.h (main): Likewise.
29684         * tests/test-ldexpl.h (main): Likewise.
29685         * tests/test-roundl.h (main): Likewise.
29686         * tests/test-truncl.h (main): Likewise.
29687         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29688
29689 2009-02-26  Eric Blake  <ebb9@byu.net>
29690             Bruno Haible  <bruno@clisp.org>
29691
29692         Work around a *printf bug with %ls on Solaris.
29693         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29694         precision is specified, sprintf stops converting the wide string
29695         argument when the number of bytes that have been produced by this
29696         conversion equals or exceeds the precision.
29697         * doc/posix-functions/fprintf.texi: Update.
29698         * doc/posix-functions/printf.texi: Update.
29699         * doc/posix-functions/snprintf.texi: Update.
29700         * doc/posix-functions/sprintf.texi: Update.
29701         * doc/posix-functions/vfprintf.texi: Update.
29702         * doc/posix-functions/vprintf.texi: Update.
29703         * doc/posix-functions/vsnprintf.texi: Update.
29704         * doc/posix-functions/vsprintf.texi: Update.
29705         * doc/glibc-functions/obstack_printf.texi: Update.
29706         * doc/glibc-functions/obstack_vprintf.texi: Update.
29707
29708 2009-02-26  Eric Blake  <ebb9@byu.net>
29709
29710         stdlib: favor compiler check of random.h
29711         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29712         to avoid an ObjC random.h installed by Swarm.
29713
29714 2009-02-26  Bruno Haible  <bruno@clisp.org>
29715
29716         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29717         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29718         Reported by Gary V. Vaughan <gary@gnu.org>.
29719
29720 2009-02-26  Bruno Haible  <bruno@clisp.org>
29721
29722         Fix *printf behaviour regarding the %ls directive.
29723         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29724         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29725         NEED_PRINTF_DIRECTIVE_LS.
29726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29727         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29728         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29729         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29730         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29731         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29732         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29733         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29734         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29735         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29736         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29737         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29738         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29739         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29740         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29741         * doc/posix-functions/fprintf.texi: Update.
29742         * doc/posix-functions/printf.texi: Update.
29743         * doc/posix-functions/snprintf.texi: Update.
29744         * doc/posix-functions/sprintf.texi: Update.
29745         * doc/posix-functions/vfprintf.texi: Update.
29746         * doc/posix-functions/vprintf.texi: Update.
29747         * doc/posix-functions/vsnprintf.texi: Update.
29748         * doc/posix-functions/vsprintf.texi: Update.
29749         * doc/glibc-functions/obstack_printf.texi: Update.
29750         * doc/glibc-functions/obstack_vprintf.texi: Update.
29751         Reported by Eric Blake.
29752
29753 2009-02-25  Bruno Haible  <bruno@clisp.org>
29754
29755         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29756         with known value.
29757         Reported by Gary V. Vaughan <gary@gnu.org>.
29758
29759 2009-02-25  Bruno Haible  <bruno@clisp.org>
29760
29761         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29762         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29763         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29764         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29765         Reported by Gary V. Vaughan <gary@gnu.org>.
29766
29767 2009-02-25  Bruno Haible  <bruno@clisp.org>
29768
29769         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29770         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29771         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29772         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29773         Reported by Gary V. Vaughan <gary@gnu.org>.
29774
29775 2009-02-25  Eric Blake  <ebb9@byu.net>
29776
29777         tests: skip fseek/ftell tests if ungetc is broken
29778         * m4/ungetc.m4: New file.
29779         * modules/fseek-tests: Split test, so ungetc dependency is
29780         separate from rest of test.
29781         * modules/fseeko-tests: Likewise.
29782         * modules/ftell-tests: Likewise.
29783         * modules/ftello-tests: Likewise.
29784         * tests/test-fseek.c (main): Isolate ungetc dependency.
29785         * tests/test-fseeko.c (main): Likewise.
29786         * tests/test-ftell.c (main): Likewise.
29787         * tests/test-ftello.c (main): Likewise.
29788         * tests/test-fseek2.sh: New file.
29789         * tests/test-fseeko2.sh: Likewise.
29790         * tests/test-ftell2.sh: Likewise.
29791         * tests/test-ftello2.sh: Likewise.
29792
29793 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29794
29795         test-getaddrinfo: fix usage of skip return code 77
29796         * tests/test-gettaddrinfo.c: Return skip code 77 only
29797         for first occurance of skip (4x77 is not 77)
29798
29799 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29800
29801         strtod: avoid C99 decl-after-statement
29802         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29803
29804 2009-02-24  Eric Blake  <ebb9@byu.net>
29805
29806         strtod: detect HP-UX 11.31 bug
29807         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29808         Reported by Gary V. Vaughan.
29809
29810 2009-02-23  Bruno Haible  <bruno@clisp.org>
29811
29812         Fix invalid read past end of memory block.
29813         * lib/vasnprintf.c (DCHAR_SET): Define.
29814         (local_wcslen): Define only when needed.
29815         (local_strnlen, local_wcsnlen): New functions.
29816         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29817         directives that involve a conversion ourselves.
29818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29819         wcsnlen, mbrtowc, wcrtomb.
29820         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29821         * tests/test-vasprintf-posix.c (test_function): Likewise.
29822         * tests/test-snprintf-posix.h (test_function): Likewise.
29823         * tests/test-sprintf-posix.h (test_function): Likewise.
29824         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29825
29826 2009-02-22  Bruno Haible  <bruno@clisp.org>
29827
29828         Implement new clarified decomposition of Hangul syllables.
29829         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29830         of type LTV, return only a pairwise decomposition.
29831         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29832         Likewise.
29833         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29834         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29835         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29836
29837 2009-02-22  Bruno Haible  <bruno@clisp.org>
29838
29839         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29840         zero-length results and shrink excess allocated memory.
29841         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29842         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29843         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29844         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29845         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29846         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29847         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29848         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29849         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29850         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29851         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29852         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29853
29854 2009-02-21  Bruno Haible  <bruno@clisp.org>
29855
29856         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29857         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29858         spaces after a period. Put a space between a macro name and its
29859         argument list. Trivial rewordings.
29860         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29861         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29862         (main): Return 0 explicitly.
29863
29864 2009-02-21  Bruno Haible  <bruno@clisp.org>
29865
29866         Tests for module 'uninorm/filter'.
29867         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29868         * modules/uninorm/filter-tests: New file.
29869
29870         New module 'uninorm/filter'.
29871         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29872         uninorm_filter_flush, uninorm_filter_free): New declarations.
29873         * lib/uninorm/uninorm-filter.c: New file.
29874         * modules/uninorm/filter: New file.
29875
29876 2009-02-21  Bruno Haible  <bruno@clisp.org>
29877
29878         Tests for module 'uninorm/nfkc'.
29879         * tests/uninorm/test-nfkc.c: New file.
29880         * tests/uninorm/test-u8-nfkc.c: New file.
29881         * tests/uninorm/test-u16-nfkc.c: New file.
29882         * tests/uninorm/test-u32-nfkc.c: New file.
29883         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29884         * tests/uninorm/test-u32-nfkc-big.c: New file.
29885         * modules/uninorm/nfkc-tests: New file.
29886
29887         New module 'uninorm/nfkc'.
29888         * lib/uninorm/nfkc.c: New file.
29889         * modules/uninorm/nfkc: New file.
29890
29891         Tests for module 'uninorm/nfkd'.
29892         * tests/uninorm/test-nfkd.c: New file.
29893         * tests/uninorm/test-u8-nfkd.c: New file.
29894         * tests/uninorm/test-u16-nfkd.c: New file.
29895         * tests/uninorm/test-u32-nfkd.c: New file.
29896         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29897         * tests/uninorm/test-u32-nfkd-big.c: New file.
29898         * modules/uninorm/nfkd-tests: New file.
29899
29900         New module 'uninorm/nfkd'.
29901         * lib/uninorm/nfkd.c: New file.
29902         * modules/uninorm/nfkd: New file.
29903
29904         Tests for module 'uninorm/nfc'.
29905         * tests/uninorm/test-nfc.c: New file.
29906         * tests/uninorm/test-u8-nfc.c: New file.
29907         * tests/uninorm/test-u16-nfc.c: New file.
29908         * tests/uninorm/test-u32-nfc.c: New file.
29909         * tests/uninorm/test-u32-nfc-big.sh: New file.
29910         * tests/uninorm/test-u32-nfc-big.c: New file.
29911         * modules/uninorm/nfc-tests: New file.
29912
29913         New module 'uninorm/nfc'.
29914         * lib/uninorm/nfc.c: New file.
29915         * modules/uninorm/nfc: New file.
29916
29917         Tests for module 'uninorm/nfd'.
29918         * tests/uninorm/test-nfd.c: New file.
29919         * tests/uninorm/test-u8-nfd.c: New file.
29920         * tests/uninorm/test-u16-nfd.c: New file.
29921         * tests/uninorm/test-u32-nfd.c: New file.
29922         * tests/uninorm/test-u32-nfd-big.sh: New file.
29923         * tests/uninorm/test-u32-nfd-big.c: New file.
29924         * tests/uninorm/test-u32-normalize-big.h: New file.
29925         * tests/uninorm/test-u32-normalize-big.c: New file.
29926         * tests/uninorm/NormalizationTest.txt: New file, created from
29927         Unicode 5.1.0 NormalizationTest.txt.
29928         * modules/uninorm/nfd-tests: New file.
29929
29930         New module 'uninorm/nfd'.
29931         * lib/uninorm/nfd.c: New file.
29932         * modules/uninorm/nfd: New file.
29933
29934         New module 'uninorm/u32-normalize'.
29935         * lib/uninorm/u32-normalize.c: New file.
29936         * modules/uninorm/u32-normalize: New file.
29937
29938         New module 'uninorm/u16-normalize'.
29939         * lib/uninorm/u16-normalize.c: New file.
29940         * modules/uninorm/u16-normalize: New file.
29941
29942         New module 'uninorm/u8-normalize'.
29943         * lib/uninorm/u8-normalize.c: New file.
29944         * lib/uninorm/normalize-internal.h: New file.
29945         * lib/uninorm/u-normalize-internal.h: New file.
29946         * modules/uninorm/u8-normalize: New file.
29947
29948         New module 'uninorm/decompose-internal'.
29949         * lib/uninorm/decompose-internal.c: New file.
29950         * modules/uninorm/decompose-internal: New file.
29951
29952         Tests for module 'uninorm/composition'.
29953         * tests/uninorm/test-composition.c: New file.
29954         * modules/uninorm/composition-tests: New file.
29955
29956         New module 'uninorm/composition'.
29957         * lib/uninorm/composition.c: New file.
29958         * lib/uninorm/composition-table.gperf: New file, generated by
29959         gen-uni-tables.
29960         * modules/uninorm/composition: New file.
29961
29962         Tests for module 'uninorm/compat-decomposition'.
29963         * tests/uninorm/test-compat-decomposition.c: New file.
29964         * modules/uninorm/compat-decomposition-tests: New file.
29965
29966         New module 'uninorm/compat-decomposition'.
29967         * lib/uninorm/decompose-internal.h: New file.
29968         * lib/uninorm/compat-decomposition.c: New file.
29969         * modules/uninorm/compat-decomposition: New file.
29970
29971         Tests for module 'uninorm/canonical-decomposition'.
29972         * tests/uninorm/test-canonical-decomposition.c: New file.
29973         * modules/uninorm/canonical-decomposition-tests: New file.
29974
29975         New module 'uninorm/canonical-decomposition'.
29976         * lib/uninorm/canonical-decomposition.c: New file.
29977         * modules/uninorm/canonical-decomposition: New file.
29978
29979         Tests for module 'uninorm/decomposition'.
29980         * tests/uninorm/test-decomposition.c: New file.
29981         * modules/uninorm/decomposition-tests: New file.
29982
29983         New module 'uninorm/decomposition'.
29984         * lib/uninorm/decomposition.c: New file.
29985         * modules/uninorm/decomposition: New file.
29986
29987         New module 'uninorm/decomposition-table'.
29988         * lib/uninorm/decomposition-table.h: New file.
29989         * lib/uninorm/decomposition-table.c: New file.
29990         * lib/uninorm/decomposition-table1.h: New file, generated by
29991         gen-uni-tables.
29992         * lib/uninorm/decomposition-table2.h: New file, generated by
29993         gen-uni-tables.
29994         * modules/uninorm/decomposition-table: New file.
29995
29996         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29997         (UC_DECOMP_*): New enumeration items.
29998         (get_decomposition): New function.
29999         (struct decomp_table): New type.
30000         (output_decomposition, output_decomposition_tables): New functions.
30001         (unicode_composition_exclusions): New variable.
30002         (fill_composition_exclusions, debug_output_composition_tables): New
30003         functions.
30004         (main): Accept one more argument. Invoke fill_composition_exclusions.
30005         Output decomposition and composition tables.
30006
30007         New module 'uninorm/base'.
30008         * lib/uninorm.h: New file.
30009         * lib/unictype.h: Update comment.
30010         * modules/uninorm/base: New file.
30011
30012 2009-02-21  David Lutterkort  <lutter@redhat.com>
30013
30014         Tests for module 'safe-alloc'.
30015         * tests/test-safe-alloc.c: New file.
30016         * modules/safe-alloc-tests: New file.
30017
30018         New module 'safe-alloc'.
30019         * lib/safe-alloc.h: New file.
30020         * lib/safe-alloc.c: New file.
30021         * m4/safe-alloc.m4: New file.
30022         * modules/safe-alloc: New file.
30023         * doc/safe-alloc.texi: New file.
30024         * doc/gnulib.texi: Include it.
30025         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30026         safe-alloc.
30027
30028 2009-02-18  Bruno Haible  <bruno@clisp.org>
30029
30030         Fix link error on non-glibc systems.
30031         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30032         variable.
30033         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30034
30035 2009-02-18  Jim Meyering  <meyering@redhat.com>
30036
30037         fts: avoid used-uninitialized error due to recent change
30038         * lib/fts.c (fts_read): Guard uses of the new member,
30039         parent->fts_n_dirs_remaining, since it's not relevant for
30040         the parent of a directory specified on the command-line.
30041
30042 2009-02-17  James Youngman  <jay@gnu.org>
30043             Bruno Haible  <bruno@clisp.org>
30044
30045         * m4/include_next.m4: Reformulate comment.
30046
30047 2009-02-16  Jim Meyering  <meyering@redhat.com>
30048
30049         fts: add #if guards so that the fts_lgpl module still builds
30050         * lib/fts.c: Guard just-added hash-table-using parts with
30051         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30052         Reported by Simon Josefsson.
30053
30054 2009-02-15  Bruno Haible  <bruno@clisp.org>
30055
30056         * modules/array-mergesort-tests: New file.
30057         * tests/test-array-mergesort.c: New file.
30058
30059         New module 'array-mergesort'.
30060         * modules/array-mergesort: New file.
30061         * lib/array-mergesort.h: New file.
30062
30063 2009-02-15  Bruno Haible  <bruno@clisp.org>
30064
30065         Fix 2009-02-07 commit.
30066         * lib/gen-uni-tables.c (output_predicate, output_category,
30067         output_combclass, output_bidi_category, output_decimal_digit,
30068         output_digit, output_numeric, output_mirror, output_scripts,
30069         output_ident_category, output_simple_mapping): Fix format directives.
30070         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30071
30072 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30073
30074         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30075         fixes are available from IBM.
30076
30077 2009-02-13  Jim Meyering  <meyering@redhat.com>
30078
30079         fts: arrange not to stat non-directories in more cases
30080         This makes GNU find (when it doesn't need to stat each file)
30081         *much* more efficient at traversing reiserfs file systems.
30082         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30083         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30084         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30085         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30086         (leaf_optimization_applies): New function.
30087         (LCO_hash, LCO_compare): New helper functions.
30088         (link_count_optimize_ok): New function.
30089         (fts_stat): Initialize new member (if dir).
30090         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30091         we've just stat'ed a directory.  Skip the stat call when possible.
30092         ---
30093         Note this AFS-related exchange:
30094         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30095         and note find's pioctl call in find/fstype.c.
30096         But that is necessary only if you want to enable the
30097         optimization for AFS, and for now, I don't.
30098
30099         fts: move a function definition "up" (no semantic change)
30100         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30101         "up" to precede upcoming use of a related function.
30102
30103 2009-02-11  Jim Meyering  <meyering@redhat.com>
30104
30105         fts: correct internal computation of nlinks (optimization-related)
30106         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30107         whether the current entry is a directory, so don't test it.
30108
30109 2009-02-10  Bruno Haible  <bruno@clisp.org>
30110
30111         Tests for module 'uniwbrk/ulc-wordbreaks'.
30112         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30113         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30114         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30115
30116         Tests for module 'uniwbrk/u32-wordbreaks'.
30117         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30118         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30119
30120         Tests for module 'uniwbrk/u16-wordbreaks'.
30121         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30122         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30123
30124         Tests for module 'uniwbrk/u8-wordbreaks'.
30125         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30126         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30127
30128 2009-02-10  Bruno Haible  <bruno@clisp.org>
30129
30130         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30131         property.
30132         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30133         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30134         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30135
30136 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30137
30138         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30139         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30140
30141 2009-02-10  Bruno Haible  <bruno@clisp.org>
30142
30143         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30144         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30145         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30146         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30147         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30148         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30149
30150 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30151
30152         * lib/sockets.h (gl_fd_to_handle): New function.
30153
30154         * tests/test-sockets.c: Call gl_fd_to_handle.
30155
30156 2009-02-09  Bruno Haible  <bruno@clisp.org>
30157
30158         * doc/havelib.texi: Document the conventions on bi-arch systems.
30159
30160 2009-02-08  Bruno Haible  <bruno@clisp.org>
30161
30162         Document the AC_LIB_LINKFLAGS macro.
30163         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30164         * doc/gnulib.texi: Include it.
30165
30166 2009-02-08  Bruno Haible  <bruno@clisp.org>
30167
30168         Fix wrong order of sections, compared to TOC.
30169         * doc/gnulib.texi: Include relocatable-maint.texi after the
30170         "Regular expressions" node, not before.
30171
30172 2009-02-08  Bruno Haible  <bruno@clisp.org>
30173
30174         Tests for module 'unicase/totitle'.
30175         * modules/unicase/totitle-tests: New file.
30176
30177         Tests for module 'unicase/tolower'.
30178         * modules/unicase/tolower-tests: New file.
30179
30180         Tests for module 'unicase/toupper'.
30181         * modules/unicase/toupper-tests: New file.
30182         * tests/unicase/test-mapping-part1.h: New file.
30183         * tests/unicase/test-mapping-part2.h: New file.
30184
30185         New module 'unicase/totitle'.
30186         * modules/unicase/totitle: New file.
30187         * lib/unicase/totitle.c: New file.
30188
30189         New module 'unicase/tolower'.
30190         * modules/unicase/tolower: New file.
30191         * lib/unicase/tolower.c: New file.
30192
30193         New module 'unicase/toupper'.
30194         * modules/unicase/toupper: New file.
30195         * lib/unicase/toupper.c: New file.
30196         * lib/unicase/simple-mapping.h: New file.
30197
30198         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30199         (mapping_table): New structure.
30200         (output_simple_mapping): New function.
30201         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30202         * modules/gen-uni-tables (Description): Update.
30203         * lib/unicase/toupper.h: New file, automatically generated by
30204         gen-uni-tables.
30205         * lib/unicase/tolower.h: New file, automatically generated by
30206         gen-uni-tables.
30207         * lib/unicase/totitle.h: New file, automatically generated by
30208         gen-uni-tables.
30209         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30210         gen-uni-tables.
30211         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30212         gen-uni-tables.
30213         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30214         gen-uni-tables.
30215
30216         New module 'unicase/base'.
30217         * modules/unicase/base: New file.
30218         * lib/unicase.h: New file.
30219
30220 2009-02-08  Bruno Haible  <bruno@clisp.org>
30221
30222         New module 'uniwbrk/ulc-wordbreaks'.
30223         * modules/uniwbrk/ulc-wordbreaks: New file.
30224         * lib/uniwbrk/ulc-wordbreaks.c: New file.
30225
30226         New module 'uniwbrk/u32-wordbreaks'.
30227         * modules/uniwbrk/u32-wordbreaks: New file.
30228         * lib/uniwbrk/u32-wordbreaks.c: New file.
30229
30230         New module 'uniwbrk/u16-wordbreaks'.
30231         * modules/uniwbrk/u16-wordbreaks: New file.
30232         * lib/uniwbrk/u16-wordbreaks.c: New file.
30233
30234         New module 'uniwbrk/u8-wordbreaks'.
30235         * modules/uniwbrk/u8-wordbreaks: New file.
30236         * lib/uniwbrk/u8-wordbreaks.c: New file.
30237         * lib/uniwbrk/u-wordbreaks.h: New file.
30238
30239         New module 'uniwbrk/table'.
30240         * modules/uniwbrk/table: New file.
30241         * lib/uniwbrk/wbrktable.h: New file.
30242         * lib/uniwbrk/wbrktable.c: New file.
30243
30244         New module 'uniwbrk/wordbreak-property'.
30245         * modules/uniwbrk/wordbreak-property: New file.
30246         * lib/uniwbrk/wordbreak-property.c: New file.
30247
30248         * lib/gen-uni-tables.c (WBP_*): New enum items.
30249         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
30250         (unicode_org_wbp): New variable.
30251         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
30252         New functions.
30253         (wbp_table): New structure.
30254         (output_wbp, output_wbrk_tables): New functions.
30255         (main): Accept additional argument. Invoke fill_org_wbp,
30256         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
30257         output_wbrk_tables.
30258         * modules/gen-uni-tables (Description): Update.
30259         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
30260         gen-uni-tables.
30261
30262         New module 'uniwbrk/base'.
30263         * modules/uniwbrk/base: New file.
30264         * lib/uniwbrk.h: New file.
30265
30266 2009-02-08  Bruno Haible  <bruno@clisp.org>
30267
30268         Update to Unicode 5.1.0.
30269         * lib/gen-uni-tables.c (is_property_alphabetic): Include
30270         U+2185..U+2188.
30271         (is_property_default_ignorable_code_point): Don't include characters
30272         of category Cc or Cs and not-a-characters.
30273         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
30274         U+0D79, U+109E, U+109F, U+A60C.
30275         * lib/unictype/bidi_of.h: Regenerated.
30276         * lib/unictype/blocks.h: Regenerated.
30277         * lib/unictype/categ_C.h: Regenerated.
30278         * lib/unictype/categ_Cf.h: Regenerated.
30279         * lib/unictype/categ_Cn.h: Regenerated.
30280         * lib/unictype/categ_L.h: Regenerated.
30281         * lib/unictype/categ_Ll.h: Regenerated.
30282         * lib/unictype/categ_Lm.h: Regenerated.
30283         * lib/unictype/categ_Lo.h: Regenerated.
30284         * lib/unictype/categ_Lu.h: Regenerated.
30285         * lib/unictype/categ_M.h: Regenerated.
30286         * lib/unictype/categ_Mc.h: Regenerated.
30287         * lib/unictype/categ_Me.h: Regenerated.
30288         * lib/unictype/categ_Mn.h: Regenerated.
30289         * lib/unictype/categ_N.h: Regenerated.
30290         * lib/unictype/categ_Nd.h: Regenerated.
30291         * lib/unictype/categ_Nl.h: Regenerated.
30292         * lib/unictype/categ_No.h: Regenerated.
30293         * lib/unictype/categ_P.h: Regenerated.
30294         * lib/unictype/categ_Pd.h: Regenerated.
30295         * lib/unictype/categ_Pe.h: Regenerated.
30296         * lib/unictype/categ_Pf.h: Regenerated.
30297         * lib/unictype/categ_Pi.h: Regenerated.
30298         * lib/unictype/categ_Po.h: Regenerated.
30299         * lib/unictype/categ_Ps.h: Regenerated.
30300         * lib/unictype/categ_S.h: Regenerated.
30301         * lib/unictype/categ_Sk.h: Regenerated.
30302         * lib/unictype/categ_Sm.h: Regenerated.
30303         * lib/unictype/categ_So.h: Regenerated.
30304         * lib/unictype/categ_of.h: Regenerated.
30305         * lib/unictype/combining.h: Regenerated.
30306         * lib/unictype/ctype_alnum.h: Regenerated.
30307         * lib/unictype/ctype_alpha.h: Regenerated.
30308         * lib/unictype/ctype_graph.h: Regenerated.
30309         * lib/unictype/ctype_lower.h: Regenerated.
30310         * lib/unictype/ctype_print.h: Regenerated.
30311         * lib/unictype/ctype_punct.h: Regenerated.
30312         * lib/unictype/ctype_upper.h: Regenerated.
30313         * lib/unictype/decdigit.h: Regenerated.
30314         * lib/unictype/digit.h: Regenerated.
30315         * lib/unictype/mirror.h: Regenerated.
30316         * lib/unictype/numeric.h: Regenerated.
30317         * lib/unictype/pr_alphabetic.h: Regenerated.
30318         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
30319         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
30320         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
30321         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
30322         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
30323         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
30324         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
30325         * lib/unictype/pr_combining.h: Regenerated.
30326         * lib/unictype/pr_dash.h: Regenerated.
30327         * lib/unictype/pr_decimal_digit.h: Regenerated.
30328         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
30329         * lib/unictype/pr_deprecated.h: Regenerated.
30330         * lib/unictype/pr_diacritic.h: Regenerated.
30331         * lib/unictype/pr_extender.h: Regenerated.
30332         * lib/unictype/pr_format_control.h: Regenerated.
30333         * lib/unictype/pr_grapheme_base.h: Regenerated.
30334         * lib/unictype/pr_grapheme_extend.h: Regenerated.
30335         * lib/unictype/pr_grapheme_link.h: Regenerated.
30336         * lib/unictype/pr_id_continue.h: Regenerated.
30337         * lib/unictype/pr_id_start.h: Regenerated.
30338         * lib/unictype/pr_ideographic.h: Regenerated.
30339         * lib/unictype/pr_ignorable_control.h: Regenerated.
30340         * lib/unictype/pr_lowercase.h: Regenerated.
30341         * lib/unictype/pr_math.h: Regenerated.
30342         * lib/unictype/pr_numeric.h: Regenerated.
30343         * lib/unictype/pr_other_alphabetic.h: Regenerated.
30344         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
30345         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
30346         * lib/unictype/pr_other_id_continue.h: Regenerated.
30347         * lib/unictype/pr_other_lowercase.h: Regenerated.
30348         * lib/unictype/pr_other_math.h: Regenerated.
30349         * lib/unictype/pr_punctuation.h: Regenerated.
30350         * lib/unictype/pr_sentence_terminal.h: Regenerated.
30351         * lib/unictype/pr_soft_dotted.h: Regenerated.
30352         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
30353         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
30354         * lib/unictype/pr_unified_ideograph.h: Regenerated.
30355         * lib/unictype/pr_uppercase.h: Regenerated.
30356         * lib/unictype/pr_xid_continue.h: Regenerated.
30357         * lib/unictype/pr_xid_start.h: Regenerated.
30358         * lib/unictype/pr_zero_width.h: Regenerated.
30359         * lib/unictype/scripts.h: Regenerated.
30360         * lib/unictype/scripts_byname.gperf: Regenerated.
30361         * lib/unictype/sy_java_ident.h: Regenerated.
30362         * lib/unilbrk/lbrkprop1.h: Regenerated.
30363         * lib/unilbrk/lbrkprop2.h: Regenerated.
30364         * tests/unictype/test-categ_C.c: Regenerated.
30365         * tests/unictype/test-categ_Cf.c: Regenerated.
30366         * tests/unictype/test-categ_Cn.c: Regenerated.
30367         * tests/unictype/test-categ_L.c: Regenerated.
30368         * tests/unictype/test-categ_Ll.c: Regenerated.
30369         * tests/unictype/test-categ_Lm.c: Regenerated.
30370         * tests/unictype/test-categ_Lo.c: Regenerated.
30371         * tests/unictype/test-categ_Lu.c: Regenerated.
30372         * tests/unictype/test-categ_M.c: Regenerated.
30373         * tests/unictype/test-categ_Mc.c: Regenerated.
30374         * tests/unictype/test-categ_Me.c: Regenerated.
30375         * tests/unictype/test-categ_Mn.c: Regenerated.
30376         * tests/unictype/test-categ_N.c: Regenerated.
30377         * tests/unictype/test-categ_Nd.c: Regenerated.
30378         * tests/unictype/test-categ_Nl.c: Regenerated.
30379         * tests/unictype/test-categ_No.c: Regenerated.
30380         * tests/unictype/test-categ_P.c: Regenerated.
30381         * tests/unictype/test-categ_Pd.c: Regenerated.
30382         * tests/unictype/test-categ_Pe.c: Regenerated.
30383         * tests/unictype/test-categ_Pf.c: Regenerated.
30384         * tests/unictype/test-categ_Pi.c: Regenerated.
30385         * tests/unictype/test-categ_Po.c: Regenerated.
30386         * tests/unictype/test-categ_Ps.c: Regenerated.
30387         * tests/unictype/test-categ_S.c: Regenerated.
30388         * tests/unictype/test-categ_Sk.c: Regenerated.
30389         * tests/unictype/test-categ_Sm.c: Regenerated.
30390         * tests/unictype/test-categ_So.c: Regenerated.
30391         * tests/unictype/test-ctype_alnum.c: Regenerated.
30392         * tests/unictype/test-ctype_alpha.c: Regenerated.
30393         * tests/unictype/test-ctype_graph.c: Regenerated.
30394         * tests/unictype/test-ctype_lower.c: Regenerated.
30395         * tests/unictype/test-ctype_print.c: Regenerated.
30396         * tests/unictype/test-ctype_punct.c: Regenerated.
30397         * tests/unictype/test-ctype_upper.c: Regenerated.
30398         * tests/unictype/test-decdigit.h: Regenerated.
30399         * tests/unictype/test-digit.h: Regenerated.
30400         * tests/unictype/test-numeric.h: Regenerated.
30401         * tests/unictype/test-pr_alphabetic.c: Regenerated.
30402         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
30403         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
30404         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
30405         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
30406         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
30407         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
30408         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
30409         * tests/unictype/test-pr_combining.c: Regenerated.
30410         * tests/unictype/test-pr_dash.c: Regenerated.
30411         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
30412         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
30413         * tests/unictype/test-pr_deprecated.c: Regenerated.
30414         * tests/unictype/test-pr_diacritic.c: Regenerated.
30415         * tests/unictype/test-pr_extender.c: Regenerated.
30416         * tests/unictype/test-pr_format_control.c: Regenerated.
30417         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
30418         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
30419         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
30420         * tests/unictype/test-pr_id_continue.c: Regenerated.
30421         * tests/unictype/test-pr_id_start.c: Regenerated.
30422         * tests/unictype/test-pr_ideographic.c: Regenerated.
30423         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
30424         * tests/unictype/test-pr_lowercase.c: Regenerated.
30425         * tests/unictype/test-pr_math.c: Regenerated.
30426         * tests/unictype/test-pr_numeric.c: Regenerated.
30427         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
30428         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
30429         Regenerated.
30430         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
30431         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
30432         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
30433         * tests/unictype/test-pr_other_math.c: Regenerated.
30434         * tests/unictype/test-pr_punctuation.c: Regenerated.
30435         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
30436         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
30437         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
30438         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
30439         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
30440         * tests/unictype/test-pr_uppercase.c: Regenerated.
30441         * tests/unictype/test-pr_xid_continue.c: Regenerated.
30442         * tests/unictype/test-pr_xid_start.c: Regenerated.
30443         * tests/unictype/test-pr_zero_width.c: Regenerated.
30444
30445         Update to Unicode 5.1.0.
30446         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
30447         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
30448         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
30449         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
30450         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
30451         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
30452         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
30453         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
30454         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
30455         (nonspacing_table_ind): Update.
30456         * tests/uniwidth/test-uc_width2.sh: Update expected result.
30457
30458         Update to Unicode 5.1.0.
30459         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
30460         code transform.
30461         * lib/uniname/uniname.c (unicode_character_name,
30462         unicode_name_character): Add the range 0x1Fxxx to the code transform.
30463         * lib/uniname/uninames.h: Regenerated.
30464         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
30465
30466 2009-02-07  Bruno Haible  <bruno@clisp.org>
30467
30468         Merge gen-ctype and gen-lbrk into a single program.
30469         * lib/gen-uni-tables.c: New file, incorporating
30470         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
30471         Add directory prefixes to the names of the generated files.
30472         * lib/unictype/gen-ctype.c: Remove file.
30473         * lib/unilbrk/gen-lbrk.c: Remove file.
30474         * modules/gen-uni-tables: New file.
30475         * modules/unictype/gen-ctype: Remove file.
30476         * modules/unilbrk/gen-lbrk: Remove file.
30477
30478 2009-02-07  Bruno Haible  <bruno@clisp.org>
30479
30480         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
30481
30482         New module 'unistr/u32-strcoll'.
30483         * modules/unistr/u32-strcoll: New file.
30484         * lib/unistr/u32-strcoll.c: New file.
30485
30486         New module 'unistr/u16-strcoll'.
30487         * modules/unistr/u16-strcoll: New file.
30488         * lib/unistr/u16-strcoll.c: New file.
30489
30490         New module 'unistr/u8-strcoll'.
30491         * modules/unistr/u8-strcoll: New file.
30492         * lib/unistr/u8-strcoll.c: New file.
30493         * lib/unistr/u-strcoll.h: New file.
30494
30495 2009-02-07  Bruno Haible  <bruno@clisp.org>
30496
30497         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
30498         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30499         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30500         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
30501         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
30502         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
30503
30504 2009-02-07  Bruno Haible  <bruno@clisp.org>
30505
30506         Make 64-bit clean.
30507         * lib/unictype/gen-ctype.c (output_predicate, output_category,
30508         output_combclass, output_bidi_category, output_decimal_digit,
30509         output_digit, output_numeric, output_mirror, output_scripts,
30510         output_ident_category): Use proper width specifier in format strings.
30511
30512 2009-02-07  Bruno Haible  <bruno@clisp.org>
30513
30514         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
30515         failure behaviour.
30516
30517 2009-02-07  Jim Meyering  <meyering@redhat.com>
30518
30519         regex: avoid compilation failure with upcoming gcc-4.4
30520         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
30521         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
30522         "... error: integer overflow in preprocessor expression".
30523
30524 2009-02-05  Ben Pfaff  <blp@gnu.org>
30525
30526         Fix link errors on Windows when close module is used.
30527         * modules/close: Add $(LIB_CLOSE) to Link section.
30528         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
30529         $(LIB_CLOSE) on Windows.
30530
30531 2009-02-05  Jim Meyering  <meyering@redhat.com>
30532
30533         still avoid unused-parameter warnings, but do it cleanly
30534         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
30535         (get_fs_usage): Cast to void instead.
30536         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
30537         (dev_from_mount_options, read_file_system_list): Cast to void.
30538         Prompted by Bruno Haible.
30539
30540 2009-02-04  Jim Meyering  <meyering@redhat.com>
30541
30542         fsusage.c: correct copyright year
30543         * lib/fsusage.c: Reflect year in which the change is pushed into
30544
30545         avoid misc. warnings
30546         * lib/fsusage.c (UNUSED_PARAM): Define.
30547         (get_fs_usage): Mark parameter "disk" as unused.
30548         * lib/getugroups.c (getgrent): Use "void" in prototype.
30549         * lib/mountlist.c: Mark unused parameters.
30550         (read_file_system_list): Declare a local with "const".
30551         * lib/nanosleep.c (getnow): Declare static.
30552         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
30553
30554         dirfd: set errno upon failure
30555         * lib/dirfd.c: Include <errno.h>.
30556         Set errno to ENOTSUP when returning -1.
30557         * modules/dirfd (Depends-on): Add errno.
30558         Suggested by John Kodis <kodis@comcast.net>.
30559
30560 2009-02-01  Bruno Haible  <bruno@clisp.org>
30561
30562         Don't assume sizeof (long) >= sizeof (void *).
30563         * lib/memcmp.c: Include stdint.h.
30564         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30565         srcp2 to 'const byte *'.
30566         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30567         types to uintptr_t.
30568         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30569         * modules/memcmp (Depends-on): Add stdint.
30570         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30571
30572 2009-01-30  Eric Blake  <ebb9@byu.net>
30573
30574         fix more require-before-expand issues
30575         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30576         expand, AC_PROG_AWK.
30577         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30578
30579 2009-01-28  Eric Blake  <ebb9@byu.net>
30580
30581         version-etc: use consistent URL formatting
30582         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30583         Improve formatting.  Use fputs for string without %.
30584
30585 2009-01-28  Jim Meyering  <meyering@redhat.com>
30586
30587         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30588         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30589         "underquoted definition of NAME" from autoconf-2.59.
30590
30591 2009-01-28  Bruno Haible  <bruno@clisp.org>
30592
30593         * doc/gnulib.texi: Add "Obsolete modules" to index.
30594
30595 2009-01-28  Jim Meyering  <meyering@redhat.com>
30596
30597         useless-if-before-free: recognize more variants
30598         * build-aux/useless-if-before-free: Also recognize e.g.,
30599         if (NULL != p) free (p);
30600
30601 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30602
30603         test-getaddrinfo: skip (don't fail) this test when there's no network
30604         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30605         on the presumption that it means you lack network access.
30606
30607 2009-01-26  Jim Meyering  <meyering@redhat.com>
30608
30609         fflush: avoid warnings on modern systems
30610         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30611         pos and result, into scopes where they're used.
30612
30613 2009-01-26  Eric Blake  <ebb9@byu.net>
30614
30615         Silence warning reintroduced by recent extensions patch.
30616         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30617         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30618         autoconf.
30619
30620         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30621         * m4/00gnulib.m4: New file.
30622         * gnulib-tool (func_get_filelist): Always use it.
30623         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30624         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30625
30626 2009-01-25  Bruno Haible  <bruno@clisp.org>
30627
30628         Make test-quotearg work on MacOS X and AIX.
30629         * tests/test-quotearg.sh: New file.
30630         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30631         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30632         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30633         include <libintl.h>.
30634         (fake_locale): Remove variable.
30635         (gettext, dgettext, dcgettext): Remove functions.
30636         (main): Instead of setting a fake locale, set a real locale. Call
30637         textdomain and bindtextdomain.
30638         * modules/quotearg-tests (Files): Add the new files.
30639         (Depends-on): Add gettext, setenv, unsetenv.
30640         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30641         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30642         Augment TESTS_ENVIRONMENT.
30643
30644 2009-01-25  Bruno Haible  <bruno@clisp.org>
30645
30646         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30647         fr_FR.ISO8859-1 locale on MacOS X.
30648         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30649         ja_JP.eucJP locale on MacOS X.
30650         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30651         zh_CN.GB18030 locale on MacOS X.
30652
30653 2009-01-25  Bruno Haible  <bruno@clisp.org>
30654
30655         Avoid link errors on MacOS X 10.3.
30656         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30657         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30658
30659 2009-01-25  Bruno Haible  <bruno@clisp.org>
30660
30661         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30662         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30663         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30664         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30665         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30666         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30667         posix_spawnattr_init, posix_spawnattr_setsigmask,
30668         posix_spawnattr_setflags, posix_spawnattr_destroy.
30669
30670         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30671         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30672         * modules/execute (Files): Remove m4/posix_spawn.m4.
30673         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30674         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30675         posix_spawnattr_init, posix_spawnattr_setsigmask,
30676         posix_spawnattr_setflags, posix_spawnattr_destroy.
30677
30678 2009-01-25  Bruno Haible  <bruno@clisp.org>
30679
30680         * lib/glthread/threadlib.c: Include <stdlib.h>.
30681
30682 2009-01-25  Bruno Haible  <bruno@clisp.org>
30683
30684         * lib/glthread/threadlib.c (dummy): New declaration.
30685
30686 2009-01-25  Bruno Haible  <bruno@clisp.org>
30687
30688         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30689         multibyte characters also for the GB18030 encoding. Don't crash when
30690         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30691
30692 2009-01-25  Bruno Haible  <bruno@clisp.org>
30693
30694         Avoid redefining 'struct random_data' on OSF/1 5.1.
30695         * lib/stdlib.in.h: Include <random.h> if it exists.
30696         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30697         HAVE_RANDOM_H. Include <random.h> when testing whether
30698         'struct random_data' exists.
30699         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30700
30701 2009-01-25  Bruno Haible  <bruno@clisp.org>
30702
30703         Don't install charset.alias on MacOS X >= 10.3.
30704         * lib/localcharset.c (DARWIN7): New macro.
30705         (get_charset_aliases): Hardcode the result for Darwin7.
30706         * modules/localcharset (install-exec-local): Don't install
30707         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30708
30709 2009-01-25  Bruno Haible  <bruno@clisp.org>
30710
30711         Don't install charset.alias on mingw and Cygwin.
30712         * modules/localcharset (install-exec-local): Don't install
30713         charset.alias on mingw and Cygwin, if the file does not yet exist.
30714         The result for these platforms is hardcoded in localcharset.c.
30715
30716 2009-01-25  Bruno Haible  <bruno@clisp.org>
30717
30718         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30719         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30720         before requiring AC_USE_SYSTEM_EXTENSIONS.
30721
30722 2009-01-25  Jim Meyering  <meyering@redhat.com>
30723
30724         c-strtod: avoid warnings
30725         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30726         "assignment discards qualifiers from pointer target type" warnings.
30727
30728 2009-01-24  Bruno Haible  <bruno@clisp.org>
30729
30730         Add support for non-UTF-8 locales on MacOS X.
30731         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30732         canonical encodings. For Darwin 7 and newer, don't map traditional
30733         encodings to UTF-8.
30734         Reported by Vincent Lefevre <vincent@vinc17.org>
30735         at <http://savannah.gnu.org/bugs/?25235>.
30736
30737 2009-01-24  Bruno Haible  <bruno@clisp.org>
30738
30739         * doc/gnulib.texi (Obsolete modules): New section.
30740         Reported by Mike Frysinger <vapier@gentoo.org>.
30741
30742 2009-01-24  Bruno Haible  <bruno@clisp.org>
30743
30744         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30745         (%.dvi): New rule.
30746
30747 2009-01-24  Bruno Haible  <bruno@clisp.org>
30748
30749         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30750         Reported by Eric Blake.
30751
30752 2009-01-24  Bruno Haible  <bruno@clisp.org>
30753
30754         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30755         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30756         Reported by Gary V. Vaughan <gary@gnu.org>.
30757
30758 2009-01-24  Bruno Haible  <bruno@clisp.org>
30759
30760         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30761
30762 2009-01-23  Bruno Haible  <bruno@clisp.org>
30763
30764         Make c-strtod, c-strtold usable in libraries.
30765         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30766         (C_STRTOD): Call strdup instead of xstrdup.
30767         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30768         * modules/c-strtold (Depends-on): Likewise.
30769         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30770         * NEWS: Mention the change.
30771         Reported by Michael Gold <mgold@ncf.ca>.
30772
30773 2009-01-23  Jim Meyering  <meyering@redhat.com>
30774
30775         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30776         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30777         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30778
30779 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30780
30781         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30782         GNU CoreUtils.
30783         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30784         * modules/version-etc (Description): Update.
30785
30786 2009-01-22  Bruno Haible  <bruno@clisp.org>
30787
30788         Cache the C locale object.
30789         * lib/c-strtod.c (c_locale_cache): New variable.
30790         (c_locale): New function.
30791         (C_STRTOD): Use it, and don't call freelocale.
30792         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30793         Suggested by Paolo Bonzini.
30794
30795 2009-01-21  Bruno Haible  <bruno@clisp.org>
30796
30797         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30798         conditions other than overflow.
30799
30800 2009-01-21  Bruno Haible  <bruno@clisp.org>
30801
30802         * lib/c-strtod.c: Include errno.h.
30803         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30804         value from STRTOD_L and STRTOD.
30805
30806 2009-01-21  Bruno Haible  <bruno@clisp.org>
30807         and Jim Meyering  <meyering@redhat.com>
30808
30809         nanosleep: skip configure test (fail it) for apple universal builds
30810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30811         universal builds, assume that nanosleep does not work.
30812         * modules/nanosleep (Depends-on): Add multiarch.
30813
30814         mktime: skip configure test (fail it) for apple universal builds
30815         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30816         universal builds, assume that mktime does not work.
30817         * modules/mktime (Depends-on): Add multiarch.
30818
30819 2009-01-21  Eric Blake  <ebb9@byu.net>
30820
30821         multiarch: avoid expand-before-require warning
30822         * modules/multiarch (configure.ac): Require, rather than expand,
30823         gl_MULTIARCH.
30824         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30825         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30826         enforce that all clients require it.  Partial reversion of
30827         2008-12-29 patch.
30828
30829         error: avoid expand-before-require warning
30830         * modules/errno (configure.ac): Require, rather than expand,
30831         gl_HEADER_ERRNO_H.
30832         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30833         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30834         enforce that all clients require it.
30835
30836         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30837         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30838         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30839         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30840
30841 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30842
30843         Revert:
30844         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30845
30846         regex: do not depend on obsolete modules.
30847         * modules/regex: Remove memcmp and memmove.
30848
30849 2009-01-20  Bruno Haible  <bruno@clisp.org>
30850
30851         Make the 'link' module link on Windows NT 4.
30852         * lib/link.c (_WIN32_WINNT): Don't define.
30853         (CreateHardLinkFuncType): New type.
30854         (CreateHardLinkFunc, initialized): New variables.
30855         (initialize): New function.
30856         (link): Invoke CreateHardLink indirectly through the function pointer.
30857
30858 2009-01-20  Bruno Haible  <bruno@clisp.org>
30859
30860         Fix compilation failure on mingw.
30861         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30862
30863 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30864
30865         * doc/c-strtod.texi: Mention a couple of restrictions.
30866
30867 2009-01-20  Jim Meyering  <meyering@redhat.com>
30868
30869         gettimeofday: move more declarations out of functions
30870         * lib/gettimeofday.c: Move extern declarations of tzset and
30871         gmtime out of containing functions.  Prompted by Bruno Haible.
30872
30873 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30874
30875         regex: do not depend on obsolete modules.
30876         * modules/regex: Remove memcmp and memmove.
30877
30878 2009-01-19  Bruno Haible  <bruno@clisp.org>
30879
30880         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30881         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30882         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30883         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30884         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30885
30886 2009-01-19  Bruno Haible  <bruno@clisp.org>
30887
30888         * tests/test-link.c: Include <errno.h>.
30889         (main): Exit with code 77 when a hard link cannot be created due to
30890         the file system.
30891         * tests/test-link.sh: Skip test when a hard link cannot be created due
30892         to the file system.
30893         Suggested by Eric Blake.
30894
30895 2009-01-19  Martin Lambers  <marlam@marlam.de>
30896
30897         * modules/link-tests: New file.
30898         * tests/test-link.sh: New file.
30899         * tests/test-link.c: New file.
30900
30901 2009-01-19  Eric Blake  <ebb9@byu.net>
30902
30903         doc: mention another function added in cygwin 1.7.0
30904         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30905         Another new function in cygwin 1.7.
30906
30907 2009-01-19  Bruno Haible  <bruno@clisp.org>
30908
30909         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30910         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30911         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30912         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30913         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30914         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30915         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30916         * m4/md4.m4 (gl_MD4): Likewise.
30917         * m4/md5.m4 (gl_MD5): Likewise.
30918         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30919         * m4/sha1.m4 (gl_SHA1): Likewise.
30920         * m4/sha256.m4 (gl_SHA256): Likewise.
30921         * m4/sha512.m4 (gl_SHA512): Likewise.
30922
30923 2009-01-19  Bruno Haible  <bruno@clisp.org>
30924
30925         * modules/uniname/uniname-tests (Depends-on): Add progname.
30926         * tests/uniname/test-uninames.c: Include progname.h.
30927         (main): Call set_program_name.
30928
30929         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30930         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30931         (main): Call set_program_name.
30932
30933         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
30934         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
30935         (main): Call set_program_name.
30936
30937         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30938         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30939         (main): Call set_program_name.
30940
30941         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30942         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30943         (main): Call set_program_name.
30944
30945         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30946         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30947         (main): Call set_program_name.
30948
30949         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30950         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30951         (main): Call set_program_name.
30952
30953         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30954         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30955         (main): Call set_program_name.
30956
30957         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30958         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30959         (main): Call set_program_name.
30960
30961 2009-01-19  Eric Blake  <ebb9@byu.net>
30962
30963         test-unistd: test previous patch
30964         * tests/test-unistd.c: Test *_FILENO macros.
30965
30966         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30967         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30968         Guarantee a definition.
30969         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30970         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30971         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30972         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30973         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30974         Likewise.
30975         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30976         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30977         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30978         Likewise.
30979         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30980         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30981         (STDERR_FILENO): Likewise.
30982         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30983         (STDERR_FILENO): Likewise.
30984         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30985         (STDERR_FILENO): Likewise.
30986         Reported by Elbert Pol.
30987
30988 2009-01-19  Eric Blake  <ebb9@byu.net>
30989
30990         doc: mention more functions added in cygwin 1.7.0
30991         * doc/posix-functions/abort.texi (abort): Update wording related
30992         to cygwin.
30993         * doc/posix-functions/daylight.texi (daylight): Likewise.
30994         * doc/posix-functions/optarg.texi (optarg): Likewise.
30995         * doc/posix-functions/optarg.texi (opterr): Likewise.
30996         * doc/posix-functions/optarg.texi (optind): Likewise.
30997         * doc/posix-functions/optarg.texi (optopt): Likewise.
30998         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30999         worked in 1.5.x, and was withdrawn in 1.7.
31000         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31001         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31002         cygwin versions.
31003         * doc/posix-functions/perror.texi (perror): Likewise.
31004         * doc/posix-functions/printf.texi (printf): Likewise.
31005         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31006         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31007         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31008         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31009         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31010         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31011         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31012         Likewise.
31013         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31014         Likewise.
31015         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31016         this function.
31017         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31018         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31019         Likewise.
31020         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31021         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31022         * doc/posix-functions/confstr.texi (confstr): Likewise.
31023         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31024         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31025         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31026         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31027         * doc/posix-functions/fputws.texi (fputws): Likewise.
31028         * doc/posix-functions/fwide.texi (fwide): Likewise.
31029         * doc/posix-functions/getwc.texi (getwc): Likewise.
31030         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31031         * doc/posix-functions/putwc.texi (putwc): Likewise.
31032         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31033         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31034         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31035         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31036         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31037         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31038         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31039         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31040         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31041         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31042         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31043
31044 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31045
31046         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31047         * lib/ioctl.c: Include <sys/ioctl.h>.
31048
31049 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31050
31051         * modules/getdate-tests (Depends-on): Add progname.
31052         * tests/test-getdate.c: Use progname module, to avoid link errors
31053         on non-glibc systems.
31054
31055 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31056
31057         * modules/filenamecat-tests (Depends-on): Add progname.
31058         * modules/fstrcmp-tests (Depends-on): Likewise.
31059
31060         * tests/test-filenamecat.c: Use progname module, to avoid link
31061         errors on non-glibc systems.
31062         * tests/test-fstrcmp.c: Likewise.
31063
31064 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31065
31066         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31067         * lib/gettimeofday.c: Move extern declaration out of function.
31068
31069 2009-01-18  Bruno Haible  <bruno@clisp.org>
31070
31071         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31072         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31073         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31074
31075 2009-01-18  Bruno Haible  <bruno@clisp.org>
31076
31077         * lib/strftime.c (MEMPCPY): Remove unused macro.
31078         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31079
31080 2009-01-18  Martin Lambers  <marlam@marlam.de>
31081
31082         New module 'link'.
31083         * lib/unistd.in.h (link): New declaration.
31084         * lib/link.c: New file.
31085         * m4/link.m4: New file.
31086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31087         HAVE_LINK.
31088         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31089         * modules/link: New file.
31090         * doc/posix-functions/link.texi: Mention the new module.
31091
31092 2009-01-18  Bruno Haible  <bruno@clisp.org>
31093
31094         * tests/test-avltree_list.c (main): Call set_program_name.
31095         * tests/test-avltree_oset.c (main): Likewise.
31096         * tests/test-obstack-printf.c: Include progname.h.
31097         (main): Call set_program_name.
31098         * tests/test-quotearg.c: Include progname.h.
31099         (main): Call set_program_name.
31100         * tests/test-xmemdup0.c: Include progname.h.
31101         (main): Call set_program_name.
31102
31103 2009-01-18  Bruno Haible  <bruno@clisp.org>
31104
31105         New module 'alphasort'.
31106         * lib/dirent.in.h (alphasort): New declaration.
31107         * lib/alphasort.c: New file, from glibc with modifications.
31108         * m4/alphasort.m4: New file.
31109         * modules/alphasort: New file.
31110         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31111         HAVE_ALPHASORT.
31112         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31113         HAVE_ALPHASORT.
31114         * doc/posix-functions/alphasort.texi: Mention the new module and the
31115         portability problems.
31116
31117 2009-01-18  Bruno Haible  <bruno@clisp.org>
31118
31119         New module 'scandir'.
31120         * lib/dirent.in.h (scandir): New declaration.
31121         * lib/scandir.c: New file, from glibc with modifications.
31122         * m4/scandir.m4: New file.
31123         * modules/scandir: New file.
31124         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31125         HAVE_SCANDIR.
31126         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31127         HAVE_SCANDIR.
31128         * doc/posix-functions/scandir.texi: Mention the new module and the
31129         portability problems.
31130
31131 2009-01-17  Bruno Haible  <bruno@clisp.org>
31132
31133         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31134         Update documentation.
31135         (func_remove_suffix): Escape all dots in the suffix. Update
31136         documentation.
31137         (func_filter_filelist): Update documentation.
31138         Reported by Ralf Wildenhues.
31139
31140 2009-01-17  Bruno Haible  <bruno@clisp.org>
31141
31142         * modules/dprintf-posix-tests: New file.
31143         * tests/test-dprintf-posix.sh: New file.
31144         * tests/test-dprintf-posix.c: New file.
31145
31146         New modules 'dprintf', 'dprintf-posix'.
31147         * lib/stdio.in.h (dprintf): New declaration.
31148         * lib/dprintf.c: New file.
31149         * m4/dprintf.m4: New file.
31150         * m4/dprintf-posix.m4: New file.
31151         * modules/dprintf: New file.
31152         * modules/dprintf-posix: New file.
31153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31154         HAVE_DPRINTF, REPLACE_DPRINTF.
31155         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31156         HAVE_DPRINTF, REPLACE_DPRINTF.
31157         * doc/posix-functions/dprintf.texi: Mention the new modules.
31158
31159 2009-01-17  Bruno Haible  <bruno@clisp.org>
31160
31161         * modules/vdprintf-posix-tests: New file.
31162         * tests/test-vdprintf-posix.sh: New file.
31163         * tests/test-vdprintf-posix.c: New file.
31164
31165         New modules 'vdprintf', 'vdprintf-posix'.
31166         * lib/stdio.in.h (vdprintf): New declaration.
31167         * lib/vdprintf.c: New file.
31168         * m4/vdprintf.m4: New file.
31169         * m4/vdprintf-posix.m4: New file.
31170         * modules/vdprintf: New file.
31171         * modules/vdprintf-posix: New file.
31172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31173         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31174         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31175         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31176         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31177
31178 2009-01-17  Bruno Haible  <bruno@clisp.org>
31179
31180         Fix replacement of fopen on mingw.
31181         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31182         mingw.
31183
31184 2009-01-17  Bruno Haible  <bruno@clisp.org>
31185
31186         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31187         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31188
31189 2009-01-17  Bruno Haible  <bruno@clisp.org>
31190
31191         Avoid test-fflush2.sh failure on mingw.
31192         * tests/test-fflush2.c: Include binary-io.h.
31193         (main): Put standard input into binary mode.
31194         * modules/fflush-tests (Depends-on): Add binary-io.
31195
31196 2009-01-17  Bruno Haible  <bruno@clisp.org>
31197
31198         * lib/wchar.in.h: In another particular situation, include only the
31199         system's <wchar.h> file.
31200         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31201         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31202         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31203
31204 2009-01-17  Bruno Haible  <bruno@clisp.org>
31205
31206         Support for stripping executables in --enable-relocatable.
31207         * build-aux/install-reloc: Expect one more argument, or an environment
31208         variable RELOC_STRIP_PROG. If set, strip the destination program and
31209         its wrapper.
31210         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31211         RELOC_STRIP_PROG.
31212         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31213         to set RELOCATABLE_STRIP.
31214         * NEWS: Mention the new Makefile requirement.
31215
31216 2009-01-17  Bruno Haible  <bruno@clisp.org>
31217
31218         * build-aux/install-reloc: Remove debugging information left over by
31219         C compiler on MacOS X.
31220
31221 2009-01-17  Bruno Haible  <bruno@clisp.org>
31222
31223         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
31224         * lib/progreloc.c (find_executable): Fix type of pointer passed to
31225         _NSGetExecutablePath.
31226
31227 2009-01-16  Jim Meyering  <meyering@redhat.com>
31228
31229         strerror: avoid warnings about discarding "const"
31230         * lib/strerror.c (rpl_strerror): Instead of returning a const
31231         string from each and every "case", use a variable, and add a single
31232         cast after the switch.
31233
31234 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
31235
31236         * lib/arpa_inet.in.h: Add extern "C" block for C++.
31237
31238 2009-01-16  Bruno Haible  <bruno@clisp.org>
31239
31240         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
31241         array initializer syntax that also works in C++ mode.
31242         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31243
31244 2009-01-16  Jim Meyering  <meyering@redhat.com>
31245
31246         poll: suppress a warning
31247         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
31248         to ignore "...unsigned expression < 0 is always false" warnings.
31249
31250 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
31251
31252         poll: remove declarations of unused variables
31253         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
31254         sockbuf and optlen.
31255
31256 2009-01-15  Bruno Haible  <bruno@clisp.org>
31257
31258         Make fflush-after-ungetc POSIX compliant on BSD systems.
31259         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
31260         (clear_ungetc_buffer): Implement also for other systems.
31261         (rpl_fflush): On glibc systems, invoke
31262         clear_ungetc_buffer_preserving_position. Otherwise, invoke
31263         clear_ungetc_buffer after fetching the stream's position, not before.
31264
31265 2009-01-15  Bruno Haible  <bruno@clisp.org>
31266
31267         Make fflush-after-ungetc POSIX compliant on glibc systems.
31268         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
31269         after ungetc.
31270         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
31271         (rpl_fflush): On glibc systems, simply call the system's fflush
31272         function after clearing the ungetc buffer.
31273         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
31274         Instead, lseek only to the end of file, then use the system's fseeko
31275         for the rest. On glibc systems, reset the EOF indicator bit.
31276
31277 2009-01-15  Jim Meyering  <meyering@redhat.com>
31278
31279         openmp.m4: revert quote-adding change, for portability to older autoconf
31280         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
31281         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
31282         Simon Josefsson noticed the problem when using autoconf-2.61.
31283
31284 2009-01-15  Bruno Haible  <bruno@clisp.org>
31285
31286         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
31287         * tests/test-fflush2.c (ASSERT): Always fail.
31288         (main): Add two tests for fflush() after ungetc(), taking into account
31289         the Austin Group's clarification.
31290         Suggested by Eric Blake.
31291
31292 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
31293
31294         mktime.m4: remove K&R-style function prototypes
31295         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
31296         for the Sun C++ compiler.
31297
31298 2009-01-14  Bruno Haible  <bruno@clisp.org>
31299
31300         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
31301         while including <wchar.h>.
31302         * lib/wchar.in.h: In two particular situations on HP-UX, include only
31303         the system's <wchar.h> file.
31304         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31305
31306 2009-01-14  Bruno Haible  <bruno@clisp.org>
31307
31308         * m4/csharp.m4: Don't mention gettext on the serial number line.
31309         * m4/csharpexec.m4: Likewise.
31310         * m4/eaccess.m4: Likewise.
31311         * m4/javaexec.m4: Likewise.
31312         * m4/sig_atomic_t.m4: Likewise.
31313         * m4/tmpdir.m4: Likewise.
31314         * m4/intldir.m4: Bump gettext version.
31315         * m4/lib-ld.m4: Likewise.
31316
31317 2009-01-14  Bruno Haible  <bruno@clisp.org>
31318
31319         * lib/progname.c (set_program_name): Add more comments.
31320         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31321
31322 2009-01-14  Simon Josefsson  <simon@josefsson.org>
31323
31324         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
31325         were sys/stat.h does not define it.
31326
31327 2009-01-14  Jim Meyering  <meyering@redhat.com>
31328
31329         many *.m4 files: improve m4 quoting
31330         99% of this change was performed by running the following commands:
31331         git ls-files | grep '\.m4$' | xargs perl -pi \
31332           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
31333           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31334           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31335           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
31336         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
31337         The remainder were to add Copyright dates, increment serial numbers,
31338         undo some changes in comments, exclude m4/intl.m4, and add quotes
31339         around the "1" in ",1" where the unusual spacing prohibited the
31340         above regexps from doing the job.  For more details, see
31341         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
31342         * m4/acl.m4: Modified.
31343         * m4/afs.m4: Likewise.
31344         * m4/alloca.m4: Likewise.
31345         * m4/argp.m4: Likewise.
31346         * m4/argz.m4: Likewise.
31347         * m4/atexit.m4: Likewise.
31348         * m4/bison-i18n.m4: Likewise.
31349         * m4/bison.m4: Likewise.
31350         * m4/byteswap.m4: Likewise.
31351         * m4/c-stack.m4: Likewise.
31352         * m4/c-strtod.m4: Likewise.
31353         * m4/calloc.m4: Likewise.
31354         * m4/canonicalize-lgpl.m4: Likewise.
31355         * m4/chown.m4: Likewise.
31356         * m4/clock_time.m4: Likewise.
31357         * m4/codeset.m4: Likewise.
31358         * m4/copy-file.m4: Likewise.
31359         * m4/csharp.m4: Likewise.
31360         * m4/csharpcomp.m4: Likewise.
31361         * m4/csharpexec.m4: Likewise.
31362         * m4/d-ino.m4: Likewise.
31363         * m4/d-type.m4: Likewise.
31364         * m4/dirfd.m4: Likewise.
31365         * m4/double-slash-root.m4: Likewise.
31366         * m4/eaccess.m4: Likewise.
31367         * m4/eealloc.m4: Likewise.
31368         * m4/environ.m4: Likewise.
31369         * m4/errno_h.m4: Likewise.
31370         * m4/euidaccess.m4: Likewise.
31371         * m4/execute.m4: Likewise.
31372         * m4/fatal-signal.m4: Likewise.
31373         * m4/fchdir.m4: Likewise.
31374         * m4/fcntl_h.m4: Likewise.
31375         * m4/fileblocks.m4: Likewise.
31376         * m4/filenamecat.m4: Likewise.
31377         * m4/findprog.m4: Likewise.
31378         * m4/flexmember.m4: Likewise.
31379         * m4/fnmatch.m4: Likewise.
31380         * m4/fopen.m4: Likewise.
31381         * m4/fpending.m4: Likewise.
31382         * m4/fprintf-posix.m4: Likewise.
31383         * m4/free.m4: Likewise.
31384         * m4/frexp.m4: Likewise.
31385         * m4/frexpl.m4: Likewise.
31386         * m4/fsusage.m4: Likewise.
31387         * m4/ftruncate.m4: Likewise.
31388         * m4/gc-camellia.m4: Likewise.
31389         * m4/gc-random.m4: Likewise.
31390         * m4/gc.m4: Likewise.
31391         * m4/getaddrinfo.m4: Likewise.
31392         * m4/getcwd-abort-bug.m4: Likewise.
31393         * m4/getcwd-path-max.m4: Likewise.
31394         * m4/getdate.m4: Likewise.
31395         * m4/getdomainname.m4: Likewise.
31396         * m4/getgroups.m4: Likewise.
31397         * m4/gethostname.m4: Likewise.
31398         * m4/gethrxtime.m4: Likewise.
31399         * m4/getline.m4: Likewise.
31400         * m4/getloadavg.m4: Likewise.
31401         * m4/getndelim2.m4: Likewise.
31402         * m4/getpass.m4: Likewise.
31403         * m4/gettext.m4: Likewise.
31404         * m4/gettime.m4: Likewise.
31405         * m4/gettimeofday.m4: Likewise.
31406         * m4/gnulib-common.m4: Likewise.
31407         * m4/group-member.m4: Likewise.
31408         * m4/host-os.m4: Likewise.
31409         * m4/iconv.m4: Likewise.
31410         * m4/iconv_open.m4: Likewise.
31411         * m4/inet_ntop.m4: Likewise.
31412         * m4/inet_pton.m4: Likewise.
31413         * m4/inline.m4: Likewise.
31414         * m4/intldir.m4: Likewise.
31415         * m4/intlmacosx.m4: Likewise.
31416         * m4/intmax.m4: Likewise.
31417         * m4/intmax_t.m4: Likewise.
31418         * m4/inttypes.m4: Likewise.
31419         * m4/inttypes_h.m4: Likewise.
31420         * m4/inttypes-pri.m4: Likewise.
31421         * m4/isapipe.m4: Likewise.
31422         * m4/isnand.m4: Likewise.
31423         * m4/isnanf.m4: Likewise.
31424         * m4/isnanl.m4: Likewise.
31425         * m4/javacomp.m4: Likewise.
31426         * m4/javaexec.m4: Likewise.
31427         * m4/jm-winsz1.m4: Likewise.
31428         * m4/jm-winsz2.m4: Likewise.
31429         * m4/lchown.m4: Likewise.
31430         * m4/lcmessage.m4: Likewise.
31431         * m4/ldexpl.m4: Likewise.
31432         * m4/lib-ld.m4: Likewise.
31433         * m4/lib-link.m4: Likewise.
31434         * m4/libsigsegv.m4: Likewise.
31435         * m4/link-follow.m4: Likewise.
31436         * m4/localcharset.m4: Likewise.
31437         * m4/locale-fr.m4: Likewise.
31438         * m4/locale-ja.m4: Likewise.
31439         * m4/locale-tr.m4: Likewise.
31440         * m4/locale-zh.m4: Likewise.
31441         * m4/lock.m4: Likewise.
31442         * m4/longlong.m4: Likewise.
31443         * m4/ls-mntd-fs.m4: Likewise.
31444         * m4/lstat.m4: Likewise.
31445         * m4/malloc.m4: Likewise.
31446         * m4/mathl.m4: Likewise.
31447         * m4/mbrtowc.m4: Likewise.
31448         * m4/mbstate_t.m4: Likewise.
31449         * m4/mbswidth.m4: Likewise.
31450         * m4/memchr.m4: Likewise.
31451         * m4/memcmp.m4: Likewise.
31452         * m4/memcpy.m4: Likewise.
31453         * m4/memmem.m4: Likewise.
31454         * m4/memmove.m4: Likewise.
31455         * m4/mempcpy.m4: Likewise.
31456         * m4/memrchr.m4: Likewise.
31457         * m4/memset.m4: Likewise.
31458         * m4/minmax.m4: Likewise.
31459         * m4/mkdir-slash.m4: Likewise.
31460         * m4/mkdtemp.m4: Likewise.
31461         * m4/mktime.m4: Likewise.
31462         * m4/mmap-anon.m4: Likewise.
31463         * m4/mountlist.m4: Likewise.
31464         * m4/nanosleep.m4: Likewise.
31465         * m4/nls.m4: Likewise.
31466         * m4/nocrash.m4: Likewise.
31467         * m4/open.m4: Likewise.
31468         * m4/openat.m4: Likewise.
31469         * m4/openmp.m4: Likewise.
31470         * m4/pathmax.m4: Likewise.
31471         * m4/perl.m4: Likewise.
31472         * m4/physmem.m4: Likewise.
31473         * m4/pipe.m4: Likewise.
31474         * m4/po.m4: Likewise.
31475         * m4/poll.m4: Likewise.
31476         * m4/posixtm.m4: Likewise.
31477         * m4/posixver.m4: Likewise.
31478         * m4/printf-frexp.m4: Likewise.
31479         * m4/printf-frexpl.m4: Likewise.
31480         * m4/printf-posix.m4: Likewise.
31481         * m4/printf-posix-rpl.m4: Likewise.
31482         * m4/printf.m4: Likewise.
31483         * m4/progtest.m4: Likewise.
31484         * m4/putenv.m4: Likewise.
31485         * m4/readline.m4: Likewise.
31486         * m4/readlink.m4: Likewise.
31487         * m4/readutmp.m4: Likewise.
31488         * m4/realloc.m4: Likewise.
31489         * m4/regex.m4: Likewise.
31490         * m4/relocatable.m4: Likewise.
31491         * m4/relocatable-lib.m4: Likewise.
31492         * m4/rename-dest-slash.m4: Likewise.
31493         * m4/rename.m4: Likewise.
31494         * m4/rmdir-errno.m4: Likewise.
31495         * m4/rmdir.m4: Likewise.
31496         * m4/roundf.m4: Likewise.
31497         * m4/roundl.m4: Likewise.
31498         * m4/rpmatch.m4: Likewise.
31499         * m4/save-cwd.m4: Likewise.
31500         * m4/selinux-selinux-h.m4: Likewise.
31501         * m4/setenv.m4: Likewise.
31502         * m4/settime.m4: Likewise.
31503         * m4/sig2str.m4: Likewise.
31504         * m4/sig_atomic_t.m4: Likewise.
31505         * m4/signalblocking.m4: Likewise.
31506         * m4/signbit.m4: Likewise.
31507         * m4/sigpipe.m4: Likewise.
31508         * m4/sockets.m4: Likewise.
31509         * m4/sockpfaf.m4: Likewise.
31510         * m4/st_dm_mode.m4: Likewise.
31511         * m4/stat-time.m4: Likewise.
31512         * m4/stdbool.m4: Likewise.
31513         * m4/stdint.m4: Likewise.
31514         * m4/stdint_h.m4: Likewise.
31515         * m4/stpcpy.m4: Likewise.
31516         * m4/stpncpy.m4: Likewise.
31517         * m4/strcase.m4: Likewise.
31518         * m4/strchrnul.m4: Likewise.
31519         * m4/strcspn.m4: Likewise.
31520         * m4/strdup.m4: Likewise.
31521         * m4/strftime.m4: Likewise.
31522         * m4/strndup.m4: Likewise.
31523         * m4/strnlen.m4: Likewise.
31524         * m4/strpbrk.m4: Likewise.
31525         * m4/strptime.m4: Likewise.
31526         * m4/strsep.m4: Likewise.
31527         * m4/strtod.m4: Likewise.
31528         * m4/strtoimax.m4: Likewise.
31529         * m4/strtok_r.m4: Likewise.
31530         * m4/strtol.m4: Likewise.
31531         * m4/strtoll.m4: Likewise.
31532         * m4/strtoul.m4: Likewise.
31533         * m4/strtoull.m4: Likewise.
31534         * m4/strtoumax.m4: Likewise.
31535         * m4/strverscmp.m4: Likewise.
31536         * m4/threadlib.m4: Likewise.
31537         * m4/timegm.m4: Likewise.
31538         * m4/tm_gmtoff.m4: Likewise.
31539         * m4/tmpdir.m4: Likewise.
31540         * m4/tmpfile.m4: Likewise.
31541         * m4/tzset.m4: Likewise.
31542         * m4/uintmax_t.m4: Likewise.
31543         * m4/unlinkdir.m4: Likewise.
31544         * m4/unlocked-io.m4: Likewise.
31545         * m4/uptime.m4: Likewise.
31546         * m4/userspec.m4: Likewise.
31547         * m4/utimbuf.m4: Likewise.
31548         * m4/utime.m4: Likewise.
31549         * m4/utimes-null.m4: Likewise.
31550         * m4/utimes.m4: Likewise.
31551         * m4/vararrays.m4: Likewise.
31552         * m4/vasnprintf.m4: Likewise.
31553         * m4/vfprintf-posix.m4: Likewise.
31554         * m4/vprintf-posix.m4: Likewise.
31555         * m4/wait-process.m4: Likewise.
31556         * m4/wchar_t.m4: Likewise.
31557         * m4/wint_t.m4: Likewise.
31558         * m4/write-any-file.m4: Likewise.
31559         * m4/yield.m4: Likewise.
31560
31561 2009-01-13  Bruno Haible  <bruno@clisp.org>
31562
31563         Avoid test-copy-file.sh failures when ACL support insufficient.
31564         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31565         TESTS_ENVIRONMENT.
31566         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31567         Reported by Jim Meyering.
31568
31569 2009-01-13  Bruno Haible  <bruno@clisp.org>
31570
31571         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31572         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31573         * modules/unistdio/u8-printf-parse (Files): Likewise.
31574         * modules/unistdio/u32-printf-parse (Files): Likewise.
31575         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31576
31577 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31578
31579         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31580         and m4/inttypes_h.m4 too.
31581
31582 2009-01-12  Eric Blake  <ebb9@byu.net>
31583
31584         tests: IRIX 6.2 cc can't compile -0.0 into .data
31585         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31586         rather than at compile-time.
31587         * tests/test-floorl.c (minus_zero): Likewise.
31588         * tests/test-frexpl.c (minus_zero): Likewise.
31589         * tests/test-isnan.c (minus_zerol): Likewise.
31590         * tests/test-isnanl.h (minus_zero): Likewise.
31591         * tests/test-ldexpl.c (minus_zero): Likewise.
31592         * tests/test-roundl.c (minus_zero): Likewise.
31593         * tests/test-signbit.c (minus_zerol): Likewise.
31594         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31595         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31596         * tests/test-truncl.c (minus_zero): Likewise.
31597         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31598         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31599         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31600
31601 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31602
31603         regex: fix glibc bug 9697
31604         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31605         handling.
31606
31607 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31608
31609         regex: fix glibc bug 697
31610         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31611         being NULL also if there are no backreferences.
31612
31613 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31614
31615         regex: merge glibc changes
31616         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31617         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31618         re_string_skip_chars, re_string_reconstruct): Likewise.
31619         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31620
31621 2009-01-07  Jim Meyering  <meyering@redhat.com>
31622
31623         poll: filter through cppi
31624         * lib/poll.c: Indent cpp directives to reflect nesting.
31625
31626 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31627
31628         poll: don't return uninitialized
31629         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31630
31631 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31632
31633         avoid compile failure on AIX 6.1
31634         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31635         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31636
31637 2009-01-04  Jim Meyering  <meyering@redhat.com>
31638
31639         remove duplicate inclusion of <stdio.h>
31640         * tests/test-fprintf-posix.c: Likewise.
31641         * tests/test-printf-posix.c: Likewise.
31642         * tests/test-snprintf-posix.c: Likewise.
31643         * tests/test-sprintf-posix.c: Likewise.
31644         * tests/test-vasprintf-posix.c: Likewise.
31645         * tests/test-vfprintf-posix.c: Likewise.
31646         * tests/test-vprintf-posix.c: Likewise.
31647         * tests/test-vsnprintf-posix.c: Likewise.
31648         * tests/test-vsprintf-posix.c: Likewise.
31649
31650 2009-01-03  Jim Meyering  <meyering@redhat.com>
31651
31652         gnulib-tool: fix sed-based filtering
31653         * gnulib-tool (func_filter_filelist): Remove extra backslash
31654         in sed_fff_filter definition.
31655
31656 2009-01-02  Jim Meyering  <meyering@redhat.com>
31657
31658         strftime: avoid compilation failure on Solaris 2.6
31659         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31660         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31661         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31662         be available.  Reported by Tom G. Christensen.  Details in
31663         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31664
31665 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31666             Bruno Haible  <bruno@clisp.org>
31667
31668         Speed up gnulib-tool by doing more string processing through shell
31669         built-ins.
31670         * gnulib-tool (fast_func_append): New variable.
31671         (func_remove_prefix, func_remove_suffix): New functions.
31672         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31673         (func_filter_filelist): New function.
31674         (func_get_dependencies): Use func_remove_suffix instead of sed.
31675         (func_get_automake_snippet): Use func_filter_filelist instead of a
31676         subshell and sed invocation.
31677
31678 2009-01-01  Bruno Haible  <bruno@clisp.org>
31679
31680         Fix a security bug.
31681         * gnulib-tool (func_import, import, update): Don't allow the characters
31682         '"', '$', '`', '\' in macro arguments that become part of commands that
31683         are evaluated.
31684
31685 2009-01-01  Bruno Haible  <bruno@clisp.org>
31686
31687         * gnulib-tool (func_reset_sigpipe): Add more comments.
31688
31689 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31690
31691         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31692         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31693         already know the answer.
31694
31695 2009-01-01  Jim Meyering  <meyering@redhat.com>
31696
31697         * lib/version-etc.c (version_etc_va): Update copyright year.
31698
31699 2008-12-30  Bruno Haible  <bruno@clisp.org>
31700
31701         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31702         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31703         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31704
31705 2008-12-29  Eric Blake  <ebb9@byu.net>
31706
31707         multiarch: avoid autoconf AC_REQUIRE bug
31708         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31709         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31710         2.63 and older.
31711         Reported by Bruno Haible, and analyzed in
31712         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31713
31714 2008-12-29  Bruno Haible  <bruno@clisp.org>
31715
31716         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31717         files in subdirectories correctly.
31718         Reported by Ralf Wildenhues.
31719
31720 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31721
31722         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31723         rather than 'join FILE -', for Solaris join.
31724
31725 2008-12-29  Bruno Haible  <bruno@clisp.org>
31726
31727         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31728         quoting.
31729         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31730         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31731         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31732         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31733         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31734         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31735         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31736         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31737         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31738         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31739         * m4/nls.m4 (AM_NLS): Likewise.
31740         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31741         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31742         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31743         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31744         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31745         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31746         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31747         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31748         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31749         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31750         * m4/xsize.m4 (gl_XSIZE): Likewise.
31751         Suggested by Jim Meyering.
31752
31753 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31754
31755         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31756         * lib/parse-duration.c: use a switch instead of cascading if's.
31757
31758 2008-12-29  Eric Blake  <ebb9@byu.net>
31759
31760         wchar.h: supply WEOF on Irix 5.3
31761         * lib/wchar.in.h (wint_t): Also supply WEOF.
31762         * lib/wctype.in.h (wint_t): Likewise.
31763         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31764         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31765         Reported by Tom G. Christensen.
31766
31767 2008-12-26  Bruno Haible  <bruno@clisp.org>
31768
31769         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31770         i486, i586, i686.
31771
31772 2008-12-26  Bruno Haible  <bruno@clisp.org>
31773
31774         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31775
31776 2008-12-26  Bruno Haible  <bruno@clisp.org>
31777
31778         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31779         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31780         not __STDC_CONSTANT_MACROS.
31781         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31782
31783 2008-12-25  Bruno Haible  <bruno@clisp.org>
31784
31785         Add support for universal builds to vasnprintf.
31786         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31787         universal builds, guess no.
31788         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31789         * modules/vasprintf-posix (Depends-on): Likewise.
31790         * modules/fprintf-posix (Depends-on): Likewise.
31791         * modules/vfprintf-posix (Depends-on): Likewise.
31792         * modules/snprintf-posix (Depends-on): Likewise.
31793         * modules/vsnprintf-posix (Depends-on): Likewise.
31794         * modules/sprintf-posix (Depends-on): Likewise.
31795         * modules/vsprintf-posix (Depends-on): Likewise.
31796         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31797         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31798         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31799         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31800         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31801         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31802         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31803
31804         Add support for universal builds to <inttypes.h>.
31805         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31806         _SCNu64_PREFIX): In Apple
31807         universal builds, define directly, using _LP64.
31808         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31809         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31810         * modules/inttypes (Depends-on): Add multiarch.
31811         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31812
31813         Add support for universal builds to <stdint.h>.
31814         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31815         universal builds, define directly, using _LP64.
31816         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31817         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31818         and size_t.
31819         * modules/stdint (Depends-on): Add multiarch.
31820         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31821
31822         New module 'multiarch'.
31823         * modules/multiarch: New file.
31824         * m4/multiarch.m4: New file.
31825
31826 2008-12-25  Bruno Haible  <bruno@clisp.org>
31827
31828         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31829
31830 2008-12-25  Bruno Haible  <bruno@clisp.org>
31831
31832         * modules/btowc (License): Relicense under LGPLv2+.
31833         * modules/mbsinit (License): Likewise.
31834         * modules/mbrtowc (License): Likewise.
31835         * modules/wcrtomb (License): Likewise.
31836         * modules/streq (License): Likewise.
31837         Reported by David Lutterkort <lutter@redhat.com>.
31838
31839 2008-12-23  Bruno Haible  <bruno@clisp.org>
31840
31841         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31842
31843 2008-12-23  Bruno Haible  <bruno@clisp.org>
31844
31845         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31847         GETADDRINFO_LIB, not in LIBS.
31848         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31849         * modules/canon-host (Link): Likewise.
31850         * NEWS: Mention the change.
31851         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31852         GETADDRINFO_LIB.
31853
31854 2008-12-22  Bruno Haible  <bruno@clisp.org>
31855
31856         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31857         * doc/posix-functions/iswalpha_l.texi: Likewise.
31858         * doc/posix-functions/iswblank_l.texi: Likewise.
31859         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31860         * doc/posix-functions/iswctype_l.texi: Likewise.
31861         * doc/posix-functions/iswdigit_l.texi: Likewise.
31862         * doc/posix-functions/iswgraph_l.texi: Likewise.
31863         * doc/posix-functions/iswlower_l.texi: Likewise.
31864         * doc/posix-functions/iswprint_l.texi: Likewise.
31865         * doc/posix-functions/iswpunct_l.texi: Likewise.
31866         * doc/posix-functions/iswspace_l.texi: Likewise.
31867         * doc/posix-functions/iswupper_l.texi: Likewise.
31868         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31869         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31870         * doc/posix-functions/open_wmemstream.texi: Likewise.
31871         * doc/posix-functions/swscanf.texi: Likewise.
31872         * doc/posix-functions/towctrans_l.texi: Likewise.
31873         * doc/posix-functions/towlower.texi: Likewise.
31874         * doc/posix-functions/towlower_l.texi: Likewise.
31875         * doc/posix-functions/towupper.texi: Likewise.
31876         * doc/posix-functions/towupper_l.texi: Likewise.
31877         * doc/posix-functions/vfwprintf.texi: Likewise.
31878         * doc/posix-functions/vfwscanf.texi: Likewise.
31879         * doc/posix-functions/vswscanf.texi: Likewise.
31880         * doc/posix-functions/vwprintf.texi: Likewise.
31881         * doc/posix-functions/vwscanf.texi: Likewise.
31882         * doc/posix-functions/wcpcpy.texi: Likewise.
31883         * doc/posix-functions/wcpncpy.texi: Likewise.
31884         * doc/posix-functions/wcscasecmp.texi: Likewise.
31885         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31886         * doc/posix-functions/wcscoll_l.texi: Likewise.
31887         * doc/posix-functions/wcsdup.texi: Likewise.
31888         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31889         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31890         * doc/posix-functions/wcsnlen.texi: Likewise.
31891         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31892         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31893         * doc/posix-functions/wctrans_l.texi: Likewise.
31894         * doc/posix-functions/wctype_l.texi: Likewise.
31895         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31896         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31897         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31898         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31899         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31900         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31901         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31902         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31903         * doc/glibc-functions/wcschrnul.texi: Likewise.
31904         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31905         * doc/glibc-functions/wcstod_l.texi: Likewise.
31906         * doc/glibc-functions/wcstof_l.texi: Likewise.
31907         * doc/glibc-functions/wcstol_l.texi: Likewise.
31908         * doc/glibc-functions/wcstold_l.texi: Likewise.
31909         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31910         * doc/glibc-functions/wcstoq.texi: Likewise.
31911         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31912         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31913         * doc/glibc-functions/wcstouq.texi: Likewise.
31914         * doc/glibc-functions/wmempcpy.texi: Likewise.
31915
31916 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31917             Eric Blake  <ebb9@byu.net>
31918             Paolo Bonzini  <bonzini@gnu.org>
31919             Bruno Haible  <bruno@clisp.org>
31920
31921         Make c-stack work on Haiku.
31922         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31923         (c_stack_action): Use SA_ONSTACK flag.
31924
31925 2008-12-22  Bruno Haible  <bruno@clisp.org>
31926
31927         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31928
31929 2008-12-22  Bruno Haible  <bruno@clisp.org>
31930
31931         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31932         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31933         being overridden.
31934         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
31935         New macros.
31936         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31937         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31938         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31939         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31940
31941 2008-12-22  Bruno Haible  <bruno@clisp.org>
31942
31943         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31944         from test code.
31945
31946 2008-12-22  Eric Blake  <ebb9@byu.net>
31947
31948         Avoid gcc warnings on cygwin.
31949         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31950         Avoid unused variable.
31951         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31952         Likewise.
31953
31954 2008-12-22  Bruno Haible  <bruno@clisp.org>
31955
31956         Remove HAVE_MBRTOWC conditionals.
31957         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31958         (mbscasecmp): Assume mbrtowc function.
31959         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31960         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31961         * lib/mbschr.c: Include mbuiter.h unconditionally.
31962         (mbschr): Assume mbrtowc function.
31963         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31964         (mbscspn): Assume mbrtowc function.
31965         * lib/mbslen.c: Include mbuiter.h unconditionally.
31966         (mbslen): Assume mbrtowc function.
31967         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31968         (mbsncasecmp): Assume mbrtowc function.
31969         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31970         (mbsnlen): Assume mbrtowc function.
31971         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31972         (mbspbrk): Assume mbrtowc function.
31973         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31974         (mbspcasecmp): Assume mbrtowc function.
31975         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31976         (mbsrchr): Assume mbrtowc function.
31977         * lib/mbssep.c: Include mbuiter.h unconditionally.
31978         (mbssep): Assume mbrtowc function.
31979         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31980         (mbsspn): Assume mbrtowc function.
31981         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31982         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31983         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31984         (mbstok_r): Assume mbrtowc function.
31985         * lib/propername.c: Include mbuiter.h unconditionally.
31986         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31987         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31988         (trim2): Assume mbrtowc function.
31989         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31990         (mbsnwidth): Assume mbrtowc function.
31991         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31992         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31993         fallback definitions.
31994         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31995
31996 2008-12-22  Bruno Haible  <bruno@clisp.org>
31997
31998         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31999
32000 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32001
32002         * modules/regex: Request emulations for the mb*/wc* functions we need.
32003         * m4/regex.m4: Don't look for those functions here.
32004         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32005
32006 2008-12-22  Bruno Haible  <bruno@clisp.org>
32007
32008         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32009
32010 2008-12-21  Bruno Haible  <bruno@clisp.org>
32011
32012         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32013         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32014         (Include): Remove conditionalization.
32015         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32016         (Include): Remove conditionalization.
32017         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32018         (Include): Remove conditionalization.
32019         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32020         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32021         * NEWS: Mention the change.
32022         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32023         via Sergey Poznyakoff <gray@gnu.org.ua>.
32024
32025 2008-12-21  Bruno Haible  <bruno@clisp.org>
32026
32027         * MODULES.html.sh (Extended multibyte and wide character utilities
32028         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32029         wcrtomb, wcsrtombs.
32030         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32031         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32032         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32033         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32034
32035 2008-12-21  Bruno Haible  <bruno@clisp.org>
32036
32037         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32038
32039 2008-12-21  Bruno Haible  <bruno@clisp.org>
32040
32041         * modules/wcsnrtombs-tests: New file.
32042         * tests/test-wcsnrtombs1.sh: New file.
32043         * tests/test-wcsnrtombs2.sh: New file.
32044         * tests/test-wcsnrtombs3.sh: New file.
32045         * tests/test-wcsnrtombs4.sh: New file.
32046         * tests/test-wcsnrtombs.c: New file.
32047
32048         New module 'wcsnrtombs'.
32049         * lib/wchar.in.h (wcsnrtombs): New declaration.
32050         * lib/wcsnrtombs.c: New file.
32051         * lib/wcsrtombs-state.c: New file.
32052         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32053         (internal_state): Remove variable.
32054         * m4/wcsnrtombs.m4: New file.
32055         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32056         compilation units.
32057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32058         HAVE_WCSNRTOMBS.
32059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32060         HAVE_WCSNRTOMBS.
32061         * modules/wcsnrtombs: New file.
32062         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32063         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32064
32065 2008-12-21  Bruno Haible  <bruno@clisp.org>
32066
32067         * modules/wcsrtombs-tests: New file.
32068         * tests/test-wcsrtombs1.sh: New file.
32069         * tests/test-wcsrtombs2.sh: New file.
32070         * tests/test-wcsrtombs3.sh: New file.
32071         * tests/test-wcsrtombs4.sh: New file.
32072         * tests/test-wcsrtombs.c: New file.
32073
32074         New module 'wcsrtombs'.
32075         * lib/wchar.in.h (wcsrtombs): New declaration.
32076         * lib/wcsrtombs.c: New file.
32077         * m4/wcsrtombs.m4: New file.
32078         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32079         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32080         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32081         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32082         * modules/wcsrtombs: New file.
32083         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32084         bugs.
32085
32086 2008-12-21  Bruno Haible  <bruno@clisp.org>
32087
32088         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32089         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32090         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32091         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32092         if not correct.
32093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32094         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32095         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32096         m4/locale-zh.m4, m4/codeset.m4.
32097         * doc/posix-functions/wcrtomb.texi: Document the bug.
32098
32099 2008-12-21  Bruno Haible  <bruno@clisp.org>
32100
32101         Work around a btowc() bug on IRIX 6.5.
32102         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32103         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32104         REPLACE_WTOBC if not.
32105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32106         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32107         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32108
32109 2008-12-21  Bruno Haible  <bruno@clisp.org>
32110
32111         * modules/wcrtomb-tests: New file.
32112         * tests/test-wcrtomb.sh: New file.
32113         * tests/test-wcrtomb.c: New file.
32114
32115         New module 'wcrtomb'.
32116         * lib/wchar.in.h (wcrtomb): New declaration.
32117         * lib/wcrtomb.c: New file.
32118         * m4/wcrtomb.m4: New file.
32119         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32120         HAVE_WCRTOMB.
32121         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32122         HAVE_WCRTOMB.
32123         * modules/wcrtomb: New file.
32124         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32125
32126 2008-12-21  Bruno Haible  <bruno@clisp.org>
32127
32128         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32129         * modules/mbsrtowcs (Files): Likewise.
32130         * modules/wctob (Files): Likewise.
32131         * modules/c-strcase-tests (Files): Likewise.
32132         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32133         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32134         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32135         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32136         * modules/vasnprintf-posix-tests (Files): Likewise.
32137
32138 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32139
32140         gitlog-to-changelog: pass all command-line arguments to git-log
32141         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32142         it is sometimes convenient to filter the commits in various ways.
32143         gitlog-to-changelog only allows --since to specify a start date,
32144         but git-log itself supports many other filtering mechanisms.
32145         At the moment, I want to filter by branch name.  Rather than
32146         adding a --branch option to gitlog-to-changelog, it seems more
32147         flexible to simply pass all options directly to git-log and let
32148         git do the work.  Notice that this effectively makes --since a
32149         redundant option for gitlog-to-changelog, but removing it would
32150         require current usage to change since calls would then require
32151         an additional '--'.
32152
32153 2008-12-21  Bruno Haible  <bruno@clisp.org>
32154
32155         * modules/mbsnrtowcs-tests: New file.
32156         * tests/test-mbsnrtowcs1.sh: New file.
32157         * tests/test-mbsnrtowcs2.sh: New file.
32158         * tests/test-mbsnrtowcs3.sh: New file.
32159         * tests/test-mbsnrtowcs4.sh: New file.
32160         * tests/test-mbsnrtowcs.c: New file.
32161
32162         New module 'mbsnrtowcs'.
32163         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32164         * lib/mbsnrtowcs.c: New file.
32165         * lib/mbsrtowcs-state.c: New file.
32166         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32167         (internal_state): Remove variable.
32168         * m4/mbsnrtowcs.m4: New file.
32169         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32170         compilation units.
32171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32172         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32173         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32174         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32175         * modules/mbsnrtowcs: New file.
32176         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32177         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32178         portability problem.
32179
32180 2008-12-21  Bruno Haible  <bruno@clisp.org>
32181
32182         Work around mbsrtowcs bug.
32183         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32184         (gl_FUNC_MBSRTOWCS): Invoke it.
32185         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32186         m4/locale-zh.m4.
32187         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32188
32189 2008-12-21  Bruno Haible  <bruno@clisp.org>
32190
32191         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32192
32193 2008-12-21  Bruno Haible  <bruno@clisp.org>
32194
32195         Update doc for AIX.
32196         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32197         16-bit wchar_t type.
32198         * doc/posix-functions/btowc.texi: Likewise.
32199         * doc/posix-functions/fgetwc.texi: Likewise.
32200         * doc/posix-functions/fgetws.texi: Likewise.
32201         * doc/posix-functions/fputwc.texi: Likewise.
32202         * doc/posix-functions/fputws.texi: Likewise.
32203         * doc/posix-functions/fwide.texi: Likewise.
32204         * doc/posix-functions/fwprintf.texi: Likewise.
32205         * doc/posix-functions/fwscanf.texi: Likewise.
32206         * doc/posix-functions/getwchar.texi: Likewise.
32207         * doc/posix-functions/getwc.texi: Likewise.
32208         * doc/posix-functions/iswalnum.texi: Likewise.
32209         * doc/posix-functions/iswalpha.texi: Likewise.
32210         * doc/posix-functions/iswblank.texi: Likewise.
32211         * doc/posix-functions/iswcntrl.texi: Likewise.
32212         * doc/posix-functions/iswctype.texi: Likewise.
32213         * doc/posix-functions/iswdigit.texi: Likewise.
32214         * doc/posix-functions/iswgraph.texi: Likewise.
32215         * doc/posix-functions/iswlower.texi: Likewise.
32216         * doc/posix-functions/iswprint.texi: Likewise.
32217         * doc/posix-functions/iswpunct.texi: Likewise.
32218         * doc/posix-functions/iswspace.texi: Likewise.
32219         * doc/posix-functions/iswupper.texi: Likewise.
32220         * doc/posix-functions/iswxdigit.texi: Likewise.
32221         * doc/posix-functions/mbrtowc.texi: Likewise.
32222         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32223         * doc/posix-functions/mbstowcs.texi: Likewise.
32224         * doc/posix-functions/mbtowc.texi: Likewise.
32225         * doc/posix-functions/putwchar.texi: Likewise.
32226         * doc/posix-functions/putwc.texi: Likewise.
32227         * doc/posix-functions/swprintf.texi: Likewise.
32228         * doc/posix-functions/tolower.texi: Likewise.
32229         * doc/posix-functions/toupper.texi: Likewise.
32230         * doc/posix-functions/towctrans.texi: Likewise.
32231         * doc/posix-functions/ungetwc.texi: Likewise.
32232         * doc/posix-functions/vswprintf.texi: Likewise.
32233         * doc/posix-functions/wcrtomb.texi: Likewise.
32234         * doc/posix-functions/wcscat.texi: Likewise.
32235         * doc/posix-functions/wcschr.texi: Likewise.
32236         * doc/posix-functions/wcscmp.texi: Likewise.
32237         * doc/posix-functions/wcscoll.texi: Likewise.
32238         * doc/posix-functions/wcscpy.texi: Likewise.
32239         * doc/posix-functions/wcscspn.texi: Likewise.
32240         * doc/posix-functions/wcsftime.texi: Likewise.
32241         * doc/posix-functions/wcslen.texi: Likewise.
32242         * doc/posix-functions/wcsncat.texi: Likewise.
32243         * doc/posix-functions/wcsncmp.texi: Likewise.
32244         * doc/posix-functions/wcsncpy.texi: Likewise.
32245         * doc/posix-functions/wcspbrk.texi: Likewise.
32246         * doc/posix-functions/wcsrchr.texi: Likewise.
32247         * doc/posix-functions/wcsrtombs.texi: Likewise.
32248         * doc/posix-functions/wcsspn.texi: Likewise.
32249         * doc/posix-functions/wcsstr.texi: Likewise.
32250         * doc/posix-functions/wcstod.texi: Likewise.
32251         * doc/posix-functions/wcstof.texi: Likewise.
32252         * doc/posix-functions/wcstoimax.texi: Likewise.
32253         * doc/posix-functions/wcstok.texi: Likewise.
32254         * doc/posix-functions/wcstold.texi: Likewise.
32255         * doc/posix-functions/wcstoll.texi: Likewise.
32256         * doc/posix-functions/wcstol.texi: Likewise.
32257         * doc/posix-functions/wcstombs.texi: Likewise.
32258         * doc/posix-functions/wcstoull.texi: Likewise.
32259         * doc/posix-functions/wcstoul.texi: Likewise.
32260         * doc/posix-functions/wcstoumax.texi: Likewise.
32261         * doc/posix-functions/wcswidth.texi: Likewise.
32262         * doc/posix-functions/wcsxfrm.texi: Likewise.
32263         * doc/posix-functions/wctob.texi: Likewise.
32264         * doc/posix-functions/wctomb.texi: Likewise.
32265         * doc/posix-functions/wctrans.texi: Likewise.
32266         * doc/posix-functions/wctype.texi: Likewise.
32267         * doc/posix-functions/wcwidth.texi: Likewise.
32268         * doc/posix-functions/wmemchr.texi: Likewise.
32269         * doc/posix-functions/wmemcmp.texi: Likewise.
32270         * doc/posix-functions/wmemcpy.texi: Likewise.
32271         * doc/posix-functions/wmemmove.texi: Likewise.
32272         * doc/posix-functions/wmemset.texi: Likewise.
32273         * doc/posix-functions/wprintf.texi: Likewise.
32274         * doc/posix-functions/wscanf.texi: Likewise.
32275
32276 2008-12-21  Bruno Haible  <bruno@clisp.org>
32277
32278         Update doc for HP-UX 11.11.
32279         * doc/posix-functions/btowc.texi: Clarify that the function is missing
32280         in HP-UX version 11.00, not in all versions of HP-UX 11.
32281         * doc/posix-functions/fwide.texi: Likewise.
32282         * doc/posix-functions/fwprintf.texi: Likewise.
32283         * doc/posix-functions/fwscanf.texi: Likewise.
32284         * doc/posix-functions/inet_ntop.texi: Likewise.
32285         * doc/posix-functions/inet_pton.texi: Likewise.
32286         * doc/posix-functions/mbrlen.texi: Likewise.
32287         * doc/posix-functions/mbrtowc.texi: Likewise.
32288         * doc/posix-functions/mbsinit.texi: Likewise.
32289         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32290         * doc/posix-functions/swprintf.texi: Likewise.
32291         * doc/posix-functions/swscanf.texi: Likewise.
32292         * doc/posix-functions/towctrans.texi: Likewise.
32293         * doc/posix-functions/vfwprintf.texi: Likewise.
32294         * doc/posix-functions/vswprintf.texi: Likewise.
32295         * doc/posix-functions/vwprintf.texi: Likewise.
32296         * doc/posix-functions/wcrtomb.texi: Likewise.
32297         * doc/posix-functions/wcsrtombs.texi: Likewise.
32298         * doc/posix-functions/wcsstr.texi: Likewise.
32299         * doc/posix-functions/wctob.texi: Likewise.
32300         * doc/posix-functions/wctrans.texi: Likewise.
32301         * doc/posix-functions/wmemchr.texi: Likewise.
32302         * doc/posix-functions/wmemcmp.texi: Likewise.
32303         * doc/posix-functions/wmemcpy.texi: Likewise.
32304         * doc/posix-functions/wmemmove.texi: Likewise.
32305         * doc/posix-functions/wmemset.texi: Likewise.
32306         * doc/posix-functions/wprintf.texi: Likewise.
32307         * doc/posix-functions/wscanf.texi: Likewise.
32308
32309 2008-12-21  Bruno Haible  <bruno@clisp.org>
32310
32311         Work around a portability problem.
32312         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
32313         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
32314
32315 2008-12-20  Bruno Haible  <bruno@clisp.org>
32316
32317         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
32318         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
32319         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
32320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
32321         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
32322
32323         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
32324         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
32325         set.
32326         (GNULIB_defined_mbstate_t): New macro.
32327         (mbsinit): Redefine if REPLACE_MBSINIT is set.
32328         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
32329         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
32330         reuses the system's mbrtowc function but works around the bugs.
32331         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
32332         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
32333         macros.
32334         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
32335         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
32336         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
32337         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
32338         REPLACE_MBSINIT if mbsinit needs to be overridden.
32339         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
32340         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32341         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
32342         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32343         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32344         m4/locale-zh.m4.
32345         (Depends): Add mbsinit.
32346         * modules/mbsinit (Depends): Add mbrtowc.
32347         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
32348
32349 2008-12-20  Bruno Haible  <bruno@clisp.org>
32350
32351         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
32352         so that there are no conversion errors on AIX.
32353         * tests/test-mbsrtowcs.c (main): LIkewise.
32354
32355 2008-12-20  Bruno Haible  <bruno@clisp.org>
32356
32357         Work around wctob bug on Solaris <= 9.
32358         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
32359         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
32360         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
32361         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
32362         * modules/wctob (Files): Add m4/locale-fr.m4.
32363         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
32364
32365 2008-12-20  Bruno Haible  <bruno@clisp.org>
32366
32367         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
32368         /dev/null.
32369         * tests/test-select-in.sh: Likewise.
32370         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32371
32372 2008-12-20  Bruno Haible  <bruno@clisp.org>
32373
32374         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
32375         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
32376         Cygwin 1.5.x.
32377
32378 2008-12-20  Bruno Haible  <bruno@clisp.org>
32379
32380         Ensure mbstate_t is defined on HP-UX 11.11.
32381         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
32382         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
32383         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
32384         AC_USE_SYSTEM_EXTENSIONS.
32385         * modules/fnmatch (Depends-on): Add extensions.
32386         * modules/mbrlen (Depends-on): Likewise.
32387         * modules/mbrtowc (Depends-on): Likewise.
32388         * modules/mbsinit (Depends-on): Likewise.
32389         * modules/mbsrtowcs (Depends-on): Likewise.
32390         * modules/mbswidth (Depends-on): Likewise.
32391         * modules/quotearg (Depends-on): Likewise.
32392         * modules/strftime (Depends-on): Likewise.
32393
32394 2008-12-20  Bruno Haible  <bruno@clisp.org>
32395
32396         Ensure wctob is declared on IRIX 6.5.
32397         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
32398         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
32399         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
32400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
32401         of HAVE_WCTOB.
32402         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
32403         HAVE_WCTOB.
32404         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
32405
32406 2008-12-19  Bruno Haible  <bruno@clisp.org>
32407
32408         * modules/mbsrtowcs-tests: New file.
32409         * tests/test-mbsrtowcs1.sh: New file.
32410         * tests/test-mbsrtowcs2.sh: New file.
32411         * tests/test-mbsrtowcs3.sh: New file.
32412         * tests/test-mbsrtowcs4.sh: New file.
32413         * tests/test-mbsrtowcs.c: New file.
32414
32415         New module 'mbsrtowcs'.
32416         * lib/wchar.in.h (mbsrtowcs): New declaration.
32417         * lib/mbsrtowcs.c: New file.
32418         * m4/mbsrtowcs.m4: New file.
32419         * modules/mbsrtowcs: New file.
32420         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
32421         HAVE_MBSRTOWCS.
32422         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
32423         HAVE_MBSRTOWCS.
32424         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
32425
32426 2008-12-19  Bruno Haible  <bruno@clisp.org>
32427
32428         New module 'mbrlen'.
32429         * lib/wchar.in.h (mbrlen): New declaration.
32430         * lib/mbrlen.c: New file.
32431         * m4/mbrlen.m4: New file.
32432         * modules/mbrlen: New file.
32433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
32434         HAVE_MBRLEN.
32435         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
32436         HAVE_MBRLEN.
32437         * doc/posix-functions/mbrlen.texi: Document the new module.
32438
32439 2008-12-19  Bruno Haible  <bruno@clisp.org>
32440
32441         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
32442         * modules/mbrtowc (Depends-on): Add verify.
32443         Suggested by Paul Eggert.
32444
32445 2008-12-18  Bruno Haible  <bruno@clisp.org>
32446
32447         * modules/mbsinit-tests: New file.
32448         * tests/test-mbsinit.sh: New file.
32449         * tests/test-mbsinit.c: New file.
32450
32451 2008-12-18  Bruno Haible  <bruno@clisp.org>
32452
32453         * modules/mbrtowc-tests: New file.
32454         * tests/test-mbrtowc1.sh: New file.
32455         * tests/test-mbrtowc2.sh: New file.
32456         * tests/test-mbrtowc3.sh: New file.
32457         * tests/test-mbrtowc4.sh: New file.
32458         * tests/test-mbrtowc.c: New file.
32459
32460         New module 'mbrtowc'.
32461         * lib/wchar.in.h (mbstate_t): Override when the system does not have
32462         mbsinit and mbrtowc.
32463         (mbrtowc): New declaration.
32464         * lib/mbrtowc.c: New file.
32465         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
32466         * modules/mbrtowc: New file.
32467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
32468         HAVE_MBRTOWC.
32469         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
32470         HAVE_MBRTOWC.
32471         * doc/posix-functions/mbrtowc.texi: Document the new module.
32472
32473 2008-12-18  Bruno Haible  <bruno@clisp.org>
32474
32475         New module 'wctob'.
32476         * lib/wchar.in.h (wctob): New declaration.
32477         * lib/wctob.c: New file.
32478         * m4/wctob.m4: New file.
32479         * modules/wctob: New file.
32480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
32481         HAVE_WCTOB.
32482         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
32483         * doc/posix-functions/wctob.texi: Document the new module.
32484
32485 2008-12-18  Bruno Haible  <bruno@clisp.org>
32486
32487         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
32488         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
32489
32490 2008-12-18  Simon Josefsson  <simon@josefsson.org>
32491
32492         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
32493         G. Christensen" <tgc@jupiterrise.com>.
32494
32495         * lib/flock.c: Need to include errno.h.  Reported by "Tom
32496         G. Christensen" <tgc@jupiterrise.com>.
32497
32498         * lib/flock.c: Need to include string.h.  Reported by "Tom
32499         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
32500         <ebb9@byu.net>.
32501
32502 2008-12-18  Bruno Haible  <bruno@clisp.org>
32503
32504         * m4/locale-ja.m4: New file, from GNU gettext.
32505
32506 2008-12-17  Bruno Haible  <bruno@clisp.org>
32507
32508         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
32509         Suggested by Eric Blake.
32510
32511 2008-12-17  Bruno Haible  <bruno@clisp.org>
32512
32513         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
32514
32515 2008-12-17  Bruno Haible  <bruno@clisp.org>
32516
32517         * lib/mbsinit.c: Include verify.h. Verify an assumption.
32518         * modules/mbsinit (Depends-on): Add verify.
32519         Suggested by Paul Eggert.
32520
32521 2008-12-17  Bruno Haible  <bruno@clisp.org>
32522
32523         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
32524         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
32525         gl_FUNC_MBRTOWC.
32526         * m4/mbiter.m4 (gl_MBITER): LIkewise.
32527         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
32528         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
32529         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
32530         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
32531         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
32532         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
32533         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
32534         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
32535         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
32536         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
32537         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
32538         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
32539         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
32540         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
32541         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32542         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
32543         * modules/trim (configure.ac): Likewise.
32544
32545 2008-12-17  Bruno Haible  <bruno@clisp.org>
32546
32547         * modules/btowc-tests: New file.
32548         * tests/test-btowc1.sh: New file.
32549         * tests/test-btowc2.sh: New file.
32550         * tests/test-btowc.c: New file.
32551
32552         New module 'btowc'.
32553         * lib/wchar.in.h (btowc): New declaration.
32554         * lib/btowc.c: New file.
32555         * m4/btowc.m4: New file.
32556         * modules/btowc: New file.
32557         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32558         HAVE_BTOWC.
32559         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32560         * doc/posix-functions/btowc.texi: Document the new module.
32561
32562 2008-12-17  Bruno Haible  <bruno@clisp.org>
32563
32564         New module 'mbsinit'.
32565         * lib/wchar.in.h (mbsinit): New declaration.
32566         * lib/mbsinit.c: New file.
32567         * m4/mbsinit.m4: New file.
32568         * modules/mbsinit: New file.
32569         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32570         HAVE_MBSINIT.
32571         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32572         HAVE_MBSINIT.
32573         * doc/posix-functions/mbsinit.texi: Document the new module.
32574
32575 2008-12-16  Bruno Haible  <bruno@clisp.org>
32576
32577         * lib/unistd.in.h: Add comment.
32578         * tests/test-environ.c: Don't include <stdlib.h>.
32579
32580 2008-12-16  Bruno Haible  <bruno@clisp.org>
32581
32582         * lib/parse-duration.h (parse_duration): Document return value
32583         convention.
32584         * lib/parse-duration.c: Include specification header first. Add
32585         comments.
32586         (_): Remove macro.
32587         (parse_year_month_day, parse_hour_minute_second): Move side effects
32588         outside of strchr call.
32589         (parse_non_iso8601): Move side effects outside of isspace call.
32590         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32591         call.
32592
32593 2008-12-16  Bruno Haible  <bruno@clisp.org>
32594
32595         * tests/test-parse-duration.sh: Produce no output when the test
32596         succeeds.
32597
32598 2008-12-16  Bruno Haible  <bruno@clisp.org>
32599
32600         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32601         expressions.
32602
32603 2008-12-15  Bruno Haible  <bruno@clisp.org>
32604
32605         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32606         * doc/glibc-functions/flistxattr.texi: Likewise.
32607         * doc/glibc-functions/fopencookie.texi: Likewise.
32608         * doc/glibc-functions/fremovexattr.texi: Likewise.
32609         * doc/glibc-functions/fsetxattr.texi: Likewise.
32610         * doc/glibc-functions/getxattr.texi: Likewise.
32611         * doc/glibc-functions/lgetxattr.texi: Likewise.
32612         * doc/glibc-functions/listxattr.texi: Likewise.
32613         * doc/glibc-functions/llistxattr.texi: Likewise.
32614         * doc/glibc-functions/lremovexattr.texi: Likewise.
32615         * doc/glibc-functions/lsetxattr.texi: Likewise.
32616         * doc/glibc-functions/removexattr.texi: Likewise.
32617         * doc/glibc-functions/setxattr.texi: Likewise.
32618         * doc/posix-functions/open_memstream.texi: Likewise.
32619
32620 2008-12-15  Eric Blake  <ebb9@byu.net>
32621
32622         Update doc for cygwin 1.7.
32623         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32624         functions.
32625         * doc/posix-functions/fchmodat.texi: Likewise.
32626         * doc/posix-functions/fchownat.texi: Likewise.
32627         * doc/posix-functions/fdopendir.texi: Likewise.
32628         * doc/posix-functions/fmemopen.texi: Likewise.
32629         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32630         * doc/posix-functions/fstatat.texi: Likewise.
32631         * doc/posix-functions/futimens.texi: Likewise.
32632         * doc/posix-functions/gai_strerror.texi: Likewise.
32633         * doc/posix-functions/getaddrinfo.texi: Likewise.
32634         * doc/posix-functions/getnameinfo.texi: Likewise.
32635         * doc/posix-functions/if_freenameindex.texi: Likewise.
32636         * doc/posix-functions/if_indextoname.texi: Likewise.
32637         * doc/posix-functions/if_nameindex.texi: Likewise.
32638         * doc/posix-functions/if_nametoindex.texi: Likewise.
32639         * doc/posix-functions/insque.texi: Likewise.
32640         * doc/posix-functions/linkat.texi: Likewise.
32641         * doc/posix-functions/llrint.texi: Likewise.
32642         * doc/posix-functions/llrintf.texi: Likewise.
32643         * doc/posix-functions/llrintl.texi: Likewise.
32644         * doc/posix-functions/lockf.texi: Likewise.
32645         * doc/posix-functions/lrintl.texi: Likewise.
32646         * doc/posix-functions/mkdirat.texi: Likewise.
32647         * doc/posix-functions/mkfifoat.texi: Likewise.
32648         * doc/posix-functions/mknodat.texi: Likewise.
32649         * doc/posix-functions/mq_close.texi: Likewise.
32650         * doc/posix-functions/mq_getattr.texi: Likewise.
32651         * doc/posix-functions/mq_notify.texi: Likewise.
32652         * doc/posix-functions/mq_open.texi: Likewise.
32653         * doc/posix-functions/mq_receive.texi: Likewise.
32654         * doc/posix-functions/mq_send.texi: Likewise.
32655         * doc/posix-functions/mq_setattr.texi: Likewise.
32656         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32657         * doc/posix-functions/mq_timedsend.texi: Likewise.
32658         * doc/posix-functions/mq_unlink.texi: Likewise.
32659         * doc/posix-functions/open_memstream.texi: Likewise.
32660         * doc/posix-functions/openat.texi: Likewise.
32661         * doc/posix-functions/posix_fadvise.texi: Likewise.
32662         * doc/posix-functions/posix_fallocate.texi: Likewise.
32663         * doc/posix-functions/posix_madvise.texi: Likewise.
32664         * doc/posix-functions/posix_memalign.texi: Likewise.
32665         * doc/posix-functions/posix_openpt.texi: Likewise.
32666         * doc/posix-functions/readlinkat.texi: Likewise.
32667         * doc/posix-functions/remque.texi: Likewise.
32668         * doc/posix-functions/renameat.texi: Likewise.
32669         * doc/posix-functions/rintl.texi: Likewise.
32670         * doc/posix-functions/sem_unlink.texi: Likewise.
32671         * doc/posix-functions/shm_open.texi: Likewise.
32672         * doc/posix-functions/shm_unlink.texi: Likewise.
32673         * doc/posix-functions/signgam.texi: Likewise.
32674         * doc/posix-functions/sigset.texi: Likewise.
32675         * doc/posix-functions/stpcpy.texi: Likewise.
32676         * doc/posix-functions/stpncpy.texi: Likewise.
32677         * doc/posix-functions/strerror.texi: Likewise.
32678         * doc/posix-functions/strtod.texi: Likewise.
32679         * doc/posix-functions/symlinkat.texi: Likewise.
32680         * doc/posix-functions/unlinkat.texi: Likewise.
32681         * doc/posix-functions/utimensat.texi: Likewise.
32682         * doc/glibc-functions/bindresvport.texi: Likewise.
32683         * doc/glibc-functions/dn_expand.texi: Likewise.
32684         * doc/glibc-functions/exp10.texi: Likewise.
32685         * doc/glibc-functions/exp10f.texi: Likewise.
32686         * doc/glibc-functions/fgetxattr.texi: Likewise.
32687         * doc/glibc-functions/flistxattr.texi: Likewise.
32688         * doc/glibc-functions/fopencookie.texi: Likewise.
32689         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32690         * doc/glibc-functions/fremovexattr.texi: Likewise.
32691         * doc/glibc-functions/fsetxattr.texi: Likewise.
32692         * doc/glibc-functions/getifaddrs.texi: Likewise.
32693         * doc/glibc-functions/getxattr.texi: Likewise.
32694         * doc/glibc-functions/lgetxattr.texi: Likewise.
32695         * doc/glibc-functions/listxattr.texi: Likewise.
32696         * doc/glibc-functions/llistxattr.texi: Likewise.
32697         * doc/glibc-functions/lremovexattr.texi: Likewise.
32698         * doc/glibc-functions/lsetxattr.texi: Likewise.
32699         * doc/glibc-functions/pow10.texi: Likewise.
32700         * doc/glibc-functions/pow10f.texi: Likewise.
32701         * doc/glibc-functions/rcmd_af.texi: Likewise.
32702         * doc/glibc-functions/removexattr.texi: Likewise.
32703         * doc/glibc-functions/res_init.texi: Likewise.
32704         * doc/glibc-functions/res_mkquery.texi: Likewise.
32705         * doc/glibc-functions/res_query.texi: Likewise.
32706         * doc/glibc-functions/res_querydomain.texi: Likewise.
32707         * doc/glibc-functions/res_send.texi: Likewise.
32708         * doc/glibc-functions/rresvport_af.texi: Likewise.
32709         * doc/glibc-functions/setxattr.texi: Likewise.
32710         * doc/glibc-functions/strcasestr.texi: Likewise.
32711
32712 2008-12-15  Bruno Haible  <bruno@clisp.org>
32713
32714         Fix compilation error on OSF/1 4.0.
32715         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32716         <sys/time.h>, simply delegate to the system header.
32717         Reported by Daniel Richard G. <oss@teragram.com>.
32718
32719 2008-12-15  Bruno Haible  <bruno@clisp.org>
32720
32721         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32722         * doc/posix-functions/fchmodat.texi: Likewise.
32723         * doc/posix-functions/fchownat.texi: Likewise.
32724         * doc/posix-functions/fdopendir.texi: Likewise.
32725         * doc/posix-functions/fstatat.texi: Likewise.
32726         * doc/posix-functions/mkdirat.texi: Likewise.
32727         * doc/posix-functions/unlinkat.texi: Likewise.
32728
32729 2008-12-14  Bruno Haible  <bruno@clisp.org>
32730
32731         Update doc for POSIX:2008.
32732         * doc/posix-functions/faccessat.texi: New file.
32733         * doc/posix-functions/fchmodat.texi: New file.
32734         * doc/posix-functions/fchownat.texi: New file.
32735         * doc/posix-functions/fdopendir.texi: New file.
32736         * doc/posix-functions/fstatat.texi: New file.
32737         * doc/posix-functions/futimens.texi: New file.
32738         * doc/posix-functions/linkat.texi: New file.
32739         * doc/posix-functions/mkdirat.texi: New file.
32740         * doc/posix-functions/mkfifoat.texi: New file.
32741         * doc/posix-functions/mknodat.texi: New file.
32742         * doc/posix-functions/open_wmemstream.texi: New file.
32743         * doc/posix-functions/openat.texi: New file.
32744         * doc/posix-functions/psiginfo.texi: New file.
32745         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32746         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32747         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32748         * doc/posix-functions/readlinkat.texi: New file.
32749         * doc/posix-functions/renameat.texi: New file.
32750         * doc/posix-functions/strerror_l.texi: New file.
32751         * doc/posix-functions/symlinkat.texi: New file.
32752         * doc/posix-functions/unlinkat.texi: New file.
32753         * doc/posix-functions/utimensat.texi: New file.
32754         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32755
32756 2008-12-14  Bruno Haible  <bruno@clisp.org>
32757
32758         Update doc for POSIX:2008.
32759         * doc/posix-functions/alphasort.texi: Renamed from
32760         doc/glibc-functions/alphasort.texi.
32761         * doc/posix-functions/dirfd.texi: Renamed from
32762         doc/glibc-functions/dirfd.texi.
32763         * doc/posix-functions/dprintf.texi: Renamed from
32764         doc/glibc-functions/dprintf.texi.
32765         * doc/posix-functions/duplocale.texi: Renamed from
32766         doc/glibc-functions/duplocale.texi.
32767         * doc/posix-functions/fexecve.texi: Renamed from
32768         doc/glibc-functions/fexecve.texi.
32769         * doc/posix-functions/fmemopen.texi: Renamed from
32770         doc/glibc-functions/fmemopen.texi.
32771         * doc/posix-functions/freelocale.texi: Renamed from
32772         doc/glibc-functions/freelocale.texi.
32773         * doc/posix-functions/getdate_err.texi: Renamed from
32774         doc/glibc-functions/getdate_err.texi.
32775         * doc/posix-functions/isalnum_l.texi: Renamed from
32776         doc/glibc-functions/isalnum_l.texi.
32777         * doc/posix-functions/isalpha_l.texi: Renamed from
32778         doc/glibc-functions/isalpha_l.texi.
32779         * doc/posix-functions/isblank_l.texi: Renamed from
32780         doc/glibc-functions/isblank_l.texi.
32781         * doc/posix-functions/iscntrl_l.texi: Renamed from
32782         doc/glibc-functions/iscntrl_l.texi.
32783         * doc/posix-functions/isdigit_l.texi: Renamed from
32784         doc/glibc-functions/isdigit_l.texi.
32785         * doc/posix-functions/isgraph_l.texi: Renamed from
32786         doc/glibc-functions/isgraph_l.texi.
32787         * doc/posix-functions/islower_l.texi: Renamed from
32788         doc/glibc-functions/islower_l.texi.
32789         * doc/posix-functions/isprint_l.texi: Renamed from
32790         doc/glibc-functions/isprint_l.texi.
32791         * doc/posix-functions/ispunct_l.texi: Renamed from
32792         doc/glibc-functions/ispunct_l.texi.
32793         * doc/posix-functions/isspace_l.texi: Renamed from
32794         doc/glibc-functions/isspace_l.texi.
32795         * doc/posix-functions/isupper_l.texi: Renamed from
32796         doc/glibc-functions/isupper_l.texi.
32797         * doc/posix-functions/iswalnum_l.texi: Renamed from
32798         doc/glibc-functions/iswalnum_l.texi.
32799         * doc/posix-functions/iswalpha_l.texi: Renamed from
32800         doc/glibc-functions/iswalpha_l.texi.
32801         * doc/posix-functions/iswblank_l.texi: Renamed from
32802         doc/glibc-functions/iswblank_l.texi.
32803         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32804         doc/glibc-functions/iswcntrl_l.texi.
32805         * doc/posix-functions/iswctype_l.texi: Renamed from
32806         doc/glibc-functions/iswctype_l.texi.
32807         * doc/posix-functions/iswdigit_l.texi: Renamed from
32808         doc/glibc-functions/iswdigit_l.texi.
32809         * doc/posix-functions/iswgraph_l.texi: Renamed from
32810         doc/glibc-functions/iswgraph_l.texi.
32811         * doc/posix-functions/iswlower_l.texi: Renamed from
32812         doc/glibc-functions/iswlower_l.texi.
32813         * doc/posix-functions/iswprint_l.texi: Renamed from
32814         doc/glibc-functions/iswprint_l.texi.
32815         * doc/posix-functions/iswpunct_l.texi: Renamed from
32816         doc/glibc-functions/iswpunct_l.texi.
32817         * doc/posix-functions/iswspace_l.texi: Renamed from
32818         doc/glibc-functions/iswspace_l.texi.
32819         * doc/posix-functions/iswupper_l.texi: Renamed from
32820         doc/glibc-functions/iswupper_l.texi.
32821         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32822         doc/glibc-functions/iswxdigit_l.texi.
32823         * doc/posix-functions/isxdigit_l.texi: Renamed from
32824         doc/glibc-functions/isxdigit_l.texi.
32825         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32826         doc/glibc-functions/mbsnrtowcs.texi.
32827         * doc/posix-functions/mkdtemp.texi: Renamed from
32828         doc/glibc-functions/mkdtemp.texi.
32829         * doc/posix-functions/newlocale.texi: Renamed from
32830         doc/glibc-functions/newlocale.texi.
32831         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32832         doc/glibc-functions/nl_langinfo_l.texi.
32833         * doc/posix-functions/open_memstream.texi: Renamed from
32834         doc/glibc-functions/open_memstream.texi.
32835         * doc/posix-functions/opterr.texi: Renamed from
32836         doc/glibc-functions/opterr.texi.
32837         * doc/posix-functions/optind.texi: Renamed from
32838         doc/glibc-functions/optind.texi.
32839         * doc/posix-functions/optopt.texi: Renamed from
32840         doc/glibc-functions/optopt.texi.
32841         * doc/posix-functions/psignal.texi: Renamed from
32842         doc/glibc-functions/psignal.texi.
32843         * doc/posix-functions/scandir.texi: Renamed from
32844         doc/glibc-functions/scandir.texi.
32845         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32846         doc/glibc-functions/sched_get_priority_min.texi.
32847         * doc/posix-functions/signgam.texi: Renamed from
32848         doc/glibc-functions/signgam.texi.
32849         * doc/posix-functions/stpcpy.texi: Renamed from
32850         doc/glibc-functions/stpcpy.texi.
32851         * doc/posix-functions/stpncpy.texi: Renamed from
32852         doc/glibc-functions/stpncpy.texi.
32853         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32854         doc/glibc-functions/strcasecmp_l.texi.
32855         * doc/posix-functions/strcoll_l.texi: Renamed from
32856         doc/glibc-functions/strcoll_l.texi.
32857         * doc/posix-functions/strfmon_l.texi: Renamed from
32858         doc/glibc-functions/strfmon_l.texi.
32859         * doc/posix-functions/strftime_l.texi: Renamed from
32860         doc/glibc-functions/strftime_l.texi.
32861         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32862         doc/glibc-functions/strncasecmp_l.texi.
32863         * doc/posix-functions/strndup.texi: Renamed from
32864         doc/glibc-functions/strndup.texi.
32865         * doc/posix-functions/strnlen.texi: Renamed from
32866         doc/glibc-functions/strnlen.texi.
32867         * doc/posix-functions/strsignal.texi: Renamed from
32868         doc/glibc-functions/strsignal.texi.
32869         * doc/posix-functions/strxfrm_l.texi: Renamed from
32870         doc/glibc-functions/strxfrm_l.texi.
32871         * doc/posix-functions/timer_gettime.texi: Renamed from
32872         doc/glibc-functions/timer_gettime.texi.
32873         * doc/posix-functions/tolower_l.texi: Renamed from
32874         doc/glibc-functions/tolower_l.texi.
32875         * doc/posix-functions/toupper_l.texi: Renamed from
32876         doc/glibc-functions/toupper_l.texi.
32877         * doc/posix-functions/towctrans_l.texi: Renamed from
32878         doc/glibc-functions/towctrans_l.texi.
32879         * doc/posix-functions/towlower_l.texi: Renamed from
32880         doc/glibc-functions/towlower_l.texi.
32881         * doc/posix-functions/towupper_l.texi: Renamed from
32882         doc/glibc-functions/towupper_l.texi.
32883         * doc/posix-functions/uselocale.texi: Renamed from
32884         doc/glibc-functions/uselocale.texi.
32885         * doc/posix-functions/vdprintf.texi: Renamed from
32886         doc/glibc-functions/vdprintf.texi.
32887         * doc/posix-functions/wcpcpy.texi:
32888         Renamed from doc/glibc-functions/wcpcpy.texi.
32889         * doc/posix-functions/wcpncpy.texi: Renamed from
32890         doc/glibc-functions/wcpncpy.texi.
32891         * doc/posix-functions/wcscasecmp.texi: Renamed from
32892         doc/glibc-functions/wcscasecmp.texi.
32893         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32894         doc/glibc-functions/wcscasecmp_l.texi.
32895         * doc/posix-functions/wcscoll_l.texi: Renamed from
32896         doc/glibc-functions/wcscoll_l.texi.
32897         * doc/posix-functions/wcsdup.texi: Renamed from
32898         doc/glibc-functions/wcsdup.texi.
32899         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32900         doc/glibc-functions/wcsncasecmp.texi.
32901         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32902         doc/glibc-functions/wcsncasecmp_l.texi.
32903         * doc/posix-functions/wcsnlen.texi: Renamed from
32904         doc/glibc-functions/wcsnlen.texi.
32905         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32906         doc/glibc-functions/wcsnrtombs.texi.
32907         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32908         doc/glibc-functions/wcsxfrm_l.texi.
32909         * doc/posix-functions/wctrans_l.texi: Renamed from
32910         doc/glibc-functions/wctrans_l.texi.
32911         * doc/posix-functions/wctype_l.texi: Renamed from
32912         doc/glibc-functions/wctype_l.texi.
32913         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32914         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32915         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32916         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32917         these subsections.
32918         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32919         Remove sections.
32920
32921 2008-12-14  Bruno Haible  <bruno@clisp.org>
32922
32923         Update doc for POSIX:2008.
32924         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32925
32926 2008-12-14  Bruno Haible  <bruno@clisp.org>
32927
32928         Update doc for POSIX:2008.
32929         * doc/pastposix-functions/bcmp.texi: Renamed from
32930         doc/posix-functions/bcmp.texi.
32931         * doc/pastposix-functions/bcopy.texi: Renamed from
32932         doc/posix-functions/bcopy.texi.
32933         * doc/pastposix-functions/bsd_signal.texi: Renamed from
32934         doc/posix-functions/bsd_signal.texi.
32935         * doc/pastposix-functions/bzero.texi: Renamed from
32936         doc/posix-functions/bzero.texi.
32937         * doc/pastposix-functions/ecvt.texi: Renamed from
32938         doc/posix-functions/ecvt.texi.
32939         * doc/pastposix-functions/fcvt.texi: Renamed from
32940         doc/posix-functions/fcvt.texi.
32941         * doc/pastposix-functions/ftime.texi: Renamed from
32942         doc/posix-functions/ftime.texi.
32943         * doc/pastposix-functions/gcvt.texi: Renamed from
32944         doc/posix-functions/gcvt.texi.
32945         * doc/pastposix-functions/getcontext.texi: Renamed from
32946         doc/posix-functions/getcontext.texi.
32947         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32948         doc/posix-functions/gethostbyaddr.texi.
32949         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32950         doc/posix-functions/gethostbyname.texi.
32951         * doc/pastposix-functions/getwd.texi: Renamed from
32952         doc/posix-functions/getwd.texi.
32953         * doc/pastposix-functions/h_errno.texi: Renamed from
32954         doc/posix-functions/h_errno.texi.
32955         * doc/pastposix-functions/index.texi: Renamed from
32956         doc/posix-functions/index.texi.
32957         * doc/pastposix-functions/makecontext.texi: Renamed from
32958         doc/posix-functions/makecontext.texi.
32959         * doc/pastposix-functions/mktemp.texi: Renamed from
32960         doc/posix-functions/mktemp.texi.
32961         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32962         doc/posix-functions/pthread_attr_getstackaddr.texi.
32963         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32964         doc/posix-functions/pthread_attr_setstackaddr.texi.
32965         * doc/pastposix-functions/rindex.texi: Renamed from
32966         doc/posix-functions/rindex.texi.
32967         * doc/pastposix-functions/scalb.texi: Renamed from
32968         doc/posix-functions/scalb.texi.
32969         * doc/pastposix-functions/setcontext.texi: Renamed from
32970         doc/posix-functions/setcontext.texi.
32971         * doc/pastposix-functions/swapcontext.texi: Renamed from
32972         doc/posix-functions/swapcontext.texi.
32973         * doc/pastposix-functions/ualarm.texi: Renamed from
32974         doc/posix-functions/ualarm.texi.
32975         * doc/pastposix-functions/usleep.texi: Renamed from
32976         doc/posix-functions/usleep.texi.
32977         * doc/pastposix-functions/vfork.texi: Renamed from
32978         doc/posix-functions/vfork.texi.
32979         * doc/pastposix-functions/wcswcs.texi: Renamed from
32980         doc/posix-functions/wcswcs.texi.
32981         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32982         (Function Substitutes): Update.
32983
32984 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32985
32986         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32987         m4/strerror.m4.
32988
32989 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32990             Bruno Haible  <bruno@clisp.org>
32991
32992         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32993
32994 2008-12-13  Bruno Haible  <bruno@clisp.org>
32995
32996         * modules/strtoull (Depends-on): Remove unistd.
32997
32998 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32999
33000         * modules/strtoull (Depends-on): Add stdlib.
33001
33002 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33003
33004         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33005
33006 2008-12-10  Jim Meyering  <meyering@redhat.com>
33007
33008         gl_ASSERT: don't say assertions are disabled when they're not
33009         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33010         "checking whether to enable assertions... no", when they are in
33011         fact enabled.  This is solely a bug in the output of configure.
33012         In spite of saying "no", NDEBUG was not defined in that case.
33013         Also, as noted by Eric Blake, leave assertions enabled upon
33014         --enable-assert=INVALID.
33015
33016 2008-12-10  Bruno Haible  <bruno@clisp.org>
33017
33018         Change MODULES.html to refer to POSIX:2008 where possible.
33019         * MODULES.html.sh (POSIX2008_URL): New variable.
33020         (posix_headers): Remove sys/timeb, ucontext.
33021         (posix2001_headers): New variable.
33022         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33023         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33024         index, makecontext, mktemp, pthread_attr_getstackaddr,
33025         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33026         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33027         (posix2001_functions): New variable.
33028         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33029         otherwise.
33030
33031 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33032
33033         add missing include to parse-duration.c
33034         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33035         * modules/parse-duration (Depends-on): Add xalloc.
33036
33037         fix sed script reading maint.mk
33038         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33039         (syntax-check-rules): Use it.
33040
33041 2008-12-09  Bruno Haible  <bruno@clisp.org>
33042
33043         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33044         MacOS X 10.4/PowerPC.
33045         Reported by Simon Josefsson.
33046
33047 2008-12-08  Jim Meyering  <meyering@redhat.com>
33048
33049         work around mingw's lack of some S_IF definitions
33050         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33051         Reported by Simon Josefsson.
33052
33053 2008-12-08  Bruno Haible  <bruno@clisp.org>
33054
33055         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33056         applied to variables. Needed on MacOS X 10.4/PowerPC.
33057         Reported by Simon Josefsson.
33058
33059 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33060         and Eric Blake  <ebb9@byu.net>
33061
33062         assert: honor --enable-assert
33063         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33064         order to honor --enable-assert, rather than treating it as a
33065         synonym for --disable-assert.
33066
33067 2008-12-08  Jim Meyering  <meyering@redhat.com>
33068
33069         * lib/posixtm.c: Remove now-useless declaration of mktime.
33070
33071         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33072
33073 2008-12-07  Bruno Haible  <bruno@clisp.org>
33074
33075         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33076         test_once): Mark functions as static.
33077         * tests/test-tls.c (test_tls): Likewise.
33078
33079 2008-12-07  Bruno Haible  <bruno@clisp.org>
33080
33081         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33082         iconv_register_autodetect.
33083
33084 2008-12-07  Jim Meyering  <meyering@redhat.com>
33085
33086         posixtm.c: avoid a warning
33087         * lib/posixtm.c (posixtime): Don't initialize tm0.
33088         It's no longer needed to placate gcc4's -Wuninitialized,
33089         and the attempt to placate would elicit a new warning.
33090
33091         unicodeio.c: mark unused parameters
33092         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33093         (fallback_failure_callback): Likewise.
33094
33095 2008-12-07  Bruno Haible  <bruno@clisp.org>
33096
33097         * gnulib-tool (func_create_testdir): When building the tests
33098         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33099         Reported by Simon Josefsson.
33100
33101 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33102
33103         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33104
33105 2008-12-06  Bruno Haible  <bruno@clisp.org>
33106
33107         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33108         Suggested by Eric Blake.
33109
33110 2008-12-06  Bruno Haible  <bruno@clisp.org>
33111
33112         Fix a c-stack test failure on MacOS X.
33113         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33114         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33115         handler for SIGBUS as well.
33116         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33117         install a signal handler for SIGBUS as well.
33118         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33119
33120 2008-12-06  Bruno Haible  <bruno@clisp.org>
33121
33122         Advocacy documentation.
33123         * doc/gnulib-intro.texi (Benefits): New section.
33124         * doc/gnulib.texi: Update.
33125
33126 2008-12-06  Bruno Haible  <bruno@clisp.org>
33127
33128         Document the 'manywarnings' module.
33129         * doc/manywarnings.texi: New file.
33130         * doc/gnulib.texi: Include it.
33131
33132 2008-12-05  Eric Blake  <ebb9@byu.net>
33133
33134         tests: silence some gcc warnings
33135         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33136         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33137         type mismatches.
33138
33139 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33140             Bruno Haible  <bruno@clisp.org>
33141
33142         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33143
33144 2008-11-29  Jim Meyering  <meyering@redhat.com>
33145
33146         unicodeio.c: mark unused parameters
33147         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33148         (fallback_failure_callback): Likewise.
33149
33150         fts: fix a thinko
33151         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33152         (set_stat_type): Return S_IF*-valued "type" directly.
33153         Prompted by James Youngman's spotting a related bug.
33154         Confirmed by further testing through find.
33155
33156         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33157         * lib/fts.c (D_TYPE): Define.
33158         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33159         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33160         (s_ifmt_shift_bits): New function.
33161         (set_stat_type): New function.
33162         (fts_build): When not calling fts_stat, call set_stat_type
33163         to propagate dirent.d_type info to fts_read caller.
33164         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33165         fts_statp->st_mode type information may be valid.
33166
33167 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33168
33169         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33170         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33171         <sds@gnu.org>.
33172
33173 2008-11-20  Bruno Haible  <bruno@clisp.org>
33174
33175         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33176         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33177         INCLUDE_NEXT.
33178         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33179         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33180         * modules/math (Makefile.am): Substitute
33181         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33182         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33183
33184 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33185             Bruno Haible  <bruno@clisp.org>
33186
33187         * lib/stdint.in.h: Define all type macros so that their expansion is
33188         a single typedef'ed token. Fixes a compilation failure in Boost which
33189         does "using ::int8_t;".
33190
33191 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33192
33193         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33194         gl_MANYWARN_ALL_GCC.
33195         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33196         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33197         * modules/manywarnings: New file.
33198         * MODULES.html.sh: Mention manywarnings module.
33199
33200 2008-11-18  Bruno Haible  <bruno@clisp.org>
33201
33202         * doc/gnulib-tool.texi (Unit tests): New section.
33203
33204 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33205
33206         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33207         paths like 'lib/po/foo.po'.
33208
33209 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33210
33211         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33212         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33213
33214 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33215
33216         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33217         parameter works.
33218
33219 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33220
33221         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
33222
33223 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33224
33225         * modules/parse-duration-tests: New file.
33226         * tests/test-parse-duration.sh: New file.
33227         * tests/test-parse-duration.c: New file.
33228
33229         New module 'parse-duration'.
33230         * lib/parse-duration.h: New file.
33231         * lib/parse-duration.c: New file.
33232         * modules/parse-duration: New file.
33233
33234 2008-11-17  Bruno Haible  <bruno@clisp.org>
33235
33236         * tests/test-select-out.sh: Comment out the first pipe test.
33237         Reported by Simon Josefsson.
33238
33239 2008-11-17  Bruno Haible  <bruno@clisp.org>
33240
33241         * modules/getaddrinfo (Depends-on): Add servent, hostent.
33242         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
33243         gl_HOSTENT.
33244
33245 2008-11-17  Bruno Haible  <bruno@clisp.org>
33246
33247         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
33248         -lnetwork and -lnet. Needed for Haiku and BeOS.
33249
33250 2008-11-16  Bruno Haible  <bruno@clisp.org>
33251
33252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
33253
33254 2008-11-16  Bruno Haible  <bruno@clisp.org>
33255
33256         Avoid test failure on Haiku.
33257         * tests/test-fsync.c: Include <errno.h>.
33258         (main): Don't require that fsync (0) fails.
33259
33260 2008-11-15  Bruno Haible  <bruno@clisp.org>
33261
33262         New module 'hostent'.
33263         * modules/hostent: New file.
33264         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
33265
33266 2008-11-15  Bruno Haible  <bruno@clisp.org>
33267
33268         New module 'servent'.
33269         * modules/servent: New file.
33270         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33271
33272 2008-11-15  Bruno Haible  <bruno@clisp.org>
33273
33274         Avoid generating same test program with two different rules.
33275         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
33276         test-frexp to test-frexp-nolibm.
33277         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
33278         test-frexpl to test-frexpl-nolibm.
33279
33280 2008-11-15  Bruno Haible  <bruno@clisp.org>
33281
33282         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
33283         $(FREXPL_LIBM).
33284
33285 2008-11-15  Bruno Haible  <bruno@clisp.org>
33286
33287         * lib/netdb.in.h: Activate the definitions also when the system's
33288         <netdb.h> has 'struct addrinfo'.
33289         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
33290         EAI_OVERFLOW or AI_NUMERICSERV.
33291         * doc/posix-headers/netdb.texi: Document the problem.
33292
33293 2008-11-15  Bruno Haible  <bruno@clisp.org>
33294
33295         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
33296
33297         Make the 'sched' module work on platforms where <sched.h> exists but
33298         is incomplete (such as Haiku).
33299         * lib/sched.in.h; Include the system's <sched.h> if it exists.
33300         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
33301         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
33302         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
33303         HAVE_STRUCT_SCHED_PARAM.
33304         * modules/sched (Depends-on): Add include_next.
33305         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
33306         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
33307         * doc/posix-headers/sched.texi: Document the issue.
33308
33309 2008-11-13  Jim Meyering  <meyering@redhat.com>
33310
33311         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
33312         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
33313         test would fail due to the difference in the Report bugs to ...
33314         line.  The expected address is empty, "<>", while the actual
33315         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
33316
33317 2008-11-12  Bruno Haible  <bruno@clisp.org>
33318
33319         lstat: don't compile lstat.c on systems lacking lstat
33320         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
33321         which don't have lstat; this is handled by lib/sys_stat.in.h already.
33322         Reported by Daniel P. Berrange via Jim Meyering.
33323
33324 2008-11-12  Jim Meyering  <meyering@redhat.com>
33325
33326         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
33327
33328 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33329
33330         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
33331         instead.
33332
33333 2008-11-12  Bruno Haible  <bruno@clisp.org>
33334
33335         * lib/unicodeio.c: Include unistr.h.
33336         (utf8_wctomb): Remove function.
33337         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
33338
33339 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33340
33341         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
33342         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
33343         <bruno@clisp.org>.
33344         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
33345
33346 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33347
33348         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
33349         * doc/gnulib.texi: Add section for warnings.
33350
33351 2008-11-11  Bruno Haible  <bruno@clisp.org>
33352
33353         * lib/sockets.h: Add a comment.
33354
33355 2008-11-11  Karl Berry  <karl@gnu.org>
33356
33357         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
33358
33359 2008-11-11  Eric Blake  <ebb9@byu.net>
33360
33361         fdl.texi: avoid git symlinks
33362         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
33363
33364 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33365
33366         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
33367
33368 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33369
33370         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
33371         (gl_WARN_ADD): Substitute $2 if literal.
33372
33373 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33374
33375         * m4/warning.m4: Remove.
33376
33377 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33378
33379         * m4/warnings.m4: Almost complete rewrite. :-)
33380
33381 2008-11-10  Simon Josefsson  <simon@josefsson.org>
33382
33383         * modules/warnings: New module.
33384         * m4/warnings.m4: New file.
33385         * MODULES.html.sh: Mention warnings module.
33386         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
33387         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33388
33389 2008-11-10  Eric Blake  <ebb9@byu.net>
33390
33391         fdl.texi: make a symlink to the latest version
33392         * doc/standards.texi: Revert today's earlier change.
33393         * doc/fdl-1.2.texi: Rename from old fdl.texi...
33394         * doc/fdl.texi: ...and replace this with a symlink to the newer
33395         fdl-1.3.texi.
33396
33397 2008-11-10  Bruno Haible  <bruno@clisp.org>
33398
33399         * tests/test-select-fd.c (main): Accept the result file name as fourth
33400         argument.
33401         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
33402         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
33403
33404 2008-11-10  Bruno Haible  <bruno@clisp.org>
33405
33406         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
33407         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
33408         as autoconf-substituted macros.
33409         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
33410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
33411         gl_NETDB_H_DEFAULTS. Set these variables.
33412         * modules/netdb (Makefile.am): Substitute these variables.
33413
33414 2008-11-10  Eric Blake  <ebb9@byu.net>
33415
33416         standards.texi: include correct file for FDL 1.3
33417         * doc/standards.texi (GNU Free Documentation License): Change
33418         include file to pull in FDL 1.3, not 1.2.
33419
33420         fdl.texi: revert accidental change to license
33421         * doc/fdl.texi: This is FDL 1.2, not 1.3.
33422
33423 2008-11-10  Bruno Haible  <bruno@clisp.org>
33424
33425         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
33426         cross-compiling guesses also when the native compile gives no result.
33427
33428 2008-11-10  Bruno Haible  <bruno@clisp.org>
33429
33430         * lib/spawni.c (__spawni): Force variable into the stack.
33431
33432 2008-11-10  Bruno Haible  <bruno@clisp.org>
33433
33434         Add support for Haiku.
33435         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
33436         glibc and BeOS, but also on Haiku.
33437         * lib/fpurge.c (fpurge): Likewise.
33438         * lib/freadable.c (freadable): Likewise.
33439         * lib/freadahead.c (freadahead): Likewise.
33440         * lib/freading.c (freading): Likewise.
33441         * lib/freadptr.c (freadptr): Likewise.
33442         * lib/freadseek.c (freadptrinc): Likewise.
33443         * lib/fseeko.c (rpl_fseeko): Likewise.
33444         * lib/fseterr.c (fseterr): Likewise.
33445         * lib/fwritable.c (fwritable): Likewise.
33446         * lib/fwriting.c (fwriting): Likewise.
33447         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
33448
33449 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33450
33451         * lib/config.charset: Treat Haiku like BeOS.
33452
33453 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33454
33455         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
33456         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
33457
33458 2008-11-08  Bruno Haible  <bruno@clisp.org>
33459
33460         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
33461         AC_CACHE_CHECK.
33462
33463 2008-11-08  Bruno Haible  <bruno@clisp.org>
33464
33465         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
33466
33467 2008-11-08  Bruno Haible  <bruno@clisp.org>
33468
33469         * tests/test-select-fd.c: New file.
33470         * tests/test-select-in.sh: New file.
33471         * tests/test-select-out.sh: New file.
33472         * tests/test-select-stdin.c: New file.
33473         * modules/select-tests (Files): Add the new files.
33474         (Depends-on): Add gettimeofday.
33475         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
33476         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
33477         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
33478
33479 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
33480             Bruno Haible  <bruno@clisp.org>
33481
33482         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
33483
33484 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
33485
33486         * build-aux/pmccabe2html: Added support for C++ source files.
33487
33488 2008-11-05  Ben Pfaff  <blp@gnu.org>
33489
33490         Fix lib/close.c build on Windows.
33491         * modules/close (Files): Add lib/w32sock.h.
33492
33493 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
33494
33495         Accept Bison's NEWS format.
33496         * build-aux/announce-gen (print_news_deltas): Tweak
33497         $re_prefix.
33498
33499 2008-11-04  Bruno Haible  <bruno@clisp.org>
33500
33501         * modules/random_r (Maintainer): Add glibc.
33502
33503 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33504
33505         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
33506         by karl@freefriends.org (Karl Berry).
33507         * doc/alloca.texi: Likewise.
33508         * doc/c-ctype.texi: Likewise.
33509         * doc/c-strcase.texi: Likewise.
33510         * doc/c-strcaseeq.texi: Likewise.
33511         * doc/c-strcasestr.texi: Likewise.
33512         * doc/c-strstr.texi: Likewise.
33513         * doc/c-strtod.texi: Likewise.
33514         * doc/c-strtold.texi: Likewise.
33515         * doc/ctime.texi: Likewise.
33516         * doc/error.texi: Likewise.
33517         * doc/fdl.texi: Likewise.
33518         * doc/gcd.texi: Likewise.
33519         * doc/getdate.texi: Likewise.
33520         * doc/gnulib-intro.texi: Likewise.
33521         * doc/gnulib-tool.texi: Likewise.
33522         * doc/gnulib.texi: Likewise.
33523         * doc/inet_ntoa.texi: Likewise.
33524         * doc/maintain.texi: Likewise.
33525         * doc/make-stds.texi: Likewise.
33526         * doc/quote.texi: Likewise.
33527         * doc/regexprops-generic.texi: Likewise.
33528         * doc/standards.texi: Likewise.
33529         * doc/verify.texi: Likewise.
33530         * doc/visibility.texi: Likewise.
33531         * doc/gnulib.texi (GNU Free Documentation License): Include
33532         fdl-1.3.texi instead of fdl.texi.
33533
33534 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33535
33536         * doc/fdl-1.3.texi: New file, from
33537         <http://www.gnu.org/licenses/fdl-1.3.texi>.
33538         * modules/fdl-1.3: Add.
33539         * MODULES.html.sh: Add fdl-1.3.
33540
33541 2008-11-03  Bruno Haible  <bruno@clisp.org>
33542
33543         Make determination of absolute name of header file work with AIX xlc.
33544         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
33545         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
33546         preprocessing.
33547         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33548         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33549
33550 2008-11-03  Simon Josefsson  <simon@josefsson.org>
33551
33552         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
33553         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
33554         <ludo@gnu.org>.
33555
33556 2008-11-02  Bruno Haible  <bruno@clisp.org>
33557
33558         Mark 'strpbrk' obsolete.
33559         * modules/strpbrk (Status, Notice): New sections.
33560         * modules/strtok_r (Depends-on): Add strpbrk.
33561
33562 2008-11-02  Bruno Haible  <bruno@clisp.org>
33563
33564         Mark 'strdup' obsolete.
33565         * modules/strdup (Status, Notice): New sections.
33566         * modules/findprog (Depends-on): Add strdup.
33567         * modules/getaddrinfo (Depends-on): Likewise.
33568         * modules/localename (Depends-on): Likewise.
33569         * modules/relocatable-lib (Depends-on): Likewise.
33570         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33571         * modules/relocatable-prog (Depends-on): Likewise.
33572         * modules/trim (Depends-on): Likewise.
33573         * modules/unictype/gen-ctype (Depends-on): Likewise.
33574         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33575
33576 2008-11-02  Bruno Haible  <bruno@clisp.org>
33577
33578         Mark 'strcspn' obsolete.
33579         * modules/strcspn (Status, Notice): New sections.
33580
33581 2008-11-02  Bruno Haible  <bruno@clisp.org>
33582
33583         Mark 'rmdir' obsolete.
33584         * modules/rmdir (Status, Notice): New sections.
33585         * modules/clean-temp (Depends-on): Add rmdir.
33586         * modules/openat (Depends-on): Likewise.
33587
33588 2008-11-02  Bruno Haible  <bruno@clisp.org>
33589
33590         Mark 'raise' obsolete.
33591         * modules/raise (Status, Notice): New sections.
33592         (Include): Specify <signal.h>.
33593         * modules/stdio (Depends-on): Add raise.
33594         * modules/write (Depends-on): Likewise.
33595
33596 2008-11-02  Bruno Haible  <bruno@clisp.org>
33597
33598         Mark 'memset' obsolete.
33599         * modules/memset (Status, Notice): New sections.
33600
33601 2008-11-02  Bruno Haible  <bruno@clisp.org>
33602
33603         Mark 'memmove' obsolete.
33604         * modules/memmove (Status, Notice): New sections.
33605         * modules/argp (Depends-on): Add memmove.
33606         * modules/argz (Depends-on): Likewise.
33607         * modules/canonicalize (Depends-on): Likewise.
33608         * modules/canonicalize-lgpl (Depends-on): Likewise.
33609         * modules/fts (Depends-on): Likewise.
33610         * modules/getcwd (Depends-on): Likewise.
33611         * modules/human (Depends-on): Likewise.
33612         * modules/regex (Depends-on): Likewise.
33613         * modules/striconveh (Depends-on): Likewise.
33614         * modules/trim (Depends-on): Likewise.
33615         * modules/unistr/u8-move (Depends-on): Likewise.
33616         * modules/unistr/u16-move (Depends-on): Likewise.
33617         * modules/unistr/u32-move (Depends-on): Likewise.
33618
33619 2008-11-02  Bruno Haible  <bruno@clisp.org>
33620
33621         Mark 'memcpy' obsolete.
33622         * modules/memcpy (Status, Notice): New sections.
33623
33624 2008-11-02  Bruno Haible  <bruno@clisp.org>
33625
33626         Mark 'memcmp' obsolete.
33627         * modules/memcmp (Status, Notice): New sections.
33628         * modules/argmatch (Depends-on): Add memchr.
33629         * modules/backupfile (Depends-on): Likewise.
33630         * modules/c-strcasestr (Depends-on): Likewise.
33631         * modules/crypto/des (Depends-on): Likewise.
33632         * modules/csharpcomp (Depends-on): Likewise.
33633         * modules/fnmatch (Depends-on): Likewise.
33634         * modules/git-merge-changelog (Depends-on): Likewise.
33635         * modules/isnand (Depends-on): Likewise.
33636         * modules/isnand-nolibm (Depends-on): Likewise.
33637         * modules/isnanf (Depends-on): Likewise.
33638         * modules/isnanf-nolibm (Depends-on): Likewise.
33639         * modules/isnanl (Depends-on): Likewise.
33640         * modules/isnanl-nolibm (Depends-on): Likewise.
33641         * modules/mbchar (Depends-on): Likewise.
33642         * modules/memcoll (Depends-on): Likewise.
33643         * modules/quotearg (Depends-on): Likewise.
33644         * modules/regex (Depends-on): Likewise.
33645         * modules/relocatable-prog (Depends-on): Likewise.
33646         * modules/same (Depends-on): Likewise.
33647         * modules/signbit (Depends-on): Likewise.
33648         * modules/strcasestr-simple (Depends-on): Likewise.
33649         * modules/unictype/gen-ctype (Depends-on): Likewise.
33650         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33651         * modules/uniname/uniname (Depends-on): Likewise.
33652         * modules/unistr/u8-cmp (Depends-on): Likewise.
33653
33654 2008-11-02  Bruno Haible  <bruno@clisp.org>
33655
33656         Mark 'memchr' obsolete.
33657         * modules/memchr (Status, Notice): New sections.
33658         * modules/argp (Depends-on): Add memchr.
33659         * modules/base64 (Depends-on): Likewise.
33660         * modules/c-strcasestr (Depends-on): Likewise.
33661         * modules/chdir-long (Depends-on): Likewise.
33662         * modules/fnmatch (Depends-on): Likewise.
33663         * modules/getsubopt (Depends-on): Likewise.
33664         * modules/git-merge-changelog (Depends-on): Likewise.
33665         * modules/glob (Depends-on): Likewise.
33666         * modules/strcasestr-simple (Depends-on): Likewise.
33667         * modules/strnlen (Depends-on): Likewise.
33668
33669 2008-11-02  Bruno Haible  <bruno@clisp.org>
33670
33671         Mark 'atexit' obsolete.
33672         * modules/atexit (Status, Notice): New sections.
33673         * modules/chdir-long (Depends-on): Add atexit.
33674         * modules/wait-process (Depends-on): Likewise.
33675
33676 2008-11-02  Bruno Haible  <bruno@clisp.org>
33677
33678         * gnulib-tool: New option --with-obsolete.
33679         (func_usage): Document it.
33680         (func_modules_transitive_closure): Drop obsolete dependencies if
33681         incobsolete is not true.
33682         (func_import): Read and save the incobsolete variable to the cache.
33683
33684 2008-11-02  Bruno Haible  <bruno@clisp.org>
33685
33686         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33687         * gnulib-tool: New option --extract-status.
33688         (func_usage): Document it.
33689         (sed_extract_prog): Recognize it.
33690         (func_get_status): New function.
33691
33692 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33693
33694         * modules/sockets (License): Change from LGPL to LGPLv2+.
33695
33696 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33697
33698         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33699
33700 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33701
33702         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33703         Mention times and sys_times.
33704         * modules/sys_times, modules/sys_times-tests: New modules.
33705         * modules/times, modules/times-tests: Likewise
33706         * m4/sys_times_h.m4: New file.
33707         * lib/sys_times.in.h: Likewise
33708         * lib/times.c: Likewise.
33709         * tests/test-sys_times.c: Likewise.
33710         * tests/test-times.c: Likewise.
33711         * doc/posix-headers/sys_times.texi: Update.
33712         * doc/posix-functions/times.texi: Update.
33713
33714 2008-10-28  Jim Meyering  <meyering@redhat.com>
33715
33716         * modules/tempname (Depends-on): Add lstat.
33717
33718         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33719
33720 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33721
33722         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33723         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33724         using idiom used elsewhere in gnulib.
33725
33726 2008-10-27  Jim Meyering  <meyering@redhat.com>
33727
33728         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33729
33730 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33731
33732         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33733         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33734         programs.
33735         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33736
33737 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33738
33739         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33740
33741 2008-10-27  Bruno Haible  <bruno@clisp.org>
33742
33743         * tests/test-lstat.c: Include <stdio.h>.
33744
33745 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33746
33747         * modules/lstat-tests: New module.
33748         * tests/test-lstat.c: New file.
33749
33750 2008-10-26  Jim Meyering  <meyering@redhat.com>
33751
33752         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33753
33754 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33755             Bruno Haible  <bruno@clisp.org>
33756
33757         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33758         * modules/configmake (Include): Add a note that the include must come
33759         after all system headers.
33760         * lib/javaversion.c: Include configmake.h after all other includes.
33761
33762 2008-10-26  Bruno Haible  <bruno@clisp.org>
33763
33764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33765         HAVE_STRUCT_RANDOM_DATA to 1.
33766         (gl_STDLIB_H): Simplify.
33767
33768 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33769
33770         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33771         substitute HAVE_STRUCT_RANDOM_DATA.
33772         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33773         random_data.
33774         * modules/stdlib (Makefile.am): Substitute
33775         HAVE_STRUCT_RANDOM_DATA.
33776
33777 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33778
33779         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33780         * doc/gnulib-intro.texi (Copyright): Likewise.
33781
33782 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33783
33784         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33785         findings.
33786
33787 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33788             Bruno Haible  <bruno@clisp.org>
33789
33790         * lib/unistd.in.h: Include <winsock2.h>.
33791         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33792         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33793         Provide dummy declarations.
33794         (gethostname): Override.
33795         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33796         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33797         gl_PREREQ_SYS_H_WINSOCK2.
33798         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33799         * doc/posix-functions/gethostname.texi: More details.
33800
33801 2008-10-25  Bruno Haible  <bruno@clisp.org>
33802
33803         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33804         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33805         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33806
33807         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33808         here ...
33809         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33810         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33811         gl_UNISTD_H_DEFAULTS.
33812
33813 2008-10-25  Eric Blake  <ebb9@byu.net>
33814
33815         signbit: avoid spurious compiler failure
33816         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33817         declarations inside function.
33818
33819 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33820             Bruno Haible  <bruno@clisp.org>
33821
33822         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33823         * modules/random_r (Depends-on): Add stdint.
33824
33825 2008-10-24  Bruno Haible  <bruno@clisp.org>
33826
33827         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33828         Eggert.
33829         * modules/strerror (License): Likewise.
33830
33831 2008-10-24  Jim Meyering  <meyering@redhat.com>
33832
33833         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33834         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33835
33836 2008-10-24  Eric Blake  <ebb9@byu.net>
33837
33838         getgroups: fix compilation when getgroups is available
33839         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33840         but with <config.h> override of getgroups disabled.
33841
33842 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33843
33844         * doc/gnulib.texi (Header files): Add note about C++ problems.
33845         Explained by Bruno Haible <bruno@clisp.org>.
33846
33847 2008-10-23  Bruno Haible  <bruno@clisp.org>
33848
33849         Define a dummy SA_NODEFER macro on Interix.
33850         * lib/signal.in.h (SA_NODEFER): Define fallback.
33851         Reported by Aleksey Cheusov <cheusov@tut.by> via
33852         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33853
33854 2008-10-23  Bruno Haible  <bruno@clisp.org>
33855
33856         * modules/freadahead (License): Change to LGPLv2+.
33857         Suggested by Simon Josefsson.
33858
33859 2008-10-23  Jim Meyering  <meyering@redhat.com>
33860
33861         random_r: new module
33862         * modules/random_r: New file.
33863         * m4/random_r.m4: New file.
33864         * lib/random_r.c: New file, from glibc.
33865         * modules/random_r-tests: New file.
33866         * tests/test-random_r.c: New file.
33867         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33868          Declare.
33869         (RAND_MAX): Define.
33870         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33871         * modules/stdlib: Substitute them, too.
33872         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33873         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33874         * doc/glibc-functions/random_r.texi: Likewise.
33875         * doc/glibc-functions/setstate_r.texi: Likewise.
33876         * doc/glibc-functions/srandom_r.texi: Likewise.
33877         * config/srclist.txt: Mention it.
33878
33879 2008-10-23  David Lutterkort  <lutter@redhat.com>
33880
33881         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33882         link requirement
33883
33884 2008-10-23  Jim Meyering  <meyering@redhat.com>
33885
33886         selinux-h: mark parameters of stub functions as intentionally unused
33887         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33888         * lib/se-context.in.h: Likewise.
33889
33890 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33891
33892         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33893
33894 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33895
33896         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33897
33898 2008-10-22  Eric Blake  <ebb9@byu.net>
33899
33900         glthread/thread: avoid compiler warning
33901         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33902         Add unreachable abort to silence compiler.
33903
33904 2008-10-22  Eric Blake  <ebb9@byu.net>
33905
33906         netdb: also supply struct addrinfo for cygwin 1.5.x
33907         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33908         older cygwin.
33909         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33910         cygwin.
33911         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33912
33913 2008-10-22  Bruno Haible  <bruno@clisp.org>
33914
33915         * users.txt: Update entry about pspp.
33916
33917 2008-10-21  Bruno Haible  <bruno@clisp.org>
33918
33919         Simplification.
33920         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33921         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33922
33923         Simplification.
33924         * lib/ioctl.c (ioctl): Don't undefine.
33925         * lib/socket.c (socket): Don't undefine.
33926
33927         Remove unused module indicator macros.
33928         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33929         GNULIB_$1 as a C macro.
33930
33931         * doc/posix-functions/close.texi: Undo last change.
33932         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33933         Windows platforms.
33934
33935 2008-10-21  Bruno Haible  <bruno@clisp.org>
33936
33937         Add gethostname() declaration to <unistd.h>.
33938         * lib/unistd.in.h (gethostname): New declaration.
33939         * lib/gethostname.c: Include <unistd.h>.
33940         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33941         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33943         and HAVE_GETHOSTNAME.
33944         * modules/gethostname (Depends-on): Add unistd.
33945         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33946         (Include): Specify <unistd.h>.
33947         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33948         HAVE_GETHOSTNAME.
33949         * tests/test-gethostname.c: Include <unistd.h> first.
33950
33951 2008-10-21  Bruno Haible  <bruno@clisp.org>
33952
33953         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33954         * modules/select-tests (Depends-on): Likewise.
33955         Reported by Simon Josefsson.
33956
33957 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33958
33959         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33960         * lib/accept.c: New file, based on winsock.c.
33961         * lib/bind.c: New file, based on winsock.c.
33962         * lib/connect.c: New file, based on winsock.c.
33963         * lib/getpeername.c: New file, based on winsock.c.
33964         * lib/getsockname.c: New file, based on winsock.c.
33965         * lib/getsockopt.c: New file, based on winsock.c.
33966         * lib/ioctl.c: New file, based on winsock.c.
33967         * lib/listen.c: New file, based on winsock.c.
33968         * lib/recv.c: New file, based on winsock.c.
33969         * lib/recvfrom.c: New file, based on winsock.c.
33970         * lib/send.c: New file, based on winsock.c.
33971         * lib/sendto.c: New file, based on winsock.c.
33972         * lib/setsockopt.c: New file, based on winsock.c.
33973         * lib/shutdown.c: New file, based on winsock.c.
33974         * lib/socket.c: New file, based on winsock.c.
33975         * lib/w32sock.h: New file, based on winsock.c.
33976         * lib/winsock.c: Remove file.
33977         * modules/accept: Likewise.
33978         * modules/bind: Likewise.
33979         * modules/connect: Likewise.
33980         * modules/getpeername: Likewise.
33981         * modules/getsockname: Likewise.
33982         * modules/getsockopt: Likewise.
33983         * modules/ioctl: Likewise.
33984         * modules/listen: Likewise.
33985         * modules/recv: Likewise.
33986         * modules/recvfrom: Likewise.
33987         * modules/send: Likewise.
33988         * modules/sendto: Likewise.
33989         * modules/setsockopt: Likewise.
33990         * modules/shutdown: Likewise.
33991         * modules/socket: Use socket.c instead of winsock.c.
33992         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33993         * doc/posix-functions/accept.texi: Doc fix.
33994         * doc/posix-functions/bind.texi: Doc fix.
33995         * doc/posix-functions/close.texi: Doc fix.
33996         * doc/posix-functions/connect.texi: Doc fix.
33997         * doc/posix-functions/getpeername.texi: Doc fix.
33998         * doc/posix-functions/getsockname.texi: Doc fix.
33999         * doc/posix-functions/getsockopt.texi: Doc fix.
34000         * doc/posix-functions/ioctl.texi: Doc fix.
34001         * doc/posix-functions/listen.texi: Doc fix.
34002         * doc/posix-functions/recv.texi: Doc fix.
34003         * doc/posix-functions/recvfrom.texi: Doc fix.
34004         * doc/posix-functions/send.texi: Doc fix.
34005         * doc/posix-functions/sendto.texi: Doc fix.
34006         * doc/posix-functions/setsockopt.texi: Doc fix.
34007         * doc/posix-functions/shutdown.texi: Doc fix.
34008         * doc/posix-functions/socket.texi: Doc fix.
34009
34010 2008-10-20  Bruno Haible  <bruno@clisp.org>
34011
34012         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34013         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34014         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34015         as an alias for SIGABRT.
34016         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34017         (sigaction): Map it to SIGABRT.
34018         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34019
34020 2008-10-20  Bruno Haible  <bruno@clisp.org>
34021
34022         * lib/fts.c: Don't include lstat.h.
34023         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34024
34025         Move the lstat() declaration to <sys/stat.h>.
34026         * lib/lstat.h: Remove file.
34027         * lib/sys_stat.in.h: Add special invocation convention.
34028         (lstat): New declaration.
34029         * lib/lstat.c (orig_lstat): New function.
34030         (rpl_lstat): Use orig_lstat instead of lstat.
34031         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34032         AC_C_INLINE. Set REPLACE_LSTAT.
34033         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34034         and REPLACE_LSTAT.
34035         * modules/lstat (Files): Remove lib/lstat.h.
34036         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34037         (Include): Specify <sys/stat.h> instead of lstat.h.
34038         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34039         REPLACE_LSTAT.
34040         * NEWS: Mention the change.
34041
34042 2008-10-20  Bruno Haible  <bruno@clisp.org>
34043
34044         * modules/posix_spawn-tests: New file.
34045         * tests/test-posix_spawn3.c: New file.
34046
34047 2008-10-20  Bruno Haible  <bruno@clisp.org>
34048
34049         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34050         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34051         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34052         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34053         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34054
34055 2008-10-20  Bruno Haible  <bruno@clisp.org>
34056
34057         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34058         of posix_spawn on AIX 5.3.
34059
34060 2008-10-20  Bruno Haible  <bruno@clisp.org>
34061
34062         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34063
34064 2008-10-20  Bruno Haible  <bruno@clisp.org>
34065
34066         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34067         of AC_LANG_PROGRAM.
34068
34069 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34070
34071         * lib/netdb.in.h: Don't define GNU specific constants until they
34072         are supported or needed.  Reported by Bruno Haible
34073         <bruno@clisp.org>.
34074
34075 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34076
34077         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34078
34079 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34080
34081         * lib/getaddrinfo.h: Remove file.
34082         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34083         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34084         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34085         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34086         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34087         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34088         * tests/test-getaddrinfo.c: Likewise.
34089         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34090         * NEWS: Mention change.
34091
34092 2008-10-19  Bruno Haible  <bruno@clisp.org>
34093
34094         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34095
34096 2008-10-19  Bruno Haible  <bruno@clisp.org>
34097
34098         * lib/wait-process.c: Include simply <sys/wait.h>.
34099         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34100         WIFSTOPPED): Remove fallback definitions.
34101         * modules/wait-process (Depends-on): Add sys_wait.
34102
34103         New module 'sys_wait'.
34104         * modules/sys_wait: New file.
34105         * lib/sys_wait.in.h: New file, partially copied from
34106         lib/wait-process.c.
34107         * m4/sys_wait_h.m4: New file.
34108         * doc/posix-headers/sys_wait.texi: Mention the new module.
34109
34110 2008-10-19  Bruno Haible  <bruno@clisp.org>
34111
34112         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34113
34114 2008-10-19  Bruno Haible  <bruno@clisp.org>
34115
34116         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34117         * lib/wait-process.c (WAIT_T): Remove type.
34118         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34119         (wait_subprocess): Update.
34120
34121 2008-10-19  Bruno Haible  <bruno@clisp.org>
34122
34123         New module 'atoll'.
34124         * modules/atoll: New file.
34125         * lib/stdlib.in.h (atoll): New declaration.
34126         * lib/atoll.c: New file, from glibc with modifications.
34127         * m4/atoll.m4: New file.
34128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34129         HAVE_ATOLL.
34130         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34131         * doc/posix-functions/atoll.texi: Mention the new module.
34132
34133 2008-10-19  Bruno Haible  <bruno@clisp.org>
34134
34135         Add strtoull() declaration to <stdlib.h>.
34136         * lib/stdlib.in.h (strtoull): New declaration.
34137         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34138         Set HAVE_STRTOULL.
34139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34140         HAVE_STRTOULL.
34141         * modules/strtoull (Depends-on): Add stdlib.
34142         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34143         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34144         HAVE_STRTOULL.
34145
34146 2008-10-19  Bruno Haible  <bruno@clisp.org>
34147
34148         Add strtoll() declaration to <stdlib.h>.
34149         * lib/stdlib.in.h (strtoll): New declaration.
34150         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34151         Set HAVE_STRTOLL.
34152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34153         HAVE_STRTOLL.
34154         * modules/strtoll (Depends-on): Add stdlib.
34155         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34156         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34157
34158 2008-10-19  Bruno Haible  <bruno@clisp.org>
34159
34160         * modules/bcopy (Depends-on): Add strings.
34161         (Include): Specify <strings.h>.
34162
34163 2008-10-19  Bruno Haible  <bruno@clisp.org>
34164
34165         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34166
34167 2008-10-19  Bruno Haible  <bruno@clisp.org>
34168
34169         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34170         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34171         mingw.
34172
34173 2008-10-19  Bruno Haible  <bruno@clisp.org>
34174
34175         * lib/atanl.c: Don't include isnanl.h.
34176         * lib/cosl.c: Likewise.
34177         * lib/ldexpl.c: Likewise.
34178         * lib/logl.c: Likewise.
34179         * lib/sinl.c: Likewise.
34180         * lib/sqrtl.c: Likewise.
34181         * lib/tanl.c: Likewise.
34182
34183         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34184         * lib/isnanf.h: Remove file.
34185         * lib/isnand.h: Remove file.
34186         * lib/isnanl.h: Remove file.
34187         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34188         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34189         macros.
34190         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34191         HAVE_ISNANF, don't define it as a C macro.
34192         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34193         HAVE_ISNAND, don't define it as a C macro.
34194         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34195         HAVE_ISNANL, don't define it as a C macro.
34196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34197         HAVE_ISNAN[FDL].
34198         * modules/isnanf (Files): Remove lib/isnanf.h.
34199         (Depends-on): Add math.
34200         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34201         (Include): Specify <math.h> instead of isnanf.h.
34202         * modules/isnand (Files): Remove lib/isnand.h.
34203         (Depends-on): Add math.
34204         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34205         (Include): Specify <math.h> instead of isnand.h.
34206         * modules/isnanl (Files): Remove lib/isnanl.h.
34207         (Depends-on): Add math.
34208         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34209         (Include): Specify <math.h> instead of isnanl.h.
34210         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34211         HAVE_ISNAN[FDL].
34212         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34213         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34214         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34215         * NEWS: Mention the change.
34216
34217 2008-10-18  Bruno Haible  <bruno@clisp.org>
34218
34219         Add getusershell(), setusershell(), endusershell() declarations to
34220         <unistd.h>.
34221         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
34222         declarations.
34223         * lib/getusershell.c: Include unistd.h.
34224         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
34225         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34226         HAVE_GETUSERSHELL.
34227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
34228         and HAVE_GETUSERSHELL.
34229         * modules/getusershell (Depends-on): Add unistd, extensions.
34230         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34231         (Include): Specify <unistd.h>.
34232         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
34233         HAVE_GETUSERSHELL.
34234
34235 2008-10-18  Bruno Haible  <bruno@clisp.org>
34236
34237         Add a getloadavg() declaration to <stdlib.h>.
34238         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
34239         getloadavg declaration.
34240         (getloadavg): New declaration.
34241         * lib/getloadavg.c: Include <stdlib.h> first.
34242         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
34243         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
34244         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
34245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
34246         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34247         * modules/getloadavg (Depends-on): Add stdlib, extensions.
34248         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34249         (Include): Specify <stdlib.h>.
34250         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
34251         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34252
34253 2008-10-18  Bruno Haible  <bruno@clisp.org>
34254
34255         * lib/dirchownmod.c: Don't include lchmod.h.
34256
34257         Move the lchmod() declaration to <sys/stat.h>.
34258         * lib/lchmod.h: Remove file.
34259         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
34260         (lchmod): New declaration, moved here from lib/lchown.h.
34261         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
34262         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
34263         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
34264         and HAVE_LCHMOD.
34265         * modules/lchmod (Files): Remove lib/lchmod.h.
34266         (Depends-on): Add sys_stat, extensions.
34267         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34268         (Include): Specify <sys/stat.h> instead of lchmod.h.
34269         * modules/sys_stat (Depends-on): Add link-warning.
34270         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
34271         definition of GL_LINK_WARNING.
34272         * NEWS: Mention the change.
34273
34274 2008-10-18  Bruno Haible  <bruno@clisp.org>
34275
34276         * lib/fchdir.c: Don't include dirfd.h.
34277         * lib/fts.c: Likewise.
34278         * lib/getcwd.c: Likewise.
34279         * lib/glob.c: Likewise.
34280
34281         Move the dirfd() declaration to <dirent.h>.
34282         * lib/dirfd.h: Remove file.
34283         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
34284         (dirfd): New declaration.
34285         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
34286         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
34287         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
34288         HAVE_DECL_DIRFD.
34289         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
34290         HAVE_DECL_DIRFD.
34291         * modules/dirfd (Files): Remove lib/dirfd.h.
34292         (Depends-on): Add dirent, extensions.
34293         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
34294         (Include): Specify <dirent.h> instead of dirfd.h.
34295         * modules/dirent (Depends-on): Add link-warning.
34296         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
34297         definition of GL_LINK_WARNING.
34298         * NEWS: Mention the change.
34299
34300 2008-10-18  Bruno Haible  <bruno@clisp.org>
34301
34302         Move the euidaccess() declaration to <unistd.h>.
34303         * lib/euidaccess.h: Remove file.
34304         * lib/unistd.in.h (euidaccess): New declaration.
34305         * lib/euidaccess.c: Don't include euidaccess.h.
34306         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
34307         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
34308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
34309         and HAVE_EUIDACCESS.
34310         * modules/euidaccess (Files): Remove lib/euidaccess.h.
34311         (Depends-on): Add unistd.
34312         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34313         (Include): Specify <unistd.h> instead of euidaccess.h.
34314         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
34315         HAVE_EUIDACCESS.
34316         * NEWS: Mention the change.
34317
34318 2008-10-18  Bruno Haible  <bruno@clisp.org>
34319
34320         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
34321
34322         Move the getdomainname() declaration to <unistd.h>.
34323         * lib/getdomainname.h: Remove file.
34324         * lib/unistd.in.h (getdomainname): New declaration.
34325         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
34326         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
34327         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34328         HAVE_GETDOMAINNAME.
34329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34330         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
34331         * modules/getdomainname (Files): Remove lib/getdomainname.h.
34332         (Depends-on): Add unistd, extensions.
34333         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34334         (Includes): Specify <unistd.h> instead of getdomainname.h.
34335         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
34336         HAVE_GETDOMAINNAME.
34337         * NEWS: Mention the change.
34338
34339 2008-10-18  Bruno Haible  <bruno@clisp.org>
34340
34341         * modules/dirent: New file.
34342         * m4/dirent_h.m4: New file.
34343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
34344         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
34345         * modules/fchdir (Files): Remove lib/dirent.in.h.
34346         (Depends-on): Add dirent.
34347         (Makefile.am): Move rules to modules/dirent.
34348         * doc/posix-headers/dirent.texi: Mention the new module.
34349
34350 2008-10-18  Bruno Haible  <bruno@clisp.org>
34351
34352         Avoid -Wunused-parameter warnings in public gnulib header files.
34353         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
34354         macro.
34355         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
34356
34357 2008-10-18  Bruno Haible  <bruno@clisp.org>
34358
34359         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
34360         * doc/glibc-functions/error.texi: Mention the module 'error'.
34361         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
34362         * doc/glibc-functions/getdomainname.texi: Mention the module
34363         'getdomainname'.
34364         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
34365         * doc/glibc-functions/getpagesize.texi: Mention the module
34366         'getpagesize'.
34367         * doc/glibc-functions/getusershell.texi: Mention the module
34368         'getusershell'.
34369         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
34370         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
34371         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
34372         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
34373         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
34374         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
34375         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
34376         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
34377         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
34378         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
34379         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
34380         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
34381         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
34382         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
34383
34384 2008-10-17  Bruno Haible  <bruno@clisp.org>
34385
34386         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
34387         HP-UX and IRIX, use -0.0L.
34388         * tests/test-ceill.c (minus_zero): Likewise.
34389         * tests/test-floorl.c (minus_zero): Likewise.
34390         * tests/test-frexpl.c (minus_zero): Likewise.
34391         * tests/test-isnan.c (minus_zerol): Likewise.
34392         * tests/test-isnanl.h (minus_zero): Likewise.
34393         * tests/test-ldexpl.c (minus_zero): Likewise.
34394         * tests/test-roundl.c (minus_zero): Likewise.
34395         * tests/test-signbit.c (minus_zerol): Likewise.
34396         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34397         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34398         * tests/test-truncl.c (minus_zero): Likewise.
34399         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34400         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34401         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
34402         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34403
34404 2008-10-17  Bruno Haible  <bruno@clisp.org>
34405
34406         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
34407         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
34408         that it gets activated only for gcc >= 3.0.
34409         * lib/dirent.in.h: Likewise.
34410         * lib/errno.in.h: Likewise.
34411         * lib/fcntl.in.h: Likewise.
34412         * lib/float.in.h: Likewise.
34413         * lib/iconv.in.h: Likewise.
34414         * lib/inttypes.in.h: Likewise.
34415         * lib/locale.in.h: Likewise.
34416         * lib/math.in.h: Likewise.
34417         * lib/netdb.in.h: Likewise.
34418         * lib/netinet_in.in.h: Likewise.
34419         * lib/search.in.h: Likewise.
34420         * lib/signal.in.h: Likewise.
34421         * lib/spawn.in.h: Likewise.
34422         * lib/stdarg.in.h: Likewise.
34423         * lib/stdint.in.h: Likewise.
34424         * lib/stdio.in.h: Likewise.
34425         * lib/stdlib.in.h: Likewise.
34426         * lib/string.in.h: Likewise.
34427         * lib/strings.in.h: Likewise.
34428         * lib/sys_file.in.h: Likewise.
34429         * lib/sys_ioctl.in.h: Likewise.
34430         * lib/sys_select.in.h: Likewise.
34431         * lib/sys_socket.in.h: Likewise.
34432         * lib/sys_stat.in.h: Likewise.
34433         * lib/sys_time.in.h: Likewise.
34434         * lib/sysexits.in.h: Likewise.
34435         * lib/time.in.h: Likewise.
34436         * lib/unistd.in.h: Likewise.
34437         * lib/wchar.in.h: Likewise.
34438         * lib/wctype.in.h: Likewise.
34439         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34440
34441 2008-10-17  Jim Meyering  <meyering@redhat.com>
34442
34443         ignore-value: don't depend on inline module
34444         * modules/ignore-value (Depends-on): Remove 'inline'.
34445         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
34446         Suggestion from Bruno Haible.
34447
34448 2008-10-17  Bruno Haible  <bruno@clisp.org>
34449
34450         New implementation of condition variables for Win32.
34451         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
34452         (gl_linked_waitqueue_t): New type.
34453         (gl_cond_t): Use it.
34454         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
34455         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
34456         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
34457         (glthread_cond_init_func, glthread_cond_wait_func,
34458         glthread_cond_timedwait_func, glthread_cond_signal_func,
34459         glthread_cond_broadcast_func, glthread_cond_destroy_func):
34460         Reimplemented on the basis of gl_linked_waitqueue_t.
34461         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
34462         gl_waitqueue_t.
34463         (gl_rwlock_t): Update.
34464         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
34465
34466 2008-10-17  Simon Josefsson  <simon@josefsson.org>
34467
34468         * modules/recvfrom (Depends-on): Add dependency on getpeername.
34469         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34470
34471 2008-10-17  Jim Meyering  <meyering@redhat.com>
34472
34473         ignore-value: new module
34474         * modules/ignore-value: New file.
34475         * lib/ignore-value.h: New file.
34476         * MODULES.html.sh (Compiler warning management): New section,
34477         just for this module.  More to come.
34478
34479 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34480
34481         open-safer.c: avoid 'signed and unsigned in conditional...' warning
34482         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
34483         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
34484
34485 2008-10-16  Jim Meyering  <meyering@redhat.com>
34486
34487         openat-die.c: avoid 'no previous prototype' warning
34488         * lib/openat-die.c: Include "openat.h".
34489         Reported by Reuben Thomas <rrt@sc3d.org>.
34490
34491 2008-10-16  Simon Josefsson  <simon@josefsson.org>
34492
34493         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
34494         * lib/netdb.in.h: Fix typo.
34495         Reported by Bruno Haible  <bruno@clisp.org>
34496
34497         * lib/netdb.in.h: Include sys/socket.h for platforms without
34498         netdb.h, to get structures like hostent on MinGW.
34499         * modules/netdb (Depends-on): Add sys_socket.
34500
34501 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34502
34503         * modules/netdb, modules/netdb-tests: New file.
34504         * m4/netdb_h.m4: New file.
34505         * lib/netdb.in.h: Add, currently just an empty file pending
34506         definitions.
34507         * tests/test-netdb.c: New file.
34508         * doc/posix-headers/netdb.texi: Mention that we replace it if
34509         needed.
34510         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34511         netdb.
34512
34513 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34514
34515         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
34516         with code.
34517
34518 2008-10-13  Bruno Haible  <bruno@clisp.org>
34519
34520         * lib/glthread/cond.c (glthread_cond_wait_func,
34521         glthread_cond_timedwait_func): Add a comment.
34522
34523 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34524
34525         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
34526         * tests/test-select.c: Likewise,
34527
34528 2008-10-13  Bruno Haible  <bruno@clisp.org>
34529
34530         * lib/glthread/cond.c (glthread_cond_wait_func,
34531         glthread_cond_timedwait_func): Fix variable name.
34532         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34533
34534 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
34535
34536         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
34537         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
34538         struct sockaddr.sa_len.
34539         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
34540
34541 2008-10-13  Simon Josefsson  <simon@josefsson.org>
34542
34543         * build-aux/pmccabe2html: Add css and css_url parameters.
34544
34545 2008-10-12  Bruno Haible  <bruno@clisp.org>
34546
34547         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
34548         calling aclx_get.
34549         Reported by Rainer Tammer <tammer@tammer.net>.
34550
34551 2008-10-12  Bruno Haible  <bruno@clisp.org>
34552
34553         Use msvcrt aware primitives for creation/termination of Win32 threads.
34554         * lib/glthread/thread.c: Include <process.h>.
34555         (glthread_create_func): Use _beginthreadex instead of CreateThread.
34556         (wrapper_func): Update signature.
34557         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34558
34559 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34560             Bruno Haible  <bruno@clisp.org>
34561
34562         Provide a Win32 implementation of the 'cond' module.
34563         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34564         * lib/glthread/cond.c (glthread_cond_init_func,
34565         glthread_cond_wait_func, glthread_cond_timedwait_func,
34566         glthread_cond_signal_func, glthread_cond_broadcast_func,
34567         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34568         * modules/cond (Dependencies): Add gettimeofday.
34569
34570 2008-10-11  Bruno Haible  <bruno@clisp.org>
34571
34572         Make sleep work on older versions of mingw.
34573         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34574         only whether it exists.
34575         * doc/posix-functions/sleep.texi: Mention the problem with older
34576         versions of mingw.
34577
34578 2008-10-11  Bruno Haible  <bruno@clisp.org>
34579
34580         New module 'shutdown'.
34581         * modules/shutdown: New file.
34582         * lib/sys_socket.in.h (shutdown): New declaration.
34583         * lib/winsock.c (shutdown): New function.
34584         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34585         GNULIB_SHUTDOWN.
34586         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34587         * doc/posix-functions/shutdown.texi: Document the new module.
34588
34589 2008-10-11  Jim Meyering  <meyering@redhat.com>
34590
34591         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34592
34593 2008-10-11  Bruno Haible  <bruno@clisp.org>
34594
34595         New module 'fclose'.
34596         * modules/fclose: New file.
34597         * lib/stdio.in.h (fclose): New declaration.
34598         * lib/fclose.c: New file.
34599         * m4/fclose.m4: New file.
34600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34601         REPLACE_FCLOSE.
34602         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34603         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34604         REPLACE_FCLOSE.
34605         * modules/close (Depends-on): fclose.
34606         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34607
34608 2008-10-11  Bruno Haible  <bruno@clisp.org>
34609
34610         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34611         set errno and don't call _close.
34612
34613 2008-10-10  Bruno Haible  <bruno@clisp.org>
34614
34615         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34616         ACL, not afterwards. Fixes test failure on Cygwin.
34617
34618 2008-10-09  Ben Pfaff  <blp@gnu.org>
34619
34620         * build-aux/announce-gen: Fix gnulib version related part of usage
34621         message.  Die with a useful error message if no tarballs are
34622         found.
34623
34624 2008-10-10  Jim Meyering  <meyering@redhat.com>
34625
34626         bootstrap: use git's --depth=N option only if it's supported
34627         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34628         recognize the --depth option.  Reported by Pádraig Brady.
34629
34630 2008-10-09  Bruno Haible  <bruno@clisp.org>
34631
34632         New module 'ioctl'.
34633         * modules/ioctl: New file.
34634         * lib/sys_socket.in.h (ioctl): Remove declaration.
34635         * lib/winsock.c: Include <sys/ioctl.h>.
34636         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34637         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34638         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34639         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34640         * doc/posix-functions/ioctl.texi: Mention the new module.
34641
34642 2008-10-09  Bruno Haible  <bruno@clisp.org>
34643
34644         New module 'sys_ioctl'.
34645         * lib/sys_ioctl.in.h: New file.
34646         * m4/sys_ioctl_h.m4: New file.
34647         * modules/sys_ioctl: New file.
34648         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34649
34650 2008-10-09  Bruno Haible  <bruno@clisp.org>
34651
34652         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34653         * lib/winsock.c: Include <stdarg.h>.
34654         (rpl_ioctl): Change to second argument 'int' and then varargs.
34655
34656 2008-10-09  Bruno Haible  <bruno@clisp.org>
34657
34658         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34659         when the sys_socket module is present and the system has <winsock2.h>.
34660
34661 2008-10-09  Bruno Haible  <bruno@clisp.org>
34662
34663         * doc/posix-functions/close.texi: Mention module 'close' instead of
34664         module 'sys_socket'.
34665
34666 2008-10-09  Bruno Haible  <bruno@clisp.org>
34667
34668         * doc/glibc-headers/sys_ioctl.texi: New file.
34669         * doc/gnulib.texi: Include it.
34670
34671 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34672             Bruno Haible  <bruno@clisp.org>
34673
34674         Combine the two replacements of 'close'.
34675         * lib/sys_socket.in.h (close): Define to a reminder to include
34676         <unistd.h>.
34677         (_gl_close_fd_maybe_socket): New declaration.
34678         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34679         * lib/winsock.c (close): Remove undefinition.
34680         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34681         needed for the gnulib module 'close'.
34682         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34683         define to an error symbol or to a warning, if suitable.
34684         * lib/close.c: Include <sys/socket.h>.
34685         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34686         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34687         UNISTD_H_HAVE_WINSOCK2_H.
34688         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34690         UNISTD_H_HAVE_WINSOCK2_H.
34691         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34692         (configure.ac): Set a module indicator.
34693         (Makefile.am): Substitute GNULIB_CLOSE.
34694         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34695         * modules/poll-tests (Depends-on): Add close.
34696         * modules/select-tests (Depends-on): Likewise.
34697
34698 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34699             Bruno Haible  <bruno@clisp.org>
34700
34701         New module 'close'.
34702         * modules/close: New file.
34703         * lib/unistd.in.h (close): Move declaration out of the
34704         FCHDIR_REPLACEMENT scope.
34705         (_gl_unregister_fd): New declaration.
34706         * lib/close.c: New file.
34707         * lib/fchdir.c (rpl_close): Remove function.
34708         * m4/close.m4: New file.
34709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34710         close.
34711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34712         REPLACE_CLOSE.
34713         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34714         REPLACE_CLOSE.
34715         * modules/fchdir (Depends-on): Add close.
34716
34717 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34718             Bruno Haible  <bruno@clisp.org>
34719
34720         * lib/fcntl.in.h (open): Simplify conditionals.
34721         (_gl_register_fd): New declaration.
34722         * lib/fchdir.c (rpl_open): Remove function.
34723         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34724         also.
34725         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34727         open.
34728
34729 2008-10-09  Jim Meyering  <meyering@redhat.com>
34730
34731         GNUmakefile: use the more name-space-friendly "_version"
34732         * top/GNUmakefile (_dummy): Update.
34733         (_version): Rename from "version".
34734
34735 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34736             Bruno Haible  <bruno@clisp.org>
34737
34738         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34739         rpl_close.
34740         (_gl_register_fd): New function, extracted from rpl_open.
34741         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34742         (rpl_open, rpl_opendir): Use _gl_register_fd.
34743
34744 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34745
34746         Fix organization of 'open' replacement.
34747         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34748         (gl_FUNC_OPEN): Use it.
34749         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34750
34751 2008-10-08  Bruno Haible  <bruno@clisp.org>
34752
34753         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34754
34755 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34756
34757         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34758         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34759         listen).
34760
34761 2008-10-08  Eric Blake  <ebb9@byu.net>
34762
34763         GNUmakefile: add 'make version' target
34764         * top/GNUmakefile (_curr-ver): Split version update rules...
34765         (version): ...into a target.
34766
34767 2008-10-07  Bruno Haible  <bruno@clisp.org>
34768
34769         Use a more portable replacement expression for -0.0L.
34770         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34771         instead of -0.0L. Fix m4 quotation.
34772
34773         * tests/test-signbit.c: Include <float.h>.
34774         (minus_zero): New variable.
34775         (test_signbitl): Use minus_zero instead of -zero.
34776         * modules/signbit-tests (Depends-on): Add float.
34777
34778         * tests/test-ceill.c: Include <float.h>.
34779         (zero): Remove variable.
34780         (minus_zero): New variable.
34781         (main): Use minus_zero instead of -zero.
34782         * modules/ceill-tests (Depends-on): Add float.
34783
34784         * tests/test-floorl.c: Include <float.h>.
34785         (zero): Remove variable.
34786         (minus_zero): New variable.
34787         (main): Use minus_zero instead of -zero.
34788         * modules/floorl-tests (Depends-on): Add float.
34789
34790         * tests/test-roundl.c: Include <float.h>.
34791         (zero): Remove variable.
34792         (minus_zero): New variable.
34793         (main): Use minus_zero instead of -zero.
34794         * modules/roundl-tests (Depends-on): Add float.
34795
34796         * tests/test-truncl.c: Include <float.h>.
34797         (zero): Remove variable.
34798         (minus_zero): New variable.
34799         (main): Use minus_zero instead of -zero.
34800         * modules/truncl-tests (Depends-on): Add float.
34801
34802         * tests/test-frexpl.c (zero): Remove variable.
34803         (minus_zero): New variable.
34804         (main): Use minus_zero instead of -zero.
34805         * modules/frexpl-tests (Depends-on): Add float.
34806
34807         * tests/test-isnan.c (zerol): Remove variable.
34808         (minus_zerol): New variable.
34809         (test_long_double): Use minus_zerol instead of -zerol.
34810         * modules/isnan-tests (Depends-on): Add float.
34811
34812         * tests/test-isnanl.h (zero): Remove variable.
34813         (minus_zero): New variable.
34814         (main): Use minus_zero instead of -zero.
34815         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34816         * modules/isnanl-tests (Depends-on): Add float.
34817
34818         * tests/test-ldexpl.c (zero): Remove variable.
34819         (minus_zero): New variable.
34820         (main): Use minus_zero instead of -zero.
34821         * modules/ldexpl-tests (Depends-on): Add float.
34822
34823         * tests/test-snprintf-posix.h (zerol): Remove variable.
34824         (minus_zerol): New variable.
34825         (test_function): Use minus_zerol instead of -zerol.
34826         * modules/snprintf-posix-tests (Depends-on): Add float.
34827         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34828
34829         * tests/test-sprintf-posix.h (zerol): Remove variable.
34830         (minus_zerol): New variable.
34831         (test_function): Use minus_zerol instead of -zerol.
34832         * modules/sprintf-posix-tests (Depends-on): Add float.
34833         * modules/vsprintf-posix-tests (Depends-on): Add float.
34834
34835         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34836         (minus_zerol): New variable.
34837         (test_function): Use minus_zerol instead of -zerol.
34838         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34839
34840         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34841         (minus_zerol): New variable.
34842         (test_function): Use minus_zerol instead of -zerol.
34843         * modules/vasprintf-posix-tests (Depends-on): Add float.
34844
34845 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34846
34847         * MODULES.html.sh (Support for building documentation): Mention
34848         pmccabe2html.  Sort entries.
34849
34850         Add pmccabe2html module, from gnupdf.
34851         * build-aux/pmccabe.css: New file.
34852         * build-aux/pmccabe2html: New file.
34853         * m4/pmccabe2html.m4: New file.
34854         * modules/pmccabe2html: New file.
34855
34856 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34857
34858         flock: new module
34859         * MODULES.html.sh: Add to list of modules.
34860         * lib/flock.c: flock implementation for Windows and Unix systems
34861         which have fcntl.
34862         * doc/glibc-functions/flock.texi: Update documentation.
34863         * lib/sys_file.in.h: <sys/file.h> header file.
34864         * m4/flock.m4: M4 macros.
34865         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34866         * modules/flock: flock module.
34867         * modules/flock-tests: flock tests module.
34868         * modules/sys_file: sys/file.h module.
34869         * tests/test-flock.c: test suite for flock.
34870
34871 2008-10-06  Jim Meyering  <meyering@redhat.com>
34872
34873         bootstrap: check for LT_INIT more portably still ;-)
34874         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34875         Spotted by Bruno Haible.
34876
34877 2008-10-06  Eric Blake  <ebb9@byu.net>
34878
34879         test-signbit: avoid tripping Irix cc bug on -0.0L
34880         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34881         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34882         entire testsuite consistent and avoids an Irix 6.2 bug.
34883
34884 2008-10-05  Bruno Haible  <bruno@clisp.org>
34885             Jim Meyering  <jim@meyering.net>
34886
34887         Add an option for ignoring EPIPE during close_stdout.
34888         * lib/closeout.h: Include <stdbool.h>.
34889         (close_stdout_set_ignore_EPIPE): New declaration.
34890         * lib/closeout.c: Include <stdbool.h>.
34891         (ignore_EPIPE): New variable.
34892         (close_stdout_set_ignore_EPIPE): New function.
34893         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34894         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34895         failure.
34896         * modules/closeout (Depends-on): Add stdbool.
34897
34898 2008-10-05  Bruno Haible  <bruno@clisp.org>
34899
34900         * modules/accept: New file.
34901         * modules/bind: New file.
34902         * modules/connect: New file.
34903         * modules/getpeername: New file.
34904         * modules/getsockname: New file.
34905         * modules/getsockopt: New file.
34906         * modules/listen: New file.
34907         * modules/recv: New file.
34908         * modules/recvfrom: New file.
34909         * modules/send: New file.
34910         * modules/sendto: New file.
34911         * modules/setsockopt: New file.
34912         * modules/socket: New file.
34913         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34914         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34915         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34916         the particular module is requested. Add a link warning when the
34917         particular module is not requested.
34918         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34919         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34920         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34921         the particular module is requested.
34922         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34923         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34924         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34925         * modules/sys_socket (Depends-on): Add link-warning.
34926         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34927         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34928         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34929         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34930         GL_LINK_WARNING.
34931         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34932         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34933         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
34934         * doc/posix-functions/getpeername.texi: Mention the new module
34935         'getpeername'.
34936         * doc/posix-functions/getsockname.texi: Mention the new module
34937         'getsockname'.
34938         * doc/posix-functions/getsockopt.texi: Mention the new module
34939         'getsockopt'.
34940         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34941         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34942         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34943         * doc/posix-functions/send.texi: Mention the new module 'send'.
34944         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34945         * doc/posix-functions/setsockopt.texi: Mention the new module
34946         'setsockopt'.
34947         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34948         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34949         listen, connect, accept.
34950         * modules/select-tests (Depends-on): Likewise.
34951
34952 2008-10-05  Bruno Haible  <bruno@clisp.org>
34953
34954         * lib/winsock.c (strerror): Remove unused #undef.
34955         (rpl_close): Remove unused local variable.
34956
34957         * modules/sys_socket (Depends-on); Add errno.
34958
34959 2008-10-05  Bruno Haible  <bruno@clisp.org>
34960
34961         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34962         (select): Add a link warning when the 'select' module is not used.
34963         * modules/sys_select (Depends-on): Add link-warning.
34964         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34965         Suggested by Paolo Bonzini.
34966
34967 2008-10-05  Jim Meyering  <meyering@redhat.com>
34968
34969         bootstrap: check for LT_INIT more portably
34970         * build-aux/bootstrap: Avoid using grep -E, since it's not
34971         portable enough.  Suggestion from Bruno Haible.
34972
34973 2008-10-05  Bruno Haible  <bruno@clisp.org>
34974
34975         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34976         as being fixed by gnulib.
34977
34978 2008-10-05  Bruno Haible  <bruno@clisp.org>
34979
34980         * modules/select-tests: New file, mostly copied from
34981         modules/sys_select-tests.
34982         * tests/test-select.c: New file, mostly copied from
34983         tests/test-sys_select.c.
34984         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34985         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34986         (Makefile.am): Remove test_sys_select_LDADD.
34987
34988         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34989         to an undefined symbol, for an error message.
34990         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34991         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34992         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34993         winsock-select.c here.
34994         * modules/sys_select (Files): Remove lib/winsock-select.c.
34995         (Depends-on): Remove alloca.
34996         (Makefile.am): Substitute GNULIB_SELECT.
34997         * modules/select: New file.
34998         * doc/posix-functions/select.texi: Update.
34999
35000 2008-10-05  Bruno Haible  <bruno@clisp.org>
35001
35002         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35003         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35004         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35005         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35006         getdtablesize.
35007         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35008         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35009
35010 2008-10-05  Bruno Haible  <bruno@clisp.org>
35011
35012         * modules/getdtablesize-tests: New file.
35013         * tests/test-getdtablesize.c: New file.
35014
35015         New module 'getdtablesize'.
35016         * lib/unistd.in.h (getdtablesize): New declaration.
35017         * lib/getdtablesize.c: New file.
35018         * m4/getdtablesize.m4: New file.
35019         * modules/getdtablesize: New file.
35020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35021         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35022         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35023         HAVE_GETDTABLESIZE.
35024         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35025
35026 2008-10-05  Bruno Haible  <bruno@clisp.org>
35027
35028         * modules/sched (Makefile.am): Fix typo.
35029         Reported by Simon Josefsson.
35030
35031 2008-10-05  Jim Meyering  <meyering@redhat.com>
35032
35033         bootstrap: check for LT_INIT, too
35034         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35035         are deprecated.  Suggestion from Ralf Wildenhues.
35036
35037 2008-10-05  Bruno Haible  <bruno@clisp.org>
35038
35039         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35040         overriding them by ours.
35041         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35042
35043 2008-10-05  Jim Meyering  <meyering@redhat.com>
35044
35045         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35046         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35047         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35048
35049 2008-10-04  Bruno Haible  <bruno@clisp.org>
35050
35051         * modules/dup2 (License): Change to LGPLv2+.
35052         * modules/sleep (License): Likewise.
35053         * modules/perror (License): Likewise.
35054         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35055         Blake.
35056         * modules/signal (License): Likewise.
35057         * modules/sigprocmask (License): Likewise.
35058         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35059         Meyering.
35060
35061 2008-10-04  Bruno Haible  <bruno@clisp.org>
35062
35063         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35064         Reported by Rainer Tammer <tammer@tammer.net>.
35065
35066 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35067             Bruno Haible  <bruno@clisp.org>
35068
35069         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35070         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35071         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35072
35073 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35074
35075         filevercmp: new module
35076         * lib/filevercmp.h: New function filevercmp comparing version strings.
35077         * lib/filevercmp.c: Implementation of filevercmp function.
35078         * modules/filevercmp: Module metadata.
35079         * tests/test-filevercmp.c: Unit test for new module.
35080         * modules/filevercmp-tests: Unit test metadata.
35081         * MODULES.html.sh: Add filevercmp module.
35082
35083 2008-10-03  Bruno Haible  <bruno@clisp.org>
35084
35085         * lib/c-ctype.h: Add comment.
35086         Reported by Jim Meyering.
35087
35088 2008-10-02  Bruno Haible  <bruno@clisp.org>
35089
35090         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35091
35092 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35093
35094         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35095         name of bootstrap.conf accordingly.
35096
35097 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35098
35099         * build-aux/bootstrap: Install git-merge-changelog configuration
35100         items into .gitconfig if needed.
35101
35102 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35103
35104         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35105         git repository, and initialize/update it accordingly.
35106
35107 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35108
35109         * modules/fsync-tests: New file.
35110         * tests/test-fsync.c: New file.
35111
35112         New module 'fsync'.
35113         * lib/fsync.c: New file.
35114         * m4/fsync.m4: New file.
35115         * modules/fsync: New file.
35116         * lib/unistd.in.h (fsync): New declaration.
35117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35118         GNULIB_FSYNC and HAVE_FSYNC.
35119         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35120         * MODULES.html.sh (posix_functions): Add fsync.
35121         * doc/posix-functions/fsync.texi: Mention the new module.
35122
35123 2008-10-02  Jim Meyering  <meyering@redhat.com>
35124
35125         fts.c: sync with similar code from coreutils' remove.c
35126         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35127         Guard also with "#if defined __linux__", since for now at least,
35128         this code is Linux-kernel-specific.
35129
35130 2008-10-02  Jim Meyering  <meyering@redhat.com>
35131
35132         fts: bug fixes
35133         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35134         Include <sys/vfs.h>, not <sys/statfs.h>.
35135
35136         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35137         Include <sys/vfs.h>, not <sys/statfs.h>.
35138
35139 2008-10-01  Bruno Haible  <bruno@clisp.org>
35140
35141         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35142         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35143         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35144         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35145         * doc/posix-functions/posix_spawnp.texi: Likewise.
35146         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35147         whether posix_spawn actually works.
35148         * m4/pipe.m4 (gl_PIPE): Likewise.
35149         * modules/execute (Files): Add m4/posix_spawn.m4.
35150         * modules/pipe (Files): Add m4/posix_spawn.m4.
35151         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35152
35153 2008-10-01  Jim Meyering  <meyering@redhat.com>
35154
35155         remove trailing spaces
35156         * NEWS: Likewise.
35157         * lib/poll.c (poll): Likewise.
35158         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35159         * lib/winsock.c (rpl_close): Likewise.
35160         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35161         * modules/yield: Likewise.
35162         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35163         * tests/test-sys_select.c (connect_to_socket): Likewise.
35164
35165         fts.c: adjust a new interface to be more generally useful
35166         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35167         (fts_build): Adjust caller.
35168
35169 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35170
35171         * modules/cond-tests: New file.
35172         * tests/test-cond.c: New file.
35173
35174 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35175             Bruno Haible  <bruno@clisp.org>
35176
35177         * modules/cond (Dependencies): Add errno, time.
35178         * lib/glthread/cond.h: Include <time.h>.
35179         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35180         across platforms.
35181
35182 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35183             Bruno Haible  <bruno@clisp.org>
35184
35185         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35186
35187 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35188             Bruno Haible  <bruno@clisp.org>
35189
35190         * modules/tls-tests (Depends-on): Add thread, yield.
35191         (configure.ac): Remove all checks.
35192         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35193         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35194         gl_thread_self): Remove definitions. Include glthread/thread.h and
35195         glthread/yield.h instead.
35196         (test_tls): Pass an additional NULL argument to gl_thread_join.
35197
35198 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35199             Bruno Haible  <bruno@clisp.org>
35200
35201         * modules/lock-tests (Depends-on): Add thread, yield.
35202         (configure.ac): Remove all checks.
35203         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35204         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35205         gl_thread_self): Remove definitions. Include glthread/thread.h and
35206         glthread/yield.h instead.
35207         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35208         additional NULL argument to gl_thread_join.
35209
35210 2008-09-30  Bruno Haible  <bruno@clisp.org>
35211
35212         Fix the Win32 implementation of the 'thread' module.
35213         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35214         pointer type.
35215         (gl_thread_self): Invoke gl_thread_self_func.
35216         (gl_thread_self_func): New declaration.
35217         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35218         (do_init_self_key, init_self_key): New functions.
35219         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35220         Remove some fields.
35221         (running_threads, running_lock): Remove variables.
35222         (get_current_thread_handle): New function.
35223         (gl_thread_self_func, wrapper_func, glthread_create_func,
35224         glthread_join_func, gl_thread_exit_func): Largely rewritten and
35225         simplified.
35226
35227 2008-09-30  Bruno Haible  <bruno@clisp.org>
35228
35229         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
35230         files.
35231
35232 2008-09-30  Jim Meyering  <meyering@redhat.com>
35233
35234         fts.m4: correct the test for statfs.f_type
35235         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
35236         when checking for statfs.f_type.
35237
35238 2008-09-15  Simon Josefsson  <simon@josefsson.org>
35239
35240         tests: avoid some compiler warnings
35241         * tests/test-memchr.c (main): Pass NULL indirectly.
35242         * tests/test-getdate.c (main): Remove unused variable 'ret'.
35243
35244 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
35245
35246         getdate.y: disallow countable dayshifts like "4 yesterday ago"
35247         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
35248         exactly specified dayshifts.
35249         (dayshift): New rule.
35250         (rel): Add dayshift.
35251         (relative_time_table) [tomorrow, yesterday, today, now]:
35252         Use tDAY_SHIFT in place of tDAY_UNIT.
35253         * tests/test-getdate.c: Add tests for now-disallowed countable
35254         dayshifts, e.g., "4 yesterday ago".
35255
35256 2008-09-29  Bruno Haible  <bruno@clisp.org>
35257
35258         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
35259         * tests/test-posix_spawn1.in.sh: Renamed from
35260         tests/test-posix_spawn.in.sh.
35261         * tests/test-posix_spawn2.c: New file.
35262         * tests/test-posix_spawn2.in.sh: New file.
35263         * modules/posix_spawnp-tests (Files): Update.
35264         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
35265
35266 2008-09-29  Bruno Haible  <bruno@clisp.org>
35267
35268         Propagate effects of putenv/setenv/unsetenv to child processes.
35269         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
35270         * lib/pipe.c (create_pipe): Likewise.
35271
35272 2008-09-29  Bruno Haible  <bruno@clisp.org>
35273
35274         Enable use of shell scripts as executables in mingw.
35275         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
35276         run the program as a shell script.
35277         * lib/pipe.c (create_pipe): Likewise.
35278         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
35279         resulting array.
35280
35281 2008-09-29  Eric Blake  <ebb9@byu.net>
35282
35283         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
35284
35285 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
35286
35287         * doc/posix-functions/accept.texi: Update mingw problems.
35288         * doc/posix-functions/bind.texi: Update mingw problems.
35289         * doc/posix-functions/close.texi: Update mingw problems.
35290         * doc/posix-functions/connect.texi: Update mingw problems.
35291         * doc/posix-functions/getpeername.texi: Update mingw problems.
35292         * doc/posix-functions/getsockname.texi: Update mingw problems.
35293         * doc/posix-functions/getsockopt.texi: Update mingw problems.
35294         * doc/posix-functions/ioctl.texi: Update mingw problems.
35295         * doc/posix-functions/listen.texi: Update mingw problems.
35296         * doc/posix-functions/recv.texi: Update mingw problems.
35297         * doc/posix-functions/recvfrom.texi: Update mingw problems.
35298         * doc/posix-functions/select.texi: Update mingw problems.
35299         * doc/posix-functions/send.texi: Update mingw problems.
35300         * doc/posix-functions/sendto.texi: Update mingw problems.
35301         * doc/posix-functions/setsockopt.texi: Update mingw problems.
35302         * doc/posix-functions/socket.texi: Update mingw problems.
35303
35304 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
35305             Bruno Haible  <bruno@clisp.org>
35306
35307         * lib/sys_select.in.h: Include sys/time.h.
35308         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
35309         * modules/sys_select: Depend on sys_time.
35310         * tests/test-sys_select.c: Test that sys/select.h defines struct
35311         timeval fully.
35312
35313 2008-09-29  Bruno Haible  <bruno@clisp.org>
35314
35315         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
35316         * lib/sys_select.in.h: Likewise.
35317
35318 2008-09-29  Bruno Haible  <bruno@clisp.org>
35319
35320         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
35321
35322 2008-09-29  Bruno Haible  <bruno@clisp.org>
35323
35324         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
35325         Set LIBSOCKET instead of augmenting LIBS.
35326         * modules/sockets (Link): New section.
35327         * modules/sockets-tests (test_sockets_LDADD): New variable.
35328         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
35329         * modules/poll-tests (test_poll_LDADD): New variable.
35330         * NEWS: Document the change.
35331
35332 2008-09-29  Bruno Haible  <bruno@clisp.org>
35333
35334         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
35335         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
35336         ARPA_INET_H directly.
35337         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35338
35339 2008-09-28  Bruno Haible  <bruno@clisp.org>
35340
35341         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
35342         from gl_HEADER_SYS_SOCKET.
35343         (gl_HEADER_SYS_SOCKET): Invoke it.
35344         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35345
35346 2008-09-28  Bruno Haible  <bruno@clisp.org>
35347
35348         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
35349         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
35350         Needed on OSF/1 4.0.
35351
35352 2008-09-28  Bruno Haible  <bruno@clisp.org>
35353
35354         Override open more carefully.
35355         * lib/open.c (orig_open): New function.
35356         (rpl_open): Use orig_open instead of open.
35357         * lib/fcntl.in.h: Add special invocation convention.
35358         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
35359         (gl_FUNC_OPEN): Invoke it.
35360
35361         Override freopen more carefully.
35362         * lib/freopen.c (orig_freopen): New function.
35363         (rpl_freopen): Use orig_freopen instead of freopen.
35364         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
35365         (gl_FUNC_FREOPEN): Invoke it.
35366
35367         Override fopen more carefully.
35368         * lib/fopen.c (orig_fopen): New function.
35369         (rpl_fopen): Use orig_fopen instead of fopen.
35370         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
35371         (gl_FUNC_FOPEN): Invoke it.
35372         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
35373
35374 2008-09-28  Bruno Haible  <bruno@clisp.org>
35375
35376         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
35377         SIGPIPE.
35378
35379 2008-09-28  Bruno Haible  <bruno@clisp.org>
35380
35381         * tests/test-sigaction.c (handler, main): Disable the check whether
35382         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
35383         glibc systems with LinuxThreads.
35384
35385 2008-09-28  Bruno Haible  <bruno@clisp.org>
35386
35387         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
35388
35389         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
35390         with AIX xlc.
35391         * lib/fcntl.in.h (open): Likewise.
35392         Reported by Rainer Tammer <tammer@tammer.net>.
35393
35394 2008-09-28  Bruno Haible  <bruno@clisp.org>
35395
35396         * modules/posix_spawnp-tests: New file.
35397         * tests/test-posix_spawn.c: New file.
35398         * tests/test-posix_spawn.in.sh: New file.
35399
35400         New module 'posix_spawnp'.
35401         * modules/posix_spawnp: New file.
35402         * lib/spawnp.c: New file, from GNU libc with modifications.
35403         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
35404
35405         New module 'posix_spawn'.
35406         * modules/posix_spawn: New file.
35407         * lib/spawn.c: New file, from GNU libc with modifications.
35408         * doc/posix-functions/posix_spawn.texi: Mention the new module.
35409
35410         New module 'posix_spawnattr_destroy'.
35411         * modules/posix_spawnattr_destroy: New file.
35412         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
35413         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
35414         module.
35415
35416         New module 'posix_spawnattr_setsigmask'.
35417         * modules/posix_spawnattr_setsigmask: New file.
35418         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
35419         modifications.
35420         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
35421         new module.
35422
35423         New module 'posix_spawnattr_getsigmask'.
35424         * modules/posix_spawnattr_getsigmask: New file.
35425         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
35426         modifications.
35427         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
35428         new module.
35429
35430         New module 'posix_spawnattr_setsigdefault'.
35431         * modules/posix_spawnattr_setsigdefault: New file.
35432         * lib/spawnattr_setdefault.c: New file, from GNU libc with
35433         modifications.
35434         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
35435         new module.
35436
35437         New module 'posix_spawnattr_getsigdefault'.
35438         * modules/posix_spawnattr_getsigdefault: New file.
35439         * lib/spawnattr_getdefault.c: New file, from GNU libc with
35440         modifications.
35441         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
35442         new module.
35443
35444         New module 'posix_spawnattr_setschedpolicy'.
35445         * modules/posix_spawnattr_setschedpolicy: New file.
35446         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
35447         modifications.
35448         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
35449         new module.
35450
35451         New module 'posix_spawnattr_getschedpolicy'.
35452         * modules/posix_spawnattr_getschedpolicy: New file.
35453         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
35454         modifications.
35455         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
35456         new module.
35457
35458         New module 'posix_spawnattr_setschedparam'.
35459         * modules/posix_spawnattr_setschedparam: New file.
35460         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
35461         modifications.
35462         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
35463         new module.
35464
35465         New module 'posix_spawnattr_getschedparam'.
35466         * modules/posix_spawnattr_getschedparam: New file.
35467         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
35468         modifications.
35469         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
35470         new module.
35471
35472         New module 'posix_spawnattr_setpgroup'.
35473         * modules/posix_spawnattr_setpgroup: New file.
35474         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
35475         modifications.
35476         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
35477         module.
35478
35479         New module 'posix_spawnattr_getpgroup'.
35480         * modules/posix_spawnattr_getpgroup: New file.
35481         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
35482         modifications.
35483         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
35484         module.
35485
35486         New module 'posix_spawnattr_setflags'.
35487         * modules/posix_spawnattr_setflags: New file.
35488         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
35489         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35490         module.
35491
35492         New module 'posix_spawnattr_getflags'.
35493         * modules/posix_spawnattr_getflags: New file.
35494         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
35495         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
35496         module.
35497
35498         New module 'posix_spawnattr_init'.
35499         * modules/posix_spawnattr_init: New file.
35500         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
35501         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
35502         module.
35503
35504         New module 'posix_spawn_file_actions_destroy'.
35505         * modules/posix_spawn_file_actions_destroy: New file.
35506         * lib/spawn_faction_destroy.c: New file, from GNU libc with
35507         modifications.
35508         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
35509         the new module.
35510
35511         New module 'posix_spawn_file_actions_addopen'.
35512         * modules/posix_spawn_file_actions_addopen: New file.
35513         * lib/spawn_faction_addopen.c: New file, from GNU libc with
35514         modifications.
35515         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35516         the new module.
35517
35518         New module 'posix_spawn_file_actions_adddup2'.
35519         * modules/posix_spawn_file_actions_adddup2: New file.
35520         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
35521         modifications.
35522         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35523         the new module.
35524
35525         New module 'posix_spawn_file_actions_addclose'.
35526         * modules/posix_spawn_file_actions_addclose: New file.
35527         * lib/spawn_faction_addclose.c: New file, from GNU libc with
35528         modifications.
35529         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35530         the new module.
35531
35532         New module 'posix_spawn_file_actions_init'.
35533         * modules/posix_spawn_file_actions_init: New file.
35534         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
35535         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
35536         new module.
35537
35538         New module 'posix_spawn-internal'.
35539         * modules/posix_spawn-internal: New file.
35540         * lib/spawn_int.h: New file, from GNU libc with modifications.
35541         * lib/spawni.c: New file, from GNU libc with modifications.
35542         * m4/posix_spawn.m4: New file.
35543
35544         New module 'spawn'.
35545         * modules/spawn: New file.
35546         * lib/spawn.in.h: New file, from GNU libc with modifications.
35547         * m4/spawn_h.m4: New file.
35548         * doc/posix-headers/spawn.texi: Mention the new module.
35549
35550 2008-09-28  Bruno Haible  <bruno@clisp.org>
35551
35552         * modules/sched-tests: New file.
35553         * tests/test-sched.c: New file.
35554
35555         New module 'sched'.
35556         * modules/sched: New file.
35557         * lib/sched.in.h: New file.
35558         * m4/sched_h.m4: New file.
35559         * doc/posix-headers/sched.texi: Mention the new module.
35560
35561 2008-09-27  Eric Blake  <ebb9@byu.net>
35562
35563         Fix previous patch, and tweak references to $0.
35564         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35565         (func_version, func_gnulib_dir): Don't call this program
35566         gnulib-tool.
35567         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35568         with using $0 in function.
35569         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35570         (func_fatal_error): Reuse the name the user invoked us with.
35571
35572 2008-09-27  Bruno Haible  <bruno@clisp.org>
35573
35574         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35575         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35576         (gl_ICONV_H): Not here.
35577         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35578         instead of assigning ICONV_H directly.
35579
35580         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35581         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35582         WCHAR_H directly.
35583
35584 2008-09-27  Bruno Haible  <bruno@clisp.org>
35585
35586         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35587         * modules/arpa_inet (Depends-on): Add link-warning.
35588         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35589         * modules/unistd (Makefile.am): Likewise.
35590
35591 2008-09-26  Bruno Haible  <bruno@clisp.org>
35592
35593         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35594         variables.
35595         (func_version): Essentially copied from gnulib-tool.
35596         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35597         func_readlink): Copied from gnulib-tool.
35598
35599 2008-09-26  Bruno Haible  <bruno@clisp.org>
35600
35601         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35602         invoking git-version-gen.
35603
35604 2008-09-26  Bruno Haible  <bruno@clisp.org>
35605
35606         * posix-modules: Update to directory names changed on 2008-01-19.
35607         Remove commas in output before splitting into words. No more need to
35608         avoid 'ftruncate' since 2007-02-19.
35609
35610 2008-09-26  Bruno Haible  <bruno@clisp.org>
35611
35612         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35613
35614 2008-09-26  Bruno Haible  <bruno@clisp.org>
35615
35616         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35617         * modules/fwriteerror (Depends-on): Add errno.
35618
35619 2008-09-26  Bruno Haible  <bruno@clisp.org>
35620
35621         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35622         * tests/test-vc-list-files-cvs.sh: Likewise.
35623
35624 2008-09-26  Bruno Haible  <bruno@clisp.org>
35625
35626         * doc/posix-headers/sys_resource.texi: Reorder items.
35627
35628 2008-09-26  Jim Meyering  <meyering@redhat.com>
35629
35630         fts: tweak inode comparison function
35631         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35632         inode numbers, as documented.
35633
35634         fts: sort dirent entries on inode number before traversing
35635         This avoids a quadratic, seek-related performance penalty when
35636         operating on a directory containing many entries (measurable at 10k;
35637         3.5 hours at 2 million entries with a cold cache) on certain types
35638         of file systems, including ext3 and ext4, but not tmpfs.
35639         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35640         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35641         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35642         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35643         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35644         (fts_build): Set the stat.st_ino member from D_INO.
35645         If it is likely to be useful, sort dirent entries on inode number.
35646
35647         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35648         and the struct statfs.f_type member.
35649         * modules/fts (Depends-on): Add d-ino.
35650
35651 2008-09-26  Bruno Haible  <bruno@clisp.org>
35652
35653         * modules/sigpipe-die (Depends-on): Add sigpipe.
35654
35655         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35656         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35657         and GNULIB_STDIO_H_SIGPIPE are set.
35658         * lib/stdio-write.c: New file.
35659         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35660         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35661         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35662         REPLACE_STDIO_WRITE_FUNCS.
35663         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35664         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35665         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35666         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35667         * modules/stdio (Files): Add lib/stdio-write.c.
35668         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35669         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35670         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35671         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35672         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35673         REPLACE_FPRINTF_POSIX.
35674         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35675         REPLACE_PRINTF_POSIX.
35676         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35677         REPLACE_VFPRINTF_POSIX.
35678         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35679         REPLACE_VPRINTF_POSIX.
35680         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35681         SIGPIPE issue.
35682         * doc/posix-functions/fputc.texi: Likewise.
35683         * doc/posix-functions/fputs.texi: Likewise.
35684         * doc/posix-functions/fwrite.texi: Likewise.
35685         * doc/posix-functions/printf.texi: Likewise.
35686         * doc/posix-functions/putc.texi: Likewise.
35687         * doc/posix-functions/putchar.texi: Likewise.
35688         * doc/posix-functions/puts.texi: Likewise.
35689         * doc/posix-functions/vfprintf.texi: Likewise.
35690         * doc/posix-functions/vprintf.texi: Likewise.
35691
35692         * modules/safe-write (Depends-on): Add write.
35693
35694         * modules/sigpipe-tests: New file.
35695         * tests/test-sigpipe.c: New file.
35696         * tests/test-sigpipe.sh: New file.
35697
35698         * modules/write: New file.
35699         * lib/unistd.in.h: Include <sys/types.h>.
35700         (write): New declaration.
35701         * lib/write.c: New file.
35702         * m4/write.m4: New file.
35703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35704         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35705         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35706         GNULIB_WRITE, REPLACE_WRITE.
35707         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35708         and the SIGPIPE issue.
35709
35710         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35711         (raise): New declaration.
35712         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35713         (ext_signal): New function.
35714         (rpl_raise): New function.
35715         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35716         GNULIB_SIGNAL_H_SIGPIPE.
35717         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35718         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35719
35720         * modules/sigpipe: New file.
35721         * m4/sigpipe.m4: New file.
35722
35723 2008-09-25  Derek Price  <derek@ximbiot.com>
35724             Bruno Haible  <bruno@clisp.org>
35725
35726         * gnulib-tool (func_import): Report all license incompatibilities, not
35727         just the first one.
35728
35729 2008-09-25  Bruno Haible  <bruno@clisp.org>
35730
35731         * gnulib-tool (func_import): When computing the edits, consider not
35732         only the Makefile.ams that exist but also those that will be generated.
35733
35734 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35735
35736         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35737         fixes gnulib-tool --test warning about duplicate dependency.
35738
35739 2008-09-25  Bruno Haible  <bruno@clisp.org>
35740
35741         * gnulib-tool: Don't ask the user to perform edits in the generated
35742         Makefile.ams.
35743         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35744         apply to the Makefile.am being generated.
35745         (func_emit_tests_Makefile_am): Execute edits that apply to the
35746         Makefile.am being generated.
35747         (func_import): Setup list of Makefile.am edits before emitting the
35748         Makefile.ams, not at the end.
35749         (func_create_testdir): Update.
35750         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35751
35752 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35753
35754         * gnulib-tool (func_import): Store the --tests-base option in the
35755         comment in gnulib-cache.m4.
35756
35757 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35758
35759         * NEWS: Document increased portability that sys_select now provides.
35760
35761         * lib/sys_select.in.h: Install select wrapper.
35762         * lib/sys_socket.in.h: Use more descriptive name when there is no
35763         select wrapper.
35764         * lib/winsock-select.c: New.
35765         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35766         Require gl_HEADER_SYS_SOCKET.
35767         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35768         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35769         * tests/test-sys_select.c: Add functional tests.
35770
35771 2008-09-24  Eric Blake  <ebb9@byu.net>
35772
35773         open, fopen: close fd leak in last patch
35774         * lib/open.c (rpl_open): Close fd before returning error.
35775         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35776         * doc/posix-functions/open.texi (open): Document that Irix also
35777         has the bug.
35778         * doc/posix-functions/fopen.texi (fopen): Likewise.
35779         Reported by Paolo Bonzini.
35780
35781 2008-09-24  Bruno Haible  <bruno@clisp.org>
35782
35783         Ensure that a filename ending in a slash cannot be used to access a
35784         non-directory.
35785         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35786         to check whether it's really a directory.
35787         * lib/fopen.c: Include fcntl.h, unistd.h.
35788         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35789         and fdopen().
35790         * modules/fopen (Depends-on): Add unistd.
35791         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35792         * tests/test-fopen.c (main): Likewise.
35793         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35794         * doc/posix-functions/fopen.texi: Likewise.
35795         Reported by Eric Blake.
35796
35797 2008-09-23  Eric Blake  <ebb9@byu.net>
35798
35799         c-stack: avoid compiler optimizations when provoking overflow
35800         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35801         recursion harder to optimize, to ensure a stack overflow occurs.
35802         * tests/test-c-stack.c (recurse): Likewise.
35803         Borrowed from libsigsegv.
35804
35805         c-stack: work around Irix sigaltstack bug
35806         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35807         whether sigaltstack uses wrong end of stack_t (copied in part from
35808         libsigsegv).
35809         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35810         Irix bug, without requiring an over-allocation.
35811         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35812         bug.
35813
35814         fopen: document mingw bug on directories
35815         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35816         not allowing a stream visiting a directory, even though reading
35817         from such a stream is not portable.
35818
35819 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35820
35821         * lib/poll.c: Rewrite.
35822         * modules/poll: Depend on alloca.
35823
35824 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35825
35826         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35827         instead define prototypes for a full set of wrappers.  Ensure
35828         that Cygwin does not use the compatibility code, which is only
35829         for MinGW.
35830         * lib/winsock.c: New.
35831         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35832         * modules/sys_socket: Add lib/winsock.c.
35833
35834         * modules/poll-tests: Add errno and perror.
35835         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35836
35837 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35838
35839         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35840
35841 2008-09-23  Bruno Haible  <bruno@clisp.org>
35842
35843         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35844         * doc/glibc-functions/*: Likewise.
35845
35846 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35847
35848         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35849         success.
35850
35851 2008-09-22  Eric Blake  <ebb9@byu.net>
35852             Bruno Haible  <bruno@clisp.org>
35853
35854         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35855         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35856         supply %A but mishandle pseudo-NaN.
35857         Reported by Simon Josefsson.
35858
35859 2008-09-21  Bruno Haible  <bruno@clisp.org>
35860
35861         * tests/test-lock.c (main): Tweak skip message.
35862         * tests/test-tls.c (main): Likewise.
35863
35864 2008-09-21  Bruno Haible  <bruno@clisp.org>
35865
35866         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35867         whether 'struct sigaction' has sa_sigaction here...
35868         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35869         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35870
35871 2008-09-21  Bruno Haible  <bruno@clisp.org>
35872
35873         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35874         section.
35875         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35876         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35877         the new section.
35878         (Support for obsolete systems lacking POSIX:2001): New section.
35879         (String handling <string.h>): Move strdup to the new section.
35880         Suggested by Simon Josefsson and Paolo Bonzini.
35881
35882 2008-09-21  Bruno Haible  <bruno@clisp.org>
35883
35884         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35885         exponents in %e and %g results on 'long double'. Needed for mingw's
35886         improved *printf functions.
35887         * tests/test-vasprintf-posix.c (test_function): Likewise.
35888         * tests/test-snprintf-posix.h (test_function): Likewise.
35889         * tests/test-sprintf-posix.h (test_function): Likewise.
35890         Reported by Eric Blake.
35891
35892 2008-09-21  Bruno Haible  <bruno@clisp.org>
35893
35894         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35895         * tests/test-sprintf-posix.h (test_function): Likewise.
35896
35897 2008-09-21  Bruno Haible  <bruno@clisp.org>
35898
35899         * modules/getpass (Depends-on): Add strdup-posix.
35900
35901         New module 'strdup-posix'.
35902         * modules/strdup-posix: New file.
35903         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35904         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35906         REPLACE_STRDUP.
35907         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35908         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35909         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35910         strdup-posix.
35911
35912         * modules/strdup (Depends-on): Remove malloc-posix.
35913
35914 2008-09-20  Bruno Haible  <bruno@clisp.org>
35915
35916         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35917         Wildenhues.
35918
35919 2008-09-20  Bruno Haible  <bruno@clisp.org>
35920
35921         Ensure that wint_t gets defined on IRIX 5.3.
35922         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35923         * lib/wctype.in.h (wint_t): Likewise.
35924         (__wctype_wint_t): Remove type.
35925         (isw*): Use wint_t instead of __wctype_wint_t.
35926         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35927         * modules/wchar (Files): Add m4/wint_t.m4.
35928         (Makefile.am): Substitute HAVE_WINT_T.
35929         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35930         * tests/test-wctype.c: Check that wint_t is defined.
35931         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35932         * doc/posix-headers/wctype.texi: Likewise.
35933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35934
35935 2008-09-18  Bruno Haible  <bruno@clisp.org>
35936
35937         * gnulib-tool (func_exit): Update comment.
35938
35939 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35940
35941         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35942         assumes strdup exists and does not depend on strdup to return
35943         ENOMEM on out of memory conditions.
35944
35945 2008-09-18  Bruno Haible  <bruno@clisp.org>
35946
35947         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
35948         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35949         digits for the exponent.
35950
35951 2008-09-18  Jim Meyering  <meyering@redhat.com>
35952             Bruno Haible  <bruno@clisp.org>
35953
35954         * lib/vasnprintf.c (decimal_point_char): Define also if
35955         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35956
35957 2008-09-16  Bruno Haible  <bruno@clisp.org>
35958         and Eric Blake  <ebb9@byu.net>
35959
35960         vasnprintf: support Irix 5.3
35961         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35962         that mishandle long double infinity.
35963         Reported by Tom G. Christensen.
35964
35965 2008-09-16  Bruno Haible  <bruno@clisp.org>
35966
35967         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35968         Solaris 9.
35969         * doc/glibc-functions/alphasort.texi: Likewise.
35970         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35971
35972 2008-09-16  Jim Meyering  <meyering@redhat.com>
35973
35974         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35975         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35976         a umask modification leak out of a subshell.  Otherwise, the
35977         opensolaris /bin/sh would be accepted and thus cause unwarranted
35978         failures in the coreutils test suite.
35979
35980 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35981
35982         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35983         to succeed.
35984
35985 2008-09-16  Jim Meyering  <meyering@redhat.com>
35986
35987         avoid spurious test failure when library is built without ACL support
35988         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35989         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35990         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35991         * tests/test-copy-acl.sh: Likewise.
35992
35993 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35994
35995         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35996         based on character occurrence counts.
35997
35998 2008-09-15  Eric Blake  <ebb9@byu.net>
35999
36000         tests: avoid some compiler warnings
36001         * tests/test-memchr.c (main): Pass NULL indirectly.
36002         * tests/test-closein.c (main): Avoid unused variable.
36003
36004 2008-09-15  Bruno Haible  <bruno@clisp.org>
36005
36006         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36007         are missing on OpenBSD 4.0 individually.
36008         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36009
36010 2008-09-15  Bruno Haible  <bruno@clisp.org>
36011
36012         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36013         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36014         * doc/posix-functions/perror.texi: Likewise.
36015         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36016         is missing.
36017         Reported by Eric Blake.
36018
36019         * lib/errno.in.h: Use replacement values >= 2000.
36020         Reported by Eric Blake.
36021
36022 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36023
36024         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36025         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36026         limit.
36027         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36028         compareseq was aborted.
36029
36030 2008-09-14  Bruno Haible  <bruno@clisp.org>
36031
36032         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36033         yvec_edit_count.
36034         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36035         (fstrcmp_bounded): Simplify result computation accordingly.
36036
36037 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36038
36039         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36040         (fstrcmp): Define in terms of fstrcmp_bounded.
36041         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36042         lower_bound argument.
36043         Return quickly if the result is certainly < lower_bound.
36044         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36045
36046 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36047
36048         * lib/diffseq.h (EARLY_ABORT): New macro.
36049         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36050         evaluates to true.
36051
36052 2008-09-14  Bruno Haible  <bruno@clisp.org>
36053
36054         * modules/perror-tests: New file.
36055         * tests/test-perror.sh: New file.
36056         * tests/test-perror.c: New file.
36057
36058         New module 'perror'.
36059         * lib/stdio.in.h (perror): New declaration.
36060         * lib/perror.c: New file.
36061         * m4/perror.m4: New file.
36062         * modules/perror: New file.
36063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36064         * doc/posix-functions/perror.texi: Mention the perror module.
36065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36066         REPLACE_PERROR.
36067         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36068         REPLACE_PERROR.
36069
36070 2008-09-14  Bruno Haible  <bruno@clisp.org>
36071
36072         * modules/stdio (Makefile.am): Reorder to match the order in
36073         lib/stdio.in.h.
36074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36075
36076 2008-09-13  Bruno Haible  <bruno@clisp.org>
36077
36078         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36079
36080 2008-09-13  Bruno Haible  <bruno@clisp.org>
36081
36082         Extend strerror to cover the added errno values.
36083         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36084         (rpl_strerror): Provide error messages for the added errno values and
36085         for the WSA* values.
36086         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36087         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36088         strerror.
36089         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36090         * modules/strerror (Depends-on): Add errno.
36091         * doc/posix-functions/strerror.texi: Document the change.
36092         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36093         and EOVERFLOW.
36094
36095 2008-09-13  Bruno Haible  <bruno@clisp.org>
36096
36097         * modules/EOVERFLOW: Remove file.
36098         * m4/eoverflow.m4: Remove file.
36099         * modules/EOVERFLOW-tests: Remove file.
36100         * tests/test-EOVERFLOW.c: Remove file.
36101         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36102         * modules/ftell (Depends-on): Likewise.
36103         * modules/getdelim (Depends-on): Likewise.
36104         * modules/getugroups (Depends-on): Likewise.
36105         * modules/poll (Depends-on): Likewise.
36106         * modules/snprintf (Depends-on): Likewise.
36107         * modules/sprintf-posix (Depends-on): Likewise.
36108         * modules/vasnprintf (Depends-on): Likewise.
36109         * modules/vasprintf (Depends-on): Likewise.
36110         * modules/vfprintf-posix (Depends-on): Likewise.
36111         * modules/vsnprintf (Depends-on): Likewise.
36112         * modules/vsprintf-posix (Depends-on): Likewise.
36113         * modules/xvasprintf (Depends-on): Likewise.
36114         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36115         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36116         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36117         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36118         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36119         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36120         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36121         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36122         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36123         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36124         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36125         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36126         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36127         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36128         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36129         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36130         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36131         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36132         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36133         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36134         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36135         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36136         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36137         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36138         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36139         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36140         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36141         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36142         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36143         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36144         * MODULES.html.sh: Remove EOVERFLOW.
36145         * NEWS: Mention the change.
36146
36147 2008-09-13  Bruno Haible  <bruno@clisp.org>
36148
36149         * modules/errno-tests: New file.
36150         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36151
36152         * lib/errno.in.h: New file.
36153         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36154         * modules/errno: New file.
36155         * doc/posix-headers/errno.texi: Update documentation.
36156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36157
36158 2008-09-13  Bruno Haible  <bruno@clisp.org>
36159
36160         * tests/test-poll.c: Use #if for native Windows, rather than testing
36161         __MSVCRT__.
36162
36163 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36164             Bruno Haible  <bruno@clisp.org>
36165
36166         * lib/glob.c: Don't include <pwd.h> on native Windows.
36167         (WINDOWS32): New macro.
36168         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36169
36170 2008-09-13  Bruno Haible  <bruno@clisp.org>
36171
36172         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36173         (ETIMEDOUT): Remove macro.
36174         (glthread_cond_timedwait_multithreaded): New declaration.
36175         (glthread_cond_timedwait): Use it.
36176         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36177         (glthread_cond_timedwait_multithreaded): New function.
36178
36179 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36180
36181         * modules/poll-tests: Do not check for io.h.
36182         * tests/test-poll.c: Check for __MSVCRT__ instead.
36183
36184 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36185
36186         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36187         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36188         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36189
36190 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36191
36192         * modules/poll-tests: New.
36193         * tests/test-poll.c: New.
36194
36195 2008-09-12  Eric Blake  <ebb9@byu.net>
36196
36197         frexp: test for NetBSD failure on -0.0
36198         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36199         not all, bugs from NetBSD 3.0 have been fixed.
36200         * doc/posix-functions/frexp.texi (frexp): Document bug.
36201         Reported by Thomas Klausner.
36202
36203         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36204         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36205         literal -0.0.
36206         Reported by Jonathan C. Patschke <jp@centtech.com>.
36207
36208 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36209
36210         * lib/glthread/cond.h: Use dummy implementation also if
36211         USE_WIN32_THREADS.
36212
36213 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36214
36215         * modules/fnmatch-posix (License): Change to LGPLv2+.
36216         * modules/fnmatch-gnu (License): Likewise.
36217
36218 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36219
36220         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
36221
36222 2008-09-11  Jim Meyering  <meyering@redhat.com>
36223
36224         * users.txt: Add gtk-vnc.
36225
36226 2008-09-08  Simon Josefsson  <simon@josefsson.org>
36227
36228         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
36229         rotate amounts.
36230
36231         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
36232         required for 16-bit and 8-bit rotates.
36233         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
36234         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
36235         UINT8_MAX instead of hard-coded constants.
36236         Suggested by Paul Eggert.
36237
36238 2008-09-07  Bruno Haible  <bruno@clisp.org>
36239
36240         * tests/test-striconveh.c (main): Check behaviour when converting from
36241         UTF-7.
36242
36243         Make striconveh work better with stateful encodings.
36244         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
36245         that iconv does not increment the inptr when returning -1/EINVAL.
36246
36247 2008-09-07  Bruno Haible  <bruno@clisp.org>
36248
36249         * build-aux/config.rpath: Update according to libtool-2.2.6.
36250         * build-aux/config.libpath: Likewise.
36251
36252 2008-09-06  Bruno Haible  <bruno@clisp.org>
36253
36254         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
36255         * lib/freadptr.c (freadptr): Likewise.
36256         * lib/freadseek.c (freadptrinc): Likewise.
36257         Reported by Simon Josefsson.
36258
36259 2008-09-06  Bruno Haible  <bruno@clisp.org>
36260
36261         * modules/freadptr (License): Change to LGPLv2+.
36262         * modules/freadseek (License): Likewise.
36263         Suggested by Eric Blake.
36264
36265         * modules/memchr2 (License): Change to LGPLv2+.
36266         Approved by Eric Blake.
36267
36268 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36269             Bruno Haible  <bruno@clisp.org>
36270
36271         Make gnulib-tool work with native 'sed' on AIX.
36272         * gnulib-tool (sed_noop): New variable.
36273         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
36274         func_add_or_update, func_create_testdir): Use it to initialize sed
36275         script variables.
36276         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36277
36278 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
36279             Bruno Haible  <bruno@clisp.org>
36280
36281         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
36282         also works after #include directives.
36283
36284 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
36285
36286         getdate.y: reject an out-of-range timezone value
36287         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
36288         the range [-24...+24].  When specified with only one or two digits,
36289         * tests/test-getdate.c: Tests for the fix.
36290         * doc/getdate.texi: Document this change.
36291
36292 2008-09-03  Bruno Haible  <bruno@clisp.org>
36293
36294         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
36295
36296 2008-09-02  Simon Josefsson  <simon@josefsson.org>
36297
36298         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
36299         <bruce.korb@gmail.com> with ideas from Ben Pfaff
36300         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
36301         Blake <ebb9@byu.net>.
36302
36303         * tests/test-bitrotate.c: Add more test vectors.
36304
36305 2008-09-02  Eric Blake  <ebb9@byu.net>
36306
36307         vasnprintf-posix: handle large precision via %.*d
36308         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
36309         when handling it ourselves.
36310         * tests/test-vasnprintf-posix.c (test_function): Add test.
36311         * tests/test-snprintf-posix.h (test_function): Likewise.
36312         * tests/test-sprintf-posix.h (test_function): Likewise.
36313         * tests/test-vasprintf-posix.c (test_function): Likewise.
36314         Reported by Alain Guibert.
36315
36316 2008-09-01  Eric Blake  <ebb9@byu.net>
36317
36318         c-stack: make configure-time check more robust
36319         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
36320         successful sigaction call.
36321         Reported by Tom G. Christensen.
36322
36323 2008-09-01  Bruno Haible  <bruno@clisp.org>
36324
36325         New module 'findprog-lgpl'.
36326         * modules/findprog-lgpl: New file.
36327         * lib/findprog-lgpl.c: New file.
36328         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
36329         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
36330         to decide whether to use strdup or xstrdup, concatenated_filename or
36331         xconcatenated_filename.
36332
36333 2008-09-01  Bruno Haible  <bruno@clisp.org>
36334
36335         Split module 'concat-filename' into 'concat-filename' (LGPL) and
36336         'xconcat-filename' (GPL).
36337         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
36338         (License): Change to LGPLv2+.
36339         * modules/xconcat-filename: New file.
36340         * lib/concat-filename.h (concatenated_filename): Change specification.
36341         (xconcatenated_filename): New declaration.
36342         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
36343         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
36344         memory situations.
36345         * lib/xconcat-filename.c: New file.
36346         * NEWS: Mention the change.
36347         * lib/findprog.c: Include concat-filename.h, not filename.h.
36348         (find_in_path): Use xconcatenated_filename instead of
36349         concatenated_filename.
36350         * lib/javacomp.c: Include concat-filename.h, not filename.h.
36351         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36352         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36353         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36354         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
36355         instead of concatenated_filename.
36356         * lib/javaexec.c: Include concat-filename.h, not filename.h.
36357         (execute_java_class): Use xconcatenated_filename instead of
36358         concatenated_filename.
36359         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
36360         * modules/javacomp (Depends-on): Likewise.
36361         * modules/javaexec (Depends-on): Likewise.
36362
36363 2008-09-01  Bruno Haible  <bruno@clisp.org>
36364
36365         Split module 'filename' into 'filename' and 'concat-filename'.
36366         * modules/filename: Keep only lib/filename.h.
36367         (License): Change to LGPLv2+.
36368         * modules/concat-filename: New file, extracted from modules/filename.
36369         * lib/filename.h (concatenated_filename): Remove declaration.
36370         * lib/concat-filename.h: New file, extracted from lib/filename.h.
36371         * lib/concat-filename.c: Include concat-filename.h.
36372         * NEWS: Mention the change.
36373
36374 2008-09-01  Simon Josefsson  <simon@josefsson.org>
36375
36376         * lib/bitrotate.h (rotl8, rotr8): Add.
36377
36378         * modules/bitrotate (configure.ac): Need
36379         AC_REQUIRE([AC_C_INLINE]).
36380         (Description): Mention stdint.h.  Reported by Bruno Haible
36381         <bruno@clisp.org>.
36382
36383         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
36384         Paolo Bonzini <bonzini@gnu.org>.
36385
36386 2008-08-31  Bruno Haible  <bruno@clisp.org>
36387
36388         Assume Solaris specific bi-arch conventions on Solaris systems.
36389         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
36390         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
36391         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
36392         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
36393         like acl_libdirstem.
36394         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
36395         acl_libdirstem.
36396         * NEWS: Mention the change.
36397         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
36398
36399 2008-08-31  Jim Meyering  <meyering@redhat.com>
36400
36401         * lib/strftime.h: Add comments describing the two added arguments.
36402
36403         remove duplicate #include directives
36404         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
36405         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
36406
36407 2008-08-31  Bruno Haible  <bruno@clisp.org>
36408
36409         New module 'sigpipe-die'.
36410         * modules/sigpipe-die: New file.
36411         * lib/sigpipe-die.h: New file.
36412         * lib/sigpipe-die.c: New file.
36413         * MODULES.html.sh (Signal handling): Add sigpipe-die.
36414
36415 2008-08-31  Bruno Haible  <bruno@clisp.org>
36416
36417         Don't override previously installed signal handlers.
36418         * lib/fatal-signal.c (saved_sigactions): New variable.
36419         (uninstall_handlers): Reset the signal to the saved handler, not
36420         to SIG_DFL (except when ignored).
36421         (install_handlers): Save the previous handlers.
36422
36423 2008-08-30  Bruno Haible  <bruno@clisp.org>
36424
36425         * gnulib-tool (func_reset_sigpipe): New function.
36426         (func_get_automake_snippet, func_modules_transitive_closure,
36427         func_import): Invoke it before a join command that reads from stdin,
36428         to avoid "echo: write error: Broken pipe" error messages on stderr.
36429         Reported by Sam Steingold <sds@gnu.org>.
36430
36431 2008-08-30  Bruno Haible  <bruno@clisp.org>
36432
36433         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
36434         Code copied from m4/open.m4.
36435         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
36436         access and the filename ends in a slash. Code copied from lib/open.c.
36437         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
36438         * tests/test-fopen.c (main): Check against bug with trailing slash.
36439
36440 2008-08-29  Bruno Haible  <bruno@clisp.org>
36441
36442         Avoid some "gcc -pedantic" warnings.
36443         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
36444         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
36445         * lib/dirent.in.h: Likewise.
36446         * lib/fcntl.in.h: Likewise.
36447         * lib/float.in.h: Likewise.
36448         * lib/iconv.in.h: Likewise.
36449         * lib/inttypes.in.h: Likewise.
36450         * lib/locale.in.h: Likewise.
36451         * lib/math.in.h: Likewise.
36452         * lib/netinet_in.in.h: Likewise.
36453         * lib/search.in.h: Likewise.
36454         * lib/signal.in.h: Likewise.
36455         * lib/stdarg.in.h: Likewise.
36456         * lib/stdint.in.h: Likewise.
36457         * lib/stdio.in.h: Likewise.
36458         * lib/stdlib.in.h: Likewise.
36459         * lib/string.in.h: Likewise.
36460         * lib/strings.in.h: Likewise.
36461         * lib/sys_select.in.h: Likewise.
36462         * lib/sys_socket.in.h: Likewise.
36463         * lib/sys_stat.in.h: Likewise.
36464         * lib/sys_time.in.h: Likewise.
36465         * lib/sysexits.in.h: Likewise.
36466         * lib/time.in.h: Likewise.
36467         * lib/unistd.in.h: Likewise.
36468         * lib/wchar.in.h: Likewise.
36469         * lib/wctype.in.h: Likewise.
36470         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
36471         * modules/fchdir (Makefile.am): Likewise.
36472         * modules/fcntl (Makefile.am): Likewise.
36473         * modules/float (Makefile.am): Likewise.
36474         * modules/iconv_open (Makefile.am): Likewise.
36475         * modules/inttypes (Makefile.am): Likewise.
36476         * modules/locale (Makefile.am): Likewise.
36477         * modules/math (Makefile.am): Likewise.
36478         * modules/netinet_in (Makefile.am): Likewise.
36479         * modules/search (Makefile.am): Likewise.
36480         * modules/signal (Makefile.am): Likewise.
36481         * modules/stdarg (Makefile.am): Likewise.
36482         * modules/stdint (Makefile.am): Likewise.
36483         * modules/stdio (Makefile.am): Likewise.
36484         * modules/stdlib (Makefile.am): Likewise.
36485         * modules/string (Makefile.am): Likewise.
36486         * modules/strings (Makefile.am): Likewise.
36487         * modules/sys_select (Makefile.am): Likewise.
36488         * modules/sys_socket (Makefile.am): Likewise.
36489         * modules/sys_stat (Makefile.am): Likewise.
36490         * modules/sys_time (Makefile.am): Likewise.
36491         * modules/sysexits (Makefile.am): Likewise.
36492         * modules/time (Makefile.am): Likewise.
36493         * modules/unistd (Makefile.am): Likewise.
36494         * modules/wchar (Makefile.am): Likewise.
36495         * modules/wctype (Makefile.am): Likewise.
36496         Reported by Reuben Thomas <rrt@sc3d.org>.
36497
36498 2008-08-29  Bruno Haible  <bruno@clisp.org>
36499
36500         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
36501         any more.
36502
36503 2008-08-29  Simon Josefsson  <simon@josefsson.org>
36504
36505         * MODULES.html.sh (Misc): Add bitrotate.
36506
36507         * modules/bitrotate: New file.
36508
36509         * lib/bitrotate.h: New file.
36510
36511         * modules/bitrotate-tests: New file.
36512
36513         * tests/test-bitrotate.c: New file.
36514
36515         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
36516         on the bitrotate module.
36517
36518         * lib/arctwo.c: Use new bitrotate module.
36519
36520 2008-08-29  Jim Meyering  <meyering@redhat.com>
36521
36522         bootstrap: merge changes from coreutils
36523         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
36524         of copied files.  Remove a kludge, now that this is fixed.
36525         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
36526         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
36527         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
36528
36529 2008-08-29  Bruno Haible  <bruno@clisp.org>
36530
36531         * MODULES.html.sh: Remove --cvs-urls option.
36532
36533 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
36534
36535         maint.mk: adjust to file name change
36536         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
36537
36538 2008-08-28  Jim Meyering  <meyering@redhat.com>
36539
36540         * modules/getndelim2 (License): Relicense to LGPLv2+.
36541         Approved by Richard Stallman for the version of 1995, and by
36542         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
36543
36544 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
36545
36546         * lib/getdelim.c (flockfile, funlockfile): Make all of them
36547         dummy if one is not available.  Do not touch them if
36548         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
36549         (getc_maybe_unlocked): New.
36550         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
36551
36552 2008-08-26  Eric Blake  <ebb9@byu.net>
36553
36554         doc/INSTALL: resync from autoconf
36555         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
36556         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36557         moving...
36558         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36559         * INSTALL: Regenerate.
36560         * INSTALL.ISO: New file.
36561         * INSTALL.UTF-8: Likewise.
36562
36563 2008-08-26  Jim Meyering  <meyering@redhat.com>
36564
36565         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36566         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36567         these definitions conditional, so that they may be overridden, too.
36568
36569 2008-08-26  Bruno Haible  <bruno@clisp.org>
36570
36571         Generate INSTALL file variants with prettier quotes.
36572         * doc/Makefile (INSTALL_PRELUDE): New macro.
36573         (INSTALL): Use it.
36574         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36575
36576 2008-08-26  Bruno Haible  <bruno@clisp.org>
36577
36578         Run makeinfo in an English locale.
36579         * doc/Makefile (MAKEINFO): New variable.
36580
36581 2008-08-26  Bruno Haible  <bruno@clisp.org>
36582
36583         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36584         Suggested by Eric Blake.
36585
36586 2008-08-25  Bruno Haible  <bruno@clisp.org>
36587
36588         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36589
36590 2008-08-25  Eric Blake  <ebb9@byu.net>
36591
36592         c-stack: test that stack overflow can be caught
36593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36594         that platform allows handling stack overflow; at least OS/2 EMX
36595         has sigaltstack, but crashes before transferring control to
36596         handler on stack overflow.
36597         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36598         check for HAVE_STACK_OVERFLOW_HANDLING.
36599         Reported by Elbert Pol.
36600
36601 2008-08-25  Bruno Haible  <bruno@clisp.org>
36602
36603         * doc/posix-functions/strftime.texi: Fix description of strftime
36604         module.
36605
36606 2008-08-24  Bruno Haible  <bruno@clisp.org>
36607
36608         * tests/uniwidth/test-uc_width2.c: New file.
36609         * tests/uniwidth/test-uc_width2.sh: New file.
36610         * modules/uniwidth/width-tests (Files): Add the new files.
36611         (TESTS): Add uniwidth/test-uc_width2.sh.
36612         (TESTS_ENVIRONMENT): New variable.
36613         (check_PROGRAMS): Add test-uc_width2.
36614         (test_uc_width2_SOURCES): New variable.
36615
36616         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36617         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36618         not 0x00AB.
36619         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36620
36621 2008-08-22  Eric Blake  <ebb9@byu.net>
36622
36623         test-lock, test-tls: mention why a test is skipped
36624         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36625         skipped.
36626         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36627
36628         count-one-bits: relax license
36629         * modules/count-one-bits (License): Relicense to LGPLv2+.
36630         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36631
36632 2008-08-22  Andreas Schwab  <schwab@suse.de>
36633
36634         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36635         Remove spurious space in assignment.
36636
36637 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36638
36639         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36640         Paul Eggert <eggert@CS.UCLA.EDU>.
36641
36642 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36643
36644         * modules/gettext: Add m4/threadlib.m4.
36645
36646 2008-08-19  Eric Blake  <ebb9@byu.net>
36647
36648         test-c-stack: fix compilation failure on FreeBSD 5.0
36649         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36650         headers before <sys/resource.h>.
36651         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36652         the bug.
36653         Reported by Nelson H. F. Beebe.
36654
36655         strverscmp: migrate from "strverscmp.h" to <string.h>
36656         * modules/string (Makefile.am): Add new hooks.
36657         * modules/strverscmp (Files): Remove strverscmp.h.
36658         (Depends-on): Add string.
36659         (configure.ac): Add indicator.
36660         (Include): Mention new header.
36661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36662         defaults.
36663         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36664         results.
36665         * lib/strverscmp.h: Delete.
36666         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36667         * tests/test-strverscmp.c (includes): Adjust client.
36668         * lib/check-version.c (includes): Likewise.
36669         * NEWS: Document the change.
36670
36671         strverscmp: add unit test
36672         * modules/strverscmp-tests: New file.
36673         * tests/test-strverscmp.c: Likewise.
36674
36675 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36676
36677         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36678         regarding Windows crypto stuff, from Mono.
36679
36680 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36681
36682         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36683         if present, for intel RND.  Return error on failures.
36684
36685 2008-08-18  Ben Pfaff  <blp@gnu.org>
36686
36687         gitlog-to-changelog: give better diagnostic for failed pipe-open
36688         * build-aux/gitlog-to-changelog: Improve error message: suggest
36689         that the version of Git may be too old.
36690
36691 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36692
36693         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36694         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36695
36696 2008-08-18  Bruno Haible  <bruno@clisp.org>
36697
36698         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36699         pthread_in_use().
36700
36701 2008-08-18  Bruno Haible  <bruno@clisp.org>
36702
36703         * lib/glthread/threadlib.c: Include <pthread.h>.
36704
36705 2008-08-18  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36708         glthread_recursive_lock_* macros.
36709         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36710         Fix syntax error.
36711
36712 2008-08-18  Bruno Haible  <bruno@clisp.org>
36713
36714         * lib/glthread/thread.c: Avoid forcing a context switch right after
36715         thread creation.
36716
36717 2008-08-17  Bruno Haible  <bruno@clisp.org>
36718
36719         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36720         * lib/glthread/thread.h: Provide Win32 specific implementation.
36721         * modules/thread (Files): Add lib/glthread/thread.c.
36722         (Depends-on): Add lock.
36723         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36724
36725 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36726
36727         New module 'yield'.
36728         * modules/yield: New file.
36729         * lib/glthread/yield.h: New file.
36730         * m4/yield.m4: New file.
36731         * MODULES.html.sh (Multithreading): Add yield.
36732
36733 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36734
36735         New module 'thread'.
36736         * modules/thread: New file.
36737         * lib/glthread/thread.h: New file.
36738         * m4/thread.m4: New file.
36739         * MODULES.html.sh (Multithreading): Add thread.
36740
36741 2008-08-17  Bruno Haible  <bruno@clisp.org>
36742
36743         * lib/glthread/lock.h: Include <stdlib.h> always.
36744         * lib/glthread/tls.h: Likewise.
36745         * lib/glthread/cond.h: Likewise.
36746
36747 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36748
36749         New module 'cond'.
36750         * modules/cond: New file.
36751         * lib/glthread/cond.h: New file.
36752         * lib/glthread/cond.c: New file.
36753         * m4/cond.m4: New file.
36754         * MODULES.html.sh (Multithreading): Add cond.
36755
36756 2008-08-16  Eric Blake  <ebb9@byu.net>
36757
36758         c-stack: fix regression on Irix 5.3 from 2008-06-21
36759         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36760         sa_sigaction...
36761         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36762         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36763         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36764         * modules/signal (Makefile.am): Use the value.
36765         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36766         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36767         * doc/posix-headers/signal.texi (signal.h): Document this
36768         portability issue.
36769         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36770         Reported by Tom G. Christensen.
36771
36772 2008-08-17  Bruno Haible  <bruno@clisp.org>
36773
36774         New module 'threadlib'.
36775         * modules/threadlib: New file.
36776         * lib/glthread/threadlib.c: New file, extracted from
36777         lib/glthread/lock.c.
36778         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36779         functions.
36780         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36781         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36782         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36783         macros.
36784         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36785         (gl_DISABLE_THREADS): Remove macro.
36786         * modules/lock (Files): Remove build-aux/config.rpath.
36787         (Depends-on): Remove havelib. Add threadlib.
36788         (configure.ac-early): Remove section.
36789         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36790         * modules/tls (Depends-on): Remove lock. Add threadlib.
36791         (Link): New section, copied from threadlib.
36792         * MODULES.html.sh (Multithreading): Add threadlib.
36793
36794 2008-08-14  Bruno Haible  <bruno@clisp.org>
36795
36796         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36797         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36798         glthread_rwlock_unlock, glthread_rwlock_destroy,
36799         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36800         glthread_recursive_lock_destroy): Define as macros always.
36801         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36802         glthread_lock_lock.
36803         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36804         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36805         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36806         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36807         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36808         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36809         (glthread_recursive_lock_lock_func): Renamed from
36810         glthread_recursive_lock_lock.
36811         (glthread_recursive_lock_unlock_func): Renamed from
36812         glthread_recursive_lock_unlock.
36813         (glthread_recursive_lock_destroy_func): Renamed from
36814         glthread_recursive_lock_destroy.
36815
36816 2008-08-14  Bruno Haible  <bruno@clisp.org>
36817
36818         * lib/glthread/lock.h: Renamed from lib/lock.h.
36819         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36820         * lib/glthread/tls.h: Renamed from lib/tls.h.
36821         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36822         * lib/fstrcmp.c: Update includes.
36823         * lib/strsignal.c: Update includes.
36824         * modules/lock (Files, Makefile.am): Update.
36825         (Include): Change to "glthread/lock.h".
36826         * modules/tls (Files, Makefile.am): Update.
36827         (Include): Change to "glthread/tls.h".
36828         * tests/test-lock.c: Update includes.
36829         * tests/test-tls.c: Update includes.
36830         * NEWS: Mention the renamed header files.
36831
36832 2008-08-11  Jim Meyering  <meyering@redhat.com>
36833
36834         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36835
36836 2008-08-11  Eric Blake  <ebb9@byu.net>
36837
36838         test-c-stack: avoid C99-ism
36839         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36840         before statement.
36841         Reported by Alain Guibert.
36842
36843 2008-08-10  Jim Meyering  <meyering@redhat.com>
36844
36845         ensure that return value of uinttostr et al are not ignored
36846         * lib/inttostr.h (__GNUC_PREREQ): Define.
36847         (__attribute_warn_unused_result__): Define.
36848         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36849
36850 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36851
36852         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36853         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36854
36855 2008-08-07  Jim Meyering  <meyering@redhat.com>
36856
36857         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36858
36859         * modules/mkstemp (License): Relicense under LGPLv2+.
36860         * modules/tempname (License): Likewise.
36861
36862 2008-08-06  Bruno Haible  <bruno@clisp.org>
36863
36864         * lib/poll.c (poll): Further micro-optimization.
36865
36866 2008-08-06  Jim Meyering  <meyering@redhat.com>
36867
36868         inet_pton.c: use locale-independent tolower
36869         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36870         (inet_pton6): Use c_tolower rather than tolower.
36871         * modules/inet_pton (Depends-on): Add c-ctype.
36872
36873 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36874
36875         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36876         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36877
36878 2008-08-06  Jim Meyering  <meyering@redhat.com>
36879
36880         * modules/inet_pton (License): Relicense under LGPLv2+.
36881
36882 2008-08-03  Bruno Haible  <bruno@clisp.org>
36883
36884         Additional non-aborting API for lock and tls.
36885         * lib/lock.h: Include <errno.h>.
36886         (glthread_lock_init): New macro/function.
36887         (gl_lock_init): Define as wrapper around glthread_lock_init.
36888         (glthread_lock_lock): New macro/function.
36889         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36890         (glthread_lock_unlock): New macro/function.
36891         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36892         (glthread_lock_destroy): New macro/function.
36893         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36894         (glthread_rwlock_init): New macro/function.
36895         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36896         (glthread_rwlock_rdlock): New macro/function.
36897         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36898         (glthread_rwlock_wrlock): New macro/function.
36899         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36900         (glthread_rwlock_unlock): New macro/function.
36901         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36902         (glthread_rwlock_destroy): New macro/function.
36903         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36904         (glthread_recursive_lock_init): New macro/function.
36905         (gl_recursive_lock_init): Define as wrapper around
36906         glthread_recursive_lock_init.
36907         (glthread_recursive_lock_lock): New macro/function.
36908         (gl_recursive_lock_lock): Define as wrapper around
36909         glthread_recursive_lock_lock.
36910         (glthread_recursive_lock_unlock): New macro/function.
36911         (gl_recursive_lock_unlock): Define as wrapper around
36912         glthread_recursive_lock_unlock.
36913         (glthread_recursive_lock_destroy): New macro/function.
36914         (gl_recursive_lock_destroy): Define as wrapper around
36915         glthread_recursive_lock_destroy.
36916         (glthread_once): New macro/function.
36917         (gl_once): Define as wrapper around glthread_once.
36918         Update function declarations.
36919         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36920         glthread_rwlock_init. Return error code.
36921         (glthread_rwlock_rdlock_multithreaded): Renamed from
36922         glthread_rwlock_rdlock. Return error code.
36923         (glthread_rwlock_wrlock_multithreaded): Renamed from
36924         glthread_rwlock_wrlock. Return error code.
36925         (glthread_rwlock_unlock_multithreaded): Renamed from
36926         glthread_rwlock_unlock. Return error code.
36927         (glthread_rwlock_destroy_multithreaded): Renamed from
36928         glthread_rwlock_destroy. Return error code.
36929         (glthread_recursive_lock_init_multithreaded): Renamed from
36930         glthread_recursive_lock_init. Return error code.
36931         (glthread_recursive_lock_lock_multithreaded): Renamed from
36932         glthread_recursive_lock_lock. Return error code.
36933         (glthread_recursive_lock_unlock_multithreaded): Renamed from
36934         glthread_recursive_lock_unlock. Return error code.
36935         (glthread_recursive_lock_destroy_multithreaded): Renamed from
36936         glthread_recursive_lock_destroy. Return error code.
36937         (glthread_once_call): Make static.
36938         (glthread_once_multithreaded): Renamed from glthread_once.
36939         * lib/tls.h: Include <errno.h>.
36940         (glthread_tls_key_init): New macro/function.
36941         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36942         (glthread_tls_set): New macro/function.
36943         (gl_tls_set): Define as wrapper around glthread_tls_set.
36944         (glthread_tls_key_destroy): New macro/function.
36945         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36946         Update function declarations.
36947         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36948         glthread_tls_get.
36949         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36950
36951 2008-08-04  Eric Blake  <ebb9@byu.net>
36952
36953         gnumakefile: use space, not TAB, outside of targets
36954         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36955
36956 2008-08-02  Jim Meyering  <meyering@redhat.com>
36957
36958         getdate.y: avoid locale-dependent date parsing failure
36959         In Turkish locales, getdate would fail to recognize keywords
36960         containing a lowercase "i".  The solution is not to rely on
36961         locale-sensitive case-conversion.
36962         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36963         (lookup_word): Use c_toupper in place of toupper.
36964         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36965         Reported by Vefa Bicakci <bicave@superonline.com> in
36966         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36967         * modules/getdate (Depends-on): Add c-ctype.
36968
36969 2008-08-02  Bruno Haible  <bruno@clisp.org>
36970
36971         * gnulib-tool (func_import): When updating or creating a .gitignore
36972         file, prepend each added line with a slash, and ignore leading slashes
36973         from the existing lines.
36974         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36975
36976 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36977
36978         Portability fix for GNU make 3.79.1.
36979         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36980         versions do not understand.
36981
36982 2008-08-01  Bruno Haible  <bruno@clisp.org>
36983
36984         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36985         * tests/test-isnanf.h (zero): New variable.
36986         (main): Avoid literal -0.0f.
36987         * tests/test-isnand.h (zero): New variable.
36988         (main): Avoid literal -0.0.
36989         * tests/test-isnanl.h (zero): New variable.
36990         (main): Avoid literal -0.0L.
36991         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36992         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36993         -0.0, -0.0L.
36994         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36995         (test_signbitd): Avoid literal -0.0.
36996         (test_signbitl): Avoid literal -0.0L.
36997         * tests/test-ceilf1.c (zero): New variable.
36998         (main): Avoid literal -0.0f.
36999         * tests/test-ceill.c (zero): New variable.
37000         (main): Avoid literal -0.0L.
37001         * tests/test-floorf1.c (zero): New variable.
37002         (main): Avoid literal -0.0f.
37003         * tests/test-floorl.c (zero): New variable.
37004         (main): Avoid literal -0.0L.
37005         * tests/test-roundf1.c (zero): New variable.
37006         (main): Avoid literal -0.0f.
37007         * tests/test-round1.c (zero): New variable.
37008         (main): Avoid literal -0.0.
37009         * tests/test-roundl.c (zero): New variable.
37010         (main): Avoid literal -0.0L.
37011         * tests/test-truncf1.c (zero): New variable.
37012         (main): Avoid literal -0.0f.
37013         * tests/test-trunc1.c (zero): New variable.
37014         (main): Avoid literal -0.0.
37015         * tests/test-truncl.c (zero): New variable.
37016         (main): Avoid literal -0.0L.
37017         * tests/test-frexp.c (zero): New variable.
37018         (main): Avoid literal -0.0.
37019         * tests/test-frexpl.c (zero): New variable.
37020         (main): Avoid literal -0.0L.
37021         * tests/test-ldexpl.c (zero): New variable.
37022         (main): Avoid literal -0.0L.
37023         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37024         (zerod, zerol): New variables.
37025         (test_function): Avoid literals -0.0, -0.0L.
37026         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37027         (zerod, zerol): New variables.
37028         (test_function): Avoid literals -0.0, -0.0L.
37029         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37030         (zerod, zerol): New variables.
37031         (test_function): Avoid literals -0.0, -0.0L.
37032         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37033         (zerod, zerol): New variables.
37034         (test_function): Avoid literals -0.0, -0.0L.
37035         * tests/test-strtod.c (zero): New variable.
37036         (main): Avoid literal -0.0.
37037         Reported by Jonathan C. Patschke <jp@centtech.com>.
37038
37039 2008-07-31  Jim Meyering  <meyering@redhat.com>
37040
37041         sha256.h: correct definition of SHA224_DIGEST_SIZE
37042         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37043         Reported by Paulie Pena IV <paulie4@gmail.com>.
37044         Define as 224 / 8, rather than as a literal.
37045         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37046         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37047         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37048
37049 2008-07-31  Bruno Haible  <bruno@clisp.org>
37050
37051         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37052         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37053         Reported by Jonathan Patschke <jp@centtech.com>.
37054
37055 2008-07-31  Bruno Haible  <bruno@clisp.org>
37056
37057         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37058         Reported by Paolo Bonzini <bonzini@gnu.org>.
37059
37060 2008-07-30  Eric Blake  <ebb9@byu.net>
37061
37062         test-strtod: allow compilation without -lm
37063         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37064         Reported by Dennis Clarke <blastwave@gmail.com>.
37065
37066 2008-07-28  Jim Meyering  <meyering@redhat.com>
37067
37068         bootstrap: work also when there are no .po files in po/
37069         * build-aux/bootstrap (update_po_files): Complete the change
37070         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37071
37072 2008-07-27  Jim Meyering  <meyering@redhat.com>
37073
37074         * users.txt: Add zile.
37075
37076 2008-07-26  Ben Pfaff  <blp@gnu.org>
37077
37078         Add missing dependencies on new m4/exponent[fdl].m4 files.
37079         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37080         * modules/isnand-nolibm: Add m4/exponentd.m4.
37081         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37082         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37083         m4/isnan[fdl].m4, because the macros actually used moved.
37084         Reported by Jim Meyering.
37085
37086 2008-07-14  Ben Pfaff  <blp@gnu.org>
37087
37088         Add isinf module.
37089         * lib/isinf.c: New file.
37090         * lib/math.in.h: Define isinf macro if we have decided to replace
37091         it.
37092         * m4/isinf.m4: New file.
37093         * m4/math_h.m4: Initialize and substitute variables for isinf
37094         module.
37095         * modules/isinf: New file.
37096         * modules/isinf-tests: New file.
37097         * modules/math: Add substitutions for new module.
37098         * tests/test-isinf.c: New file.
37099         * doc/posix-functions/isinf.texi: Mention new module.
37100         * MODULES.html.sh: Mention new module.
37101
37102 2008-07-14  Ben Pfaff  <blp@gnu.org>
37103
37104         Factor out some macros for use by additional modules.
37105         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37106         exponentf.m4.
37107         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37108         exponentd.m4.
37109         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37110         file exponentl.m4.
37111         * m4/exponentf.m4: New file.
37112         * m4/exponentd.m4: New file.
37113         * m4/exponentl.m4: New file.
37114         * modules/isnanf: Use new file m4/exponentf.m4.
37115         * modules/isnand: Use new file m4/exponentd.m4.
37116         * modules/isnanl: Use new file m4/exponentl.m4.
37117
37118 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37119
37120         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37121         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37122         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37123         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37124
37125         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37126         readlink on platforms without PATH_MAX.
37127
37128 2008-07-21  Eric Blake  <ebb9@byu.net>
37129
37130         Warn, not fail, on stale version.
37131         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37132
37133         Don't allow installation with stale devel version number.
37134         * top/GNUmakefile (_is-install-target): New macro.
37135         (_curr-ver): Forbid installation with stale version number.
37136
37137 2008-07-20  Bruno Haible  <bruno@clisp.org>
37138
37139         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37140         TESTS_ENVIRONMENT.
37141         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37142
37143 2008-07-20  Bruno Haible  <bruno@clisp.org>
37144
37145         * lib/c-stack.h (c_stack_action): Add documentation.
37146         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37147
37148 2008-07-20  Bruno Haible  <bruno@clisp.org>
37149
37150         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37151         * modules/readlink (License): Likewise.
37152
37153 2008-07-17  Eric Blake  <ebb9@byu.net>
37154
37155         * modules/c-stack (Link): Fix typo.
37156
37157         Make c-stack use libsigsegv, when available.
37158         * modules/c-stack (Depends-on): Add libsigsegv.
37159         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37160         needed.
37161         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37162         (segv_handler, overflow_handler, c_stack_action)
37163         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37164         implementation when libsigsegv is available, but only when using
37165         the library is necessary.
37166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37167         comment, explaining why XSI check fails on Linux.
37168         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37169         * tests/test-c-stack2.sh: Tweak skip message.
37170         * NEWS: Document new link-time requirements.
37171
37172 2008-07-16  Eric Blake  <ebb9@byu.net>
37173
37174         c-stack: Expose false positives when not using libsigsegv.
37175         * modules/c-stack-tests (Files): Expand test.
37176         * tests/test-c-stack.c (main): Add means to conditionally trigger
37177         non-overflow SIGSEGV.
37178         * tests/test-c-stack2.sh: New file.
37179
37180 2008-07-14  Bruno Haible  <bruno@clisp.org>
37181
37182         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37183         Reported by Eric Blake.
37184
37185 2008-07-14  Sam Steingold  <sds@gnu.org>
37186             Bruno Haible  <bruno@clisp.org>
37187
37188         New module libsigsegv.
37189         * modules/libsigsegv: New file.
37190         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37191         modifications.
37192         * MODULES.html.sh (Signal handling): New section.
37193
37194 2008-07-14  Bruno Haible  <bruno@clisp.org>
37195
37196         * modules/unictype/ctype-* (Description): Add the word "function".
37197         Improves the resulting doc in MODULES.html.
37198
37199 2008-07-12  Ben Pfaff  <blp@gnu.org>
37200
37201         Add longlong module.
37202         * modules/longlong: New file.
37203
37204 2008-07-12  Bruno Haible  <bruno@clisp.org>
37205
37206         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37207         to empty.
37208
37209 2008-07-10  Ben Pfaff  <blp@gnu.org>
37210
37211         Add isnan module.
37212         * doc/posix-functions/isnan.texi: Mention new module.
37213         * lib/math.in.h: Define isnan macro if we have decided to replace
37214         it.
37215         * m4/isnan.m4: New file.
37216         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37217         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37218         also.
37219         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37220         redundancy.
37221         * m4/math_h.m4: Initialize and substitute variables for isnan
37222         module.
37223         * modules/isnan: New file.
37224         * modules/isnan-tests: New file.
37225         * modules/math: Add substitutions for new module.
37226         * tests/test-isnan.c: New file.
37227         * MODULES.html.sh: Mention new module.
37228
37229 2008-07-10  Ben Pfaff  <blp@gnu.org>
37230
37231         Add isnanf module.
37232         * lib/isnanf.m4: New file.
37233         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
37234         (gl_HAVE_ISNANF_IN_LIBM): New macro.
37235         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
37236         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
37237         * modules/isnanf: New file.
37238         * modules/isnanf-tests: New file.
37239         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
37240         files.
37241         * tests/test-isnanf-nolibm.c: factored most of its contents into
37242         new file tests/test-isnanf.h.
37243         * tests/test-isnanf.h: New file.
37244         * tests/test-isnanf.c: New file.
37245         * MODULES.html.sh: Mention new module.
37246         * doc/glibc-functions/isnanf.texi: Mention new module.
37247
37248 2008-07-10  Ben Pfaff  <blp@gnu.org>
37249
37250         Add isnand module.
37251         * lib/isnand.h: New file.
37252         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
37253         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
37254         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
37255         functionality also.
37256         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
37257         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
37258         (gl_HAVE_ISNAND_IN_LIBM): New macro.
37259         * modules/isnand: New file.
37260         * modules/isnand-tests: New file.
37261         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
37262         files.
37263         * tests/test-isnand-nolibm.c: factored most of its contents into
37264         new file tests/test-isnand.h.
37265         * tests/test-isnand.h: New file.
37266         * tests/test-isnand.c: New file.
37267         * MODULES.html.sh: Mention new module.
37268
37269 2008-07-10  Ben Pfaff  <blp@gnu.org>
37270
37271         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
37272         * lib/isnand.h: Rename lib/isnand-nolibm.h.
37273         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
37274         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
37275         * modules/isnanf-nolibm: Update references to renamed files.
37276         * modules/isnand-nolibm: Likewise.
37277         * modules/isnanf-nolibm-tests: Likewise.
37278         * modules/isnand-nolibm-tests: Likewise.
37279         * lib/frexp.c: Likewise.
37280         * lib/isfinite.c: Likewise.
37281         * lib/signbitd.c: Likewise.
37282         * lib/signbitf.c: Likewise.
37283         * lib/vasnprintf.c: Likewise.
37284         * tests/test-ceilf1.c: Likewise.
37285         * tests/test-ceilf2.c: Likewise.
37286         * tests/test-floorf1.c: Likewise.
37287         * tests/test-floorf2.c: Likewise.
37288         * tests/test-frexp.c: Likewise.
37289         * tests/test-round1.c: Likewise.
37290         * tests/test-round2.c: Likewise.
37291         * tests/test-roundf1.c: Likewise.
37292         * tests/test-strtod.c: Likewise.
37293         * tests/test-trunc1.c: Likewise.
37294         * tests/test-trunc2.c: Likewise.
37295         * tests/test-truncf1.c: Likewise.
37296         * tests/test-truncf2.c: Likewise.
37297         * NEWS: Mention the renamed header files.
37298
37299 2008-07-11  Jim Meyering  <meyering@redhat.com>
37300
37301         vc-list-files: make the last-resort awk code more portable
37302         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
37303         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
37304         does not support it.
37305
37306 2008-07-10  Eric Blake  <ebb9@byu.net>
37307
37308         Work with tar's bootstrap.
37309         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
37310         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
37311         an m4 comment.
37312
37313 2008-07-09  Jim Meyering  <meyering@redhat.com>
37314
37315         posix-shell.m4: fix typo that made this test malfunction
37316         * m4/posix-shell.m4: Remove capitalization in variable name.
37317
37318 2008-07-08  Bruno Haible  <bruno@clisp.org>
37319
37320         * m4/onceonly.m4: Update comments.
37321         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37322
37323 2008-07-04  Jim Meyering  <meyering@redhat.com>
37324
37325         * users.txt: Add vc-dwim.
37326         (bison, coreutils): Use the gitweb URL.
37327
37328 2008-07-03  Jim Meyering  <meyering@redhat.com>
37329
37330         * users.txt: Add libffcall.  From Sam Steingold.
37331
37332 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
37333
37334         getdate.y: do not ignore TZ with relative day, month or year offset
37335         * lib/getdate.y (get_date): Move the tz-handling block to follow the
37336         relative-date-handling, since otherwise, the latter would clobber the
37337         sole output (an updated Start value) of the tz-handling block.
37338         * tests/test-getdate.c: Tests for the fix
37339
37340 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37341
37342         Recognize 'foo_LIBRARIES += libgnu.a'.
37343         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
37344         makefile snippet has already specified an installation location,
37345         also using '+='.
37346
37347 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
37348
37349         getdate.y: factor out common actions
37350         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
37351         Use them in place of open-coded actions.
37352
37353 2008-07-01  Simon Josefsson  <simon@josefsson.org>
37354
37355         Add self-test for getdate module.
37356         * modules/getdate-tests: New file.
37357         * tests/test-getdate.c: New file.
37358
37359 2008-06-29  Bruno Haible  <bruno@clisp.org>
37360
37361         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
37362         .gitignore.
37363         Reported by Sylvain Beucler <beuc@beuc.net>.
37364
37365 2008-06-29  Bruno Haible  <bruno@clisp.org>
37366
37367         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
37368         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
37369
37370 2008-06-29  Bruno Haible  <bruno@clisp.org>
37371
37372         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
37373         EXTRA_DIST.
37374         Reported by Sylvain Beucler <beuc@beuc.net>.
37375
37376 2008-06-26  Jim Meyering  <meyering@redhat.com>
37377
37378         make several modules depend on the "open" module
37379         This provides slightly increased consistency when opening-for-write
37380         the name of a non-directory spelled with a trailing slash.
37381         * modules/chdir-safer: Likewise.
37382         * modules/chown: Likewise.
37383         * modules/clean-temp: Likewise.
37384         * modules/copy-file: Likewise.
37385         * modules/fchdir: Likewise.
37386         * modules/fcntl-safer: Likewise.
37387         * modules/pipe: Likewise.
37388         * modules/utime: Likewise.
37389         Prompted by Eric Blake and Bruno Haible.
37390
37391 2008-06-24  Andreas Schwab  <schwab@suse.de>
37392
37393         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
37394         literals can be used as initializers for global variables.
37395
37396 2008-06-23  Eric Blake  <ebb9@byu.net>
37397
37398         Make gnulib-cache.m4 easier to diff.
37399         * gnulib-tool (func_import): Allow newlines when reading cached
37400         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
37401
37402 2008-06-23  Bruno Haible  <bruno@clisp.org>
37403
37404         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
37405         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
37406         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
37407         m4/signalblocking.m4.
37408         (gl_PREREQ_SIGACTION): Don't invoke it.
37409         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
37410         gl_PREREQ_SIG_HANDLER_H.
37411         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37412         Don't check for sigaction here.
37413
37414 2008-06-23  Bruno Haible  <bruno@clisp.org>
37415
37416         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
37417         (install_handlers): Don't set the SA_RESETHAND flag.
37418
37419 2008-06-23  Bruno Haible  <bruno@clisp.org>
37420
37421         * m4/sigaction.m4: Comment fixes.
37422         * lib/signal.in.h: Likewise.
37423
37424 2008-06-23  Eric Blake  <ebb9@byu.net>
37425
37426         Fix typo.
37427         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
37428
37429         Avoid SA_ namespace.
37430         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
37431         Reported by Ralf Wildenhues.
37432
37433         Avoid test failure due to SA_RESTORER.
37434         * tests/test-sigaction.c (SA_MASK): New macro.
37435         (main): Avoid failing due to extension flags being set.
37436         Reported by Jim Meyering.
37437
37438         Revert use of sig-handler.h in sigprocmask.c.
37439         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
37440         it requires the existence of struct sigaction.
37441         * lib/sigprocmask.c (handler_t): Restore typedef.
37442         (rpl_signal, old_handlers): Use local type.
37443
37444 2008-06-22  Bruno Haible  <bruno@clisp.org>
37445
37446         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
37447         conditionally.
37448         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37449
37450 2008-06-22  Bruno Haible  <bruno@clisp.org>
37451
37452         * doc/posix-functions/siginterrupt.texi: Move note.
37453
37454         * lib/signal.in.h (SA_RESTART): New macro.
37455         * lib/sigaction.c: Update comment.
37456
37457         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
37458
37459         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
37460         (gl_PREREQ_SIGPROCMASK): Invoke it.
37461         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
37462
37463         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
37464
37465         * lib/sigprocmask.c: Update a comment.
37466
37467 2008-06-21  Eric Blake  <ebb9@byu.net>
37468
37469         Use sigaction module rather than signal().
37470         * modules/c-stack (Depends-on): Add sigaction.
37471         * modules/fatal-signal (Depends-on): Likewise.
37472         * modules/nanosleep (Depends-on): Likewise.
37473         * modules/sigprocmask (Files): Add sig-handler.h.
37474         * modules/sigaction (Files): Likewise.
37475         * lib/sig-handler.h (get_handler): New file, suggested by Paul
37476         Eggert.
37477         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
37478         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
37479         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37480         (init_fatal_signals): Likewise.
37481         * lib/nanosleep.c (rpl_nanosleep): Likewise.
37482         (siginterrupt): Delete fallback.
37483         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
37484         instead.
37485         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
37486         siginterrupt.
37487
37488         New module sigaction, for mingw.
37489         * modules/sigaction: New module...
37490         * modules/sigaction-tests: ...and its test.
37491         * m4/sigaction.m4: New file.
37492         * lib/sigaction.c: Likewise.
37493         * tests/test-sigaction.c: Likewise.
37494         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
37495         * modules/signal (Makefile.am): Likewise.
37496         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
37497         needed.
37498         * doc/posix-headers/signal.texi (signal.h): Mention provided
37499         types.
37500         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
37501         that sigaction is preferable.
37502         * doc/posix-functions/sigaction.texi (sigaction): Mention new
37503         module.
37504         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37505         sigaction.
37506
37507         Improve robustness of sigprocmask by overriding signal.
37508         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
37509         is in use.
37510         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
37511         (SIGKILL, SIGSTOP): Provide fallbacks.
37512         (rpl_signal): Implement.
37513         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
37514         signal can be called inside handlers.
37515
37516         Fix nanosleep module on mingw.
37517         * modules/nanosleep (Depends-on): Add sys_select.
37518         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
37519
37520         Fix licensing of sigprocmask.
37521         * modules/raise (License): Relicense as LGPL.
37522
37523 2008-06-21  Bruno Haible  <bruno@clisp.org>
37524
37525         * lib/propername.c (proper_name_utf8): Don't use the transliterated
37526         result if it contains question marks.
37527         Reported by Michael Geng <linux@michaelgeng.de>.
37528
37529 2008-06-19  Bruno Haible  <bruno@clisp.org>
37530
37531         Fix CVS-ism.
37532         * doc/gnulib.texi: Include updated-stamp.texi.
37533         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
37534         (updated-stamp.texi): New rule.
37535         (gnulib.info): Depend on it.
37536         * doc/.gitignore: Add updated-stamp.texi.
37537         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
37538
37539 2008-06-19  Bruno Haible  <bruno@clisp.org>
37540
37541         * doc/Makefile (gnulib.info): Update and simplify dependencies.
37542         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37543
37544 2008-06-19  Eric Blake  <ebb9@byu.net>
37545
37546         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
37547         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
37548         Reported by Stepan Kasal.
37549
37550 2008-06-18  Bruno Haible  <bruno@clisp.org>
37551
37552         * lib/fatal-signal.c (init_fatal_signals): Add comment.
37553         Reported by Eric Blake.
37554
37555 2008-06-18  Eric Blake  <ebb9@byu.net>
37556
37557         Work around cygwin 1.5.25 strsignal bug.
37558         * tests/test-strsignal.c: Allow for const char *.
37559         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37560
37561 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37562
37563         * users.txt: Update URL to article and add author/date
37564         information.
37565
37566 2008-06-17  Bruno Haible  <bruno@clisp.org>
37567
37568         New macro gl_DISABLE_THREADS.
37569         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37570         if the user did not pass --enable-threads or --disable-threads option.
37571         (gl_DISABLE_THREADS): New macro.
37572         Reported by Eric Blake <ebb9@byu.net>.
37573
37574 2008-06-17  Bruno Haible  <bruno@clisp.org>
37575
37576         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37577         when the macro ignores it.
37578         Based on a patch by Eric Blake <ebb9@byu.net>.
37579
37580 2008-06-17  Bruno Haible  <bruno@clisp.org>
37581
37582         * modules/tls (License): Change to LGPLv2+.
37583         Reported by Eric Blake.
37584
37585 2008-06-17  Eric Blake  <ebb9@byu.net>
37586
37587         Simplify c-stack prerequisites.
37588         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37589         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37590         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37591         check.
37592         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37593         <sys/resource.h>.
37594
37595         Move c-stack test into testsuite.
37596         * modules/c-stack-tests: New file.
37597         * lib/c-stack.c [DEBUG]: Move test program...
37598         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37599         fail test if sigaltstack is lacking.
37600         * tests/test-c-stack.sh: New driver file.
37601
37602 2008-06-16  Eric Blake  <ebb9@byu.net>
37603
37604         Use raise module consistently.
37605         * modules/fatal-signal (Depends-on): Add raise.
37606         * modules/sigprocmask (Depends-on): Likewise.
37607         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37608         * lib/sigprocmask.c (sigprocmask): Likewise.
37609         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37610         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37611
37612         Fix compliance bug in sigpending.
37613         * lib/sigprocmask.c (sigpending): Return pending array via
37614         parameter, not return value.
37615
37616 2008-06-14  Eric Blake  <ebb9@byu.net>
37617
37618         Improve obstack-printf test code.
37619         * tests/test-obstack-printf.c (test_function): Fix comment, and
37620         simplify usage of obstack_* in macros.  Add a test for coverage.
37621         Reported by Bruno Haible.
37622
37623 2008-06-14  Bruno Haible  <bruno@clisp.org>
37624
37625         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37626         array size as a constant, not as a const variable.
37627         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37628         AC_USE_SYSTEM_EXTENSIONS.
37629         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37630         Test whether the obstack_printf function actually exists.
37631         * modules/obstack-printf (Depends-on): Add extensions.
37632         (Include): Remove obstack.h.
37633         * modules/obstack-printf-posix (Depends-on): Add extensions.
37634         (Include): Remove obstack.h.
37635
37636 2008-06-13  Eric Blake  <ebb9@byu.net>
37637
37638         Add obstack-printf and obstack-printf-posix modules.
37639         * modules/obstack-printf: New file.
37640         * modules/obstack-printf-posix: Likewise.
37641         * MODULES.html.sh (Misc): Mention them.
37642         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37643         Likewise.
37644         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37645         Likewise.
37646         * modules/stdio (Makefile.am): Accomodate new modules.
37647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37648         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37649         Declare.
37650         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37651         functions.
37652         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37653         (gl_REPLACE_OBSTACK_PRINTF): New macros
37654         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37655         * tests/test-obstack-printf.c: New file.
37656         * modules/obstack-printf-tests: Likewise.
37657         * modules/obstack-printf-posix-tests: Likewise.
37658
37659 2008-06-11  Bruno Haible  <bruno@clisp.org>
37660
37661         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37662         * lib/open.c: Include errno.h.
37663         (open): Fail when attempting to write to a file that has a trailing
37664         slash.
37665         * tests/test-open.c (main): Test against trailing slash bug.
37666         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37667
37668 2008-06-10  Bruno Haible  <bruno@clisp.org>
37669
37670         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37671         for $? to work inside the trap command, with various /bin/sh-s.
37672         * tests/test-vc-list-files-cvs.sh: Likewise.
37673
37674 2008-06-10  Bruno Haible  <bruno@clisp.org>
37675
37676         * lib/acl-internal.h: Don't include gettext.h here.
37677         * lib/set-mode-acl.c: Include gettext.h here.
37678         * lib/copy-acl.c: Likewise.
37679
37680 2008-06-10  Bruno Haible  <bruno@clisp.org>
37681
37682         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37683         * lib/wait-process.c (wait_subprocess): Likewise.
37684         * lib/execute.h (execute): Add termsigp argument.
37685         * lib/execute.c (execute): Likewise.
37686         * lib/csharpcomp.c (compile_csharp_using_pnet,
37687         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37688         * lib/csharpexec.c (execute_csharp_using_pnet,
37689         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37690         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37691         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37692         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37693         is_jikes_present): Update.
37694         * lib/javaexec.c (execute_java_class): Update.
37695         * lib/javaversion.c (execute_and_read_line): Update.
37696         * NEWS: Document the changes.
37697         Reported by Eric Blake.
37698
37699 2008-06-10  Eric Blake  <ebb9@byu.net>
37700
37701         Add missing include.
37702         * tests/test-strstr.c (includes): Add <signal.h>.
37703         * tests/test-strcasestr.c (includes): Likewise.
37704         * tests/test-memmem.c (includes): Likewise.
37705
37706 2008-06-10  Bruno Haible  <bruno@clisp.org>
37707
37708         * lib/wait-process.c (wait_subprocess): Add an assertion.
37709
37710 2008-06-10  Bruno Haible  <bruno@clisp.org>
37711
37712         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37713
37714 2008-06-10  Bruno Haible  <bruno@clisp.org>
37715
37716         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37717         using alarm().
37718         * tests/test-strcasestr.c (main): Likewise.
37719         * tests/test-strstr.c (main): Likewise.
37720
37721 2008-06-09  Bruno Haible  <bruno@clisp.org>
37722
37723         Work around the Solaris 10 ACE ACLs ABI change.
37724         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37725         declare if ACL_NO_TRIVIAL is present.
37726         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37727         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37728         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37729         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37730         define if ACL_NO_TRIVIAL is present.
37731         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37732         and use the current ABI.
37733         (file_has_acl): Use same #if condition as elsewhere.
37734         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37735         in use, and use the current ABI.
37736         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37737         Reported by Jim Meyering.
37738
37739 2008-06-09  Eric Blake  <ebb9@byu.net>
37740
37741         Work around environments that (stupidly) ignore SIGALRM.
37742         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37743         before using alarm().
37744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37745         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37746         Reported by Ian Beckwith <ianb@erislabs.net>.
37747
37748         Produce autobuild blurb earlier in log.
37749         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37750
37751 2008-06-09  Jim Meyering  <meyering@redhat.com>
37752         and OndÅ™ej Vašík  <ovasik@redhat.com>
37753
37754         utimens.c: correct kernel bug work-around
37755         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37756         failure, not success, and the kernel bug we're trying to work
37757         around affects not just the utimensat call, but also the fallback
37758         futimens call.
37759         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37760         not success.
37761         [HAVE_FUTIMENS]: Use the same work-around, here.
37762
37763 2008-06-09  Jim Meyering  <meyering@redhat.com>
37764
37765         add more guards around definition of ACE_-related code
37766         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37767         ALLOW and ACE_OWNER are also defined.
37768
37769 2008-06-08  Bruno Haible  <bruno@clisp.org>
37770
37771         * lib/acl-internal.h: Add me as co-author.
37772         * lib/file-has-acl.c: Likewise.
37773         * lib/set-mode-acl.c: Likewise.
37774         * lib/copy-acl.c: Likewise.
37775
37776 2008-06-08  Bruno Haible  <bruno@clisp.org>
37777
37778         Add support for AIX ACLs.
37779         * lib/acl-internal.h (acl_nontrivial): New declaration.
37780         * lib/file-has-acl.c (acl_nontrivial): New function.
37781         (file_has_acl): Add implementation using AIX 4 ACL API.
37782         * lib/set-mode-acl.c (qset_acl): Likewise.
37783         * lib/copy-acl.c (qcopy_acl): Likewise.
37784
37785 2008-06-08  Bruno Haible  <bruno@clisp.org>
37786
37787         Add support for HP-UX ACLs.
37788         * lib/acl-internal.h (acl_nontrivial): New declaration.
37789         * lib/file-has-acl.c (acl_nontrivial): New function.
37790         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37791         * lib/set-mode-acl.c (qset_acl): Likewise.
37792         * lib/copy-acl.c (qcopy_acl): Likewise.
37793
37794 2008-06-08  Bruno Haible  <bruno@clisp.org>
37795
37796         Add support for Cygwin ACLs.
37797         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37798         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37799         the chmod_or_fchmod call.
37800         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37801
37802 2008-06-08  Bruno Haible  <bruno@clisp.org>
37803
37804         Fix bug with setuid modes in Solaris 10+ code.
37805         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37806         succeeded, when the mode contains some special bits.
37807
37808 2008-06-08  Bruno Haible  <bruno@clisp.org>
37809
37810         Add support for Solaris 7..10 ACLs.
37811         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37812         declarations.
37813         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37814         functions.
37815         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37816         * lib/set-mode-acl.c (qset_acl): Likewise.
37817         * lib/copy-acl.c (qcopy_acl): Likewise.
37818
37819 2008-06-08  Bruno Haible  <bruno@clisp.org>
37820
37821         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37822         declaration.
37823         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37824         (acl_access_nontrivial): Remove MacOS X case.
37825         (file_has_acl): Use acl_extended_nontrivial.
37826         * lib/copy-acl.c (qcopy_acl): Likewise.
37827
37828 2008-06-08  Bruno Haible  <bruno@clisp.org>
37829
37830         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37831
37832 2008-06-08  Jim Meyering  <meyering@redhat.com>
37833
37834         * modules/acl (Maintainer): Add Bruno Haible.
37835
37836 2008-06-07  Bruno Haible  <bruno@clisp.org>
37837
37838         Improve support for Tru64 ACLs.
37839         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37840         ACL on OSF/1.
37841
37842 2008-06-07  Bruno Haible  <bruno@clisp.org>
37843
37844         Add support for MacOS X ACLs.
37845         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37846         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37847         * lib/set-mode-acl.c (qset_acl): Likewise.
37848         * lib/copy-acl.c (qcopy_acl): Likewise.
37849
37850 2008-06-07  Bruno Haible  <bruno@clisp.org>
37851
37852         Fix memory leak introduced on 2008-05-22.
37853         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37854         use.
37855
37856 2008-06-07  Bruno Haible  <bruno@clisp.org>
37857
37858         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37859         to construct an empty ACL.
37860
37861 2008-06-07  Bruno Haible  <bruno@clisp.org>
37862
37863         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37864         precisely.
37865         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37866
37867 2008-06-07  Bruno Haible  <bruno@clisp.org>
37868
37869         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37870         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37871
37872 2008-06-07  Bruno Haible  <bruno@clisp.org>
37873
37874         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37875         regardless of POSIX.
37876         * doc/posix-functions/_longjmp.texi: Likewise.
37877         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37878         SystemV platform in this case.
37879
37880 2008-06-06  Eric Blake  <ebb9@byu.net>
37881
37882         Document abort() bugs.
37883         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37884
37885         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37886         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37887         sigsetjmp.
37888         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37889         siglongjmp, but only as a macro.
37890         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37891         is obsolete.
37892         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37893
37894         Tweak documentation to cover cygwin argz bugs.
37895         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37896         argz bug fix; no code change needed since no cygwin releases
37897         occurred between the last fix and the bug being tested.
37898         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37899         module and recently fixed cygwin bugs.
37900         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37901         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37902         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37903         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37904         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37905         Likewise.
37906         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37907         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37908         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37909         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37910         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37911         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37912         Likewise.
37913
37914         Avoid gcc warning on cygwin.
37915         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37916         !ACL_NO_TRIVIAL]: Avoid unused variable.
37917
37918 2008-06-05  Eric Blake  <ebb9@byu.net>
37919
37920         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37921         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37922         git-version-gen fails to come up with a version.
37923         Reported by Simon Josefsson.
37924
37925 2008-06-05  Jim Meyering  <meyering@redhat.com>
37926             Paul Eggert  <eggert@cs.ucla.edu>
37927
37928         utimens.c: work around a probable Linux kernel bug
37929         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37930         appears to be a kernel bug that causes utimensat to return 280
37931         instead of 0, indicating success.
37932
37933 2008-06-04  Bruno Haible  <bruno@clisp.org>
37934
37935         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
37936         2008-06-01 commit.
37937
37938 2008-06-04  Bruno Haible  <bruno@clisp.org>
37939
37940         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37941         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37942         (file_has_acl): Use it. Save errno afterwards.
37943         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37944
37945 2008-06-03  Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37948         draft code. Simplify #ifs.
37949         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37950         Put Solaris code after POSIX-draft code. Fix comments regarding
37951         Solaris 10, HP-UX. Mention Cygwin.
37952         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37953
37954 2008-06-03  Eric Blake  <ebb9@byu.net>
37955
37956         Provide fallback for older kernels.
37957         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37958         Provide runtime fallback if kernel lacks support.
37959         Reported by Mike Frysinger.
37960
37961 2008-06-02  Bruno Haible  <bruno@clisp.org>
37962
37963         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37964         it exists.
37965
37966 2008-06-02  Bruno Haible  <bruno@clisp.org>
37967
37968         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37969         * lib/copy-acl.c (qcopy_acl): Update comment.
37970
37971 2008-06-02  Bruno Haible  <bruno@clisp.org>
37972
37973         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37974         like ACL APIs.
37975
37976 2008-06-02  Bruno Haible  <bruno@clisp.org>
37977
37978         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37979         * tests/test-set-mode-acl.sh: Likewise.
37980         * tests/test-copy-acl.sh: Likewise.
37981         * tests/test-copy-file.sh: Likewise.
37982
37983 2008-06-02  Bruno Haible  <bruno@clisp.org>
37984
37985         * tests/test-file-has-acl.sh: Remove unused code.
37986
37987 2008-06-01  Bruno Haible  <bruno@clisp.org>
37988
37989         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37990         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37991         messages.
37992         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37993
37994 2008-06-01  Bruno Haible  <bruno@clisp.org>
37995
37996         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37997         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37998         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37999         APIs.
38000         * modules/acl-tests (configure.ac): Remove tests now contained in
38001         m4/acl.m4.
38002
38003 2008-06-02  Jim Meyering  <meyering@redhat.com>
38004
38005         announce-gen: use a better key-server host name
38006         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38007         it may be more consistently reliable.  Suggested by Werner Koch
38008         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38009
38010 2008-06-01  Bruno Haible  <bruno@clisp.org>
38011
38012         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38013         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38014
38015 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38016
38017         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38018
38019 2008-06-01  Bruno Haible  <bruno@clisp.org>
38020
38021         New ACL tests.
38022         * tests/test-file-has-acl.sh: New file.
38023         * tests/test-file-has-acl.c: New file.
38024         * tests/test-set-mode-acl.sh: New file.
38025         * tests/test-set-mode-acl.c: New file.
38026         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38027         * tests/test-copy-acl.c: New file.
38028         * modules/acl-tests: New file, based on modules/copy-file-tests.
38029         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38030         (Depends-on): Add acl-tests.
38031         (configure.ac): Remove checks.
38032         (Makefile.am): Don't create test-sameacls program here any more.
38033
38034 2008-06-01  Bruno Haible  <bruno@clisp.org>
38035
38036         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38037         * tests/test-sameacls.c: Include progname.h.
38038         (main): Invoke set_program_name. Portability fixes for MacOS X,
38039         Solaris, HP-UX.
38040
38041 2008-06-01  Bruno Haible  <bruno@clisp.org>
38042
38043         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38044         function.
38045         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38046
38047 2008-06-01  Bruno Haible  <bruno@clisp.org>
38048
38049         * modules/rpmatch (Depends-on): Add strdup.
38050
38051 2008-06-01  Bruno Haible  <bruno@clisp.org>
38052
38053         * lib/pipe.c: Include unistd-safer.h.
38054         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38055         * modules/pipe (Depends-on): Add unistd-safer.
38056
38057 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38058
38059         * modules/autobuild (configure.ac): Call AB_INIT.
38060
38061 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38062
38063         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38064         Suggested by Bruno Haible <bruno@clisp.org>.
38065
38066 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38067
38068         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38069         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38070         <bruno@clisp.org>.
38071
38072 2008-05-29  Eric Blake  <ebb9@byu.net>
38073
38074         Prefer new POSIX 200x interfaces over futimesat.
38075         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38076         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38077         when available.
38078         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38079
38080 2008-05-28  Bruno Haible  <bruno@clisp.org>
38081
38082         * modules/stpcpy (License): Change to LGPLv2+.
38083         Requested by David Lutterkort <dlutter@redhat.com>.
38084
38085 2008-05-27  Bruno Haible  <bruno@clisp.org>
38086
38087         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38088         current mingw.
38089         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38090
38091 2008-05-27  Bruno Haible  <bruno@clisp.org>
38092
38093         * modules/iconv_open (Link): New section, from module 'iconv'.
38094         * modules/striconv (Link): Likewise.
38095         * modules/striconveh (Link): Likewise.
38096         * modules/xstriconv (Link): Likewise.
38097         * modules/unicodeio (Link): Likewise.
38098         * modules/propername (Link): Likewise.
38099         Reported by Jim Meyering.
38100
38101 2008-05-26  Jim Meyering  <meyering@redhat.com>
38102
38103         sha256: do not artificially restrict buffer length to be < 2^32
38104         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38105         uint32_t to size_t.
38106         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38107         to match.
38108
38109         avoid unaligned access errors, e.g., on sparc
38110         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38111         direct access through a possibly-unaligned uint64* pointer.
38112         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38113         direct access through a possibly-unaligned uint32* pointer.
38114         Prompted by this patch from Tom "spot" Callaway:
38115         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38116
38117         sha512.c: fix typo in comment
38118         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38119
38120 2008-05-25  Bruno Haible  <bruno@clisp.org>
38121
38122         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38123         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38124         (Makefile.am): Update lib_SOURCES.
38125
38126 2008-05-25  Bruno Haible  <bruno@clisp.org>
38127
38128         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38129
38130 2008-05-25  Jim Meyering  <meyering@redhat.com>
38131
38132         useless-if-before-free: freed expr may have white-space differences
38133         * build-aux/useless-if-before-free: Recognize cases in which the
38134         freed expression differs from the tested one in embedded white
38135         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38136         $1 was used, so we can't make any regexp shy.  Improved tests now
38137         detect this.
38138
38139         useless-if-before-free: accept white space in the expression.
38140         * build-aux/useless-if-before-free: For now, any white space
38141         in the expression must be identical in the free argument.
38142
38143         useless-if-before-free: efficiency tweak
38144         * build-aux/useless-if-before-free: Make the expression-matching
38145         regexp "shy".
38146         Make the *outer* regexp shy, not the expr-matching one.
38147
38148         update code-in-comment to accept cast of free arg
38149         * build-aux/useless-if-before-free: Update regexp.
38150
38151 2008-05-25  Bruno Haible  <bruno@clisp.org>
38152
38153         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38154         * modules/copy-file-tests (Files, Makefile.am): Update.
38155         * tests/test-copy-file.c (func_test_copy): Update.
38156
38157 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38158
38159         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38160
38161 2008-05-23  Bruno Haible  <bruno@clisp.org>
38162
38163         Improve support for ACLs on OSF/1.
38164         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38165         Remove fallback for unknown flavors of ACLs.
38166
38167 2008-05-22  Bruno Haible  <bruno@clisp.org>
38168
38169         Add support for ACLs on OSF/1.
38170         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38171         replacements.
38172         (acl_free_text): New macro fallback.
38173         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38174         acl_free.
38175         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38176         acl_free_text function. Require AC_C_INLINE.
38177
38178 2008-05-22  Bruno Haible  <bruno@clisp.org>
38179
38180         Make copy_acl work on MacOS X 10.5.
38181         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38182         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38183         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38184         If MODE_INSIDE_ACL, don't assume that every system has the same text
38185         representation for ACLs as FreeBSD.
38186         * lib/copy-acl.c (copy_acl): Add support for platforms with
38187         !MODE_INSIDE_ACL.
38188         * lib/file-has-acl.c (file_has_acl): Likewise.
38189         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38190         FreeBSD, MacOS X, or IRIX, respectively.
38191
38192 2008-05-22  Bruno Haible  <bruno@clisp.org>
38193
38194         * lib/acl.h: Don't include <sys/acl.h>.
38195         (GETACLCNT): Move fallback to lib/acl-internal.h.
38196         * lib/acl-internal.h: Include <sys/acl.h> here.
38197         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38198
38199 2008-05-22  Bruno Haible  <bruno@clisp.org>
38200
38201         Split off copy_acl function to separate file.
38202         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38203         * lib/acl.c (copy_acl): Moved function to separate file.
38204         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38205         * modules/acl (Files): Add lib/copy-acl.c.
38206         (Makefiles.am): Augment lib_SOURCES.
38207
38208 2008-05-22  Bruno Haible  <bruno@clisp.org>
38209
38210         * modules/copy-file-tests: New file.
38211         * tests/test-copy-file.sh: New file.
38212         * tests/test-copy-file.c: New file.
38213         * tests/test-copy-file-sameacls.c: New file.
38214
38215 2008-05-22  Eric Blake  <ebb9@byu.net>
38216
38217         Avoid gcc warning.
38218         * tests/test-memcmp.c (main): Pass NULL indirectly.
38219
38220 2008-05-21  Bruno Haible  <bruno@clisp.org>
38221
38222         Add reference doc about ACLs.
38223         * doc/acl-resources.txt: New file.
38224         * doc/acl-cygwin.txt: New file.
38225
38226 2008-05-21  Bruno Haible  <bruno@clisp.org>
38227
38228         Avoid one more warning from gcc.
38229         * lib/vasnprintf.c (IF_LINT): Update comments.
38230         (VASNPRINTF): Use it also for the 'prefix' array initializer.
38231
38232 2008-05-21  Jim Meyering  <meyering@redhat.com>
38233
38234         avoid a warning from gcc
38235         * lib/vasnprintf.c (IF_LINT): Define.
38236         (scale10_round_decimal_long_double):
38237         Use it to avoid a "may be used uninitialized" warning.
38238         (scale10_round_decimal_double): Likewise.
38239
38240 2008-05-21  Simon Josefsson  <simon@josefsson.org>
38241
38242         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
38243         declared.
38244
38245 2008-05-20  Bruno Haible  <bruno@clisp.org>
38246
38247         * tests/test-memcmp.c (main): Test also the sign of the result. Test
38248         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
38249
38250 2008-05-20  Simon Josefsson  <simon@josefsson.org>
38251
38252         * modules/memcmp-tests: New file.
38253         * tests/test-memcmp.c: New file.
38254
38255 2008-05-19  Bruno Haible  <bruno@clisp.org>
38256
38257         * modules/propername (Notice, configure.ac): Put quoted "..." into
38258         --keyword option.
38259         * lib/propername.h: Update comments accordingly.
38260         Reported by Eric Blake.
38261
38262 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
38263
38264         * modules/getpass-gnu (Depends-on): Add fseeko.
38265
38266 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38267
38268         * modules/base64-tests: New file.
38269
38270 2008-05-19  Bo Borgerson <gigabo@gmail.com>
38271
38272         * lib/base64.c (base64_decode_ctx): If a decode context structure
38273         was passed in use it to ignore newlines.  If a context structure
38274         was _not_ passed in, continue to treat newlines as garbage (this
38275         is the historical behavior).  Formerly base64_decode.
38276         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38277         takes a decode context structure.
38278         * lib/base64.h (base64_decode): Macro for four-argument calls.
38279         (base64_decode_alloc): Likewise.
38280         * lib/base64.c (base64_decode_ctx): If a decode context structure
38281         was passed in use it to ignore newlines.  If a context structure
38282         was _not_ passed in, continue to treat newlines as garbage (this
38283         is the historical behavior).  Formerly base64_decode.
38284         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38285         takes a decode context structure.
38286         * lib/base64.h (base64_decode): Macro for four-argument calls.
38287         (base64_decode_alloc): Likewise.
38288
38289 2008-05-19  Jim Meyering  <meyering@redhat.com>
38290
38291         avoid a warning from gcc
38292         * lib/trim.c (IF_LINT): Define.
38293         (trim2): Use it to avoid a "may be used uninitialized" warning.
38294
38295         Fix doc typo.
38296         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
38297
38298 2008-05-19  Bruno Haible  <bruno@clisp.org>
38299
38300         * doc/glibc-functions/getpass.texi: Document limits of other
38301         implementations.
38302
38303 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38304             Bruno Haible <bruno@clisp.org>
38305
38306         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
38307
38308 2008-05-18  Bruno Haible  <bruno@clisp.org>
38309
38310         * modules/propername: New file, from GNU gettext.
38311         * lib/propername.h: New file, from GNU gettext.
38312         * lib/propername.c: New file, from GNU gettext.
38313         * MODULES.html.sh (Internationalization functions): Add propername.
38314
38315 2008-05-16  Jim Meyering  <meyering@redhat.com>
38316             Bruno Haible  <bruno@clisp.org>
38317
38318         Avoid some warnings from "gcc -Wshadow".
38319         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
38320
38321 2008-05-15  Eric Blake  <ebb9@byu.net>
38322
38323         Extend previous patch to cygwin 1.7.0.
38324         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
38325         fast implementation in cygwin >= 1.7.0.
38326         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38328
38329 2008-05-15  Bruno Haible  <bruno@clisp.org>
38330
38331         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
38332         implementation in glibc >= 2.9.
38333         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38335
38336 2008-05-15  Bruno Haible  <bruno@clisp.org>
38337
38338         * MODULES.html.sh (Internationalization functions): Remove linebreak.
38339         (Unicode string functions): Add unilbrk/*.
38340         Reported by Karl Berry.
38341
38342 2008-05-15  Eric Blake  <ebb9@byu.net>
38343
38344         Fix violation of <stdbool.h> replacement in regex.
38345         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
38346         * lib/regexec.c (re_search_internal): Likewise.
38347         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
38348
38349 2008-05-15  Jim Meyering  <meyering@redhat.com>
38350
38351         avoid distracting test output when git or cvs is not found
38352         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
38353         * tests/test-vc-list-files-git.sh: Likewise.
38354
38355 2008-05-15  Eric Blake  <ebb9@byu.net>
38356
38357         Glibc finally accepted the memmem speedup code, bugzilla #5514.
38358         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
38359         glibc version.
38360         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38361         * doc/posix-functions/strstr.texi (strstr): Likewise.
38362         * lib/str-two-way.h (MAX): Sychronize with glibc.
38363
38364 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
38365
38366         * lib/regcomp.c (optimize_utf8): Add a note on why we test
38367         opr.ctx_type.
38368         (calc_first): Initialize constraint field.
38369         (duplicate_node_closure): Use it instead of special casing ANCHORS.
38370         Fix grammar.
38371         (duplicate_node): Merge constraint field for all node types.
38372         (calc_eclosure_iter): Look at constraint field for all node types.
38373         * lib/regex_internal.c (create_cd_newstate): Don't look at
38374         opr.ctx_type.
38375
38376 2008-05-14  Bruno Haible  <bruno@clisp.org>
38377
38378         Help GCC to do better code generation.
38379         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
38380         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
38381         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
38382         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
38383         Declare with attribute 'malloc' if supported.
38384
38385 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
38386
38387         use "echo STR|wc -c" rather than unportable "expr length STR"
38388         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
38389         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
38390
38391 2008-05-14  Jim Meyering  <meyering@redhat.com>
38392
38393         use dd ibs=$n count=1 ... rather than less-portable head -c$n
38394         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
38395         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
38396         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
38397         via Collin Lasse.
38398
38399 2008-05-14  Eric Blake  <ebb9@byu.net>
38400
38401         Avoid quadratic growth in gl_LIBSOURCES.
38402         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
38403         Suggested by Bruno Haible.
38404
38405         Test xmemdup0.
38406         * modules/xmemdup0-tests: New file.
38407         * tests/test-xmemdup0.c: Likewise.
38408
38409 2008-05-13  Eric Blake  <ebb9@byu.net>
38410
38411         Split xmemdup0 into its own module.
38412         * modules/xmemdup0: New file.
38413         * lib/xmemdup0.h: Likewise.
38414         * lib/xmemdup0.c: Likewise.
38415         * MODULES.html.sh (Memory management functions): Add xmemdup0.
38416         * lib/xalloc.h (xmemdup0): Remove.
38417         * lib/xmalloc.c (xmemdup0): Likewise.
38418
38419 2008-05-13  Eric Blake  <ebb9@byu.net>
38420             Bruno Haible  <bruno@clisp.org>
38421
38422         Reduce number of forks required during autoconf.
38423         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
38424         and gl_LIBSOURCES_DIR.
38425         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
38426         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
38427         m4_syscmd per file.
38428         <m4_foreach_w>: Move...
38429         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
38430
38431 2008-05-13  Eric Blake  <ebb9@byu.net>
38432
38433         * gnulib-tool: Fix various comment typos.
38434
38435 2008-05-12  Bruno Haible  <bruno@clisp.org>
38436
38437         Tailor the linebreaking algorithm.
38438         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
38439
38440 2008-05-12  Bruno Haible  <bruno@clisp.org>
38441
38442         Update to Unicode 5.0.0.
38443         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38444         LBP_JV, LBP_JT. Redistribute values.
38445         (unilbrk_table): Change size.
38446         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
38447         Unicode TR#14 rev. 22.
38448         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38449         LBP_JV, LBP_JT. Redistribute values.
38450         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
38451         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
38452         Update.
38453         * lib/unilbrk/lbrkprop1.h: Regenerated.
38454         * lib/unilbrk/lbrkprop2.h: Regenerated.
38455         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
38456         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
38457         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
38458         Likewise.
38459         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
38460         Likewise.
38461         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
38462         result.
38463         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38464         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38465         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38466         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
38467         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
38468         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
38469
38470 2008-05-11  Bruno Haible  <bruno@clisp.org>
38471
38472         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
38473
38474 2008-05-11  Bruno Haible  <bruno@clisp.org>
38475
38476         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
38477         * modules/unilbrk/gen-lbrk: New file.
38478
38479 2008-05-11  Bruno Haible  <bruno@clisp.org>
38480
38481         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
38482         * m4/sha512.m4 (gl_SHA512): Likewise.
38483
38484 2008-05-11  Jim Meyering  <meyering@redhat.com>
38485
38486         New modules: crypto/sha256, crypto/sha512 (from coreutils)
38487         * modules/crypto/sha256: New file.
38488         * modules/crypto/sha512: Likewise.
38489         * lib/sha256.c: Likewise.
38490         * lib/sha256.h: Likewise.
38491         * lib/sha512.c: Likewise.
38492         * lib/sha512.h: Likewise.
38493         * lib/u64.h: Likewise.
38494         * m4/sha256.m4: Likewise.
38495         * m4/sha512.m4: Likewise.
38496         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
38497
38498 2008-05-10  Bruno Haible  <bruno@clisp.org>
38499
38500         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
38501         (Input/Output <stdio.h>): Add xprintf.
38502         (Signal handling <signal.h>): Add strsignal.
38503         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
38504         (Core language properties): Add func.
38505         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
38506         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
38507         strings.
38508         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
38509         (Input/output): New section.
38510         (File system functions): Add openat-die, stat-macros.
38511         (Networking functions): Add sockets.
38512         (Unicode string functions): Add unictype/*.
38513         (Support for building libraries and executables): Add gperf.
38514         (Support for building documentation): Add agpl-3.0.
38515         (Misc): Add nocrash.
38516
38517 2008-05-10  Bruno Haible  <bruno@clisp.org>
38518
38519         * modules/unictype/gen-ctype: New file.
38520
38521 2008-05-10  Jim Meyering  <meyering@redhat.com>
38522
38523         Make chdir-safer.c more efficient on a system with no symlinks.
38524         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
38525         also if ELOOP is zero.  Suggested by Bruno Haible.
38526
38527         Make chdir-safer.c slightly safer.
38528         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
38529         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
38530
38531         Avoid compile failure on systems without ELOOP (like mingw).
38532         * lib/chdir-safer.c (ELOOP): Define if not already defined.
38533         Reported by Bruno Haible.
38534
38535 2008-05-10  Bruno Haible  <bruno@clisp.org>
38536
38537         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
38538         (is_utf8_encoding): Use a case-insensitive comparison.
38539         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
38540         streq.
38541
38542 2008-05-10  Bruno Haible  <bruno@clisp.org>
38543
38544         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
38545         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
38546         * lib/unilbrk/ulc-common.h (iconv_string_length,
38547         iconv_string_keeping_offsets): Remove declarations.
38548         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
38549         Don't include <iconv.h>, streq.h, xsize.h.
38550         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
38551         conversion.
38552         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
38553         <iconv.h>, streq.h, xsize.h.
38554         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
38555         conversion.
38556         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38557         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38558         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38559         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38560
38561 2008-05-10  Bruno Haible  <bruno@clisp.org>
38562
38563         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38564         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38565
38566         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38567         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38568
38569         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38570         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38571
38572         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38573         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38574
38575         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38576         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38577
38578         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38579         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38580
38581         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38582         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38583
38584         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38585         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38586
38587 2008-05-10  Bruno Haible  <bruno@clisp.org>
38588
38589         Split up 'linebreak' module.
38590         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38591         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38592         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38593         modifications.
38594         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38595         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38596         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38597         lib/linebreak.c.
38598         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38599         lib/linebreak.c.
38600         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38601         lib/linebreak.c.
38602         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38603         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38604         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38605         lib/linebreak.c.
38606         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38607         lib/linebreak.c.
38608         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38609         lib/linebreak.c.
38610         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38611         lib/linebreak.c.
38612         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38613         lib/linebreak.c.
38614         * modules/unilbrk/base: New file.
38615         * modules/unilbrk/tables: New file.
38616         * modules/unilbrk/u8-possible-linebreaks: New file.
38617         * modules/unilbrk/u16-possible-linebreaks: New file.
38618         * modules/unilbrk/u32-possible-linebreaks: New file.
38619         * modules/unilbrk/ulc-common: New file.
38620         * modules/unilbrk/ulc-possible-linebreaks: New file.
38621         * modules/unilbrk/u8-width-linebreaks: New file.
38622         * modules/unilbrk/u16-width-linebreaks: New file.
38623         * modules/unilbrk/u32-width-linebreaks: New file.
38624         * modules/unilbrk/ulc-width-linebreaks: New file.
38625         * lib/linebreak.h: Remove file.
38626         * lib/linebreak.c: Remove file.
38627         * m4/linebreak.m4: Remove file.
38628         * modules/linebreak: Remove file.
38629         * NEWS: Mention the changes.
38630
38631 2008-05-09  Eric Blake  <ebb9@byu.net>
38632
38633         Add xmemdup0.
38634         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38635         implementation.
38636         * lib/xmalloc.c (xmemdup0): New C implementation.
38637
38638 2008-05-08  Bruno Haible  <bruno@clisp.org>
38639
38640         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38641
38642 2008-05-07  Eric Blake  <ebb9@byu.net>
38643
38644         Support cross-compilation of <wctype.h>.
38645         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38646         AC_CACHE_CHECK.
38647
38648 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38649
38650         * build-aux/vc-list-files: Add support for bzr.
38651
38652 2008-05-03  Jim Meyering  <meyering@redhat.com>
38653
38654         avoid failed assertion with tight malloc
38655         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38656
38657 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38658
38659         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38660         are needed from arpa/inet.h.
38661         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38662         Reported by Bruno Haible.
38663
38664 2008-05-02  Jim Meyering  <meyering@redhat.com>
38665
38666         avoid compilation error on FreeBSD 6
38667         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38668
38669 2008-05-01  Jim Meyering  <meyering@redhat.com>
38670
38671         useless-if-before-free: correct --help's exit status description
38672         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38673         for one or more matches, etc.  Reported by Bruno Haible.
38674
38675         vc-list-files: make the stand-alone gnulib test work
38676         * modules/vc-list-files-tests (configure.ac):
38677         Define and AC_SUBST abs_aux_dir.
38678         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38679         $(abs_top_srcdir) to each script and having each of them
38680         duplicate the work of setting PATH, set PATH here, using
38681         the new variable, abs_aux_dir instead.
38682         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38683         * tests/test-vc-list-files-git.sh: Likewise.
38684         Reported by Bruno Haible.
38685
38686 2008-05-01  Bruno Haible  <bruno@clisp.org>
38687
38688         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38689         reallocation. Rename 'done' to 'found_delimiter'.
38690
38691 2008-05-01  Jim Meyering  <meyering@redhat.com>
38692
38693         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38694         * build-aux/vc-list-files: Use `...`, not $(...).
38695
38696 2008-04-30  Jim Meyering  <meyering@redhat.com>
38697
38698         add tests for vc-list-files
38699         * modules/vc-list-files-tests: New module.
38700         * tests/test-vc-list-files-cvs.sh: New file.
38701         * tests/test-vc-list-files-git.sh: New file.
38702
38703         avoid a warning from gcc
38704         * lib/getndelim2.c (IF_LINT): Define.
38705         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38706
38707         vc-list-files: work properly with build-aux/cvsu, too
38708         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38709         to all cvs-based clauses.
38710
38711         vc-list-files: work properly in the CVS+awk case, too
38712         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38713
38714         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38715         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38716         take more than one file argument, so .  Add quotes, just in case $dir
38717         ever contains a shell meta-character.  Prompted by Soren Hansen in
38718         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38719
38720 2008-04-29  Eric Blake  <ebb9@byu.net>
38721
38722         Optimize getndelim2 to use block operations when possible.
38723         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38724         freadseek, and memchr2.
38725         * lib/getndelim2.c (getndelim2): Use them for block reads.
38726
38727 2008-04-29  Bruno Haible  <bruno@clisp.org>
38728
38729         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38730         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38731         * modules/inet_ntop (Depends-on): Add extensions.
38732         * modules/inet_pton (Depends-on): Likewise.
38733         Reported by Simon Josefsson.
38734
38735 2008-04-29  Jim Meyering  <meyering@redhat.com>
38736
38737         When the is more than one match in a block, match all of them.
38738         * build-aux/useless-if-before-free: Iterate through each block
38739         until there are no more matches.
38740
38741         Fix broken useless-if-before-free script.
38742         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38743         the expression to match cast of argument to free-like function.
38744
38745 2008-04-29  Eric Blake  <ebb9@byu.net>
38746
38747         Use new header.
38748         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38749
38750 2008-04-29  Jim Meyering  <meyering@redhat.com>
38751
38752         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38753         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38754         by gnulib to exist and to declare e.g., inet_ntop.
38755         Don't include "inet_ntop.h", now removed.
38756
38757         * m4/arpa_inet_h.m4: Remove trailing blanks.
38758
38759 2008-04-29  Eric Blake  <ebb9@byu.net>
38760
38761         Silence valgrind on safe reads beyond potential array bounds.
38762         * lib/rawmemchr.valgrind: New file.
38763         * lib/strchrnul.valgrind: Likewise.
38764         * modules/rawmemchr (Files): Distribute new file.
38765         * modules/strchrnul (Files): Likewise.
38766         Suggested by Bruno Haible.
38767
38768 2008-04-29  Bruno Haible  <bruno@clisp.org>
38769
38770         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38771         (inet_ntop, inet_pton): Change portability warning's wording.
38772         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38773         Invoke gl_CHECK_NEXT_HEADERS.
38774         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38775         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38776         set ARPA_INET_H.
38777         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38778         * modules/arpa_inet (Description): No longer only for systems that
38779         lack it.
38780         (Depends-on): Add include_next.
38781         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38782         HAVE_ARPA_INET_H.
38783
38784 2008-04-29  Jim Meyering  <meyering@redhat.com>
38785
38786         * modules/mkdir (License): Re-license as LGPLv2+.
38787
38788 2008-04-29  Bruno Haible  <bruno@clisp.org>
38789
38790         * modules/rawmemchr (Maintainer): Set to Eric.
38791         * modules/strchrnul (Maintainer): Likewise.
38792
38793 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38794
38795         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38796         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38797
38798         * modules/arpa_inet (arpa/inet.h): Use them.
38799
38800 2008-04-28  Eric Blake  <ebb9@byu.net>
38801
38802         Test getndelim2.
38803         * modules/getndelim2-tests: New file.
38804         * tests/test-getndelim2.c: Likewise.
38805         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38806         stream.
38807         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38808
38809         * MODULES.html.sh: Document new module.
38810
38811 2008-04-20  Bruno Haible  <bruno@clisp.org>
38812
38813         * lib/c-stack.c (die): Use raise.
38814         * modules/c-stack (Depends-on): Add raise.
38815
38816 2008-04-28  Bruno Haible  <bruno@clisp.org>
38817
38818         Expect rpmatch to be declared.
38819         * lib/yesno.c (rpmatch): Remove declaration.
38820
38821         Declare rpmatch.
38822         * lib/stdlib.in.h (rpmatch): New declaration.
38823         * lib/rpmatch.c: Include <stdlib.h> first.
38824         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38825         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38827         HAVE_RPMATCH.
38828         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38829         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38830         (Include): Set to <stdlib.h>.
38831         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38832         HAVE_RPMATCH.
38833         * NEWS: Document the change.
38834
38835 2008-04-28  Bruno Haible  <bruno@clisp.org>
38836
38837         Change rpmatch to use nl_langinfo when appropriate.
38838         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38839         (N_): New macro.
38840         (localized_pattern): New function/macro.
38841         (try): Remove match, nomatch arguments. Copy the pattern into safe
38842         memory before caching it.
38843         (rpmatch): Use localized_pattern. Add translator comments.
38844         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38845         Suggested by Eric Blake.
38846         * modules/rpmatch (Depends-on): Add stdbool.
38847
38848 2008-04-28  Eric Blake  <ebb9@byu.net>
38849
38850         Add rawmemchr module, matching glibc.
38851         * modules/string (Makefile.am): New indicator.
38852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38853         * lib/string.in.h (rawmemchr): Declare when appropriate.
38854         * modules/rawmemchr: New file.
38855         * m4/rawmemchr.m4: Likewise.
38856         * lib/rawmemchr.c: Likewise.
38857         * modules/rawmemchr-tests: Likewise.
38858         * tests/test-rawmemchr.c: Likewise.
38859         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38860         module.
38861         * modules/strchrnul (Depends-on): Add rawmemchr.
38862         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38863
38864         Whitespace cleanup.
38865         * tests/test-strchrnul.c: Reindent.
38866         * lib/strchrnul.c: Likewise.
38867
38868         Optimize and test strchrnul.
38869         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38870         * modules/strchrnul-tests: New file.
38871         * tests/test-strchrnul.c: Likewise.
38872
38873         Remove intprops dependency.
38874         * modules/memchr (Depends-on): Remove intprops.
38875         * modules/memrchr (Depends-on): Likewise.
38876         * modules/memchr2 (Depends-on): Likewise.
38877         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38878         * lib/memrchr.c (__memrchr): Likewise.
38879         * lib/memrchr2.c (memchr2): Likewise.
38880         Reported by Simon Josefsson.
38881
38882 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38883
38884         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38885         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38886
38887 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38888
38889         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38890
38891         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38892
38893         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38894
38895         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38896         declarations.
38897         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38898
38899         * m4/inet_pton.m4: Don't check for header files.
38900
38901         * m4/inet_ntop.m4: Don't check for header files.
38902
38903 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38904
38905         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38906         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38907         trigger for cygwin).
38908         Reported by Bruno Haible  <bruno@clisp.org>.
38909
38910 2008-04-28  Bruno Haible  <bruno@clisp.org>
38911
38912         * doc/posix-functions/strdup.texi: Mention mingw problem.
38913
38914 2008-04-27  Bruno Haible  <bruno@clisp.org>
38915
38916         * modules/stat-time-tests (Depends-on): Add sleep.
38917         * tests/test-stat-time.c (force_unlink): New function.
38918         (cleanup): Use it.
38919         (test_mtime): Remove the ctime related tests.
38920         (test_ctime): New function, containing the ctime related tests.
38921         (main): Call test_ctime, except on native Windows platforms.
38922
38923 2008-04-27  Bruno Haible  <bruno@clisp.org>
38924
38925         * lib/rpmatch.c (rpmatch): Add some comments.
38926         Reported by James Youngman <jay@gnu.org>.
38927
38928 2008-04-27  Bruno Haible  <bruno@clisp.org>
38929
38930         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38931         quiet NaNs.
38932
38933 2008-04-27  Bruno Haible  <bruno@clisp.org>
38934
38935         Make test-yesno.sh work on mingw.
38936         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38937         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38938         (main): Set stdin to binary mode.
38939         * modules/yesno-tests (Depends-on): Add binary-io.
38940
38941 2008-04-27  Bruno Haible  <bruno@clisp.org>
38942
38943         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38944         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38945         argument that lie outside the IEEE 854 domain.
38946         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38947         (gl_ISFINITE): Use it.
38948         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38949
38950 2008-04-27  Bruno Haible  <bruno@clisp.org>
38951
38952         Allow local renaming in config.h.
38953         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38954
38955 2008-04-27  Bruno Haible  <bruno@clisp.org>
38956
38957         * lib/memchr.c (__memchr): Change type of 'i'.
38958         * lib/memchr2.c (memchr2): Likewise.
38959
38960 2008-04-26  Eric Blake  <ebb9@byu.net>
38961         and Bruno Haible  <bruno@clisp.org>
38962
38963         Optimize and test memrchr.
38964         * modules/memrchr (Depends-on): Add intprops.
38965         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38966         * modules/memrchr-tests: New file.
38967         * tests/test-memrchr.c: New file.
38968
38969 2008-04-26  Bruno Haible  <bruno@clisp.org>
38970
38971         Add tentative support for DragonFly BSD.
38972         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38973         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38974         fp.
38975         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38976         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38977         * lib/fpurge.c (fpurge): Likewise.
38978         * lib/freadable.c (freaadable): Likewise.
38979         * lib/freadahead.c (freadahead): Likewise.
38980         * lib/freading.c (freading): Likewise.
38981         * lib/freadptr.c (freadptr): Likewise.
38982         * lib/freadseek.c (freadptrinc): Likewise.
38983         * lib/fseeko.c (fseeko): Likewise.
38984         * lib/fseterr.c (fseterr): Likewise.
38985         * lib/fwritable.c (fwritable): Likewise.
38986         * lib/fwriting.c (fwriting): Likewise.
38987
38988 2008-04-26  Bruno Haible  <bruno@clisp.org>
38989
38990         * lib/stdio-impl.h: New file.
38991         * lib/fbufmode.c: Include stdio-impl.h.
38992         (fbufmode): Use fp_, remove redundant #defines.
38993         * lib/fflush.c: Include stdio-impl.h.
38994         (clear_ungetc_buffer): Remove redundant #defines.
38995         * lib/fpurge.c: Include stdio-impl.h.
38996         (fpurge): Remove redundant #defines.
38997         * lib/freadable.c: Include stdio-impl.h.
38998         (freadable): Remove redundant #defines.
38999         * lib/freadahead.c: Include stdio-impl.h.
39000         (freadahead): Remove redundant #defines.
39001         * lib/freading.c: Include stdio-impl.h.
39002         (freading): Remove redundant #defines.
39003         * lib/freadptr.c: Include stdio-impl.h.
39004         (freadptr): Remove redundant #defines.
39005         * lib/freadseek.c: Include stdio-impl.h.
39006         (freadptrinc): Remove redundant #defines.
39007         * lib/fseeko.c: Include stdio-impl.h.
39008         (rpl_fseeko): Remove redundant #defines.
39009         * lib/fseterr.c: Include stdio-impl.h.
39010         (fseterr): Remove redundant #defines.
39011         * lib/fwritable.c: Include stdio-impl.h.
39012         (fwritable: Remove redundant #defines.
39013         * lib/fwriting.c: Include stdio-impl.h.
39014         (fwriting): Remove redundant #defines.
39015         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39016         * modules/fflush (Files): Likewise.
39017         * modules/fpurge (Files): Likewise.
39018         * modules/freadable (Files): Likewise.
39019         * modules/freadahead (Files): Likewise.
39020         * modules/freading (Files): Likewise.
39021         * modules/freadptr (Files): Likewise.
39022         * modules/freadseek (Files): Likewise.
39023         * modules/fseeko (Files): Likewise.
39024         * modules/fseterr (Files): Likewise.
39025         * modules/fwritable (Files): Likewise.
39026         * modules/fwriting (Files): Likewise.
39027
39028 2008-04-26  Bruno Haible  <bruno@clisp.org>
39029
39030         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39031         restore_seek_optimization, update_fpos_cache): New functions, extracted
39032         from rpl_fflush.
39033         (rpl_fflush): Use them.
39034         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39035         (gl_REPLACE_FFLUSH): Use it.
39036
39037 2008-04-26  Bruno Haible  <bruno@clisp.org>
39038
39039         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39040         on Solaris.
39041         * tests/test-xstrtoimax.sh: Likewise.
39042         * tests/test-xstrtoumax.sh: Likewise.
39043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39044
39045 2008-04-26  Bruno Haible  <bruno@clisp.org>
39046
39047         * modules/memchr-tests: New file.
39048         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39049
39050 2008-04-26  Eric Blake  <ebb9@byu.net>
39051             Bruno Haible  <bruno@clisp.org>
39052
39053         * lib/memchr.c: Include intprops.h.
39054         (__memchr): Optimize parallel detection of matching bytes. Rename local
39055         variables. Add explanatory comments.
39056
39057 2008-04-26  Bruno Haible  <bruno@clisp.org>
39058
39059         Fix module 'memchr', broken since 2000-10-28.
39060         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39061
39062 2008-04-26  Bruno Haible  <bruno@clisp.org>
39063
39064         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39065         comments.
39066
39067 2008-04-25  Eric Blake  <ebb9@byu.net>
39068
39069         Use native fstatat on cygwin 1.7.0.
39070         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39071         first.
39072
39073 2008-04-23  Eric Blake  <ebb9@byu.net>
39074
39075         Improve memchr2 performance.
39076         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39077         NUL bytes.
39078         * modules/memchr2 (Depends-on): Use intprops.h.
39079
39080 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39081
39082         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39083         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39084         <blp@cs.stanford.edu>.
39085
39086 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39087
39088         * lib/arpa_inet.in.h: New file.
39089
39090         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39091         (Makefile.am): Sed in substitute header file.
39092
39093         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39094         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39095
39096         * modules/inet_ntop (configure.ac): Use
39097         gl_ARPA_INET_MODULE_INDICATOR.
39098
39099         * modules/inet_pton (configure.ac): Use
39100         gl_ARPA_INET_MODULE_INDICATOR.
39101
39102 2008-04-22  Jim Meyering  <meyering@redhat.com>
39103
39104         * modules/verify (License): Re-license as LGPLv2+.
39105
39106 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39107
39108         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39109         parameter to void* as per POSIX standard (MinGW uses char*).
39110
39111 2008-04-21  Bruno Haible  <bruno@clisp.org>
39112
39113         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39114         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39115         Define to replacements if REPLACE_ISWCNTRL is 1.
39116         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39117         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39118         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39119         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39120         what it fixes.
39121         * doc/posix-functions/iswalpha.texi: Likewise.
39122         * doc/posix-functions/iswblank.texi: Likewise.
39123         * doc/posix-functions/iswcntrl.texi: Likewise.
39124         * doc/posix-functions/iswdigit.texi: Likewise.
39125         * doc/posix-functions/iswgraph.texi: Likewise.
39126         * doc/posix-functions/iswlower.texi: Likewise.
39127         * doc/posix-functions/iswprint.texi: Likewise.
39128         * doc/posix-functions/iswpunct.texi: Likewise.
39129         * doc/posix-functions/iswspace.texi: Likewise.
39130         * doc/posix-functions/iswupper.texi: Likewise.
39131         * doc/posix-functions/iswxdigit.texi: Likewise.
39132         Reported by Alain Guibert.
39133
39134 2008-04-21  Bruno Haible  <bruno@clisp.org>
39135
39136         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39137         Patch by Alain Guibert.
39138
39139 2008-04-21  Bruno Haible  <bruno@clisp.org>
39140
39141         Fix test failures on mingw.
39142         * tests/test-xstrtol.c (print_no_progname): New function.
39143         (main): Install it in error_print_progname hook.
39144         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39145         * tests/test-xstrtoimax.sh: Likewise.
39146         * tests/test-xstrtoumax.sh: Likewise.
39147
39148 2008-04-21  Bruno Haible  <bruno@clisp.org>
39149
39150         Fix test failure on mingw.
39151         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39152
39153 2008-04-21  Bruno Haible  <bruno@clisp.org>
39154
39155         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39156         Actually assign a value.
39157
39158 2008-04-20  Bruno Haible  <bruno@clisp.org>
39159
39160         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39161         take 2.
39162         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39163         'canonicalize-lgpl' module is also used.
39164         * lib/canonicalize-lgpl.c: Undo last change.
39165         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39166
39167 2008-04-20  Bruno Haible  <bruno@clisp.org>
39168
39169         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39170         config.h. Provide _mkdir based fallback for mingw.
39171         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39172         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39173         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39174         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39175         rather than defining mkdir in config.h.
39176         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39177         (gl_SYS_STAT_H_DEFAULTS): New macro.
39178         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39179         HAVE_IO_H any more.
39180         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39181         HAVE_DECL_MKDIR and HAVE_IO_H.
39182
39183 2008-04-20  Bruno Haible  <bruno@clisp.org>
39184
39185         * lib/isapipe.c: Port to native Windows platforms.
39186
39187 2008-04-20  Bruno Haible  <bruno@clisp.org>
39188
39189         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39190
39191 2008-04-21  Eric Blake  <ebb9@byu.net>
39192
39193         Work around preprocessors that don't handle UINTMAX_MAX.
39194         * lib/memchr2.c (memchr2): Avoid embedded #if.
39195         Reported by Alain Guibert, fix suggested by Bruno Haible.
39196
39197 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39198
39199         * doc/posix-functions/strftime.texi (strftime): Explain better
39200         Windows incompatibility.  Suggested by Micah Cowan
39201         <micah@cowan.name>.
39202
39203 2008-04-20  Bruno Haible  <bruno@clisp.org>
39204
39205         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39206         unistr/u8-mblen.
39207
39208 2008-04-20  Bruno Haible  <bruno@clisp.org>
39209
39210         Fix test failure on platforms with non-GNU iconv.
39211         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39212         (U_TO_U8): Use it, rather than u16_to_u8.
39213         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39214         units at the end of the input string.
39215         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39216
39217 2008-04-20  Bruno Haible  <bruno@clisp.org>
39218
39219         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39220         when the resulting length is 0.
39221         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
39222
39223 2008-04-20  Bruno Haible  <bruno@clisp.org>
39224
39225         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
39226         works.
39227         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
39228
39229 2008-04-20  Bruno Haible  <bruno@clisp.org>
39230
39231         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
39232         * modules/tsearch-tests (configure.ac): Test for initstate function.
39233
39234 2008-04-20  Bruno Haible  <bruno@clisp.org>
39235
39236         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
39237         for nlink_t if missing.
39238         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
39239
39240 2008-04-19  Bruno Haible  <bruno@clisp.org>
39241
39242         Work around snprintf bug on Linux libc5.
39243         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
39244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39245         gl_SNPRINTF_SIZE1.
39246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39247         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
39248         that test failed.
39249         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
39250         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
39251         * modules/snprintf (Files): Add m4/printf.m4.
39252         * modules/vsnprintf (Files): Likewise.
39253         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
39254         * doc/posix-functions/vsnprintf.texi: Likewise.
39255
39256 2008-04-19  Bruno Haible  <bruno@clisp.org>
39257
39258         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
39259         from 0.0058 to less than 10^-7.
39260
39261 2008-04-19  Bruno Haible  <bruno@clisp.org>
39262
39263         Fix rounding when a precision is given.
39264         * lib/vasnprintf.c (is_borderline): New function.
39265         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
39266         9...9x.
39267         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
39268         %e, %g.
39269         * tests/test-vasprintf-posix.c (test_function): Likewise.
39270         * tests/test-snprintf-posix.h (test_function): Likewise.
39271         * tests/test-sprintf-posix.h (test_function): Likewise.
39272         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
39273         * tests/test-printf-posix.h (test_function): Likewise.
39274         * tests/test-printf-posix.output: Update.
39275         Reported by John Darrington <john@darrington.wattle.id.au> via
39276         Ben Pfaff <blp@cs.stanford.edu>.
39277
39278 2008-04-18  Simon Josefsson  <simon@josefsson.org>
39279
39280         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
39281         Suggested by Bruno Haible <bruno@clisp.org>.
39282
39283 2008-04-17  Bruno Haible  <bruno@clisp.org>
39284
39285         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
39286         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
39287         implementation.
39288         Patch by Bruce Merry <bmerry@gmail.com>.
39289
39290 2008-04-17  Simon Josefsson  <simon@josefsson.org>
39291
39292         * doc/posix-functions/strftime.texi (strftime): Mention that %e
39293         doesn't work under Windows.
39294
39295 2008-04-16  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
39298         New macros.
39299         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
39300         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
39301         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
39302         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
39303         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
39304         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
39305         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
39306         macros.
39307         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
39308         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
39309         Northern Sotho, Uighur.
39310
39311 2008-04-16  Bruno Haible  <bruno@clisp.org>
39312
39313         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
39314         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
39315         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
39316         Reported by Daniel Bergström <daniel@octocode.com>.
39317
39318 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
39319             Bruno Haible  <bruno@clisp.org>
39320
39321         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
39322         function.
39323         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
39324         New functions, mostly extracted from gl_locale_name_default.
39325         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
39326
39327 2008-04-16  Eric Blake  <ebb9@byu.net>
39328
39329         Adjust strtod detection to catch glibc 2.7 bug.
39330         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
39331         Reported by John Gatewood Ham.
39332
39333 2008-04-16  Bruno Haible  <bruno@clisp.org>
39334
39335         Add tentative support for Linux libc5.
39336         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
39337         * lib/fpurge.c (fpurge): Likewise.
39338         * lib/freadable.c (freadable): Likewise.
39339         * lib/freadahead.c (freadahead): Likewise.
39340         * lib/freading.c (freading): Likewise.
39341         * lib/freadptr.c (freadptr): Likewise.
39342         * lib/freadseek.c (freadptrinc): Likewise.
39343         * lib/fseeko.c (rpl_fseeko): Likewise.
39344         * lib/fseterr.c (fseterr): Likewise.
39345         * lib/fwritable.c (fwritable): Likewise.
39346         * lib/fwriting.c (fwriting): Likewise.
39347         Reported by Alain Guibert <alguibert+bts@free.fr>.
39348
39349 2008-04-15  Bruno Haible  <bruno@clisp.org>
39350
39351         * modules/mathl (configure.ac): Define module indicator.
39352
39353 2008-04-15  Bruno Haible  <bruno@clisp.org>
39354
39355         * lib/logl.c (logl): Remove unused variables.
39356
39357 2008-04-15  Bruno Haible  <bruno@clisp.org>
39358
39359         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
39360         fails.
39361
39362 2008-04-15  Bruno Haible  <bruno@clisp.org>
39363
39364         * lib/trim.c (trim2): Fix argument of isspace() macro.
39365
39366 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
39367
39368         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
39369         to 0.
39370         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
39371
39372 2008-04-14  Bruno Haible  <bruno@clisp.org>
39373
39374         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
39375         AC_LANG_PROGRAM argument.
39376         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
39377         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
39378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39379         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39380         * m4/math_h.m4 (gl_MATH_H): Likewise.
39381         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
39382         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39383         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39384         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
39385         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
39386         * m4/regex.m4 (gl_REGEX): Likewise.
39387         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
39388         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
39389         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39390         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
39391         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39392         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39395
39396 2008-04-14  Jim Meyering  <meyering@redhat.com>
39397
39398         test-strtod: fix typos: s/abs/fabs/
39399         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
39400
39401 2008-04-13  Bruno Haible  <bruno@clisp.org>
39402
39403         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
39404         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
39405         module is also used and while not building the reloc-wrapper.
39406
39407 2008-04-13  Bruno Haible  <bruno@clisp.org>
39408
39409         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
39410
39411 2008-04-13  Bruno Haible  <bruno@clisp.org>
39412
39413         Fix AIX compilation failure introduced on 2008-04-02.
39414         * tests/test-frexp.c (exp): Undefine before redefining.
39415         * tests/test-frexpl.c (exp): Likewise.
39416
39417 2008-04-13  Bruno Haible  <bruno@clisp.org>
39418
39419         Work around a HP-UX stdio bug.
39420         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
39421         * tests/test-ftello.c (main): Likewise.
39422         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
39423         * doc/posix-functions/ftello.texi: Likewise.
39424
39425 2008-04-13  Bruno Haible  <bruno@clisp.org>
39426
39427         Make test-signbit pass on HP-UX/hppa.
39428         * tests/test-signbit.c (minus_zerol): New variable.
39429         (test_signbitl): Use it.
39430
39431 2008-04-13  Bruno Haible  <bruno@clisp.org>
39432
39433         Make truncl work on OSF/1 4.0.
39434         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
39435         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39436         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
39438         HAVE_DECL_TRUNCL.
39439         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
39440         HAVE_DECL_TRUNCL.
39441         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
39442
39443 2008-04-13  Bruno Haible  <bruno@clisp.org>
39444
39445         * lib/unictype.h: Remove trailing comma from enumeration definitions.
39446
39447 2008-04-13  Bruno Haible  <bruno@clisp.org>
39448
39449         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
39450         expression, so as to avoid HP-UX 11 cc compiler bug.
39451
39452 2008-04-13  Bruno Haible  <bruno@clisp.org>
39453
39454         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
39455
39456 2008-04-13  Bruno Haible  <bruno@clisp.org>
39457
39458         * lib/git-merge-changelog.c: Remove empty declaration outside of
39459         functions.
39460
39461 2008-04-13  Bruno Haible  <bruno@clisp.org>
39462
39463         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
39464
39465 2008-04-13  Bruno Haible  <bruno@clisp.org>
39466
39467         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
39468         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
39469         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
39470         also if it exists but lacks definitions of the SHUT_* macros.
39471         * modules/sys_socket (Description): Update.
39472         Reported by Elbert Pol <e.pol@chello.nl>.
39473
39474 2008-04-13  Bruno Haible  <bruno@clisp.org>
39475
39476         * lib/localcharset.c (OS2): Don't redefine if already defined.
39477         Reported by Elbert Pol <e.pol@chello.nl>.
39478
39479 2008-04-13  Bruno Haible  <bruno@clisp.org>
39480
39481         * lib/binary-io.h [__EMX__]: Include <io.h>.
39482         Reported by Elbert Pol <e.pol@chello.nl>.
39483
39484 2008-04-12  Bruno Haible  <bruno@clisp.org>
39485
39486         * lib/fpucw.h: Enable the definitions also for x86_64.
39487         Needed for NetBSD/x86_64.
39488         Reported by Thomas Klausner <tk@giga.or.at>.
39489
39490 2008-04-12  Bruno Haible  <bruno@clisp.org>
39491
39492         * tests/test-strtod.c: Include isnand.h.
39493         (main): Use isnand instead of isnan.
39494         Reported by Jim Meyering.
39495
39496 2008-04-12  Bruno Haible  <bruno@clisp.org>
39497
39498         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
39499         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39500
39501 2008-04-12  Jim Meyering  <meyering@redhat.com>
39502
39503         * m4/math_h.m4 (gl_MATH_H): Fix typos.
39504
39505 2008-04-12  Bruno Haible  <bruno@clisp.org>
39506
39507         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
39508         Reported by Elbert Pol <e.pol@chello.nl>.
39509
39510 2008-04-12  Eric Blake  <ebb9@byu.net>
39511
39512         Work around Solaris 10 math.h bug.
39513         * m4/math_h.m4 (gl_MATH_H): Check for bug.
39514         (gl_MATH_H_DEFAULTS): Set up default.
39515         * modules/math (Makefile.am): Replace new indicators.
39516         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
39517         * tests/test-math.c (main): Test this.
39518         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
39519         * doc/posix-headers/math.texi (math.h): Mention bug.
39520         Reported by Nelson H. F. Beebe and Jim Meyering.
39521
39522 2008-04-11  Bruno Haible  <bruno@clisp.org>
39523
39524         Adapt to future versions of Apple GCC.
39525         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
39526         Reported by Peter O'Gorman <peter@pogma.com>.
39527
39528 2008-04-11  Bruno Haible  <bruno@clisp.org>
39529
39530         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
39531
39532 2008-04-11  Bruno Haible  <bruno@clisp.org>
39533
39534         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
39535
39536         * modules/getaddrinfo-tests (Makefile.am): Define
39537         test_getaddrinfo_LDADD.
39538
39539 2008-04-11  Bruno Haible  <bruno@clisp.org>
39540
39541         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
39542         (init): Fix syntax error.
39543         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
39544         is declared.
39545
39546 2008-04-11  Bruno Haible  <bruno@clisp.org>
39547
39548         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
39549         * modules/glob (Depends-on): Add stdbool.
39550
39551 2008-04-11  Bruno Haible  <bruno@clisp.org>
39552
39553         * lib/trim.c: Include <string.h>.
39554
39555 2008-04-11  Eric Blake  <ebb9@byu.net>
39556
39557         Avoid compile failure on OS/2.
39558         * lib/regex_internal.h (internal_function): Disable optimization
39559         on OS/2 (__EMX__), where it caused compiler error.
39560         Reported by Elbert Pol.
39561
39562 2008-04-11  Bruno Haible  <bruno@clisp.org>
39563
39564         Flush the standard error stream before aborting. Needed on mingw.
39565         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39566         * tests/test-array_list.c (ASSERT): Likewise.
39567         * tests/test-array_oset.c (ASSERT): Likewise.
39568         * tests/test-avltree_list.c (ASSERT): Likewise.
39569         * tests/test-avltree_oset.c (ASSERT): Likewise.
39570         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39571         * tests/test-binary-io.c (ASSERT): Likewise.
39572         * tests/test-byteswap.c (ASSERT): Likewise.
39573         * tests/test-c-ctype.c (ASSERT): Likewise.
39574         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39575         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39576         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39577         * tests/test-c-strstr.c (ASSERT): Likewise.
39578         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39579         * tests/test-canonicalize.c (ASSERT): Likewise.
39580         * tests/test-carray_list.c (ASSERT): Likewise.
39581         * tests/test-ceilf1.c (ASSERT): Likewise.
39582         * tests/test-ceilf2.c (ASSERT): Likewise.
39583         * tests/test-ceill.c (ASSERT): Likewise.
39584         * tests/test-count-one-bits.c (ASSERT): Likewise.
39585         * tests/test-fbufmode.c (ASSERT): Likewise.
39586         * tests/test-fflush2.c (ASSERT): Likewise.
39587         * tests/test-floorf1.c (ASSERT): Likewise.
39588         * tests/test-floorf2.c (ASSERT): Likewise.
39589         * tests/test-floorl.c (ASSERT): Likewise.
39590         * tests/test-fopen.c (ASSERT): Likewise.
39591         * tests/test-fpending.c (ASSERT): Likewise.
39592         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39593         * tests/test-fpurge.c (ASSERT): Likewise.
39594         * tests/test-freadable.c (ASSERT): Likewise.
39595         * tests/test-freadahead.c (ASSERT): Likewise.
39596         * tests/test-freading.c (ASSERT): Likewise.
39597         * tests/test-freadptr.c (ASSERT): Likewise.
39598         * tests/test-freadptr2.c (ASSERT): Likewise.
39599         * tests/test-freadseek.c (ASSERT): Likewise.
39600         * tests/test-freopen.c (ASSERT): Likewise.
39601         * tests/test-frexp.c (ASSERT): Likewise.
39602         * tests/test-frexpl.c (ASSERT): Likewise.
39603         * tests/test-fseek.c (ASSERT): Likewise.
39604         * tests/test-fseeko.c (ASSERT): Likewise.
39605         * tests/test-fstrcmp.c (ASSERT): Likewise.
39606         * tests/test-ftell.c (ASSERT): Likewise.
39607         * tests/test-ftello.c (ASSERT): Likewise.
39608         * tests/test-func.c (ASSERT): Likewise.
39609         * tests/test-fwritable.c (ASSERT): Likewise.
39610         * tests/test-fwriting.c (ASSERT): Likewise.
39611         * tests/test-getdelim.c (ASSERT): Likewise.
39612         * tests/test-getline.c (ASSERT): Likewise.
39613         * tests/test-i-ring.c (ASSERT): Likewise.
39614         * tests/test-iconv-utf.c (ASSERT): Likewise.
39615         * tests/test-iconv.c (ASSERT): Likewise.
39616         * tests/test-isfinite.c (ASSERT): Likewise.
39617         * tests/test-isnand.c (ASSERT): Likewise.
39618         * tests/test-isnanf.c (ASSERT): Likewise.
39619         * tests/test-isnanl.h (ASSERT): Likewise.
39620         * tests/test-ldexpl.c (ASSERT): Likewise.
39621         * tests/test-linked_list.c (ASSERT): Likewise.
39622         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39623         * tests/test-localename.c (ASSERT): Likewise.
39624         * tests/test-lseek.c (ASSERT): Likewise.
39625         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39626         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39627         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39628         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39629         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39630         * tests/test-mbschr.c (ASSERT): Likewise.
39631         * tests/test-mbscspn.c (ASSERT): Likewise.
39632         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39633         * tests/test-mbspbrk.c (ASSERT): Likewise.
39634         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39635         * tests/test-mbsrchr.c (ASSERT): Likewise.
39636         * tests/test-mbsspn.c (ASSERT): Likewise.
39637         * tests/test-mbsstr1.c (ASSERT): Likewise.
39638         * tests/test-mbsstr2.c (ASSERT): Likewise.
39639         * tests/test-mbsstr3.c (ASSERT): Likewise.
39640         * tests/test-memchr2.c (ASSERT): Likewise.
39641         * tests/test-memmem.c (ASSERT): Likewise.
39642         * tests/test-open.c (ASSERT): Likewise.
39643         * tests/test-printf-frexp.c (ASSERT): Likewise.
39644         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39645         * tests/test-printf-posix.c (ASSERT): Likewise.
39646         * tests/test-quotearg.c (ASSERT): Likewise.
39647         * tests/test-rbtree_list.c (ASSERT): Likewise.
39648         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39649         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39650         * tests/test-round1.c (ASSERT): Likewise.
39651         * tests/test-roundf1.c (ASSERT): Likewise.
39652         * tests/test-roundl.c (ASSERT): Likewise.
39653         * tests/test-signbit.c (ASSERT): Likewise.
39654         * tests/test-sleep.c (ASSERT): Likewise.
39655         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39656         * tests/test-snprintf.c (ASSERT): Likewise.
39657         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39658         * tests/test-stat-time.c (ASSERT): Likewise.
39659         * tests/test-strcasestr.c (ASSERT): Likewise.
39660         * tests/test-strerror.c (ASSERT): Likewise.
39661         * tests/test-striconv.c (ASSERT): Likewise.
39662         * tests/test-striconveh.c (ASSERT): Likewise.
39663         * tests/test-striconveha.c (ASSERT): Likewise.
39664         * tests/test-strsignal.c (ASSERT): Likewise.
39665         * tests/test-strstr.c (ASSERT): Likewise.
39666         * tests/test-strtod.c (ASSERT): Likewise.
39667         * tests/test-trunc1.c (ASSERT): Likewise.
39668         * tests/test-trunc2.c (ASSERT): Likewise.
39669         * tests/test-truncf1.c (ASSERT): Likewise.
39670         * tests/test-truncf2.c (ASSERT): Likewise.
39671         * tests/test-truncl.c (ASSERT): Likewise.
39672         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39673         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39674         * tests/test-vasnprintf.c (ASSERT): Likewise.
39675         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39676         * tests/test-vasprintf.c (ASSERT): Likewise.
39677         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39678         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39679         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39680         * tests/test-vsnprintf.c (ASSERT): Likewise.
39681         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39682         * tests/test-wcwidth.c (ASSERT): Likewise.
39683         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39684         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39685         * tests/test-xvasprintf.c (ASSERT): Likewise.
39686         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39687         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39688         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39689         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39690         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39691         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39692         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39693         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39694         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39695         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39696         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39697         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39698         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39699         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39700         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39701         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39702         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39703         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39704         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39705         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39706         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39707         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39708         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39709         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39710         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39711         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39712         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39713         * tests/unictype/test-combining.c (ASSERT): Likewise.
39714         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39715         * tests/unictype/test-digit.c (ASSERT): Likewise.
39716         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39717         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39718         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39719         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39720         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39721         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39722         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39723         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39724         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39725         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39726         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39727         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39728         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39729         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39730         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39731         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39732         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39733         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39734         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39735         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39736         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39737         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39738         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39739         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39740         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39741         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39742         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39743         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39744         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39745         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39746         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39747         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39748         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39749         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39750         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39751         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39752         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39753         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39754         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39755         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39756         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39757         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39758         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39759         Reported by Eric Blake.
39760
39761 2008-04-11  Bruno Haible  <bruno@clisp.org>
39762
39763         * lib/wchar.in.h: Tweak comment.
39764
39765 2008-04-11  Bruno Haible  <bruno@clisp.org>
39766
39767         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39768         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39769         gl_COMMON.
39770         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39771
39772 2008-04-11  Bruno Haible  <bruno@clisp.org>
39773
39774         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39775
39776 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39777
39778         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39779         of attempting to use non-existing /dev/*random.  Based on patch
39780         from Adam Strzelecki <ono@java.pl> in
39781         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39782
39783 2008-04-08  Bruno Haible  <bruno@clisp.org>
39784
39785         Add tentative support for emx+gcc.
39786         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39787         * lib/fpurge.c (fpurge): Likewise.
39788         * lib/freadable.c (freadable): Likewise.
39789         * lib/freadahead.c (freadahead): Likewise.
39790         * lib/freading.c (freading): Likewise.
39791         * lib/freadptr.c (freadptr): Likewise.
39792         * lib/freadseek.c (freadptrinc): Likewise.
39793         * lib/fseeko.c (rpl_fseeko): Likewise.
39794         * lib/fseterr.c (fseterr): Likewise.
39795         * lib/fwritable.c (fwritable): Likewise.
39796         * lib/fwriting.c (fwriting): Likewise.
39797         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39798
39799 2008-04-09  Eric Blake  <ebb9@byu.net>
39800
39801         Avoid some autoconf warnings.
39802         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39803         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39804         * m4/afs.m4 (gl_AFS): Likewise.
39805         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39806         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39807         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39808         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39809         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39810         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39811         (AC_CHECK_DECLS_ONCE): Likewise.
39812         Rename file...
39813         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39814         gnulib-tool requires autoconf 2.59 or better.
39815         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39816
39817 2008-04-08  Eric Blake  <ebb9@byu.net>
39818
39819         Use 'git describe --match' if present (added in git 1.5.5).
39820         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39821         if possible.
39822
39823 2008-04-08  Bruno Haible  <bruno@clisp.org>
39824
39825         Add tentative support for OpenServer.
39826         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39827         _ptr, _cnt.
39828         * lib/fpurge.c (fpurge): Likewise.
39829         * lib/freadable.c (freadable): Likewise.
39830         * lib/freadahead.c (freadahead): Likewise.
39831         * lib/freading.c (freading): Likewise.
39832         * lib/freadptr.c (freadptr): Likewise.
39833         * lib/freadseek.c (freadptrinc): Likewise.
39834         * lib/fseeko.c (rpl_fseeko): Likewise.
39835         * lib/fseterr.c (fseterr): Likewise.
39836         * lib/fwritable.c (fwritable): Likewise.
39837         * lib/fwriting.c (fwriting): Likewise.
39838         Reported by Roger Cornelius <rac@tenzing.org> and
39839         Brian K. White <brian@aljex.com>.
39840
39841 2008-04-06  Jim Meyering  <meyering@redhat.com>
39842
39843         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39844
39845 2008-04-06  Bruno Haible  <bruno@clisp.org>
39846
39847         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39848         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39849         * tests/test-printf-posix.sh: Likewise.
39850         * tests/test-vfprintf-posix.sh: Likewise.
39851         * tests/test-vprintf-posix.sh: Likewise.
39852         * tests/test-xprintf-posix.sh: Likewise.
39853
39854 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39855
39856         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39857         hide error from 'ls', needed on OS/2.
39858         Report by Elbert Pol <elbert.pol@gmail.com>.
39859
39860 2008-04-04  Eric Blake  <ebb9@byu.net>
39861
39862         Make test-fseeko.c failures meaningful.
39863         * tests/test-fseeko.c: Print line number on failure.
39864         * tests/test-fseek.c: Likewise.
39865         Reported by Nelson H. F. Beebe.
39866
39867         Improve strtod bug detection check.
39868         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39869         required for Solaris 10.
39870         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39871
39872 2008-04-04  Bruno Haible  <bruno@clisp.org>
39873
39874         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39875         by m4/setenv.m4.
39876
39877 2008-04-03  Eric Blake  <ebb9@byu.net>
39878
39879         Ensure sane .version contents.
39880         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39881         version string.
39882         * build-aux/git-version-gen: Improve documentation.
39883
39884         Make GNU make output nicer.
39885         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39886         MAKECMDGOALS to enforce message for all command line targets.  Set
39887         srcdir for use in maint.mk.
39888
39889         Another maintainer tweak.
39890         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39891         a target that regenerates version.
39892
39893 2008-04-03  Jim Meyering  <meyering@redhat.com>
39894
39895         vc-list-files: don't cause coreutils "make po-check" failure
39896         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39897
39898 2008-04-03  Eric Blake  <ebb9@byu.net>
39899
39900         Allow VPATH usage of vc-list-files.
39901         * build-aux/vc-list-files (scriptversion): Add timestamp.
39902         (options): Add --help, --version, -C.
39903         (CVS): Support installed cvsu.
39904
39905 2008-04-02  Bruno Haible  <bruno@clisp.org>
39906
39907         Avoid some "statement with no effect" warnings from gcc.
39908         * tests/test-wctype.c (main): Explicitly ignore unused values.
39909         Reported by Jim Meyering.
39910
39911 2008-04-02  Jim Meyering  <meyering@redhat.com>
39912
39913         Avoid some warnings from "gcc -Wshadow".
39914         * tests/test-frexp.c (exp): Define to a different identifier.
39915         * tests/test-frexpl.c (exp): Likewise.
39916
39917 2008-04-03  Jim Meyering  <meyering@redhat.com>
39918
39919         bootstrap: remove dangling *.[ch] symlinks from lib
39920         * build-aux/bootstrap [dangling symlink removal]: Move find's
39921         -depth option to precede all others, to avoid a warning.
39922         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39923
39924 2008-04-02  Bruno Haible  <bruno@clisp.org>
39925
39926         Avoid some warnings from "gcc -Wshadow".
39927         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39928         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39929         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39930         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39931         Reported by Jim Meyering.
39932
39933 2008-04-01  Bruno Haible  <bruno@clisp.org>
39934
39935         Fix test to work on IRIX 6.5 with cc.
39936         * tests/test-math.c (numeric_equal): New function.
39937         (main): Use it.
39938
39939 2008-04-01  Bruno Haible  <bruno@clisp.org>
39940
39941         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39942
39943 2008-04-01  Bruno Haible  <bruno@clisp.org>
39944
39945         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39946         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39947         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39948         (Depends-on): Remove math.
39949
39950         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39951         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39952         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39953         (Depends-on): Remove math.
39954
39955         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39956         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39957         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39958         (Depends-on): Remove math.
39959         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39960         (Depends-on): Remove math.
39961
39962         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39963         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39964         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39965         (Depends-on): Remove math.
39966         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39967         (Depends-on): Remove math.
39968
39969         * tests/test-round1.c: Include nan.h.
39970         (main): Use NaNd instead of NAN.
39971         * modules/round-tests (Files): Add tests/nan.h.
39972
39973         * tests/test-trunc1.c: Include nan.h.
39974         (main): Use NaNd instead of NAN.
39975         * modules/trunc-tests (Files): Add tests/nan.h.
39976
39977         * tests/test-roundf1.c: Include nan.h.
39978         (main): Use NaNf instead of NAN.
39979         * modules/roundf-tests (Files): Add tests/nan.h.
39980
39981         * tests/test-truncf1.c: Include nan.h.
39982         (main): Use NaNf instead of NAN.
39983         * modules/truncf-tests (Files): Add tests/nan.h.
39984
39985         * tests/test-ceilf1.c: Include nan.h.
39986         (main): Use NaNf instead of NAN.
39987         * modules/ceilf-tests (Files): Add tests/nan.h.
39988
39989         * tests/test-floorf1.c: Include nan.h.
39990         (main): Use NaNf instead of NAN.
39991         * modules/floorf-tests (Files): Add tests/nan.h.
39992
39993         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39994         (main): Use NaNf instead of NAN.
39995         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39996
39997         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39998         (main): Use NaNd instead of NAN.
39999         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40000
40001         * tests/test-frexp.c: Include nan.h.
40002         (main): Use NaNd instead of NAN.
40003         * modules/frexp-tests (Files): Add tests/nan.h.
40004
40005         * lib/isnan.c: Don't include <math.h>.
40006         (FUNC): Don't use NAN macro.
40007         * modules/isnand-nolibm (Depends-on): Remove math.
40008         * modules/isnanf-nolibm (Depends-on): Remove math.
40009         * modules/isnanl (Depends-on): Remove math.
40010         * modules/isnanl-nolibm (Depends-on): Remove math.
40011
40012         * tests/nan.h: New file.
40013
40014 2008-04-01  Eric Blake  <ebb9@byu.net>
40015
40016         Fix typos.
40017         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40018         values to be the right type.
40019
40020         For now, cater to gnulib strtod inaccuracies.
40021         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40022         fractional results.  While not as nice from a QoI perspective, it
40023         is a quicker patch than correctly implementing decimal to binary
40024         rounding.
40025
40026 2008-03-31  Eric Blake  <ebb9@byu.net>
40027
40028         Guarantee a definition of NAN.
40029         * lib/math.in.h (NAN): Define if missing.
40030         * tests/test-math.c (main): Test it.
40031         * doc/posix-headers/math.texi (math.h): Document this.
40032         * lib/isnan.c (rpl_isnand): Use it.
40033         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40034         * tests/test-floorf1.c (NaN): Likewise.
40035         * tests/test-frexp.c (NaN): Likewise.
40036         * tests/test-isnand.c (NaN): Likewise.
40037         * tests/test-isnanf.c (NaN): Likewise.
40038         * tests/test-round1.c (NaN): Likewise.
40039         * tests/test-roundf1.c (NaN): Likewise.
40040         * tests/test-snprintf-posix.h (NaN): Likewise.
40041         * tests/test-sprintf-posix.h (NaN): Likewise.
40042         * tests/test-trunc1.c (NaN): Likewise.
40043         * tests/test-truncf1.c (NaN): Likewise.
40044         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40045         * tests/test-vasprintf-posix.c (NaN): Likewise.
40046         * modules/isnand-nolibm (Depends-on): Add math.
40047         * modules/isnanf-nolibm (Depends-on): Likewise.
40048         * modules/isnanl (Depends-on): Likewise.
40049         * modules/isnanl-nolibm (Depends-on): Likewise.
40050         * modules/snprintf-posix-tests (Depends-on): Likewise.
40051         * modules/sprintf-posix-tests (Depends-on): Likewise.
40052         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40053         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40054         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40055         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40056
40057 2008-03-31  Bruno Haible  <bruno@clisp.org>
40058
40059         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40060         * doc/posix-functions/strtod.texi: Likewise.
40061
40062 2008-03-31  Bruno Haible  <bruno@clisp.org>
40063
40064         * tests/test-strtod.c (main): Don't use C99 syntax.
40065
40066 2008-03-31  Bruno Haible  <bruno@clisp.org>
40067
40068         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40069         Reported by Eric Blake.
40070
40071 2008-03-31  Jim Meyering  <meyering@redhat.com>
40072
40073         Don't compare actual signbit return values.
40074         * tests/test-strtod.c (main): Rather, compare only their
40075         zero/non-zero nature.
40076
40077 2008-03-31  Eric Blake  <ebb9@byu.net>
40078
40079         More strtod documentation.
40080         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40081         failures as distinct bugs.
40082
40083 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40084
40085         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40086         Problem reported by Erik Benada in
40087         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40088
40089 2008-03-30  Bruno Haible  <bruno@clisp.org>
40090
40091         * tests/test-strtod.c: Add comments about which assertion fails on which
40092         platform.
40093         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40094
40095 2008-03-30  Eric Blake  <ebb9@byu.net>
40096
40097         Test signbit behavior on zeros.
40098         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40099         (test_signbitd, test_signbitl): Likewise.
40100
40101         More strtod touchups.
40102         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40103         sign of negative underflow, for now.  Use .5, not .1.
40104         * doc/posix-functions/strtod.texi (strtod): Mention these
40105         limitations.
40106         Reported by Jim Meyering.
40107
40108 2008-03-30  Bruno Haible  <bruno@clisp.org>
40109
40110         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40111         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40112
40113 2008-03-30  Bruno Haible  <bruno@clisp.org>
40114
40115         Avoid failure when attempting to return empty iconv results on some
40116         platforms.
40117         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40118         allocation, don't report ENOMEM when the resulting string is empty.
40119
40120 2008-03-30  Bruno Haible  <bruno@clisp.org>
40121
40122         Fix buffer overrun.
40123         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40124         Don't consider the width for tmp_length. Check count against tmp_length
40125         before doing the padding. Ensure enough allocation during padding.
40126
40127 2008-03-30  Eric Blake  <ebb9@byu.net>
40128
40129         strtod touchups.
40130         * lib/strtod.c (strtod): Avoid compiler warnings.
40131         Reported by Jim Meyering.
40132
40133 2008-03-30  Bruno Haible  <bruno@clisp.org>
40134
40135         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40136         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40137         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40138         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40139         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40140         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40141         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40142         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40143
40144         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40145         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40146         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40147         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40148         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40149         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40150         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40151         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40152
40153         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40154         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40155         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40156         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40157         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40158         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40159         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40160         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40161
40162         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40163         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40164
40165         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40166         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40167
40168         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40169         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40170
40171         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40172         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40173         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40174
40175         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40176         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40177         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40178
40179         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40181         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40182
40183         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40184         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40185         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40186
40187         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40188         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40189         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40190         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40191         (Depends-on): Add EOVERFLOW.
40192         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40193         (Depends-on): Add EOVERFLOW.
40194         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40195         (Depends-on): Add EOVERFLOW.
40196         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40197         (Depends-on): Add EOVERFLOW.
40198         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40199         (Depends-on): Add EOVERFLOW.
40200         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40201         (Depends-on): Add EOVERFLOW.
40202         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40203         (Depends-on): Add EOVERFLOW.
40204         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40205         (Depends-on): Add EOVERFLOW.
40206
40207         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40208         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40209         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40210
40211         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40213         * modules/snprintf (Depends-on): Add EOVERFLOW.
40214
40215         * lib/poll.c (EOVERFLOW): Remove fallback.
40216         * modules/poll (Depends-on): Add EOVERFLOW.
40217
40218         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40219         * modules/getugroups (Depends-on): Add EOVERFLOW.
40220
40221         * lib/getdelim.c (EOVERFLOW): Remove fallback.
40222         * modules/getdelim (Depends-on): Add EOVERFLOW.
40223
40224         * lib/ftell.c (EOVERFLOW): Remove fallback.
40225         * modules/ftell (Depends-on): Add EOVERFLOW.
40226
40227         * lib/fprintf.c (EOVERFLOW): Remove fallback.
40228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
40229         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
40230
40231         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
40232
40233         * modules/EOVERFLOW-tests: New file.
40234         * tests/test-EOVERFLOW.c: New file.
40235
40236         * modules/EOVERFLOW: New file.
40237         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
40238
40239 2008-03-30  Bruno Haible  <bruno@clisp.org>
40240
40241         Fix bug introduced on 2007-06-10.
40242         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
40243         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
40244
40245 2008-03-30  Bruno Haible  <bruno@clisp.org>
40246
40247         Improve freadseek's efficiency after ungetc.
40248         * lib/freadseek.c: Include freadahead.h.
40249         (freadptrinc): New function, extracted from freadseek.
40250         (freadseek): Use it in a loop. Use freadahead to determine the number
40251         of loop iterations.
40252         * modules/freadseek (Depends-on): Add freadahead.
40253         (configure.ac): Require AC_C_INLINE.
40254
40255 2008-03-30  Bruno Haible  <bruno@clisp.org>
40256
40257         * lib/freadseek.c (freadseek): Don't ignore the return value of
40258         freadptr.
40259
40260 2008-03-29  Eric Blake  <ebb9@byu.net>
40261
40262         Add hex float support.
40263         * modules/strtod (Depends-on): Add c-ctype.
40264         (Link): Mention POW_LIB.
40265         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
40266         whitespace between 'e' and exponent.
40267         * tests/test-strtod.c (main): Enable hex float tests.
40268         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
40269         now provides.
40270
40271         Document various strtod bugs, with some fixes.
40272         * doc/posix-functions/strtod.texi (strtod): Document bugs with
40273         "-0x", "inf", "nan", and hex constants.
40274         * doc/posix-functions/atof.texi (atof): Likewise.
40275         * modules/stdlib (Makefile.am): Support strtod.
40276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40277         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
40278         detect additional strtod bugs.
40279         * lib/stdlib.in.h (rpl_strtod): Add declarations.
40280         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
40281         bool where appropriate.  Parse 'inf' and 'nan'.
40282         * tests/test-strtod.c: New file.
40283         * modules/strtod (Depends-on): Add stdbool, stdlib.
40284         (configure.ac): Turn on module indicator.
40285         * modules/strtod-tests: New module.
40286
40287 2008-03-29  Eric Blake  <ebb9@byu.net>
40288
40289         Fix ftell on mingw.
40290         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
40291         * modules/ftell-tests (Depends-on): Add binary-io.
40292         * modules/ftello-tests (Depends-on): Likewise.
40293         * tests/test-ftell.c (main): Enhance test to cover behavior after
40294         ungetc.  Enforce binary mode.
40295         * tests/test-ftello.c (main): Likewise.
40296
40297         Pass test-freadseek on cygwin.
40298         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
40299         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
40300         ungetc buffer.
40301
40302         * tests/test-fflush2.c (main): Fix typo.
40303
40304 2008-03-29  Bruno Haible  <bruno@clisp.org>
40305
40306         * tests/test-fflush2.c (main): Temporarily disable the contents of
40307         this test.
40308         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
40309         Reported by Eric Blake.
40310
40311 2008-03-28  Simon Josefsson  <simon@josefsson.org>
40312
40313         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
40314         (GC_SHA224_DIGEST_SIZE): Add.
40315
40316         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
40317         (gc_hash_digest_length): Likewise.
40318         (gc_hash_buffer): Likewise.
40319
40320 2008-03-25  Bruno Haible  <bruno@clisp.org>
40321
40322         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
40323         detail which gettext release to use.
40324         Reported by Simon Josefsson.
40325
40326 2008-03-26  Jim Meyering  <meyering@redhat.com>
40327
40328         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
40329         * modules/gnumakefile (clean-GNUmakefile): Also, use
40330         test ... && ... || : syntax rather than if-then ... fi.
40331
40332         gnumakefile: Don't double-quote-expand $(VPATH) value.
40333         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
40334
40335 2008-03-24  Eric Blake  <ebb9@byu.net>
40336
40337         Alter GNUmakefile to install into top directory.
40338         * modules/maintainer-makefile: Split, and add dependency...
40339         * modules/gnumakefile: to this new module.
40340         * build-aux/GNUmakefile: Move...
40341         * top/GNUmakefile: ...here.
40342         * build-aux/maint.mk: Move...
40343         * top/maint.mk: ...here.
40344         * MODULES.html.sh (Support for maintaining...): Document new
40345         module.
40346
40347 2008-03-23  Bruno Haible  <bruno@clisp.org>
40348
40349         * gnulib-tool: New options --vc-files, --no-vc-files.
40350         (func_usage): Document them.
40351         (vc_files): New variable.
40352         (func_import): Consider vc_files.
40353         (func_create_testdir): Set vc_files to empty.
40354         Suggested by Jim Meyering and Karl Berry.
40355
40356 2008-03-23  Bruno Haible  <bruno@clisp.org>
40357
40358         Fix regex compilation error on HP-UX 11.
40359         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
40360         * modules/regex (Files): Add m4/mbstate_t.m4.
40361         Reported by Ton Voon <ton.voon@altinity.com>.
40362
40363 2008-03-23  Bruno Haible  <bruno@clisp.org>
40364
40365         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
40366
40367 2008-03-23  Eric Blake  <ebb9@byu.net>
40368             Bruno Haible  <bruno@clisp.org>
40369
40370         Install files from top/ in the destination directory.
40371         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40372         augmentation also for the files from top/.
40373         (func_import, func_create_testdir): Rewrite file names:
40374         top/filename -> filename.
40375
40376 2008-03-23  Bruno Haible  <bruno@clisp.org>
40377
40378         Tweak "gnulib --version" output.
40379         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
40380
40381 2008-03-23  Bruno Haible  <bruno@clisp.org>
40382
40383         Tweak "gnulib --version" output.
40384         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
40385         rather than contents of ChangeLog, when possible.
40386
40387 2008-03-21  Eric Blake  <ebb9@byu.net>
40388
40389         More --version tweaks.
40390         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
40391         date of last ChangeLog entry.
40392
40393 2008-03-21  Jim Meyering  <meyering@redhat.com>
40394
40395         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
40396
40397 2008-03-20  Eric Blake  <ebb9@byu.net>
40398
40399         VPATH fix.
40400         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
40401
40402 2008-03-20  Simon Josefsson  <simon@josefsson.org>
40403
40404         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
40405         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
40406
40407 2008-03-20  Eric Blake  <ebb9@byu.net>
40408
40409         Sync GNUmakefile with coreutils.
40410         * build-aux/GNUmakefile (have-Makefile): Rename...
40411         (_have-Makefile): ...to this, for namespace consideration.
40412         (GNUmakefile.cfg): Include, if present.
40413         (_autoreconf): Define a default.
40414         (_is-dist-target): New rule for rebuilds to pick up intra-release
40415         version.
40416         (maint-cfg.mk): Rename...
40417         (cfg.mk): ...to this.
40418
40419 2008-03-18  Jim Meyering  <meyering@redhat.com>
40420
40421         New script and module: mktempd
40422         * MODULES.html.sh (maint+release support): Add mktempd.
40423         * build-aux/mktempd: New file.
40424         * modules/mktempd: New file.
40425
40426 2008-03-15  Jim Meyering  <meyering@redhat.com>
40427
40428         Undo last change.
40429         * lib/sha1.c, lib/md5.c: 63 != ~63.
40430         Reported by Andreas Schwab.
40431
40432         sha1.c, md5.c: Hoist a redundant expression.
40433         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
40434         "ctx->buflen" only once, before calling *_process_block.
40435         * lib/md5.c (md5_process_bytes): Likewise.
40436
40437 2008-03-14  Eric Blake  <ebb9@byu.net>
40438
40439         Bump copyright year in files generated by gnulib-tool.
40440         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
40441         gnulib-tool, rather than hard-coding it.
40442
40443         Fix 'gnulib-tool --version' output to work with git.
40444         * gnulib-tool (func_gnulib_dir): New function, extracted from...
40445         (startup): ...here.
40446         (func_version): Use it to invoke git-version-gen, rather than
40447         relying on CVS keyword expansion.  Modernize wording.
40448         (cvsdatestamp, last_checkin_date, version): Kill unused
40449         variables.
40450
40451 2008-03-12  Jim Meyering  <meyering@redhat.com>
40452
40453         Recognize optional cast of the argument to free.
40454         * build-aux/useless-if-before-free: Update regexps.
40455
40456         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
40457
40458 2008-03-11  Bruno Haible  <bruno@clisp.org>
40459
40460         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
40461         by a single package.
40462         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
40463         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
40464         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
40465         Reported by Sam Steingold <sds@gnu.org>.
40466
40467 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40468
40469         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
40470         repositories.
40471
40472 2008-03-11  Bruno Haible  <bruno@clisp.org>
40473
40474         Avoid conflicts between local macro definitions.
40475         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40476         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
40477
40478 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
40479             Bruno Haible  <bruno@clisp.org>
40480
40481         Make va_copy work with some version of xlc on AIX 5.1.
40482         * lib/stdarg.in.h: New file.
40483         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
40484         On AIX, use a <stdarg.h> file substitute.
40485         * modules/stdarg (Files): Add lib/stdarg.in.h.
40486         (Depends-on): Add include_next.
40487         (Makefile.am): Build a stdarg.h substitute if requested.
40488         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
40489
40490 2008-03-10  Bruno Haible  <bruno@clisp.org>
40491
40492         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
40493         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40494         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40495
40496 2008-03-10  Bruno Haible  <bruno@clisp.org>
40497
40498         * modules/stdlib (Depends-on): Add include_next, remove
40499         absolute-header.
40500
40501 2008-03-09  Bruno Haible  <bruno@clisp.org>
40502
40503         * lib/freadahead.h (freadahead): Document more precisely.
40504         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
40505         the sum of both buffer sizes.
40506         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
40507         * NEWS: Document the change.
40508
40509 2008-03-09  Bruno Haible  <bruno@clisp.org>
40510
40511         Extend freadptr to return also the buffer size.
40512         * lib/freadptr.h (freadptr): Add sizep argument.
40513         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
40514         (freadptr): Add sizep argument. Determine buffer size like freadahead
40515         does.
40516         * tests/test-freadptr.c: Don't include freadahead.h.
40517         (main): Adapt for new calling convention of freadptr.
40518         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
40519         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
40520         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
40521         tests/test-freadptr2.sh.
40522         (Depends): Remove freadahead.
40523         (TESTS): Add test-freadptr2.sh.
40524         (check_PROGRAMS): Add test-freadptr2.
40525
40526 2008-03-09  Bruno Haible  <bruno@clisp.org>
40527
40528         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
40529         Report and solution by Simon Josefsson.
40530
40531 2008-03-06  Bruno Haible  <bruno@clisp.org>
40532
40533         Make fflush after ungetc work on BSD platforms.
40534         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
40535         * tests/test-fflush2.c: New file.
40536         * tests/test-fflush2.sh: New file.
40537         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
40538         tests/test-fflush2.c.
40539         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
40540         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
40541
40542 2008-03-06  Eric Blake  <ebb9@byu.net>
40543
40544         Likewise for ftello.
40545         * modules/ftello (Dependencies): Add extensions.
40546         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
40547
40548 2008-03-06  Bruno Haible  <bruno@clisp.org>
40549
40550         * modules/fseeko (Dependencies): Add extensions.
40551         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
40552         Needed on glibc systems.
40553
40554 2008-03-06  Bruno Haible  <bruno@clisp.org>
40555
40556         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40557         email address.
40558         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40559
40560 2008-03-06  Bruno Haible  <bruno@clisp.org>
40561
40562         * users.txt: Add libgnupdf.
40563
40564 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40565
40566         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40567         (Header File Substitutes, Function Substitutes,
40568         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40569         (Build robot for gnulib): Fix typo.
40570
40571 2008-03-06  Bruno Haible  <bruno@clisp.org>
40572
40573         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40574         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40575
40576 2008-03-06  Bruno Haible  <bruno@clisp.org>
40577
40578         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40579         * doc/gnulib.texi: Include it.
40580
40581 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40582
40583         * modules/func (License): Change license to unlimited; there was
40584         no LGPL parts in the module anyway.
40585
40586 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40587
40588         * modules/__func__: Renamed to modules/func.
40589         * modules/__func__-tests: Renamed to modules/func-tests.
40590         * tests/test-__func__.c: Renamed to tests/test-func.c.
40591         * m4/__func__.m4: Renamed to m4/func.m4.
40592         * doc/gnulib.texi (__func__): Section renamed to func.
40593         Suggested by Eric Blake <ebb9@byu.net>.
40594
40595 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40596
40597         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40598         about __func__.  Make example self-contained.  Suggested by Eric
40599         Blake <ebb9@byu.net>.
40600
40601         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40602         Suggested by Eric Blake <ebb9@byu.net>.
40603
40604 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40605
40606         * modules/__func__: New file.
40607         * modules/__func__-tests: New file.
40608         * tests/test-__func__.c: New file.
40609         * m4/__func__.m4: New file.
40610         * doc/gnulib.texi (__func__): Document __func__ module.
40611
40612 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40613
40614         * modules/byteswap (License): Re-license as LGPLv2+.
40615
40616 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40617
40618         * doc/Makefile: Add pdf target.
40619
40620 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40621
40622         * modules/inline (License): Use 'unlimited', since there are only
40623         *.m4 files in this module.
40624
40625 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40626             Bruno Haible  <bruno@clisp.org>
40627
40628         Add support for HP C 7.1 on OpenVMS 8.3.
40629         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40630
40631 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40632
40633         Update VMS specifics.
40634         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40635
40636 2008-03-02  Jim Meyering  <meyering@redhat.com>
40637
40638         Remove the last dependency on the "free" module.
40639         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40640         Reported by Bob Proulx.
40641
40642         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40643
40644         Remove useless "if" tests before free.  Deprecate "free" module.
40645         * doc/posix-functions/free.texi: Mention that this
40646         module is no longer useful.
40647         * modules/free (Notice): Say this module is obsolete.
40648         * modules/readutmp (Depends-on): Remove free.
40649         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40650         * lib/putenv.c (putenv): Likewise.
40651         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40652         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40653         * tests/test-c-strcasestr.c (main): Likewise.
40654         * tests/test-c-strstr.c (main): Likewise.
40655         * tests/test-mbscasestr1.c (main): Likewise.
40656         * tests/test-mbscasestr2.c (main): Likewise.
40657         * tests/test-mbsstr1.c (main): Likewise.
40658         * tests/test-mbsstr2.c (main): Likewise.
40659         * tests/test-memmem.c (main): Likewise.
40660         * tests/test-strcasestr.c (main): Likewise.
40661         * tests/test-striconv.c (main): Likewise.
40662         * tests/test-striconveh.c (main): Likewise.
40663         * tests/test-striconveha.c (main): Likewise.
40664         * tests/test-strstr.c (main): Likewise.
40665
40666         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40667
40668         bootstrap: sync from coreutils again
40669         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40670
40671 2008-03-01  Jim Meyering  <meyering@redhat.com>
40672
40673         bootstrap: sync from coreutils
40674         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40675         also when the target doesn't exist.
40676
40677 2008-03-01  Eric Blake  <ebb9@byu.net>
40678
40679         Fix bugs in last patch.
40680         * lib/memchr2.c (memchr2): Fix typo.
40681         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40682         extension.
40683         Reported by Bruce Korb.
40684
40685         New module 'memchr2'.
40686         * modules/memchr2: New file.
40687         * modules/memchr2-tests: Likewise.
40688         * lib/memchr2.h: Likewise.
40689         * lib/memchr2.c: Likewise, based on memchr.c.
40690         * tests/test-memchr2.c: New test.
40691         * MODULES.html.sh (String handling): Add memchr2.
40692
40693 2008-02-29  Bruno Haible  <bruno@clisp.org>
40694
40695         * modules/freadseek-tests: New file.
40696         * tests/test-freadseek.sh: New file.
40697         * tests/test-freadseek.c: New file.
40698
40699         New module 'freadseek'.
40700         * modules/freadseek: New file.
40701         * lib/freadseek.h: New file.
40702         * lib/freadseek.c: New file.
40703         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40704
40705 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40706
40707         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40708         wydawca.
40709
40710         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40711         program_invocation_name and program_invocation_short_name are
40712         present.
40713
40714 2008-02-28  Bruno Haible  <bruno@clisp.org>
40715
40716         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40717         * tests/test-freadptr.sh: Also test non-seekable stdin.
40718
40719 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40720
40721         * build-aux/bootstrap (source_base, m4_base)
40722         (doc_base, tests_base): New variables.
40723         (gnulib_tool_options): Do not hardcode base directories, use
40724         the above variables instead.
40725
40726 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40727
40728         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40729
40730 2008-02-28  Bruno Haible  <bruno@clisp.org>
40731
40732         * modules/freadptr-tests: New file.
40733         * tests/test-freadptr.sh: New file.
40734         * tests/test-freadptr.c: New file.
40735
40736         New module 'freadptr'.
40737         * modules/freadptr: New file.
40738         * lib/freadptr.h: New file.
40739         * lib/freadptr.c: New file.
40740         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40741
40742 2008-02-26  Karl Berry  <karl@freefriends.org>
40743
40744         Sync from Libtool:
40745         * libltdl/argz.c (argz_add, argz_count): New functions.
40746         * libltdl/argz.in.h: Declare them.
40747         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40748
40749 2008-02-22  Bruno Haible  <bruno@clisp.org>
40750
40751         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40752         is a pointer type.  Needed for HP-UX 10.
40753         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40754         * doc/posix-functions/gmtime_r.texi: Likewise.
40755         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40756
40757 2008-02-24  Bruno Haible  <bruno@clisp.org>
40758
40759         * modules/environ-tests: New file.
40760         * tests/test-environ.c: New file.
40761
40762         New module 'environ'.
40763         * modules/environ: New file.
40764         * lib/unistd.in.h (environ): New declaration.
40765         * m4/environ.m4: New file.
40766         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40767         after use.
40768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40769         HAVE_DECL_ENVIRON.
40770         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40771         HAVE_DECL_ENVIRON.
40772         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40773         wrong claim that 'environ' is missing on some systems.
40774         * modules/execute (Depends-on): Add environ.
40775         * lib/execute.c (environ): Remove fallback declaration.
40776         * modules/pipe (Depends-on): Add environ.
40777         * lib/pipe.c (environ): Remove fallback declaration.
40778         * modules/setenv (Depends-on): Add environ.
40779         * lib/setenv.c (environ): Remove fallback declaration.
40780         * modules/unsetenv (Depends-on): Add environ.
40781         * lib/unsetenv.c (environ): Remove fallback declaration.
40782         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40783         m4/environ.m4.
40784         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40785         (gl_PREREQ_UNSETENV): Likewise.
40786
40787 2008-02-24  Bruno Haible  <bruno@clisp.org>
40788
40789         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40790
40791 2008-02-20  Bob Proulx  <bob@proulx.com>
40792
40793         Enable use of older two part flavor 'git describe'.
40794         * build-aux/git-version-gen: If using the older two part flavor of
40795         git version then recreate the third part now present in the
40796         newer three part flavor of git describe.
40797
40798 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40799
40800         * lib/fts.c (fts_build): Typo correction to comment.
40801
40802 2008-02-17  Bruno Haible  <bruno@clisp.org>
40803
40804         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40805         generating no-op conflicts.
40806
40807 2008-02-17  Bruno Haible  <bruno@clisp.org>
40808
40809         Speed up by 10%.
40810         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40811         result_entries, rather than an index-based loop.
40812
40813 2008-02-17  Bruno Haible  <bruno@clisp.org>
40814
40815         Speed up by 25%.
40816         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40817         'hashcode_cached'.
40818         (entry_create): New function.
40819         (entry_hashcode): Use the cached hashcode if possible.
40820         (read_changelog_file, try_split_merged_entry): Use entry_create.
40821
40822 2008-02-17  Bruno Haible  <bruno@clisp.org>
40823
40824         Speed up from O(n^2) to O(n) for long ChangeLog files.
40825         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40826         (read_changelog_file): Change implementation of entries_reversed list
40827         to rbtreehash.
40828         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40829
40830 2008-02-17  Bruno Haible  <bruno@clisp.org>
40831
40832         New option --split-merged-entry.
40833         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40834         (find_paragraph_end, try_split_merged_entry): New functions.
40835         (long_options): Add option --split-merged-entry.
40836         (usage): Document option --split-merged-entry.
40837         (main): Implement option --split-merged-entry.
40838         Reported by Eric Blake.
40839
40840 2008-02-17  Bruno Haible  <bruno@clisp.org>
40841
40842         * lib/git-merge-changelog.c: Include c-strstr.h.
40843         (main): Support the "git pull --rebase" situation.
40844         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40845         Reported by Eric Blake.
40846
40847 2008-02-16  Eric Blake  <ebb9@byu.net>
40848
40849         Avoid doubling \ in common case of "c-maybe" quoting style.
40850         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40851         eliding outer quotes.
40852         * lib/quotearg.h: Document this.
40853         * tests/test-quotearg.c (result_strings, inputs, results_g)
40854         (flag_results, locale_results): Test it by adding a new string to
40855         each test group.
40856         (compare_strings): Test new string.
40857
40858 2008-02-13  Eric Blake  <ebb9@byu.net>
40859
40860         Avoid trigraph quoting in default output.
40861         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40862         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40863         unless explicitly requested.
40864         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40865
40866 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40867
40868         Don't rely on signed integer overflowing to negative value.
40869         * lib/getugroups.c (getugroups): Include <limits.h>.
40870         Instead, compare against INT_MAX, and increment only if the test passes.
40871
40872 2008-02-13  Jim Meyering  <meyering@redhat.com>
40873         and Eric Blake  <ebb9@byu.net>
40874
40875         Avoid shadowing warning and compile errors on Linux.
40876         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40877         forwarding macros on Linux.
40878         (dcgettext): Define a stub, for Linux.
40879         (results_g, main): Avoid warnings.
40880
40881 2008-02-12  Eric Blake  <ebb9@byu.net>
40882
40883         Silence warning in last patch.
40884         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40885
40886         Quotearg part 4: add tests, fix c-maybe colon quoting.
40887         * lib/quotearg.h: Improve documentation.
40888         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40889         escapes when adding outer quotes.  When quoting trigraphs, use
40890         valid C notation.  When quoting NUL, omit extra characters if next
40891         character is not digit.  Alter prototype.
40892         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40893         callers.
40894         * modules/quotearg-tests: New module.
40895         * tests/test-quotearg.c: New test.
40896
40897 2008-02-07  Eric Blake  <ebb9@byu.net>
40898
40899         Quotearg part 3: add flag to control outer quote elision.
40900         * lib/quotearg.h (c_maybe_quoting_style): New style.
40901         (enum quoting_flags): Better documentation of flags.
40902         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40903         c-maybe style.
40904         (quotearg_buffer_restyled): Handle new flag to elide outer
40905         quotes.
40906
40907         Quotearg part 2: add flag that can control NUL elision.
40908         * lib/quotearg.h (set_quoting_flags): New prototype.
40909         * lib/quotearg.c (struct quoting_options): Add flag field.
40910         (set_quoting_flags): New function.
40911         (quotearg_buffer_restyled): Add flags parameter.
40912         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40913         (quotearg_n_options): Set the flag, since length cannot be
40914         returned.
40915         (quoting_options_from_style): Default flags correctly.
40916
40917         Quotearg part 1: more wrappers, restore quotearg_char state.
40918         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40919         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40920         (quotearg_colon_mem): New wrappers.
40921         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40922         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40923         functions.
40924         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40925         (quotearg_colon_mem): New functions.
40926
40927 2008-02-11  Bruno Haible  <bruno@clisp.org>
40928
40929         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40930         library in the current directory: it does not work with parallel make.
40931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40932
40933 2008-02-11  Bruno Haible  <bruno@clisp.org>
40934
40935         * .gitattributes: New file.
40936
40937 2008-02-11  Jim Meyering  <meyering@redhat.com>
40938
40939         useless-if-before-free: Fix reversed exit values.
40940         * build-aux/useless-if-before-free: Use correct values
40941         for EXIT_MATCH and EXIT_NO_MATCH.
40942
40943         * build-aux/useless-if-before-free: Close stdout carefully.
40944
40945 2008-02-10  Bruno Haible  <bruno@clisp.org>
40946
40947         New module 'git-merge-changelog'.
40948         * modules/git-merge-changelog: New file.
40949         * lib/git-merge-changelog.c: New file.
40950
40951 2008-02-10  Jim Meyering  <meyering@redhat.com>
40952
40953         useless-if-before-free: New option: --list (-l).
40954
40955         useless-if-before-free: Don't exit immediately upon open failure.
40956         * build-aux/useless-if-before-free: Exit 2 for errors.
40957         Upon failure to open a file, don't exit immediately.
40958         Rather, just warn and continue with any remaining files.
40959
40960 2008-02-10  Bruno Haible  <bruno@clisp.org>
40961
40962         New abstract list operation 'node_set_value'.
40963         * lib/gl_list.h (gl_list_node_set_value): New function.
40964         (struct gl_list_implementation): New field node_set_value.
40965         * lib/gl_list.c (gl_list_node_set_value): New function.
40966         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40967         (gl_array_list_implementation): Update.
40968         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40969         (gl_carray_list_implementation): Update.
40970         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40971         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40972         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40973         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40974         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40975         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40976         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40977         Update.
40978         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40979         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40980         (gl_sublist_list_implementation): Update.
40981
40982 2008-02-10  Bruno Haible  <bruno@clisp.org>
40983
40984         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40985         Needed when ELEMENT is #defined to 'some_type *'.
40986
40987 2008-02-10  Jim Meyering  <meyering@redhat.com>
40988
40989         New script and module: useless-if-before-free
40990         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40991         * build-aux/useless-if-before-free: New file.
40992         * modules/useless-if-before-free: New file.
40993
40994         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40995
40996         xstrtol_error: Fix typo.
40997         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40998         s/exit_failure/exit_status/.
40999
41000 2008-02-09  Jim Meyering  <meyering@redhat.com>
41001
41002         New script and module: gitlog-to-changelog
41003         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41004         * modules/gitlog-to-changelog: New file.
41005         * build-aux/gitlog-to-changelog: New file.
41006
41007 2008-02-08  Jim Meyering  <meyering@redhat.com>
41008
41009         Avoid two "parameter unused" warnings.
41010         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41011         Mark "st" as used.
41012
41013         Use "git COMMAND", not "git-COMMAND".
41014         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41015         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41016         * build-aux/git-version-gen: Use "git status", not "git-status".
41017
41018 2008-02-07  Bruno Haible  <bruno@clisp.org>
41019
41020         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41021         Avoids a crash on Windows Vista.
41022         Reported by Adam Strzelecki <ono@java.pl> via
41023         Simon Josefsson <simon@josefsson.org>.
41024
41025 2008-02-06  Bruno Haible  <bruno@clisp.org>
41026
41027         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41028         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41029         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41031         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41032         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41033         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41034         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41036         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41037         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41039         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41040         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41041         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41042         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41043         left-adjust flag.
41044         * tests/test-snprintf-posix.h (test_function): Likewise.
41045         * tests/test-sprintf-posix.h (test_function): Likewise.
41046         * tests/test-vasprintf-posix.c (test_function): Likewise.
41047         * doc/posix-functions/fprintf.texi: Update.
41048         * doc/posix-functions/printf.texi: Update.
41049         * doc/posix-functions/snprintf.texi: Update.
41050         * doc/posix-functions/sprintf.texi: Update.
41051         * doc/posix-functions/vfprintf.texi: Update.
41052         * doc/posix-functions/vprintf.texi: Update.
41053         * doc/posix-functions/vsnprintf.texi: Update.
41054         * doc/posix-functions/vsprintf.texi: Update.
41055         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41056
41057 2008-02-06  Bruno Haible  <bruno@clisp.org>
41058
41059         Fix bug introduced on 2008-01-26.
41060         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41061
41062 2008-02-06  Bruno Haible  <bruno@clisp.org>
41063
41064         Fix bug introduced on 2007-06-10.
41065         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41066         !NEED_PRINTF_FLAG_ZERO.
41067
41068 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41069
41070         getloadavg: use libperfstat on AIX5
41071         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41072
41073 2008-02-03  Bruno Haible  <bruno@clisp.org>
41074
41075         * lib/diffseq.h: Add comments about required #includes.
41076         Reported by Michael Biggs <gnulib@doubleplum.net>.
41077
41078 2008-02-01  Bruno Haible  <bruno@clisp.org>
41079
41080         * users.txt: Add gnuit.
41081
41082 2008-01-31  Bruno Haible  <bruno@clisp.org>
41083
41084         * lib/md4.c (set_uint32): Mark as inline.
41085         * lib/md5.c (set_uint32): Likewise.
41086         * lib/sha1.c (set_uint32): Likewise.
41087         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41088         * m4/md5.m4 (gl_MD5): Likewise.
41089         * m4/sha1.m4 (gl_SHA1): Likewise.
41090
41091 2008-01-31  Jim Meyering  <meyering@redhat.com>
41092
41093         Use "sizeof VAR", rather than a literal "4".
41094         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41095         * lib/md4.c (md4_read_ctx): Likewise.
41096         * lib/sha1.c (sha1_read_ctx): Likewise.
41097
41098 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41099
41100         * tests/test-sha1.c: New file, based on test-md5.c.
41101
41102         * modules/crypto/sha1-tests: New file.
41103
41104 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41105
41106         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41107
41108 2008-01-31  Jim Meyering  <meyering@redhat.com>
41109
41110         Prefer "sizeof v" over the equivalent "4".
41111         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41112         * lib/md5.c (set_uint32): Likewise.
41113         * lib/sha1.c (set_uint32): Likewise.
41114
41115 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41116
41117         * lib/sha1.c (set_uint32): Mark function as static.
41118
41119 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41120
41121         md2: clarify comments to say that alignment is not required.
41122         * lib/md2.h: Remove warning about alignment in comment.
41123         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41124         never been required.
41125
41126 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41127
41128         md4: adapt alignment constraint fix from sha1.
41129         * lib/md4.c (set_uint32): New function, from sha1.c
41130         (md4_read_ctx): Use it.
41131         (md4_finish_ctx): Doc fix.
41132         * lib/md4.h: Doc fix.
41133
41134 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41135
41136         md5: adapt alignment constraint fix from sha1.
41137         * lib/md5.c (set_uint32): New function, from sha1.c
41138         (md5_read_ctx): Use it.
41139         (md5_finish_ctx): Doc fix.
41140         * lib/md5.h: Doc fix.
41141
41142 2008-01-30  Peter Palfrader  <weasel@debian.org>
41143
41144         sha1: remove the result buffer alignment constraint
41145         * lib/sha1.c (set_uint32): New function.
41146         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41147         constraint.
41148         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41149         * lib/sha1.h: Likewise.
41150
41151 2008-01-30  Andreas Schwab  <schwab@suse.de>
41152             Bruno Haible  <bruno@clisp.org>
41153
41154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41155         correct definition of LDBL_MIN_EXP.
41156
41157 2008-01-30  Karl Berry  <karl@gnu.org>
41158
41159         * config/srclist-update: try to preserve x bit on updates.
41160         * config/srclistvars.sh: update for karl.
41161
41162 2008-01-29  Jim Meyering  <meyering@redhat.com>
41163
41164         vasnprintf.c: Avoid warning about unused label
41165         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41166         "overflow" label definition and associated code with the
41167         same cpp condition that guards the sole use of that label.
41168
41169 2008-01-26  Bruno Haible  <bruno@clisp.org>
41170
41171         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41172         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41173         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41174         * lib/isnanl-nolibm.h (isnanl): Likewise.
41175         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41176
41177 2008-01-26  Bruno Haible  <bruno@clisp.org>
41178
41179         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41180         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41181
41182 2008-01-26  Bruno Haible  <bruno@clisp.org>
41183
41184         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41185         GCC >= 4.0 built-in.
41186         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41187
41188 2008-01-26  Bruno Haible  <bruno@clisp.org>
41189
41190         Rename isnan, applicable to 'double' only, to isnand.
41191         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41192         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41193         (configure.ac): Update.
41194         (Include): Replace "isnan.h" with "isnand.h".
41195         * m4/isnand.m4: Renamed from m4/isnan.m4.
41196         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41197         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41198         instead of isnan.c.
41199         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41200         instead of HAVE_ISNAN_IN_LIBC.
41201         (isnand): Renamed from isnan.
41202         * lib/isnand.c: New file.
41203         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41204         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41205         (Makefile.am): Update.
41206         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41207         Include isnand.h instead of isnan.h.
41208         (main): Test isnand instead of isnan.
41209         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41210         isnan-nolibm.
41211         * modules/frexp (Depends-on): Likewise.
41212         * modules/frexp-tests (Depends-on): Likewise.
41213         * modules/frexp-nolibm (Depends-on): Likewise.
41214         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41215         * modules/isfinite (Depends-on): Likewise.
41216         * modules/round-tests (Depends-on): Likewise.
41217         * modules/signbit (Depends-on): Likewise.
41218         * modules/signbit-tests (Depends-on): Likewise.
41219         * modules/snprintf-posix (Depends-on): Likewise.
41220         * modules/sprintf-posix (Depends-on): Likewise.
41221         * modules/trunc-tests (Depends-on): Likewise.
41222         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41223         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41224         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41225         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41226         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41227         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41228         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41229         * modules/vasnprintf-posix (Depends-on): Likewise.
41230         * modules/vasprintf-posix (Depends-on): Likewise.
41231         * modules/vfprintf-posix (Depends-on): Likewise.
41232         * modules/vsnprintf-posix (Depends-on): Likewise.
41233         * modules/vsprintf-posix (Depends-on): Likewise.
41234         * lib/frexp.c: Include isnand.h instead of isnan.h.
41235         (ISNAN): Set to isnand instead of isnan.
41236         * lib/isfinite.c: Include isnand.h instead of isnan.h.
41237         (gl_isfinited): Use isnand instead of isnan.
41238         * lib/signbitd.c: Include isnand.h instead of isnan.h.
41239         (gl_signbitd): Use isnand instead of isnan.
41240         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
41241         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
41242         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
41243         (main): Use isnand instead of isnan.
41244         * tests/test-round1.c: Include isnand.h.
41245         (main): Use isnand instead of isnan.
41246         * tests/test-round2.c: Include isnand.h instead of isnan.h.
41247         (ISNAN): Set to isnand instead of isnan.
41248         * tests/test-trunc1.c: Include isnand.h.
41249         (main): Use isnand instead of isnan.
41250         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
41251         (equal): Use isnand instead of isnan.
41252         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
41253         isnand-nolibm.
41254         * NEWS: Mention the change.
41255
41256 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41257             Bruno Haible  <bruno@clisp.org>
41258
41259         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
41260         the GCC builtins for signbits are present and set
41261         REPLACE_SIGNBIT_USING_GCC if so.
41262         * lib/math.in.h (signbit): Define using GCC builtins if
41263         REPLACE_SIGNBIT_USING_GCC is set.
41264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
41265         REPLACE_SIGNBIT_USING_GCC.
41266         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
41267
41268 2008-01-25  Jim Meyering  <meyering@redhat.com>
41269
41270         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
41271         * lib/poll.c: Include <config.h>, not "config.h".
41272         * tests/test-getaddrinfo.c: Likewise.
41273
41274 2008-01-25  Simon Josefsson  <simon@josefsson.org>
41275
41276         * modules/sockets-tests: New file.
41277
41278 2008-01-24  Simon Josefsson  <simon@josefsson.org>
41279
41280         * modules/sockets: New module, can be used to call WSA_Startup and
41281         WSA_Cleanup when needed.
41282
41283         * lib/sockets.h, lib/sockets.c: New files.
41284
41285         * m4/sockets.m4: New file.
41286
41287         * tests/test-sockets.c: New file.
41288
41289 2008-01-19  Bruno Haible  <bruno@clisp.org>
41290
41291         * doc/posix-headers: Renamed from doc/headers.
41292         * doc/posix-functions: Renamed from doc/functions.
41293         * doc/gnulib.texi: Update.
41294
41295 2008-01-19  Bruno Haible  <bruno@clisp.org>
41296
41297         * doc/glibc-functions/strcasestr.texi: Include contents of
41298         doc/functions/strcasestr.texi, fixing the list of platforms.
41299         * doc/functions/strcasestr.texi: Remove file.
41300
41301 2008-01-19  Bruno Haible  <bruno@clisp.org>
41302
41303         * doc/glibc-functions/memmem.texi: Include contents of
41304         doc/functions/memmem.texi.
41305         * doc/functions/memmem.texi: Remove file.
41306
41307 2008-01-18  Bruno Haible  <bruno@clisp.org>
41308
41309         * doc/glibc-functions/*.texi: New files.
41310         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
41311         to use the new files.
41312
41313 2008-01-17  Bruno Haible  <bruno@clisp.org>
41314
41315         * tests/test-gethostname.c (main): Fix printf statement.
41316
41317 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41318
41319         * modules/gethostname-tests: New file.
41320
41321         * tests/test-gethostname.c: New file.
41322
41323 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41324
41325         * lib/gethostname.c: Include string.h unconditionally, strncpy is
41326         used by the UNAME case.  Reported by Bruno Haible
41327         <bruno@clisp.org>.
41328
41329 2008-01-17  Eric Blake  <ebb9@byu.net>
41330
41331         Convert c-strcasestr to be more efficient.
41332         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
41333         (Depends-on): Add c-strcase, remove malloca, strnlen.
41334         * tests/test-c-strcasestr.c (main): Enhance test.
41335         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
41336
41337 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
41338
41339         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
41340         Use it in creating po/Makevars.
41341
41342 2008-01-15  Simon Josefsson  <simon@josefsson.org>
41343
41344         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
41345         Applications that requires it should initialize libgcrypt
41346         manually.
41347
41348 2008-01-16  Simon Josefsson  <simon@josefsson.org>
41349
41350         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
41351
41352 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
41353
41354         Fix problem with getdate on mingw32 reported by Simon Josefsson
41355         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
41356         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
41357         tzname", when deciding whether to declare tzname.
41358         * lib/strftime.c (tzname): Likewise.
41359
41360 2008-01-15  Bruno Haible  <bruno@clisp.org>
41361
41362         Work around a MacOS X 10.5 bug in frexpl().
41363         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
41364         * doc/functions/frexpl.texi: Document the bug.
41365         Reported by Elias Pipping <pipping@gentoo.org>.
41366
41367 2008-01-14  Eric Blake  <ebb9@byu.net>
41368
41369         Touch up previous patch.
41370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
41371         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
41372
41373         Convert strcasestr module to use Two-Way algorithm.
41374         * modules/strcasestr-simple: New module, based on the old
41375         strcasestr, but with Two-Way rather than KMP.
41376         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
41377         * lib/string.in.h (rpl_strcasestr): Declare.
41378         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
41379         performance.
41380         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
41381         * modules/string (Makefile.am): Support strcasestr.
41382         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41383         * modules/strcasestr-tests (Depends-on): Check for alarm.
41384         * tests/test-strcasestr.c: Augment test.
41385         * lib/str-two-way.h: Clean up stray macro.
41386         * NEWS: Document new module.
41387         * MODULES.html.sh (string handling): Likewise.
41388         * doc/functions/strcasestr.texi: New file.
41389         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
41390         here, since it is not a POSIX function.
41391
41392 2008-01-14  Colin Watson  <cjwatson@debian.org>
41393             Bruno Haible  <bruno@clisp.org>
41394
41395         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
41396         works fine; if not, set REPLACE_STRSIGNAL.
41397         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
41398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41399         REPLACE_STRSIGNAL.
41400         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
41401         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
41402         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
41403
41404 2008-01-14  Bruno Haible  <bruno@clisp.org>
41405
41406         * modules/strsignal (Include): Change to <string.h>.
41407
41408 2008-01-14  Colin Watson  <cjwatson@debian.org>
41409
41410         * modules/argp (Notice): Add a notice recommending to change
41411         XGETTEXT_OPTIONS.
41412         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
41413
41414 2008-01-13  Colin Watson  <cjwatson@debian.org>
41415
41416         * modules/strsignal-tests: New file.
41417         * tests/test-strsignal.c: New file.
41418
41419         * lib/strsignal.c: New file, from glibc with modifications.
41420         * lib/siglist.h: New file, from glibc with modifications.
41421         * lib/string.in.h (strsignal): New declaration.
41422         * m4/strsignal.m4: New file.
41423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41424         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
41425         * modules/strsignal: New file.
41426         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
41427         HAVE_DECL_STRSIGNAL.
41428
41429 2008-01-13  Bruno Haible  <bruno@clisp.org>
41430
41431         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
41432         locale encoding is not ASCII. Needed for OpenBSD 4.0.
41433         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41434         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41435
41436 2008-01-13  Bruno Haible  <bruno@clisp.org>
41437
41438         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
41439         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
41440         * lib/argp.h (__attribute__): Likewise.
41441         * lib/c-stack.c (__attribute__): Likewise.
41442         * lib/error.h (__attribute__): Likewise.
41443         * lib/fts.c (__attribute__): Likewise.
41444         * lib/openat.h (__attribute__): Likewise.
41445         * lib/stdio.in.h (__attribute__): Likewise.
41446         * lib/string.in.h (__attribute__): Likewise.
41447         * lib/utimens.c (__attribute__): Likewise.
41448         * lib/vasnprintf.h (__attribute__): Likewise.
41449         * lib/xalloc.h (__attribute__): Likewise.
41450         * lib/xprintf.h (__attribute__): Likewise.
41451         * lib/xstrtol.h (__attribute__): Likewise.
41452         * lib/xvasprintf.h (__attribute__): Likewise.
41453
41454 2008-01-12  Bruno Haible  <bruno@clisp.org>
41455
41456         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
41457         * doc/glibc-headers/a.out.texi: New file.
41458         * doc/glibc-headers/aliases.texi: New file.
41459         * doc/glibc-headers/alloca.texi: New file.
41460         * doc/glibc-headers/ar.texi: New file.
41461         * doc/glibc-headers/argp.texi: New file.
41462         * doc/glibc-headers/argz.texi: New file.
41463         * doc/glibc-headers/byteswap.texi: New file.
41464         * doc/glibc-headers/crypt.texi: New file.
41465         * doc/glibc-headers/endian.texi: New file.
41466         * doc/glibc-headers/envz.texi: New file.
41467         * doc/glibc-headers/err.texi: New file.
41468         * doc/glibc-headers/error.texi: New file.
41469         * doc/glibc-headers/execinfo.texi: New file.
41470         * doc/glibc-headers/fpu_control.texi: New file.
41471         * doc/glibc-headers/fstab.texi: New file.
41472         * doc/glibc-headers/fts.texi: New file.
41473         * doc/glibc-headers/getopt.texi: New file.
41474         * doc/glibc-headers/ieee754.texi: New file.
41475         * doc/glibc-headers/ifaddrs.texi: New file.
41476         * doc/glibc-headers/libintl.texi: New file.
41477         * doc/glibc-headers/mcheck.texi: New file.
41478         * doc/glibc-headers/mntent.texi: New file.
41479         * doc/glibc-headers/obstack.texi: New file.
41480         * doc/glibc-headers/paths.texi: New file.
41481         * doc/glibc-headers/printf.texi: New file.
41482         * doc/glibc-headers/pty.texi: New file.
41483         * doc/glibc-headers/resolv.texi: New file.
41484         * doc/glibc-headers/shadow.texi: New file.
41485         * doc/glibc-headers/sysexits.texi: New file.
41486         * doc/glibc-headers/ttyent.texi: New file.
41487
41488 2008-01-12  Jim Meyering  <meyering@redhat.com>
41489
41490         announce-gen: emit Gnulib's git-based version string.
41491         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
41492         New option --gnulib-version=V, where V is expected to be
41493         the output of running git describe in the gnulib directory.
41494         (get_tool_versions): Request feedback on xdelta.  I suspect it's
41495         not useful, and plan to stop publishing an xdelta file with each
41496         coreutils release.
41497
41498         * build-aux/announce-gen: Also check for lzma-compressed files.
41499
41500 2008-01-11  Bruno Haible  <bruno@clisp.org>
41501
41502         * tests/test-memmem.c (main): Increase maximum allowed time.
41503         * tests/test-strstr.c (main): Likewise.
41504
41505 2008-01-11  Bruno Haible  <bruno@clisp.org>
41506
41507         * doc/functions/memmem.texi: Add more precisions about platforms.
41508         * doc/functions/strstr.texi: Likewise.
41509
41510 2008-01-10  Eric Blake  <ebb9@byu.net>
41511
41512         * m4/strstr.m4: Delete cruft from copy-n-paste.
41513         Reported by Bruno Haible.
41514
41515 2008-01-10  Bruno Haible  <bruno@clisp.org>
41516
41517         Make c-strstr rely on strstr.
41518         * lib/c-strstr.c: Don't include str-kmp.h.
41519         (c_strstr): Define in terms of strstr.
41520         * modules/c-strstr (Files): Remove lib/str-kmp.h.
41521         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
41522
41523 2008-01-10  Bruno Haible  <bruno@clisp.org>
41524
41525         * doc/gnulib.texi (String Functions in C Locale): New section.
41526         * doc/c-ctype.texi: New file.
41527         * doc/c-strcase.texi: New file.
41528         * doc/c-strcaseeq.texi: New file.
41529         * doc/c-strcasestr.texi: New file.
41530         * doc/c-strstr.texi: New file.
41531         * doc/c-strtod.texi: New file.
41532         * doc/c-strtold.texi: New file.
41533
41534 2008-01-10  Eric Blake  <ebb9@byu.net>
41535
41536         * lib/relocatable.h: Fix a comment.
41537
41538 2008-01-10  Eric Blake  <ebb9@byu.net>
41539
41540         Share two-way algorithm.
41541         * lib/str-two-way.h: New file, merged from...
41542         * lib/memmem.c: ...here...
41543         * lib/strstr.c: ...and here.
41544         * modules/memmem (Files): Use it.
41545         * modules/strstr (Files): Likewise.
41546
41547         Avoid quadratic strstr implementations.
41548         * lib/strstr.c: New file.
41549         * m4/strstr.m4: Likewise.
41550         * modules/strstr: Likewise.
41551         * modules/strstr-tests: Likewise.
41552         * tests/test-strstr.c: Likewise.
41553         * lib/string.in.h (rpl_strstr): Declare.
41554         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
41555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
41556         * modules/string (Makefile.am): Likewise.
41557         * MODULES.html.sh (string handling): Mention new module.
41558         * doc/functions/strstr.texi (strstr): Document the bug.
41559
41560 2008-01-10  Bruno Haible  <bruno@clisp.org>
41561
41562         * lib/relocatable.h (relocate): State whether result is freshly
41563         allocated or not.
41564         * lib/relocatable.c (relocate): Return a freshly allocated string
41565         instead of a pointer to a privately held string.
41566         Reported by Sylvain Beucler <beuc@gnu.org>.
41567
41568 2008-01-10  Colin Watson  <cjwatson@debian.org>
41569
41570         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41571         s/S_ISNLK/S_ISLNK/.
41572
41573 2008-01-09  Bruno Haible  <bruno@clisp.org>
41574
41575         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41576         and other files.
41577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41578         if it's only a guess.
41579         * modules/memmem: Simplify by depending on memmem-simple.
41580
41581 2008-01-09  Bruno Haible  <bruno@clisp.org>
41582
41583         Work around OpenBSD 4.0 tdelete() bug.
41584         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41585         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41586         macros and don't redefine the enum values.
41587         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41588         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41589         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41590
41591 2008-01-09  Bruno Haible  <bruno@clisp.org>
41592
41593         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41594         (main): Don't perform the tests if setlocale did not install a UTF-8
41595         locale. Needed on OpenBSD 4.0.
41596         * modules/wcwidth-tests (Depends-on): Add localcharset.
41597
41598 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41599
41600         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41601         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41602         * NEWS: announce this.
41603         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41604
41605 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41606         and Eric Blake  <ebb9@byu.net>
41607
41608         Add memmem-simple module.
41609         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41610         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41611         * modules/memmem-simple: New file.
41612         * modules/memmem (Description): Tweak.
41613         * MODULES.html.sh (string handling): Mention new module.
41614         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41615         addressed by memmem-simple.
41616         * NEWS: Document the difference.
41617
41618 2008-01-09  Eric Blake  <ebb9@byu.net>
41619
41620         Give gcc some memmem optimization hints.
41621         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41622         (strcasestr): Declare as pure.
41623         * modules/memmem (Maintainer): Claim my implementation.
41624
41625 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41626
41627         Support AIX 6.1 and higher.
41628         * build-aux/config.libpath: Likewise.
41629         * build-aux/config.rpath: Likewise.
41630
41631 2008-01-08  Jim Meyering  <meyering@redhat.com>
41632             Bruno Haible  <bruno@clisp.org>
41633
41634         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41635         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41636         Reported by Peter Fales in
41637         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41638
41639 2008-01-08  Bruno Haible  <bruno@clisp.org>
41640
41641         * modules/unictype/category-of (Depends-on): Add
41642         unictype/category-none.
41643         * modules/unictype/category-and-tests (Depends-on): Add
41644         unictype/category-{L,N,Lu,Nd}.
41645         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41646         * modules/unictype/category-or-tests (Depends-on): Add
41647         unictype/category-{L,N}.
41648         * modules/unictype/category-name-tests (Depends-on): Add
41649         unictype/category-{Z,Nl}.
41650         Reported by Simon Josefsson.
41651
41652 2008-01-08  Bruno Haible  <bruno@clisp.org>
41653
41654         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41655         convention better.
41656         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41657         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41658         Reported by Peter Miller <millerp@canb.auug.org.au>.
41659
41660 2008-01-08  Eric Blake  <ebb9@byu.net>
41661
41662         Rewrite memmem to guarantee linear complexity without malloc.
41663         * lib/memmem.c (memmem): Use Two-Way rather than
41664         Knuth-Morris-Pratt, to allow O(1) space usage.
41665         (critical_factorization, two_way_short_needle)
41666         (two_way_long_needle): New functions.
41667         (knuth_morris_pratt): Delete.
41668         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41669         Add stdint.
41670         * tests/test-memmem.c (main): Add tests for periodic needle and
41671         sublinear performance.
41672         * doc/functions/memmem.texi (memmem): Document other deficiencies
41673         in cygwin and older glibc.
41674
41675 2008-01-08  Bruno Haible  <bruno@clisp.org>
41676
41677         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41678         augmentation.
41679
41680 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41681
41682         Add a configure time option: --disable-acl.
41683         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41684         AC_ARG_ENABLE(acl).
41685
41686 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41687
41688         * tests/test-localename.c: Don't include obsolete "setenv.h".
41689
41690         * modules/localename-tests (Depends-on): Need unsetenv.
41691
41692 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41693
41694         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41695
41696 2008-01-06  Colin Watson  <cjwatson@debian.org>
41697
41698         * users.txt: Add man-db.
41699
41700 2008-01-07  Bruno Haible  <bruno@clisp.org>
41701
41702         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41703         previous section name.
41704
41705 2008-01-07  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/progname.c (set_program_name): Don't strip off a leading
41708         "lt-" prefix outside a .libs directory.
41709         Suggested by Paul Eggert.
41710
41711 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41712             Bruno Haible  <bruno@clisp.org>
41713
41714         Improve memory cleanup in 'relocatable' module.
41715         * lib/relocatable.h (compute_curr_prefix): Change return type to
41716         'char *'.
41717         * lib/relocatable.c (compute_curr_prefix): Change return type to
41718         'char *'. Free curr_installdir after use.
41719         (relocate): Free curr_prefix_better after use.
41720         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41721
41722 2008-01-01  Bruno Haible  <bruno@clisp.org>
41723
41724         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41725         failure on older glibc systems.
41726         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41727
41728 2008-01-05  Eric Blake  <ebb9@byu.net>
41729
41730         Avoid quadratic system memmem.
41731         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41732         Reported by Ralf Wildenhues.
41733
41734         Fix memmem test for mingw.
41735         * modules/memmem-tests (configure.ac): Check for alarm.
41736         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41737         it.
41738         * doc/functions/memmem.texi: New file.
41739         * doc/gnulib.texi (Function Substitutes): Add memmem.
41740         Reported by Bruno Haible.
41741
41742 2008-01-04  Bruno Haible  <bruno@clisp.org>
41743
41744         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41745         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41746         gl_HEADER_STRING_H_DEFAULTS.
41747
41748 2008-01-04  Eric Blake  <ebb9@byu.net>
41749
41750         Shorten duration of memmem test.
41751         * tests/test-memmem.c (main): Use alarm to declare failure if test
41752         is taking too long.
41753         Reported by Ralf Wildenhues.
41754
41755 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41756
41757         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41758         string, needed by strerror.
41759
41760 2008-01-03  Colin Watson  <cjwatson@debian.org>
41761             Bruno Haible  <bruno@clisp.org>
41762
41763         * doc/gnulib-tool.texi (Localization): New section.
41764
41765 2008-01-02  Bruno Haible  <bruno@clisp.org>
41766
41767         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41768         variables to 'unsigned char *' type.
41769         Reported by Paul Eggert.
41770
41771 2008-01-02  Jim Meyering  <jim@meyering.net>
41772
41773         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41774
41775 2007-12-31  Jim Meyering  <jim@meyering.net>
41776
41777         Avoid use of private FTS type name.
41778         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41779
41780 2007-12-30  Karl Berry  <karl@gnu.org>
41781
41782         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41783         work around defect in Texinfo and/or the standalone Info browser.
41784
41785 2007-12-30  Bruno Haible  <bruno@clisp.org>
41786
41787         Unify 5 copies of the KMP code.
41788         * lib/str-kmp.h: New file.
41789         * lib/c-strcasestr.c: Include str-kmp.h.
41790         (knuth_morris_pratt): Remove function.
41791         (c_strcasestr): Update.
41792         * lib/c-strstr.c: Include str-kmp.h.
41793         (knuth_morris_pratt): Remove function.
41794         (c_strcasestr): Update.
41795         * lib/mbscasestr.c: Include str-kmp.h.
41796         (knuth_morris_pratt_unibyte): Remove function.
41797         * lib/mbsstr.c: Include str-kmp.h.
41798         (knuth_morris_pratt_unibyte): Remove function.
41799         * lib/strcasestr.c: Include str-kmp.h.
41800         (knuth_morris_pratt): Remove function.
41801         (strcasestr): Update.
41802         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41803         * modules/c-strstr (Files): Likewise.
41804         * modules/mbscasestr (Files): Likewise.
41805         * modules/mbsstr (Files): Likewise.
41806         * modules/strcasestr (Files): Likewise.
41807         Suggested by Paul Eggert.
41808
41809 2007-12-30  Bruno Haible  <bruno@clisp.org>
41810
41811         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41812         defined.
41813
41814 2007-12-30  Bruno Haible  <bruno@clisp.org>
41815
41816         * lib/xmalloca.h: Include xalloc.h.
41817         (xnmalloca): New macro.
41818
41819 2007-12-30  Bruno Haible  <bruno@clisp.org>
41820
41821         * lib/malloca.h (nmalloca): New macro.
41822         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41823         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41824         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41825         knuth_morris_pratt_multibyte): Likewise.
41826         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41827         knuth_morris_pratt_multibyte): Likewise.
41828         * lib/memmem.c (knuth_morris_pratt): Likewise.
41829         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41830
41831 2007-12-25  Bruno Haible  <bruno@clisp.org>
41832
41833         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41834         * lib/glob.c: Don't include openat.h.
41835         (link_exists2_p): Add back the code that deals with the
41836         !GLOB_ALTDIRFUNC case.
41837         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41838         let it do the filename concatenation.
41839         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41840         * modules/glob (Depends-on): Remove openat.
41841
41842 2007-12-31  Bruno Haible  <bruno@clisp.org>
41843
41844         * modules/dirfd (License): Change to LGPLv2+.
41845         Approved by Jim Meyering.
41846
41847 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41848
41849         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41850         when multiplying M by sizeof (size_t).
41851
41852 2007-12-10  Martin Lambers  <marlam@marlam.de>
41853
41854         Override getpagesize on mingw.
41855         * lib/getpagesize.c: New file.
41856         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41857         * modules/getpagesize (Files): Add lib/getpagesize.c.
41858         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41860         REPLACE_GETPAGESIZE.
41861         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41862
41863 2007-12-25  Bruno Haible  <bruno@clisp.org>
41864
41865         * modules/localcharset (Notice): New field.
41866         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41867         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41868
41869 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41870             Bruno Haible  <bruno@clisp.org>
41871
41872         Avoid using the syntax symbol() in formatted documentation.
41873         * MODULES.html.sh (func_module): When replacing symbol() with a
41874         hyperlink, remove the parentheses. Show an error if some remain.
41875         Recognize and render the '...' syntax.
41876         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41877         Rework. Add paragraph about GCC's inlining.
41878         * doc/alloca.texi: Likewise.
41879         * doc/error.texi: Remove parentheses from symbol reference.
41880         * doc/gnulib-intro.texi: Likewise.
41881         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41882         * modules/fnmatch (Description): Reword to say "the ... function".
41883         * modules/full-read (Description): Likewise.
41884         * modules/full-write (Description): Likewise.
41885         * modules/safe-read (Description): Likewise.
41886         * modules/safe-write (Description): Likewise.
41887         * modules/strchrnul (Description): Likewise.
41888         * modules/trim (Description): Likewise.
41889         * modules/error (Description): Remove parentheses from symbol
41890         references.
41891         * modules/verror (Description): Likewise.
41892         Reported by Karl Berry.
41893
41894 2007-12-25  Bruno Haible  <bruno@clisp.org>
41895
41896         Fixup after 2007-10-16 commit.
41897         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41898
41899 2007-12-24  Bruno Haible  <bruno@clisp.org>
41900
41901         Make --enable-relocatable work with DESTDIR.
41902         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41903         to compute installdir from destprog.
41904         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41905         also set the RELOC_DESTDIR variable.
41906         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41907
41908 2007-12-24  Bruno Haible  <bruno@clisp.org>
41909
41910         Fix link error due to xalloc_die().
41911         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41912         of xreadlink.
41913         * lib/relocwrapper.c: Update comments.
41914         * build-aux/install-reloc: Remove xreadlink.c from file list.
41915         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41916         xreadlink.c.
41917         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41918
41919 2007-12-24  Bruno Haible  <bruno@clisp.org>
41920
41921         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41922         * lib/setenv.h: Remove file.
41923         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41924         lib/setenv.h.
41925         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41926         (Depends-on): Add stdlib.
41927         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41928         gl_FUNC_UNSETENV.
41929         (Include): Replace setenv.h with <stdlib.h>.
41930         * modules/unsetenv: New file.
41931         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41932         * lib/unsetenv.c: Include <stdlib.h> first.
41933         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
41934         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
41935         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
41936         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41937         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41938         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41940         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41941         * doc/functions/unsetenv.texi: Update.
41942         * modules/xsetenv (Depends-on): Add unsetenv.
41943         * modules/getdate (Depends-on): Likewise.
41944         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41945         * lib/xsetenv.c: Don't include setenv.h.
41946         * lib/getdate.y: Likewise.
41947         * lib/relocwrapper.c: Likewise.
41948         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41949         (Depends-on): Add stdlib.
41950         * NEWS: Mention the changes.
41951         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41952
41953 2007-12-23  Bruno Haible  <bruno@clisp.org>
41954
41955         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41956         indentation.
41957
41958 2007-12-23  Bruno Haible  <bruno@clisp.org>
41959
41960         * lib/c-strcasestr.c: Add more comments.
41961         * lib/c-strstr.c: Likewise.
41962         * lib/mbscasestr.c: Likewise.
41963         * lib/mbsstr.c: Likewise.
41964         * lib/strcasestr.c: Likewise.
41965         * lib/memmem.c: Likewise.
41966
41967 2007-12-23  Bruno Haible  <bruno@clisp.org>
41968
41969         * tests/test-memmem.c: Include <string.h> first.
41970
41971 2007-12-22  Bruno Haible  <bruno@clisp.org>
41972
41973         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41974         the contents of $testsbase.
41975         Reported by Ralf Wildenhues.
41976
41977 2007-12-22  Bruno Haible  <bruno@clisp.org>
41978
41979         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41980         two variables local_ldadd_before, local_ldadd_last.
41981
41982 2007-12-20  Eric Blake  <ebb9@byu.net>
41983
41984         Work around circular library issue when cross-compiling.
41985         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41986         that progname.o does not need to pull in rpl_memcmp.
41987
41988 2007-12-19  Eric Blake  <ebb9@byu.net>
41989
41990         Fix memmem to avoid O(n^2) worst-case complexity.
41991         * lib/memmem.c (knuth_morris_pratt): New function.
41992         (memmem): Use it if first few naive iterations fail.
41993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41994         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41995         * modules/memchr (License): Likewise.
41996         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41997         malloca.
41998         * tests/test-memmem.c: Rewrite, borrowing ideas from
41999         test-mbsstr1.c; the old version wouldn't even compile!
42000         * modules/memmem-tests: New file.
42001         * lib/string.in.h (rpl_memmem): Add declaration.
42002         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42004         REPLACE_MEMMEM.
42005
42006 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42007
42008         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42009         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42010         before any system include files, and undef after them all.  This
42011         should fix a problem on VMS reported by John E. Malmberg in
42012         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42013
42014 2007-12-17  Eric Blake  <ebb9@byu.net>
42015
42016         Revert addition of verify, for BSD/OS.
42017         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42018         can't handle large files, for the sake of obsolete platforms.
42019         * modules/fseeko (Depends-on): Remove verify.
42020         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42021         * doc/functions/ftello.texi (ftello): Likewise.
42022         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42023         Reported by Larry Jones.
42024
42025 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42026
42027         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42028         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42029
42030 2007-12-17  Jim Meyering  <meyering@redhat.com>
42031
42032         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42033         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42034         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42035         * modules/getcwd (Depends-on): Add openat.
42036         Reported by Petr Salinger.
42037
42038 2007-12-17  Bruno Haible  <bruno@clisp.org>
42039
42040         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42041         avoid a segmentation fault of the configure test on x86_64 systems.
42042
42043 2007-12-15  Jim Meyering  <meyering@redhat.com>
42044
42045         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42046
42047 2007-12-13  Eric Blake  <ebb9@byu.net>
42048
42049         Another fseek test.
42050         * tests/test-fseek.c (main): Also test ungetc handling.
42051         * tests/test-fseeko.c (main): Likewise.
42052         * modules/fseeko (Depends-on): Add verify.
42053         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42054         large.
42055         Reported by Larry Jones.
42056
42057         Fix fseeko on mingw.
42058         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42059         seek.
42060
42061         Beef up fseek tests.
42062         * tests/test-fseek.c (main): Also test eof handling.
42063         * tests/test-fseeko.c (main): Likewise.
42064         Reported by Larry Jones.
42065
42066 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42067
42068         Fix fseeko on BSD-based platforms.
42069         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42070         successful seek.
42071
42072 2007-12-12  Eric Blake  <ebb9@byu.net>
42073
42074         Allow circular dependency of separate libtests.a
42075         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42076         when use_libtests.
42077
42078 2007-12-11  Eric Blake  <ebb9@byu.net>
42079
42080         Fix bug with -0.0L in previous patch.
42081         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42082         * tests/test-isnan.c (main): Also test on zeroes.
42083         * tests/test-isnanf.c (main): Likewise.
42084         * tests/test-isnanl.h (main): Likewise.
42085
42086         Detect pseudo-denormals on x86 even when cross-compiling.
42087         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42088         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42089         invalid bit patterns that happen to satisfy ==.
42090
42091         Avoid link failures with separate libtests.a.
42092         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42093         last, to satisfy circular dependencies.
42094
42095 2007-12-11  Eric Blake  <ebb9@byu.net>
42096         and Bruno Haible  <bruno@clisp.org>
42097
42098         Fix OpenBSD 4.0 <float.h> handling of long double.
42099         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42100         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42101         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42102
42103 2007-12-11  Jim Meyering  <meyering@redhat.com>
42104
42105         * users.txt: Add libvirt.
42106
42107         Support versions of autoconf prior to 2.59c.
42108         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42109         if it is not already defined.
42110
42111 2007-12-09  Bruno Haible  <bruno@clisp.org>
42112
42113         Let 'gnulib-tool --import' collect sources needed for the tests in
42114         tests/ rather than in lib/.
42115         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42116         argument. If true, add rules to generate libtests.a, and put libtests.a
42117         into $(LDADD). Consider source files in subdirectories and set
42118         uses_subdirs.
42119         (func_emit_initmacro_start, func_emit_initmacro_end,
42120         func_emit_initmacro_done): Pass all arguments explicitly.
42121         (func_import): Determine two module lists main_modules,
42122         testsrelated_modules. Determine use_libtests. Determine two variables
42123         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42124         instead of just sed_transform_lib_file. Determine two variables
42125         main_files and testsrelated_files. Compute 'files' as the union of
42126         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42127         func_add_or_update. In the generated gnulib-comp.m4, collect the
42128         object files for tests/ in different variables than those for lib/.
42129         Substitute LIBTESTS_LIBDEPS.
42130         (func_create_testdir): Combine the uses_subdirs results from
42131         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42132
42133 2007-12-09  Bruno Haible  <bruno@clisp.org>
42134
42135         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42136         the build-aux directory.
42137
42138 2007-12-09  Bruno Haible  <bruno@clisp.org>
42139
42140         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42141         introduced on 2006-09-09.
42142
42143 2007-12-07  Jim Meyering  <meyering@redhat.com>
42144
42145         Let these macros work also with autoconf-2.59.
42146         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42147         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42148         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42149
42150 2007-12-06  Jim Meyering  <meyering@redhat.com>
42151
42152         Avoid a configure-time syntax error in gl_FUNC_ACL.
42153         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42154         function in each branch, before testing the cache variable.
42155
42156 2007-12-04  Eric Blake  <ebb9@byu.net>
42157
42158         Make scripts executable.
42159         * build-aux/config.guess: Add execute permissions.
42160         * build-aux/config.sub: Likewise.
42161         * build-aux/gendocs.sh: Likewise.
42162
42163         Fix frexp on mingw.
42164         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42165         cross-compiling.
42166         * doc/functions/frexp.texi (frexp): Document the bug.
42167
42168         Make cygwin fseeko check more reliable.
42169         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42170         version numbers, rather than unrelated feature check.
42171         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42172         * doc/functions/ftello.texi (ftello): Likewise.
42173         Reported by Bruno Haible.
42174
42175         * m4/strerror.m4: Bump version number.
42176
42177 2007-12-03  Bruno Haible  <bruno@clisp.org>
42178
42179         * doc/functions/mprotect.texi: Mention the mingw problem.
42180
42181 2007-12-03  Eric Blake  <ebb9@byu.net>
42182
42183         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42184         REPLACE_STRERROR is initialized before this macro.
42185
42186 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42187
42188         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42189         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42190         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42191         put -lsec in even for programs other than 'ls'.  This fixes a problem
42192         for gettext reported by Bruno Haible in
42193         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42194         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42195         Add support for Solaris 10.  This isn't efficient, but should get the
42196         job done for now.
42197
42198 2007-12-03  James Youngman  <jay@gnu.org>
42199
42200         * doc/regexprops-generic.texi: change "an close-group" to "a
42201         close-group" and "illegal" to "not allowed".
42202
42203 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42204
42205         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42206         pr_byname.h. Needed for the rare case when the maintainer has done
42207         "make maintainer-clean" in the source directory and then attempts a
42208         build outside the source directory.
42209         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42210         scripts_byname.h.
42211
42212 2007-12-02  Martin Lambers <marlam@marlam.de>
42213             Bruno Haible  <bruno@clisp.org>
42214
42215         * lib/getpagesize.h: Remove file.
42216         * lib/unistd.in.h: Include declaration of getpagesize here.
42217         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42218         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42219         HAVE_SYS_PARAM_H.
42220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
42221         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42222         * modules/getpagesize (Files): Remove lib/getpagesize.h.
42223         (Depends-on): Add unistd.
42224         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42225         (Include): Use <unistd.h> instead of getpagesize.h.
42226         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
42227         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42228         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
42229         gl_GETPAGESIZE invocation, already handled by module dependency.
42230         * lib/pagealign_alloc.c: Don't include getpagesize.h.
42231
42232 2007-12-02  Bruno Haible  <bruno@clisp.org>
42233
42234         * modules/strings-tests: New file.
42235         * tests/test-strings.c: New file.
42236
42237         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
42238         * lib/strings.in.h: New file.
42239         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
42240         * m4/strings_h.m4: New file.
42241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
42242         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
42243         * modules/strings: New file.
42244         * modules/string (Makefile.am): Update.
42245         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
42246         Reported by Karl Berry.
42247
42248 2007-12-01  Eric Blake  <ebb9@byu.net>
42249
42250         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
42251         accomodate fix in cygwin 1.5.25.
42252
42253 2007-12-01  Jim Meyering  <meyering@redhat.com>
42254
42255         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
42256         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
42257         that would inhibit utf8-optimization of a regexp containing line-
42258         or buffer-anchors, e.g., `^', `$'.
42259
42260 2007-11-30  Bruno Haible  <bruno@clisp.org>
42261
42262         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
42263         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
42264         glthread_recursive_lock_init.
42265         * lib/lock.c (glthread_recursive_lock_init)
42266         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
42267         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42268
42269 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
42270
42271         New function qset_acl, like set_acl but with syscall semantics.
42272         * lib/acl.h (qset_acl): New decl.
42273         * lib/acl.c (qset_acl): New function.
42274         (set_acl): Use new function.  Use more-consistent diagnostics.
42275
42276 2007-11-28  Jim Meyering  <meyering@redhat.com>
42277
42278         * modules/physmem (License): Change from GPL to LGPLv2+.
42279
42280 2007-11-26  Bruno Haible  <bruno@clisp.org>
42281
42282         * lib/vasnprintf.c (decode_long_double): Don't abort if the
42283         'long double' type has excess precision.
42284         Reported by Jim Meyering in
42285         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
42286
42287 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42288
42289         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
42290         Sync from <http://gnu.org/licenses>.
42291         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
42292         with license text from same location.
42293         * doc/maintain.texi, doc/standards.texi:  Sync from
42294         <http://savannah.gnu.org/projects/gnustandards>.
42295
42296 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
42297         and Jim Meyering  <meyering@redhat.com>
42298
42299         Adjust getdate' grammar to accept a slightly more regular language.
42300         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
42301         Before, the former was rejected.
42302         * lib/getdate.y (digits_to_date_time): New function, factored
42303         out of ...
42304         (number): ...here.  Just call digits_to_date_time.
42305         (hybrid): New non-terminal to handle an <unsigned number,
42306         signed relative offset> sequence consistently.
42307
42308 2007-11-18  Jim Meyering  <meyering@redhat.com>
42309
42310         Pull my changes from coreutils:
42311         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
42312         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
42313         use of $gnulib_tool_option_extras, so that it's separated from the
42314         preceding argument.
42315
42316         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
42317         * build-aux/bootstrap (cp_mark_as_generated): Create any required
42318         parent destination directories before copying a file into place.
42319
42320 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42321
42322         bootstrap: work also with 4-argument variant of AC_INIT
42323         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
42324
42325 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42326
42327         Port test-getaddrinfo to Solaris.
42328         Problem reported by Bruno Haible in
42329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
42330         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
42331         explanation of setting 'hints'.
42332         Don't reject an implementation merely because it returns EAI_SERVICE.
42333         (EAI_SERVICE): Define to 0 if not defined.
42334
42335 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42336
42337         The license of gnu-make and posix-shell is now "GPLed build tool".
42338         * modules/gnu-make (License): Likewise.
42339         * modules/posix-shell (License): Likewise.
42340
42341         New module posix-shell, for determining a POSIX shell
42342         or perhaps something that is close enough to a POSIX shell.
42343         * m4/posix-shell.m4: New file.
42344         * modules/posix-shell: New file.
42345
42346         * MODULES.html.sh: Mention new module.
42347
42348         New module gnu-make, for determining whether we're using GNU Make.
42349         * m4/gnu-make.m4: New file.
42350         * modules/gnu-make: New file.
42351         * MODULES.html.sh: Mention new module.
42352
42353 2007-11-14  Jim Meyering  <meyering@redhat.com>
42354
42355         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
42356         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
42357         use this macro to create a function _definition_.
42358         Remove useless "#undef ARGMATCH_DIE".
42359
42360 2007-11-14  Bruno Haible  <bruno@clisp.org>
42361
42362         * lib/config.charset: Update for OpenBSD 4.1.
42363         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
42364
42365 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
42366
42367         Document 64-bit #if problems in stdint.texi.
42368         * doc/headers/stdint.texi (stdint.h): Mention problems with
42369         64-bit-#if, and how to work around them.
42370
42371         Don't insist on 'long long int' support in the preprocessor.  It
42372         breaks too many things.  For example, PRIdMAX still uses a 'long
42373         long int' format with the latest Sun compiler, even though
42374         HAVE_LONG_LONG_INT isn't defined due to that compiler's
42375         preprocessor problem.  This causes the latest coreutils to dump
42376         core on Solaris 10 sparc with the Sun C compiler.
42377         Instead, fix the 2007-10-16 problem in a different way, by evaluating
42378         the troublesome expressions at configure-time, not at #if-time.
42379         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
42380         preprocessor.
42381         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
42382         compile-time C checks, done at 'configure'-time.
42383         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
42384         * modules/inttypes (Makefile): Substitute the new symbols that
42385         gl_INTTYPES_H now generates.
42386         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
42387
42388 2007-11-12  Bruno Haible  <bruno@clisp.org>
42389
42390         Tests for Unicode character classification functions.
42391
42392         * modules/unictype/bidicategory-byname-tests: New file.
42393         * modules/unictype/bidicategory-name-tests: New file.
42394         * modules/unictype/bidicategory-of-tests: New file.
42395         * modules/unictype/bidicategory-test-tests: New file.
42396         * modules/unictype/block-list-tests: New file.
42397         * modules/unictype/block-of-tests: New file.
42398         * modules/unictype/block-test-tests: New file.
42399         * modules/unictype/category-C-tests: New file.
42400         * modules/unictype/category-Cc-tests: New file.
42401         * modules/unictype/category-Cf-tests: New file.
42402         * modules/unictype/category-Cn-tests: New file.
42403         * modules/unictype/category-Co-tests: New file.
42404         * modules/unictype/category-Cs-tests: New file.
42405         * modules/unictype/category-L-tests: New file.
42406         * modules/unictype/category-Ll-tests: New file.
42407         * modules/unictype/category-Lm-tests: New file.
42408         * modules/unictype/category-Lo-tests: New file.
42409         * modules/unictype/category-Lt-tests: New file.
42410         * modules/unictype/category-Lu-tests: New file.
42411         * modules/unictype/category-M-tests: New file.
42412         * modules/unictype/category-Mc-tests: New file.
42413         * modules/unictype/category-Me-tests: New file.
42414         * modules/unictype/category-Mn-tests: New file.
42415         * modules/unictype/category-N-tests: New file.
42416         * modules/unictype/category-Nd-tests: New file.
42417         * modules/unictype/category-Nl-tests: New file.
42418         * modules/unictype/category-No-tests: New file.
42419         * modules/unictype/category-P-tests: New file.
42420         * modules/unictype/category-Pc-tests: New file.
42421         * modules/unictype/category-Pd-tests: New file.
42422         * modules/unictype/category-Pe-tests: New file.
42423         * modules/unictype/category-Pf-tests: New file.
42424         * modules/unictype/category-Pi-tests: New file.
42425         * modules/unictype/category-Po-tests: New file.
42426         * modules/unictype/category-Ps-tests: New file.
42427         * modules/unictype/category-S-tests: New file.
42428         * modules/unictype/category-Sc-tests: New file.
42429         * modules/unictype/category-Sk-tests: New file.
42430         * modules/unictype/category-Sm-tests: New file.
42431         * modules/unictype/category-So-tests: New file.
42432         * modules/unictype/category-Z-tests: New file.
42433         * modules/unictype/category-Zl-tests: New file.
42434         * modules/unictype/category-Zp-tests: New file.
42435         * modules/unictype/category-Zs-tests: New file.
42436         * modules/unictype/category-and-not-tests: New file.
42437         * modules/unictype/category-and-tests: New file.
42438         * modules/unictype/category-byname-tests: New file.
42439         * modules/unictype/category-name-tests: New file.
42440         * modules/unictype/category-none-tests: New file.
42441         * modules/unictype/category-of-tests: New file.
42442         * modules/unictype/category-or-tests: New file.
42443         * modules/unictype/category-test-withtable-tests: New file.
42444         * modules/unictype/combining-class-tests: New file.
42445         * modules/unictype/ctype-alnum-tests: New file.
42446         * modules/unictype/ctype-alpha-tests: New file.
42447         * modules/unictype/ctype-blank-tests: New file.
42448         * modules/unictype/ctype-cntrl-tests: New file.
42449         * modules/unictype/ctype-digit-tests: New file.
42450         * modules/unictype/ctype-graph-tests: New file.
42451         * modules/unictype/ctype-lower-tests: New file.
42452         * modules/unictype/ctype-print-tests: New file.
42453         * modules/unictype/ctype-punct-tests: New file.
42454         * modules/unictype/ctype-space-tests: New file.
42455         * modules/unictype/ctype-upper-tests: New file.
42456         * modules/unictype/ctype-xdigit-tests: New file.
42457         * modules/unictype/decimal-digit-tests: New file.
42458         * modules/unictype/digit-tests: New file.
42459         * modules/unictype/mirror-tests: New file.
42460         * modules/unictype/numeric-tests: New file.
42461         * modules/unictype/property-alphabetic-tests: New file.
42462         * modules/unictype/property-ascii-hex-digit-tests: New file.
42463         * modules/unictype/property-bidi-arabic-digit-tests: New file.
42464         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
42465         * modules/unictype/property-bidi-block-separator-tests: New file.
42466         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
42467         * modules/unictype/property-bidi-common-separator-tests: New file.
42468         * modules/unictype/property-bidi-control-tests: New file.
42469         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
42470         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
42471         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
42472         * modules/unictype/property-bidi-european-digit-tests: New file.
42473         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
42474         * modules/unictype/property-bidi-left-to-right-tests: New file.
42475         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
42476         * modules/unictype/property-bidi-other-neutral-tests: New file.
42477         * modules/unictype/property-bidi-pdf-tests: New file.
42478         * modules/unictype/property-bidi-segment-separator-tests: New file.
42479         * modules/unictype/property-bidi-whitespace-tests: New file.
42480         * modules/unictype/property-byname-tests: New file.
42481         * modules/unictype/property-combining-tests: New file.
42482         * modules/unictype/property-composite-tests: New file.
42483         * modules/unictype/property-currency-symbol-tests: New file.
42484         * modules/unictype/property-dash-tests: New file.
42485         * modules/unictype/property-decimal-digit-tests: New file.
42486         * modules/unictype/property-default-ignorable-code-point-tests: New file.
42487         * modules/unictype/property-deprecated-tests: New file.
42488         * modules/unictype/property-diacritic-tests: New file.
42489         * modules/unictype/property-extender-tests: New file.
42490         * modules/unictype/property-format-control-tests: New file.
42491         * modules/unictype/property-grapheme-base-tests: New file.
42492         * modules/unictype/property-grapheme-extend-tests: New file.
42493         * modules/unictype/property-grapheme-link-tests: New file.
42494         * modules/unictype/property-hex-digit-tests: New file.
42495         * modules/unictype/property-hyphen-tests: New file.
42496         * modules/unictype/property-id-continue-tests: New file.
42497         * modules/unictype/property-id-start-tests: New file.
42498         * modules/unictype/property-ideographic-tests: New file.
42499         * modules/unictype/property-ids-binary-operator-tests: New file.
42500         * modules/unictype/property-ids-trinary-operator-tests: New file.
42501         * modules/unictype/property-ignorable-control-tests: New file.
42502         * modules/unictype/property-iso-control-tests: New file.
42503         * modules/unictype/property-join-control-tests: New file.
42504         * modules/unictype/property-left-of-pair-tests: New file.
42505         * modules/unictype/property-line-separator-tests: New file.
42506         * modules/unictype/property-logical-order-exception-tests: New file.
42507         * modules/unictype/property-lowercase-tests: New file.
42508         * modules/unictype/property-math-tests: New file.
42509         * modules/unictype/property-non-break-tests: New file.
42510         * modules/unictype/property-not-a-character-tests: New file.
42511         * modules/unictype/property-numeric-tests: New file.
42512         * modules/unictype/property-other-alphabetic-tests: New file.
42513         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
42514         * modules/unictype/property-other-grapheme-extend-tests: New file.
42515         * modules/unictype/property-other-id-continue-tests: New file.
42516         * modules/unictype/property-other-id-start-tests: New file.
42517         * modules/unictype/property-other-lowercase-tests: New file.
42518         * modules/unictype/property-other-math-tests: New file.
42519         * modules/unictype/property-other-uppercase-tests: New file.
42520         * modules/unictype/property-paired-punctuation-tests: New file.
42521         * modules/unictype/property-paragraph-separator-tests: New file.
42522         * modules/unictype/property-pattern-syntax-tests: New file.
42523         * modules/unictype/property-pattern-white-space-tests: New file.
42524         * modules/unictype/property-private-use-tests: New file.
42525         * modules/unictype/property-punctuation-tests: New file.
42526         * modules/unictype/property-quotation-mark-tests: New file.
42527         * modules/unictype/property-radical-tests: New file.
42528         * modules/unictype/property-sentence-terminal-tests: New file.
42529         * modules/unictype/property-soft-dotted-tests: New file.
42530         * modules/unictype/property-space-tests: New file.
42531         * modules/unictype/property-terminal-punctuation-tests: New file.
42532         * modules/unictype/property-test-tests: New file.
42533         * modules/unictype/property-titlecase-tests: New file.
42534         * modules/unictype/property-unassigned-code-value-tests: New file.
42535         * modules/unictype/property-unified-ideograph-tests: New file.
42536         * modules/unictype/property-uppercase-tests: New file.
42537         * modules/unictype/property-variation-selector-tests: New file.
42538         * modules/unictype/property-white-space-tests: New file.
42539         * modules/unictype/property-xid-continue-tests: New file.
42540         * modules/unictype/property-xid-start-tests: New file.
42541         * modules/unictype/property-zero-width-tests: New file.
42542         * modules/unictype/scripts-tests: New file.
42543         * modules/unictype/syntax-c-ident-tests: New file.
42544         * modules/unictype/syntax-c-whitespace-tests: New file.
42545         * modules/unictype/syntax-java-ident-tests: New file.
42546         * modules/unictype/syntax-java-whitespace-tests: New file.
42547         * tests/unictype/test-bidi_byname.c: New file.
42548         * tests/unictype/test-bidi_name.c: New file.
42549         * tests/unictype/test-bidi_of.c: New file.
42550         * tests/unictype/test-bidi_test.c: New file.
42551         * tests/unictype/test-block_list.c: New file.
42552         * tests/unictype/test-block_of.c: New file.
42553         * tests/unictype/test-block_test.c: New file.
42554         * tests/unictype/test-categ_and.c: New file.
42555         * tests/unictype/test-categ_and_not.c: New file.
42556         * tests/unictype/test-categ_byname.c: New file.
42557         * tests/unictype/test-categ_name.c: New file.
42558         * tests/unictype/test-categ_none.c: New file.
42559         * tests/unictype/test-categ_of.c: New file.
42560         * tests/unictype/test-categ_or.c: New file.
42561         * tests/unictype/test-categ_test_withtable.c: New file.
42562         * tests/unictype/test-combining.c: New file.
42563         * tests/unictype/test-decdigit.c: New file.
42564         * tests/unictype/test-digit.c: New file.
42565         * tests/unictype/test-mirror.c: New file.
42566         * tests/unictype/test-numeric.c: New file.
42567         * tests/unictype/test-pr_byname.c: New file.
42568         * tests/unictype/test-pr_test.c: New file.
42569         * tests/unictype/test-predicate-part1.h: New file.
42570         * tests/unictype/test-predicate-part2.h: New file.
42571         * tests/unictype/test-scripts.c: New file.
42572         * tests/unictype/test-sy_c_ident.c: New file.
42573         * tests/unictype/test-sy_java_ident.c: New file.
42574
42575         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42576         for Unicode 5.0.0.
42577         * tests/unictype/test-categ_Cc.c: Likewise.
42578         * tests/unictype/test-categ_Cf.c: Likewise.
42579         * tests/unictype/test-categ_Cn.c: Likewise.
42580         * tests/unictype/test-categ_Co.c: Likewise.
42581         * tests/unictype/test-categ_Cs.c: Likewise.
42582         * tests/unictype/test-categ_L.c: Likewise.
42583         * tests/unictype/test-categ_Ll.c: Likewise.
42584         * tests/unictype/test-categ_Lm.c: Likewise.
42585         * tests/unictype/test-categ_Lo.c: Likewise.
42586         * tests/unictype/test-categ_Lt.c: Likewise.
42587         * tests/unictype/test-categ_Lu.c: Likewise.
42588         * tests/unictype/test-categ_M.c: Likewise.
42589         * tests/unictype/test-categ_Mc.c: Likewise.
42590         * tests/unictype/test-categ_Me.c: Likewise.
42591         * tests/unictype/test-categ_Mn.c: Likewise.
42592         * tests/unictype/test-categ_N.c: Likewise.
42593         * tests/unictype/test-categ_Nd.c: Likewise.
42594         * tests/unictype/test-categ_Nl.c: Likewise.
42595         * tests/unictype/test-categ_No.c: Likewise.
42596         * tests/unictype/test-categ_P.c: Likewise.
42597         * tests/unictype/test-categ_Pc.c: Likewise.
42598         * tests/unictype/test-categ_Pd.c: Likewise.
42599         * tests/unictype/test-categ_Pe.c: Likewise.
42600         * tests/unictype/test-categ_Pf.c: Likewise.
42601         * tests/unictype/test-categ_Pi.c: Likewise.
42602         * tests/unictype/test-categ_Po.c: Likewise.
42603         * tests/unictype/test-categ_Ps.c: Likewise.
42604         * tests/unictype/test-categ_S.c: Likewise.
42605         * tests/unictype/test-categ_Sc.c: Likewise.
42606         * tests/unictype/test-categ_Sk.c: Likewise.
42607         * tests/unictype/test-categ_Sm.c: Likewise.
42608         * tests/unictype/test-categ_So.c: Likewise.
42609         * tests/unictype/test-categ_Z.c: Likewise.
42610         * tests/unictype/test-categ_Zl.c: Likewise.
42611         * tests/unictype/test-categ_Zp.c: Likewise.
42612         * tests/unictype/test-categ_Zs.c: Likewise.
42613         * tests/unictype/test-ctype_alnum.c: Likewise.
42614         * tests/unictype/test-ctype_alpha.c: Likewise.
42615         * tests/unictype/test-ctype_blank.c: Likewise.
42616         * tests/unictype/test-ctype_cntrl.c: Likewise.
42617         * tests/unictype/test-ctype_digit.c: Likewise.
42618         * tests/unictype/test-ctype_graph.c: Likewise.
42619         * tests/unictype/test-ctype_lower.c: Likewise.
42620         * tests/unictype/test-ctype_print.c: Likewise.
42621         * tests/unictype/test-ctype_punct.c: Likewise.
42622         * tests/unictype/test-ctype_space.c: Likewise.
42623         * tests/unictype/test-ctype_upper.c: Likewise.
42624         * tests/unictype/test-ctype_xdigit.c: Likewise.
42625         * tests/unictype/test-decdigit.h: Likewise.
42626         * tests/unictype/test-digit.h: Likewise.
42627         * tests/unictype/test-numeric.h: Likewise.
42628         * tests/unictype/test-pr_alphabetic.c: Likewise.
42629         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42630         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42631         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42632         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42633         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42634         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42635         * tests/unictype/test-pr_bidi_control.c: Likewise.
42636         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42637         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42638         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42639         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42640         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42641         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42642         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42643         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42644         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42645         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42646         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42647         * tests/unictype/test-pr_combining.c: Likewise.
42648         * tests/unictype/test-pr_composite.c: Likewise.
42649         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42650         * tests/unictype/test-pr_dash.c: Likewise.
42651         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42652         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42653         * tests/unictype/test-pr_deprecated.c: Likewise.
42654         * tests/unictype/test-pr_diacritic.c: Likewise.
42655         * tests/unictype/test-pr_extender.c: Likewise.
42656         * tests/unictype/test-pr_format_control.c: Likewise.
42657         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42658         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42659         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42660         * tests/unictype/test-pr_hex_digit.c: Likewise.
42661         * tests/unictype/test-pr_hyphen.c: Likewise.
42662         * tests/unictype/test-pr_id_continue.c: Likewise.
42663         * tests/unictype/test-pr_id_start.c: Likewise.
42664         * tests/unictype/test-pr_ideographic.c: Likewise.
42665         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42666         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42667         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42668         * tests/unictype/test-pr_iso_control.c: Likewise.
42669         * tests/unictype/test-pr_join_control.c: Likewise.
42670         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42671         * tests/unictype/test-pr_line_separator.c: Likewise.
42672         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42673         * tests/unictype/test-pr_lowercase.c: Likewise.
42674         * tests/unictype/test-pr_math.c: Likewise.
42675         * tests/unictype/test-pr_non_break.c: Likewise.
42676         * tests/unictype/test-pr_not_a_character.c: Likewise.
42677         * tests/unictype/test-pr_numeric.c: Likewise.
42678         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42679         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42680         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42681         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42682         * tests/unictype/test-pr_other_id_start.c: Likewise.
42683         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42684         * tests/unictype/test-pr_other_math.c: Likewise.
42685         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42686         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42687         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42688         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42689         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42690         * tests/unictype/test-pr_private_use.c: Likewise.
42691         * tests/unictype/test-pr_punctuation.c: Likewise.
42692         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42693         * tests/unictype/test-pr_radical.c: Likewise.
42694         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42695         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42696         * tests/unictype/test-pr_space.c: Likewise.
42697         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42698         * tests/unictype/test-pr_titlecase.c: Likewise.
42699         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42700         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42701         * tests/unictype/test-pr_uppercase.c: Likewise.
42702         * tests/unictype/test-pr_variation_selector.c: Likewise.
42703         * tests/unictype/test-pr_white_space.c: Likewise.
42704         * tests/unictype/test-pr_xid_continue.c: Likewise.
42705         * tests/unictype/test-pr_xid_start.c: Likewise.
42706         * tests/unictype/test-pr_zero_width.c: Likewise.
42707         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42708         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42709
42710 2007-11-12  Bruno Haible  <bruno@clisp.org>
42711
42712         Unicode character classification functions.
42713         * lib/unictype.h: New file.
42714         * modules/unictype/base: New file.
42715         * modules/unictype/category-L: New file.
42716         * modules/unictype/category-Lu: New file.
42717         * modules/unictype/category-Ll: New file.
42718         * modules/unictype/category-Lt: New file.
42719         * modules/unictype/category-Lm: New file.
42720         * modules/unictype/category-Lo: New file.
42721         * modules/unictype/category-M: New file.
42722         * modules/unictype/category-Mn: New file.
42723         * modules/unictype/category-Mc: New file.
42724         * modules/unictype/category-Me: New file.
42725         * modules/unictype/category-N: New file.
42726         * modules/unictype/category-Nd: New file.
42727         * modules/unictype/category-Nl: New file.
42728         * modules/unictype/category-No: New file.
42729         * modules/unictype/category-P: New file.
42730         * modules/unictype/category-Pc: New file.
42731         * modules/unictype/category-Pd: New file.
42732         * modules/unictype/category-Ps: New file.
42733         * modules/unictype/category-Pe: New file.
42734         * modules/unictype/category-Pi: New file.
42735         * modules/unictype/category-Pf: New file.
42736         * modules/unictype/category-Po: New file.
42737         * modules/unictype/category-S: New file.
42738         * modules/unictype/category-Sm: New file.
42739         * modules/unictype/category-Sc: New file.
42740         * modules/unictype/category-Sk: New file.
42741         * modules/unictype/category-So: New file.
42742         * modules/unictype/category-Z: New file.
42743         * modules/unictype/category-Zs: New file.
42744         * modules/unictype/category-Zl: New file.
42745         * modules/unictype/category-Zp: New file.
42746         * modules/unictype/category-C: New file.
42747         * modules/unictype/category-Cc: New file.
42748         * modules/unictype/category-Cf: New file.
42749         * modules/unictype/category-Cs: New file.
42750         * modules/unictype/category-Co: New file.
42751         * modules/unictype/category-Cn: New file.
42752         * modules/unictype/category-or: New file.
42753         * modules/unictype/category-of: New file.
42754         * modules/unictype/category-test: New file.
42755         * modules/unictype/category-test-withtable: New file.
42756         * modules/unictype/category-byname: New file.
42757         * modules/unictype/category-none: New file.
42758         * modules/unictype/category-and: New file.
42759         * modules/unictype/category-and-not: New file.
42760         * modules/unictype/category-name: New file.
42761         * modules/unictype/combining-class: New file.
42762         * modules/unictype/category-all: New file.
42763         * modules/unictype/bidicategory-all: New file.
42764         * modules/unictype/bidicategory-byname: New file.
42765         * modules/unictype/bidicategory-name: New file.
42766         * modules/unictype/bidicategory-of: New file.
42767         * modules/unictype/bidicategory-test: New file.
42768         * modules/unictype/decimal-digit: New file.
42769         * modules/unictype/digit: New file.
42770         * modules/unictype/numeric: New file.
42771         * modules/unictype/mirror: New file.
42772         * modules/unictype/property-white-space: New file.
42773         * modules/unictype/property-alphabetic: New file.
42774         * modules/unictype/property-other-alphabetic: New file.
42775         * modules/unictype/property-not-a-character: New file.
42776         * modules/unictype/property-default-ignorable-code-point: New file.
42777         * modules/unictype/property-other-default-ignorable-code-point: New
42778         file.
42779         * modules/unictype/property-deprecated: New file.
42780         * modules/unictype/property-logical-order-exception: New file.
42781         * modules/unictype/property-variation-selector: New file.
42782         * modules/unictype/property-private-use: New file.
42783         * modules/unictype/property-unassigned-code-value: New file.
42784         * modules/unictype/property-uppercase: New file.
42785         * modules/unictype/property-other-uppercase: New file.
42786         * modules/unictype/property-lowercase: New file.
42787         * modules/unictype/property-other-lowercase: New file.
42788         * modules/unictype/property-titlecase: New file.
42789         * modules/unictype/property-soft-dotted: New file.
42790         * modules/unictype/property-id-start: New file.
42791         * modules/unictype/property-other-id-start: New file.
42792         * modules/unictype/property-id-continue: New file.
42793         * modules/unictype/property-other-id-continue: New file.
42794         * modules/unictype/property-xid-start: New file.
42795         * modules/unictype/property-xid-continue: New file.
42796         * modules/unictype/property-pattern-white-space: New file.
42797         * modules/unictype/property-pattern-syntax: New file.
42798         * modules/unictype/property-join-control: New file.
42799         * modules/unictype/property-grapheme-base: New file.
42800         * modules/unictype/property-grapheme-extend: New file.
42801         * modules/unictype/property-other-grapheme-extend: New file.
42802         * modules/unictype/property-grapheme-link: New file.
42803         * modules/unictype/property-bidi-control: New file.
42804         * modules/unictype/property-bidi-left-to-right: New file.
42805         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42806         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42807         * modules/unictype/property-bidi-european-digit: New file.
42808         * modules/unictype/property-bidi-eur-num-separator: New file.
42809         * modules/unictype/property-bidi-eur-num-terminator: New file.
42810         * modules/unictype/property-bidi-arabic-digit: New file.
42811         * modules/unictype/property-bidi-common-separator: New file.
42812         * modules/unictype/property-bidi-block-separator: New file.
42813         * modules/unictype/property-bidi-segment-separator: New file.
42814         * modules/unictype/property-bidi-whitespace: New file.
42815         * modules/unictype/property-bidi-non-spacing-mark: New file.
42816         * modules/unictype/property-bidi-boundary-neutral: New file.
42817         * modules/unictype/property-bidi-pdf: New file.
42818         * modules/unictype/property-bidi-embedding-or-override: New file.
42819         * modules/unictype/property-bidi-other-neutral: New file.
42820         * modules/unictype/property-hex-digit: New file.
42821         * modules/unictype/property-ascii-hex-digit: New file.
42822         * modules/unictype/property-ideographic: New file.
42823         * modules/unictype/property-unified-ideograph: New file.
42824         * modules/unictype/property-radical: New file.
42825         * modules/unictype/property-ids-binary-operator: New file.
42826         * modules/unictype/property-ids-trinary-operator: New file.
42827         * modules/unictype/property-zero-width: New file.
42828         * modules/unictype/property-space: New file.
42829         * modules/unictype/property-non-break: New file.
42830         * modules/unictype/property-iso-control: New file.
42831         * modules/unictype/property-format-control: New file.
42832         * modules/unictype/property-dash: New file.
42833         * modules/unictype/property-hyphen: New file.
42834         * modules/unictype/property-punctuation: New file.
42835         * modules/unictype/property-line-separator: New file.
42836         * modules/unictype/property-paragraph-separator: New file.
42837         * modules/unictype/property-quotation-mark: New file.
42838         * modules/unictype/property-sentence-terminal: New file.
42839         * modules/unictype/property-terminal-punctuation: New file.
42840         * modules/unictype/property-currency-symbol: New file.
42841         * modules/unictype/property-math: New file.
42842         * modules/unictype/property-other-math: New file.
42843         * modules/unictype/property-paired-punctuation: New file.
42844         * modules/unictype/property-left-of-pair: New file.
42845         * modules/unictype/property-combining: New file.
42846         * modules/unictype/property-composite: New file.
42847         * modules/unictype/property-decimal-digit: New file.
42848         * modules/unictype/property-numeric: New file.
42849         * modules/unictype/property-diacritic: New file.
42850         * modules/unictype/property-extender: New file.
42851         * modules/unictype/property-ignorable-control: New file.
42852         * modules/unictype/property-test: New file.
42853         * modules/unictype/property-byname: New file.
42854         * modules/unictype/property-all: New file.
42855         * modules/unictype/scripts: New file.
42856         * modules/unictype/scripts-all: New file.
42857         * modules/unictype/block-of: New file.
42858         * modules/unictype/block-test: New file.
42859         * modules/unictype/block-list: New file.
42860         * modules/unictype/block-all: New file.
42861         * modules/unictype/syntax-c-whitespace: New file.
42862         * modules/unictype/syntax-java-whitespace: New file.
42863         * modules/unictype/syntax-c-ident: New file.
42864         * modules/unictype/syntax-java-ident: New file.
42865         * modules/unictype/ctype-alnum: New file.
42866         * modules/unictype/ctype-alpha: New file.
42867         * modules/unictype/ctype-cntrl: New file.
42868         * modules/unictype/ctype-digit: New file.
42869         * modules/unictype/ctype-graph: New file.
42870         * modules/unictype/ctype-lower: New file.
42871         * modules/unictype/ctype-print: New file.
42872         * modules/unictype/ctype-punct: New file.
42873         * modules/unictype/ctype-space: New file.
42874         * modules/unictype/ctype-upper: New file.
42875         * modules/unictype/ctype-xdigit: New file.
42876         * modules/unictype/ctype-blank: New file.
42877         * lib/unictype/bidi_byname.c: New file.
42878         * lib/unictype/bidi_name.c: New file.
42879         * lib/unictype/bidi_of.c: New file.
42880         * lib/unictype/bidi_test.c: New file.
42881         * lib/unictype/bitmap.h: New file.
42882         * lib/unictype/block_test.c: New file.
42883         * lib/unictype/blocks.c: New file.
42884         * lib/unictype/categ_C.c: New file.
42885         * lib/unictype/categ_Cc.c: New file.
42886         * lib/unictype/categ_Cf.c: New file.
42887         * lib/unictype/categ_Cn.c: New file.
42888         * lib/unictype/categ_Co.c: New file.
42889         * lib/unictype/categ_Cs.c: New file.
42890         * lib/unictype/categ_L.c: New file.
42891         * lib/unictype/categ_Ll.c: New file.
42892         * lib/unictype/categ_Lm.c: New file.
42893         * lib/unictype/categ_Lo.c: New file.
42894         * lib/unictype/categ_Lt.c: New file.
42895         * lib/unictype/categ_Lu.c: New file.
42896         * lib/unictype/categ_M.c: New file.
42897         * lib/unictype/categ_Mc.c: New file.
42898         * lib/unictype/categ_Me.c: New file.
42899         * lib/unictype/categ_Mn.c: New file.
42900         * lib/unictype/categ_N.c: New file.
42901         * lib/unictype/categ_Nd.c: New file.
42902         * lib/unictype/categ_Nl.c: New file.
42903         * lib/unictype/categ_No.c: New file.
42904         * lib/unictype/categ_P.c: New file.
42905         * lib/unictype/categ_Pc.c: New file.
42906         * lib/unictype/categ_Pd.c: New file.
42907         * lib/unictype/categ_Pe.c: New file.
42908         * lib/unictype/categ_Pf.c: New file.
42909         * lib/unictype/categ_Pi.c: New file.
42910         * lib/unictype/categ_Po.c: New file.
42911         * lib/unictype/categ_Ps.c: New file.
42912         * lib/unictype/categ_S.c: New file.
42913         * lib/unictype/categ_Sc.c: New file.
42914         * lib/unictype/categ_Sk.c: New file.
42915         * lib/unictype/categ_Sm.c: New file.
42916         * lib/unictype/categ_So.c: New file.
42917         * lib/unictype/categ_Z.c: New file.
42918         * lib/unictype/categ_Zl.c: New file.
42919         * lib/unictype/categ_Zp.c: New file.
42920         * lib/unictype/categ_Zs.c: New file.
42921         * lib/unictype/categ_and.c: New file.
42922         * lib/unictype/categ_and_not.c: New file.
42923         * lib/unictype/categ_byname.c: New file.
42924         * lib/unictype/categ_name.c: New file.
42925         * lib/unictype/categ_none.c: New file.
42926         * lib/unictype/categ_of.c: New file.
42927         * lib/unictype/categ_or.c: New file.
42928         * lib/unictype/categ_test.c: New file.
42929         * lib/unictype/combining.c: New file.
42930         * lib/unictype/ctype_alnum.c: New file.
42931         * lib/unictype/ctype_alpha.c: New file.
42932         * lib/unictype/ctype_blank.c: New file.
42933         * lib/unictype/ctype_cntrl.c: New file.
42934         * lib/unictype/ctype_digit.c: New file.
42935         * lib/unictype/ctype_graph.c: New file.
42936         * lib/unictype/ctype_lower.c: New file.
42937         * lib/unictype/ctype_print.c: New file.
42938         * lib/unictype/ctype_punct.c: New file.
42939         * lib/unictype/ctype_space.c: New file.
42940         * lib/unictype/ctype_upper.c: New file.
42941         * lib/unictype/ctype_xdigit.c: New file.
42942         * lib/unictype/decdigit.c: New file.
42943         * lib/unictype/digit.c: New file.
42944         * lib/unictype/identsyntaxmap.h: New file.
42945         * lib/unictype/mirror.c: New file.
42946         * lib/unictype/numeric.c: New file.
42947         * lib/unictype/pr_alphabetic.c: New file.
42948         * lib/unictype/pr_ascii_hex_digit.c: New file.
42949         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42950         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42951         * lib/unictype/pr_bidi_block_separator.c: New file.
42952         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42953         * lib/unictype/pr_bidi_common_separator.c: New file.
42954         * lib/unictype/pr_bidi_control.c: New file.
42955         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42956         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42957         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42958         * lib/unictype/pr_bidi_european_digit.c: New file.
42959         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42960         * lib/unictype/pr_bidi_left_to_right.c: New file.
42961         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42962         * lib/unictype/pr_bidi_other_neutral.c: New file.
42963         * lib/unictype/pr_bidi_pdf.c: New file.
42964         * lib/unictype/pr_bidi_segment_separator.c: New file.
42965         * lib/unictype/pr_bidi_whitespace.c: New file.
42966         * lib/unictype/pr_byname.c: New file.
42967         * lib/unictype/pr_byname.gperf: New file.
42968         * lib/unictype/pr_combining.c: New file.
42969         * lib/unictype/pr_composite.c: New file.
42970         * lib/unictype/pr_currency_symbol.c: New file.
42971         * lib/unictype/pr_dash.c: New file.
42972         * lib/unictype/pr_decimal_digit.c: New file.
42973         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42974         * lib/unictype/pr_deprecated.c: New file.
42975         * lib/unictype/pr_diacritic.c: New file.
42976         * lib/unictype/pr_extender.c: New file.
42977         * lib/unictype/pr_format_control.c: New file.
42978         * lib/unictype/pr_grapheme_base.c: New file.
42979         * lib/unictype/pr_grapheme_extend.c: New file.
42980         * lib/unictype/pr_grapheme_link.c: New file.
42981         * lib/unictype/pr_hex_digit.c: New file.
42982         * lib/unictype/pr_hyphen.c: New file.
42983         * lib/unictype/pr_id_continue.c: New file.
42984         * lib/unictype/pr_id_start.c: New file.
42985         * lib/unictype/pr_ideographic.c: New file.
42986         * lib/unictype/pr_ids_binary_operator.c: New file.
42987         * lib/unictype/pr_ids_trinary_operator.c: New file.
42988         * lib/unictype/pr_ignorable_control.c: New file.
42989         * lib/unictype/pr_iso_control.c: New file.
42990         * lib/unictype/pr_join_control.c: New file.
42991         * lib/unictype/pr_left_of_pair.c: New file.
42992         * lib/unictype/pr_line_separator.c: New file.
42993         * lib/unictype/pr_logical_order_exception.c: New file.
42994         * lib/unictype/pr_lowercase.c: New file.
42995         * lib/unictype/pr_math.c: New file.
42996         * lib/unictype/pr_non_break.c: New file.
42997         * lib/unictype/pr_not_a_character.c: New file.
42998         * lib/unictype/pr_numeric.c: New file.
42999         * lib/unictype/pr_other_alphabetic.c: New file.
43000         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43001         * lib/unictype/pr_other_grapheme_extend.c: New file.
43002         * lib/unictype/pr_other_id_continue.c: New file.
43003         * lib/unictype/pr_other_id_start.c: New file.
43004         * lib/unictype/pr_other_lowercase.c: New file.
43005         * lib/unictype/pr_other_math.c: New file.
43006         * lib/unictype/pr_other_uppercase.c: New file.
43007         * lib/unictype/pr_paired_punctuation.c: New file.
43008         * lib/unictype/pr_paragraph_separator.c: New file.
43009         * lib/unictype/pr_pattern_syntax.c: New file.
43010         * lib/unictype/pr_pattern_white_space.c: New file.
43011         * lib/unictype/pr_private_use.c: New file.
43012         * lib/unictype/pr_punctuation.c: New file.
43013         * lib/unictype/pr_quotation_mark.c: New file.
43014         * lib/unictype/pr_radical.c: New file.
43015         * lib/unictype/pr_sentence_terminal.c: New file.
43016         * lib/unictype/pr_soft_dotted.c: New file.
43017         * lib/unictype/pr_space.c: New file.
43018         * lib/unictype/pr_terminal_punctuation.c: New file.
43019         * lib/unictype/pr_test.c: New file.
43020         * lib/unictype/pr_titlecase.c: New file.
43021         * lib/unictype/pr_unassigned_code_value.c: New file.
43022         * lib/unictype/pr_unified_ideograph.c: New file.
43023         * lib/unictype/pr_uppercase.c: New file.
43024         * lib/unictype/pr_variation_selector.c: New file.
43025         * lib/unictype/pr_white_space.c: New file.
43026         * lib/unictype/pr_xid_continue.c: New file.
43027         * lib/unictype/pr_xid_start.c: New file.
43028         * lib/unictype/pr_zero_width.c: New file.
43029         * lib/unictype/scripts.c: New file.
43030         * lib/unictype/sy_c_ident.c: New file.
43031         * lib/unictype/sy_c_whitespace.c: New file.
43032         * lib/unictype/sy_java_ident.c: New file.
43033         * lib/unictype/sy_java_whitespace.c: New file.
43034
43035         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43036         Unicode 5.0.0.
43037         * lib/unictype/blocks.h: Likewise.
43038         * lib/unictype/categ_C.h: Likewise.
43039         * lib/unictype/categ_Cc.h: Likewise.
43040         * lib/unictype/categ_Cf.h: Likewise.
43041         * lib/unictype/categ_Cn.h: Likewise.
43042         * lib/unictype/categ_Co.h: Likewise.
43043         * lib/unictype/categ_Cs.h: Likewise.
43044         * lib/unictype/categ_L.h: Likewise.
43045         * lib/unictype/categ_Ll.h: Likewise.
43046         * lib/unictype/categ_Lm.h: Likewise.
43047         * lib/unictype/categ_Lo.h: Likewise.
43048         * lib/unictype/categ_Lt.h: Likewise.
43049         * lib/unictype/categ_Lu.h: Likewise.
43050         * lib/unictype/categ_M.h: Likewise.
43051         * lib/unictype/categ_Mc.h: Likewise.
43052         * lib/unictype/categ_Me.h: Likewise.
43053         * lib/unictype/categ_Mn.h: Likewise.
43054         * lib/unictype/categ_N.h: Likewise.
43055         * lib/unictype/categ_Nd.h: Likewise.
43056         * lib/unictype/categ_Nl.h: Likewise.
43057         * lib/unictype/categ_No.h: Likewise.
43058         * lib/unictype/categ_P.h: Likewise.
43059         * lib/unictype/categ_Pc.h: Likewise.
43060         * lib/unictype/categ_Pd.h: Likewise.
43061         * lib/unictype/categ_Pe.h: Likewise.
43062         * lib/unictype/categ_Pf.h: Likewise.
43063         * lib/unictype/categ_Pi.h: Likewise.
43064         * lib/unictype/categ_Po.h: Likewise.
43065         * lib/unictype/categ_Ps.h: Likewise.
43066         * lib/unictype/categ_S.h: Likewise.
43067         * lib/unictype/categ_Sc.h: Likewise.
43068         * lib/unictype/categ_Sk.h: Likewise.
43069         * lib/unictype/categ_Sm.h: Likewise.
43070         * lib/unictype/categ_So.h: Likewise.
43071         * lib/unictype/categ_Z.h: Likewise.
43072         * lib/unictype/categ_Zl.h: Likewise.
43073         * lib/unictype/categ_Zp.h: Likewise.
43074         * lib/unictype/categ_Zs.h: Likewise.
43075         * lib/unictype/categ_of.h: Likewise.
43076         * lib/unictype/combining.h: Likewise.
43077         * lib/unictype/ctype_alnum.h: Likewise.
43078         * lib/unictype/ctype_alpha.h: Likewise.
43079         * lib/unictype/ctype_blank.h: Likewise.
43080         * lib/unictype/ctype_cntrl.h: Likewise.
43081         * lib/unictype/ctype_digit.h: Likewise.
43082         * lib/unictype/ctype_graph.h: Likewise.
43083         * lib/unictype/ctype_lower.h: Likewise.
43084         * lib/unictype/ctype_print.h: Likewise.
43085         * lib/unictype/ctype_punct.h: Likewise.
43086         * lib/unictype/ctype_space.h: Likewise.
43087         * lib/unictype/ctype_upper.h: Likewise.
43088         * lib/unictype/ctype_xdigit.h: Likewise.
43089         * lib/unictype/decdigit.h: Likewise.
43090         * lib/unictype/digit.h: Likewise.
43091         * lib/unictype/mirror.h: Likewise.
43092         * lib/unictype/numeric.h: Likewise.
43093         * lib/unictype/pr_alphabetic.h: Likewise.
43094         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43095         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43096         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43097         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43098         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43099         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43100         * lib/unictype/pr_bidi_control.h: Likewise.
43101         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43102         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43103         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43104         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43105         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43106         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43107         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43108         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43109         * lib/unictype/pr_bidi_pdf.h: Likewise.
43110         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43111         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43112         * lib/unictype/pr_combining.h: Likewise.
43113         * lib/unictype/pr_composite.h: Likewise.
43114         * lib/unictype/pr_currency_symbol.h: Likewise.
43115         * lib/unictype/pr_dash.h: Likewise.
43116         * lib/unictype/pr_decimal_digit.h: Likewise.
43117         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43118         * lib/unictype/pr_deprecated.h: Likewise.
43119         * lib/unictype/pr_diacritic.h: Likewise.
43120         * lib/unictype/pr_extender.h: Likewise.
43121         * lib/unictype/pr_format_control.h: Likewise.
43122         * lib/unictype/pr_grapheme_base.h: Likewise.
43123         * lib/unictype/pr_grapheme_extend.h: Likewise.
43124         * lib/unictype/pr_grapheme_link.h: Likewise.
43125         * lib/unictype/pr_hex_digit.h: Likewise.
43126         * lib/unictype/pr_hyphen.h: Likewise.
43127         * lib/unictype/pr_id_continue.h: Likewise.
43128         * lib/unictype/pr_id_start.h: Likewise.
43129         * lib/unictype/pr_ideographic.h: Likewise.
43130         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43131         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43132         * lib/unictype/pr_ignorable_control.h: Likewise.
43133         * lib/unictype/pr_iso_control.h: Likewise.
43134         * lib/unictype/pr_join_control.h: Likewise.
43135         * lib/unictype/pr_left_of_pair.h: Likewise.
43136         * lib/unictype/pr_line_separator.h: Likewise.
43137         * lib/unictype/pr_logical_order_exception.h: Likewise.
43138         * lib/unictype/pr_lowercase.h: Likewise.
43139         * lib/unictype/pr_math.h: Likewise.
43140         * lib/unictype/pr_non_break.h: Likewise.
43141         * lib/unictype/pr_not_a_character.h: Likewise.
43142         * lib/unictype/pr_numeric.h: Likewise.
43143         * lib/unictype/pr_other_alphabetic.h: Likewise.
43144         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43145         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43146         * lib/unictype/pr_other_id_continue.h: Likewise.
43147         * lib/unictype/pr_other_id_start.h: Likewise.
43148         * lib/unictype/pr_other_lowercase.h: Likewise.
43149         * lib/unictype/pr_other_math.h: Likewise.
43150         * lib/unictype/pr_other_uppercase.h: Likewise.
43151         * lib/unictype/pr_paired_punctuation.h: Likewise.
43152         * lib/unictype/pr_paragraph_separator.h: Likewise.
43153         * lib/unictype/pr_pattern_syntax.h: Likewise.
43154         * lib/unictype/pr_pattern_white_space.h: Likewise.
43155         * lib/unictype/pr_private_use.h: Likewise.
43156         * lib/unictype/pr_punctuation.h: Likewise.
43157         * lib/unictype/pr_quotation_mark.h: Likewise.
43158         * lib/unictype/pr_radical.h: Likewise.
43159         * lib/unictype/pr_sentence_terminal.h: Likewise.
43160         * lib/unictype/pr_soft_dotted.h: Likewise.
43161         * lib/unictype/pr_space.h: Likewise.
43162         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43163         * lib/unictype/pr_titlecase.h: Likewise.
43164         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43165         * lib/unictype/pr_unified_ideograph.h: Likewise.
43166         * lib/unictype/pr_uppercase.h: Likewise.
43167         * lib/unictype/pr_variation_selector.h: Likewise.
43168         * lib/unictype/pr_white_space.h: Likewise.
43169         * lib/unictype/pr_xid_continue.h: Likewise.
43170         * lib/unictype/pr_xid_start.h: Likewise.
43171         * lib/unictype/pr_zero_width.h: Likewise.
43172         * lib/unictype/scripts.h: Likewise.
43173         * lib/unictype/scripts_byname.gperf: Likewise.
43174         * lib/unictype/sy_c_ident.h: Likewise.
43175         * lib/unictype/sy_c_whitespace.h: Likewise.
43176         * lib/unictype/sy_java_ident.h: Likewise.
43177         * lib/unictype/sy_java_whitespace.h: Likewise.
43178
43179         * lib/unictype/Makefile: New file.
43180         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43181         glibc.
43182         * lib/unictype/3level.h: New file, copied from glibc.
43183         * lib/unictype/3levelbit.h: New file.
43184
43185 2007-11-11  Bruno Haible  <bruno@clisp.org>
43186
43187         * modules/gperf: New file.
43188         * modules/iconv_open (Depends-on): Add it.
43189         (Makefile.am): Remove the GPERF definition.
43190
43191 2007-11-11  Bruno Haible  <bruno@clisp.org>
43192
43193         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43194         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43195
43196 2007-11-11  Bruno Haible  <bruno@clisp.org>
43197
43198         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43199         (usage): Remove function.
43200
43201 2007-11-11  Bruno Haible  <bruno@clisp.org>
43202
43203         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43204         gl_FUNC_CEILF_LIBS.
43205         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43206         gl_FUNC_CEIL_LIBS.
43207         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43208         gl_FUNC_CEILL_LIBS.
43209         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43210         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43211         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43212
43213 2007-11-11  Bruno Haible  <bruno@clisp.org>
43214
43215         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43216         roundf were declared but do not exist on functions.
43217         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43218         roundl were declared but do not exist on functions.
43219         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43220         HAVE_FLOORL_AND_CEILL, respectively.
43221         Needed for Sun C on Solaris 10.
43222
43223 2007-11-11  Bruno Haible  <bruno@clisp.org>
43224
43225         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
43226         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43227         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
43228         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
43229         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
43230         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
43231         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
43232         HAVE_DECL_ROUNDF.
43233         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
43234         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
43235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
43236         of HAVE_DECL_ROUND*.
43237         * modules/math (Makefile.am): Update.
43238
43239 2007-11-10  Bruno Haible  <bruno@clisp.org>
43240
43241         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
43242         ptrdiff_t as m4/intl.m4.
43243
43244 2007-11-10  Jim Meyering  <meyering@redhat.com>
43245
43246         Avoid link failure for the argmatch test.
43247         * tests/test-argmatch.c (usage): Define function to avoid a link
43248         failure: argmatch_die requires a usage function.
43249
43250 2007-11-09  Bruno Haible  <bruno@clisp.org>
43251
43252         * doc/functions/snprintf.texi: Mention BeOS deficiency.
43253         * doc/functions/vsnprintf.texi: Likewise.
43254         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
43255         with a size argument < 2.
43256
43257 2007-11-09  Bruno Haible  <bruno@clisp.org>
43258
43259         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
43260         buffer. Fixes an inefficiency introduced on 2007-11-03.
43261
43262 2007-11-09  Bruno Haible  <bruno@clisp.org>
43263
43264         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
43265         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
43266
43267 2007-11-08  Jim Meyering  <meyering@redhat.com>
43268
43269         Change cache variable name prefix "jm_" to "gl_" everywhere.
43270         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
43271         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
43272         * m4/uptime.m4: s/gl_/jm_/
43273
43274 2007-11-07  Bruno Haible  <bruno@clisp.org>
43275
43276         Update to GNU gettext 0.17.
43277         * m4/intl.m4: Update to GNU gettext 0.17.
43278         * m4/po.m4: Likewise.
43279         * modules/gettext (Files): Remove m4/ulonglong.m4.
43280         (configure.ac): Require gettext infrastructure from version 0.17.
43281
43282 2007-11-06  Bruno Haible  <bruno@clisp.org>
43283
43284         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
43285         symbolic values are not defined in a public header.
43286         * lib/freadable.c (freadable) [QNX]: Likewise.
43287         * lib/freadahead.c (freadahead) [QNX]: Likewise.
43288         * lib/freading.c (freading) [QNX]: Likewise.
43289         * lib/fseterr.c (fseterr) [QNX]: Likewise.
43290         * lib/fwritable.c (fwritable) [QNX]: Likewise.
43291         * lib/fwriting.c (fwriting) [QNX]: Likewise.
43292         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
43293         Reported by Alain Magloire.
43294
43295         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
43296
43297 2007-11-05  Bruno Haible  <bruno@clisp.org>
43298
43299         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
43300         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
43301         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
43302         Reported by Eric Blake.
43303
43304 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43305             Bruno Haible  <bruno@clisp.org>
43306
43307         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
43308         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
43309         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
43310         (malloc): Undefine also before including <stdlib.h>.
43311         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
43312         Needed on OSF/1 4.0.
43313
43314 2007-11-05  Jim Meyering  <meyering@redhat.com>
43315
43316         git-version-gen: sync from coreutils.
43317         * build-aux/git-version-gen: Add comments.
43318         Change the first '-' to '.' in the snapshot version string,
43319         e.g., 6.9-377-08144 -> 6.9.377-08144
43320         Remove first parameter.
43321         Don't declare a version "-dirty" merely because a time
43322         stamp has changed.
43323
43324 2007-11-04  Bruno Haible  <bruno@clisp.org>
43325
43326         * lib/lock.h: Protect all macro definitions containing an 'if'
43327         statement through a "do { ... } while (0)".
43328         * lib/tls.h: Likewise.
43329
43330 2007-11-04  Bruno Haible  <bruno@clisp.org>
43331
43332         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
43333
43334 2007-11-04  Bruno Haible  <bruno@clisp.org>
43335
43336         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
43337         * modules/fprintf-posix (Depends-on): Add nocrash.
43338         * modules/snprintf-posix (Depends-on): Likewise.
43339         * modules/sprintf-posix (Depends-on): Likewise.
43340         * modules/vasnprintf-posix (Depends-on): Likewise.
43341         * modules/vasprintf-posix (Depends-on): Likewise.
43342         * modules/vfprintf-posix (Depends-on): Likewise.
43343         * modules/vsnprintf-posix (Depends-on): Likewise.
43344         * modules/vsprintf-posix (Depends-on): Likewise.
43345         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43346         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43347         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43348         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43349         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43350         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43351         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43352
43353 2007-11-04  Bruno Haible  <bruno@clisp.org>
43354
43355         * modules/nocrash: New file.
43356         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
43357         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
43358
43359 2007-11-04  Bruno Haible  <bruno@clisp.org>
43360
43361         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
43362         precision handling.
43363         * tests/test-vasprintf-posix.c (test_function): Likewise.
43364         * tests/test-snprintf-posix.h (test_function): Likewise.
43365         * tests/test-sprintf-posix.h (test_function): Likewise.
43366
43367         Fix *printf behaviour for large precisions on mingw and BeOS.
43368         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
43369         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
43370         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
43371         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43372         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43373         gl_PRINTF_PRECISION and test its result. Invoke
43374         gl_PREREQ_VASNPRINTF_PRECISION.
43375         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43376         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43377         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43378         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43379         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43380         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43381         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43382         * doc/functions/fprintf.texi: Update.
43383         * doc/functions/printf.texi: Update.
43384         * doc/functions/snprintf.texi: Update.
43385         * doc/functions/sprintf.texi: Update.
43386         * doc/functions/vfprintf.texi: Update.
43387         * doc/functions/vprintf.texi: Update.
43388         * doc/functions/vsnprintf.texi: Update.
43389         * doc/functions/vsprintf.texi: Update.
43390
43391 2007-11-04  Bruno Haible  <bruno@clisp.org>
43392
43393         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
43394
43395 2007-11-04  Bruno Haible  <bruno@clisp.org>
43396
43397         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
43398         Reported by Sylvain Beucler <beuc@gnu.org>.
43399
43400 2007-11-03  Bruno Haible  <bruno@clisp.org>
43401
43402         * tests/test-fprintf-posix2.sh: New file.
43403         * tests/test-fprintf-posix2.c: New file.
43404         * modules/fprintf-posix-tests (Files): Add them.
43405         (TESTS): Add test-fprintf-posix2.sh.
43406         (configure.ac): Check for getrlimit and setrlimit.
43407         (check_PROGRAMS): Add test-fprintf-posix2.
43408
43409         * tests/test-printf-posix2.sh: New file.
43410         * tests/test-printf-posix2.c: New file.
43411         * modules/printf-posix-tests (Files): Add them.
43412         (TESTS): Add test-printf-posix2.sh.
43413         (configure.ac): Check for getrlimit and setrlimit.
43414         (check_PROGRAMS): Add test-printf-posix2.
43415
43416         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
43417         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
43418         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
43419         (decode_double): New function, copied from decode_long_double.
43420         (scale10_round_decimal_decoded): New function, extracted from
43421         scale10_round_decimal_long_double.
43422         (scale10_round_decimal_long_double): Use it.
43423         (scale10_round_decimal_double): New function.
43424         (floorlog10): New function.
43425         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
43426         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
43427         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43429         gl_PRINTF_ENOMEM and test its result. Invoke
43430         gl_PREREQ_VASNPRINTF_ENOMEM.
43431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43438         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
43439         * modules/snprintf-posix (Depends-on): Likewise.
43440         * modules/sprintf-posix (Depends-on): Likewise.
43441         * modules/vasnprintf-posix (Depends-on): Likewise.
43442         * modules/vasprintf-posix (Depends-on): Likewise.
43443         * modules/vfprintf-posix (Depends-on): Likewise.
43444         * modules/vsnprintf-posix (Depends-on): Likewise.
43445         * modules/vsprintf-posix (Depends-on): Likewise.
43446         * doc/functions/fprintf.texi: Update.
43447         * doc/functions/printf.texi: Update.
43448         * doc/functions/snprintf.texi: Update.
43449         * doc/functions/sprintf.texi: Update.
43450         * doc/functions/vfprintf.texi: Update.
43451         * doc/functions/vprintf.texi: Update.
43452         * doc/functions/vsnprintf.texi: Update.
43453         * doc/functions/vsprintf.texi: Update.
43454
43455 2007-11-03  Bruno Haible  <bruno@clisp.org>
43456
43457         * modules/frexp-nolibm-tests: New file.
43458
43459         * modules/frexp-nolibm: New file.
43460         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
43461
43462 2007-11-03  Bruno Haible  <bruno@clisp.org>
43463
43464         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
43465         value is C99 compliant.
43466         Needed for OSF/1 5.1.
43467
43468 2007-11-03  Bruno Haible  <bruno@clisp.org>
43469
43470         Fix out-of-memory handling of vasnprintf.
43471         * lib/printf-parse.c: Include <errno.h>.
43472         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
43473         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
43474         is already set.
43475
43476 2007-11-02  Eric Blake  <ebb9@byu.net>
43477
43478         Fix tests on cygwin.
43479         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
43480
43481 2007-11-01  Bruno Haible  <bruno@clisp.org>
43482
43483         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
43484         warning.
43485         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
43486         needed for POSIX compatibility.
43487
43488 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43489
43490         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
43491         for compatibility with GNU.
43492
43493 2007-11-01  Bruno Haible  <bruno@clisp.org>
43494
43495         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
43496         (putenv): Renamed from rpl_putenv. Change argument type from
43497         'const char *' to 'char *'.
43498         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
43499         of defining putenv in config.h, just set REPLACE_PUTENV.
43500         * modules/putenv (Depends-on): Add stdlib.
43501         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43502         (Include): Use <stdlib.h>.
43503         * lib/stdlib.in.h (putenv): New declaration.
43504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
43505         REPLACE_PUTENV.
43506         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
43507         REPLACE_PUTENV.
43508         Needed for MacOS X 10.5.0.
43509         Reported by Peter O'Gorman <peter@pogma.com>.
43510
43511 2007-11-01  Jim Meyering  <meyering@redhat.com>
43512
43513         Treat an empty date string exactly like "0".
43514         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
43515         if the remaining date string (to be parsed) is empty, use "0".
43516         Reported by Mischa Molhoek and discussed in this thread:
43517         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
43518
43519 2007-10-31  Bruno Haible  <bruno@clisp.org>
43520
43521         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
43522         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
43523         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
43524         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
43525         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
43526         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
43527
43528 2007-10-31  Bruno Haible  <bruno@clisp.org>
43529
43530         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
43531         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
43532         (AC_TYPE_LONG_LONG_INT): Use it.
43533         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
43534         it as well.
43535         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
43536         to m4/longlong.m4.
43537         * modules/stdint (Files): Remove m4/ulonglong.m4.
43538         * modules/strtoull (Files): Use m4/longlong.m4 instead of
43539         m4/ulonglong.m4.
43540         * modules/strtoumax (Files): Likewise.
43541
43542 2007-10-30  Bruno Haible  <bruno@clisp.org>
43543
43544         * modules/xvasprintf-posix: New file.
43545         Suggested by Eric Blake.
43546
43547 2007-10-30  Bruno Haible  <bruno@clisp.org>
43548
43549         * modules/xprintf-posix-tests: New file.
43550         * tests/test-xprintf-posix.sh: New file.
43551         * tests/test-xprintf-posix.c: New file.
43552         * tests/test-xfprintf-posix.c: New file.
43553
43554         * modules/xprintf-posix: New file.
43555
43556 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43557
43558         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43559         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43560         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43561
43562 2007-10-29  Bruno Haible  <bruno@clisp.org>
43563
43564         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43565         contain the special marker '_cv_'.
43566         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43567         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43568         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43569         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43570         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43571         Reported by Ralf Wildenhues.
43572
43573 2007-10-29  Bruno Haible  <bruno@clisp.org>
43574
43575         * gnulib-tool (func_import): When --lgpl is not specified, set
43576         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43577         GPLv3.
43578         Reported by Simon Josefsson.
43579
43580 2007-10-28  Bruno Haible  <bruno@clisp.org>
43581
43582         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43583         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43584         HAVE_DECL_ISFINITE.
43585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43586         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43587         HAVE_DECL_ISFINITE.
43588
43589 2007-10-28  Bruno Haible  <bruno@clisp.org>
43590
43591         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43592         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43593
43594 2007-10-28  Bruno Haible  <bruno@clisp.org>
43595
43596         Fix link errors with Sun C 5.0 on Solaris 10.
43597         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43598         function is declared but not present in the compiler's libm.
43599         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43600         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43601         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43602         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43603         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43604         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43605         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43607         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43608         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43609         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43610         HAVE_DECL_FLOORL.
43611
43612 2007-10-28  Bruno Haible  <bruno@clisp.org>
43613
43614         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43615         gl_FUNC_FLOORL. Cache the result.
43616         (gl_FUNC_FLOORL): Use it.
43617         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43618         gl_FUNC_CEILL. Cache the result.
43619         (gl_FUNC_CEILL): Use it.
43620
43621         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43622         gl_FUNC_FLOOR. Cache the result.
43623         (gl_FUNC_FLOOR): Use it.
43624         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43625         gl_FUNC_CEIL. Cache the result.
43626         (gl_FUNC_CEIL): Use it.
43627
43628         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43629         gl_FUNC_FLOORF. Cache the result.
43630         (gl_FUNC_FLOORF): Use it.
43631         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43632         gl_FUNC_CEILF. Cache the result.
43633         (gl_FUNC_CEILF): Use it.
43634
43635 2007-10-28  Bruno Haible  <bruno@clisp.org>
43636
43637         * gnulib-tool: Allow specifying the LGPL version number through
43638         --lgpl=2 or --lgpl=3.
43639         (func_usage): Document --lgpl with argument.
43640         Handle --lgpl=... arguments.
43641         (func_import): Recognize also gl_LGPL calls with an argument. When
43642         --lgpl=2 is used and the module's license is just LGPL, report an
43643         error. Set sed_transform_lib_file according to the lgpl variable. In
43644         the generated files, use --lgpl or gl_LGPL invocations with argument,
43645         if necessary.
43646         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43647         an LGPv2+ license.
43648         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43649         gl_LGPL macro.
43650
43651 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43652             Bruno Haible  <bruno@clisp.org>
43653
43654         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43655         (u16_uctomb_aux): Likewise.
43656         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43657         !HAVE_INLINE.
43658         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43659
43660 2007-10-28  Bruno Haible  <bruno@clisp.org>
43661
43662         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43663         Invoke AM_GETTEXT_OPTION if it exists.
43664         * modules/vasprintf: Likewise.
43665         * modules/verror: Likewise.
43666         * modules/xprintf: Likewise.
43667         * modules/xvasprintf: Likewise.
43668
43669 2007-10-27  Ben Pfaff  <blp@gnu.org>
43670
43671         * lib/math.in.h: Define isfinite macro and prototypes for
43672         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43673         implementations.
43674         * m4/math_h.m4: New substitutions for isfinite module.
43675         * lib/isfinite.c: New file.
43676         * m4/isfinite.m4: New file.
43677         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43678         * modules/isfinite: New file.
43679         * modules/isfinite-tests: New file.
43680         * tests/tests-isfinite.c: New file.
43681         * doc/functions/isfinite.texi: Mention isfinite module.
43682         * MODULES.html.sh: Mention new module.
43683
43684 2007-10-27  Ben Pfaff  <blp@gnu.org>
43685
43686         Ralf Wildenhues reported that Tru64 4.0D declares the round
43687         functions but does not have definitions.
43688         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43689         cannot be found in any library, set the output variable to
43690         "missing" instead of "".
43691         * m4/round.m4: Also use our substitute if we cannot find round in
43692         any library, even if it is declared.
43693         * m4/roundf.m4: Likewise for roundf.
43694         * m4/roundl.m4: Likewise for roundl.
43695         * lib/math.in.h: Undefine roundf, round, roundl before defining
43696         their replacements, to allow for hypothetical systems where these
43697         may be defined as macros but not available in libraries.
43698
43699 2007-10-27  Bruno Haible  <bruno@clisp.org>
43700
43701         * doc/gnulib.texi: Invoke @firstparagraphindent.
43702         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43703         changes in gnulib.
43704         (Source changes): New section.
43705
43706 2007-10-26  Bruno Haible  <bruno@clisp.org>
43707
43708         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43709         borrowed from autoconf.
43710
43711 2007-10-26  Bruno Haible  <bruno@clisp.org>
43712
43713         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43714         strerror returned the empty string. Needed on HP-UX 11.00.
43715
43716 2007-10-24  Micah Cowan  <micah@cowan.name>
43717
43718         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43719         * build-aux/bootstrap: Remove support for now-unnecessary option,
43720         --cvs-user, and envvars CVS_USER, CVS_RSH.
43721
43722 2007-10-24  Jim Meyering  <meyering@redhat.com>
43723
43724         Avoid diagnostics from sha1sum when there is no cached checksum.
43725         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43726         if the po.s1 file hasn't been created yet.
43727
43728         * build-aux/bootstrap: Sync from coreutils:
43729         2007-10-24  Jim Meyering  <meyering@redhat.com>
43730         Get gnulib from the git repository, not from an obsolete cvs one.
43731         * build-aux/bootstrap: Suggestion from Micah Cowan.
43732         2007-10-04  Jim Meyering  <jim@meyering.net>
43733         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43734         (update_po_files): Work also when there are no .po files in po/.
43735
43736 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43737
43738         * README: Append ".git" to git and cg examples.
43739         Problem reported by Benoit Sigoure.
43740
43741 2007-10-23  Micah Cowan  <micah@cowan.name>
43742
43743         * users.txt: Add wget.
43744
43745 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43746
43747         Fix linking of some unistdio tests on FreeBSD.
43748         * modules/unistdio/u16-vsnprintf-tests
43749         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43750         * modules/unistdio/u16-vsprintf-tests
43751         (test_u16_vsnprintf1_LDADD): Likewise.
43752         * modules/unistdio/u32-vsnprintf-tests
43753         (test_u32_vsnprintf1_LDADD): Likewise.
43754         * modules/unistdio/u32-vsprintf-tests
43755         (test_u32_vsprintf1_LDADD): Likewise.
43756         * modules/unistdio/u8-vsnprintf-tests
43757         (test_u8_vsnprintf1_LDADD): Likewise.
43758         * modules/unistdio/u8-vsprintf-tests
43759         (test_u8_vsprintf1_LDADD): Likewise.
43760         * modules/unistdio/ulc-vsnprintf-tests
43761         (test_ulc_vsnprintf1_LDADD): Likewise.
43762         * modules/unistdio/ulc-vsprintf-tests
43763         (test_ulc_vsprintf1_LDADD): Likewise.
43764
43765         Fix linking of some uniconv tests on FreeBSD.
43766         * modules/uniconv/u16-conv-from-enc-tests
43767         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43768         * modules/uniconv/u16-conv-to-enc-tests
43769         (test_u16_conv_to_enc_LDADD): Likewise.
43770         * modules/uniconv/u16-strconv-from-enc-tests
43771         (test_u16_strconv_from_enc_LDADD): Likewise.
43772         * modules/uniconv/u16-strconv-to-enc-tests
43773         (test_u16_strconv_to_enc_LDADD): Likewise.
43774         * modules/uniconv/u32-conv-from-enc-tests
43775         (test_u32_conv_from_enc_LDADD): Likewise.
43776         * modules/uniconv/u32-conv-to-enc-tests
43777         (test_u32_conv_to_enc_LDADD): Likewise.
43778         * modules/uniconv/u32-strconv-from-enc-tests
43779         (test_u32_strconv_from_enc_LDADD): Likewise.
43780         * modules/uniconv/u32-strconv-to-enc-tests
43781         (test_u32_strconv_to_enc_LDADD): Likewise.
43782         * modules/uniconv/u8-conv-from-enc-tests
43783         (test_u8_conv_from_enc_LDADD): Likewise.
43784         * modules/uniconv/u8-conv-to-enc-tests
43785         (test_u8_conv_to_enc_LDADD): Likewise.
43786         * modules/uniconv/u8-strconv-from-enc-tests
43787         (test_u8_strconv_from_enc_LDADD): Likewise.
43788         * modules/uniconv/u8-strconv-to-enc-tests
43789         (test_u8_strconv_to_enc_LDADD): Likewise.
43790
43791 2007-10-22  Bruno Haible  <bruno@clisp.org>
43792
43793         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43794         size.
43795
43796 2007-10-22  Eric Blake  <ebb9@byu.net>
43797
43798         Tweak x*printf documentation.
43799         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43800         variable name and comments.
43801         Suggested by Bruno Haible.
43802
43803 2007-10-22  Bruno Haible  <bruno@clisp.org>
43804
43805         * lib/acl.c (copy_acl): Fix file name in comment.
43806
43807 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43808
43809         Fix Tru64 problem with stdbool.h.
43810         * lib/stdbool.in.h (false, true):
43811         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43812         Don't declare as an enum in this situation; it runs afoul of Tru64.
43813         Problem reported by Steven M. Schweda in
43814         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43815
43816 2007-10-22  Eric Blake  <ebb9@byu.net>
43817
43818         Also wrap vf?printf.
43819         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43820         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43821         (xvprintf, xvfprintf): New functions.
43822
43823 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43824
43825         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43826         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43827
43828         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43829         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43830
43831 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43832
43833         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43834         by Bruno Haible.
43835
43836 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43837
43838         * lib/getloadavg.c
43839         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43840         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43841
43842         * tests/test-i-ring.c: Work for C89.
43843
43844 2007-10-22  Bruno Haible  <bruno@clisp.org>
43845
43846         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43847         -1u, in preprocessor expression, so that we don't test for the bug
43848         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43850
43851 2007-10-22  Eric Blake  <ebb9@byu.net>
43852
43853         * tests/test-yesno.sh: Silence stderr during test.
43854
43855 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43856
43857         * modules/crypto/gc-camellia: New file.
43858
43859         * m4/gc-camellia.m4: New file.
43860
43861         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43862
43863         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43864
43865 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43866
43867         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43868         --help to stdout.  Reported by sms@antinode.org (Steven
43869         M. Schweda).
43870
43871 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43872
43873         * users.txt: Fix link to libksba.
43874
43875 2007-10-21  Ben Pfaff  <blp@gnu.org>
43876
43877         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43878         round.c roundf implementation that depends on floorf and ceilf to
43879         be tested unconditionally.
43880
43881 2007-10-21  Ben Pfaff  <blp@gnu.org>
43882
43883         * m4/check-libm-func.m4: Removed.
43884         * m4/check-math-lib.m4: New file.
43885         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43886         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43887         definition and lack of AC_LIBOBJ([roundf]).
43888         * m4/roundl.m4: Ditto, and similarly for roundl.
43889         * modules/round: Reference new m4 file.
43890         * modules/roundf: Ditto.
43891         * modules/roundl: Ditto.
43892         * tests/test-round2.c (main): Use ROUND instead of round.
43893         Bug report from Bruno Haible.
43894
43895 2007-10-21  Bruno Haible  <bruno@clisp.org>
43896
43897         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43898         context.
43899
43900 2007-10-21  Bruno Haible  <bruno@clisp.org>
43901
43902         * tests/test-wcwidth.c (main): Allow negative result for some control
43903         characters.
43904
43905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43906         Needed on OSF/1 5.1.
43907
43908 2007-10-21  Bruno Haible  <bruno@clisp.org>
43909
43910         * tests/test-floorf1.c: Include isnanf.h.
43911         (main): Use isnanf() instead of isnan().
43912         * tests/test-ceilf1.c: Include isnanf.h.
43913         (main): Use isnanf() instead of isnan().
43914         * tests/test-truncf1.c: Include isnanf.h.
43915         (main): Use isnanf() instead of isnan().
43916         * tests/test-roundf1.c: Include isnanf.h.
43917         (main): Use isnanf() instead of isnan().
43918
43919 2007-10-21  Eric Blake  <ebb9@byu.net>
43920
43921         * users.txt: Update URL for m4.
43922
43923 2007-10-21  Bruno Haible  <bruno@clisp.org>
43924
43925         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43926
43927 2007-10-21  Bruno Haible  <bruno@clisp.org>
43928
43929         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43930         Git's management files if the CVS files are not present.
43931
43932 2007-10-20  Bruno Haible  <bruno@clisp.org>
43933
43934         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
43935         gcc-3.4.x.
43936
43937 2007-10-20  Ben Pfaff  <blp@gnu.org>
43938
43939         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43940         implementations.
43941         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43942         * lib/round.c: New file.
43943         * lib/roundf.c: New file.
43944         * lib/roundl.c: New file.
43945         * m4/round.m4: New file.
43946         * m4/roundf.m4: New file.
43947         * m4/roundl.m4: New file.
43948         * m4/check-libm-func-m4: New file.
43949         * modules/math: Replace round, roundf, roundl related @VARS@ in
43950         math.in.h.
43951         * modules/round: New file.
43952         * modules/round-tests: New file.
43953         * modules/roundf: New file.
43954         * modules/roundf-tests: New file.
43955         * modules/roundl: New file.
43956         * modules/roundl-tests: New file.
43957         * tests/test-round1.c: New file.
43958         * tests/test-round2.c: New file.
43959         * tests/test-roundf1.c: New file.
43960         * tests/test-roundf2.c: New file.
43961         * tests/test-roundl.c: New file.
43962         * doc/functions/round.texi: Mention round module.
43963         * doc/functions/roundf.texi: Mention roundf module.
43964         * doc/functions/roundl.texi: Mention roundl module.
43965         * MODULES.html.sh: Mention new modules.
43966         Thanks to Bruno Haible for suggestions.
43967
43968 2007-10-20  Jim Meyering  <meyering@redhat.com>
43969
43970         * lib/xprintf.c: Include <config.h> unconditionally.
43971
43972         Change xprintf's license to GPL.
43973         * modules/xprintf (License): s/LGPL/GPL/, since this module
43974         depends on modules (exit and exitfail) which are GPL.
43975         Suggestion from Bruno Haible.
43976
43977         xprintf fixes.
43978         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43979         Use a clearer diagnostic.
43980         Patch from Bruno Haible.
43981
43982 2007-10-20  Bruno Haible  <bruno@clisp.org>
43983
43984         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43985         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43986         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43987
43988 2007-10-20  Bruno Haible  <bruno@clisp.org>
43989
43990         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43991         precision in the comparison result > x - 1 or similar.
43992         * tests/test-ceilf2.c (correct_result_p): Likewise.
43993         * tests/test-truncf2.c (correct_result_p): Likewise.
43994         * tests/test-trunc2.c (correct_result_p): Likewise.
43995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43996
43997 2007-10-20  Bruno Haible  <bruno@clisp.org>
43998
43999         * modules/ceil: New file.
44000         * m4/ceil.m4: New file.
44001         * doc/functions/ceil.texi: Mention the 'ceil' module.
44002
44003 2007-10-20  Bruno Haible  <bruno@clisp.org>
44004
44005         * modules/floor: New file.
44006         * m4/floor.m4: New file.
44007         * doc/functions/floor.texi: Mention the 'floor' module.
44008
44009 2007-10-20  Bruno Haible  <bruno@clisp.org>
44010
44011         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44012         of %a.
44013         * modules/floorf-tests (Depends-on): Likewise.
44014         * modules/truncf-tests (Depends-on): Likewise.
44015         * modules/trunc-tests (Depends-on): Likewise.
44016         Reported by Ben Pfaff.
44017
44018 2007-10-19  Jim Meyering  <meyering@redhat.com>
44019
44020         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44021         Don't bother testing specific errno values.  Just test ferror.
44022
44023         New module: xprintf
44024         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44025
44026 2007-10-19  Bruno Haible  <bruno@clisp.org>
44027
44028         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44029         syntax.
44030         * modules/javaexec (Makefile.am): Likewise.
44031         * modules/relocatable-prog (Makefile.am): Likewise.
44032         Suggested by Jim Meyering.
44033
44034 2007-10-18  Bruno Haible  <bruno@clisp.org>
44035
44036         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44037         Reported by Jim Meyering.
44038
44039 2007-10-18  Eric Blake  <ebb9@byu.net>
44040
44041         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44042
44043 2007-10-18  Bruno Haible  <bruno@clisp.org>
44044
44045         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44046         the format string into writable memory. Needed in Fortify conditions.
44047
44048 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44049             Bruno Haible  <bruno@clisp.org>
44050
44051         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44052         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44053         * modules/trim (Depends-on): Add mbchar.
44054         (configure.ac): Add gl_FUNC_MBRTOWC.
44055         (Makefile.am): Augment lib_SOURCES.
44056
44057 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44058
44059         Modify glob.c to use fstatat and dirfd, to simplify it.
44060         Suggested by Eric Blake.
44061         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44062         Don't include <stdbool.h>; not used.
44063         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44064         (link_exists_p): Simplify implementation, since we can now assume
44065         dirfd and fstatat.
44066         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44067
44068 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44069
44070         * gnulib-tool (func_get_dependencies): Fix sed script to
44071         match only tests.
44072
44073 2007-10-17  Bruno Haible  <bruno@clisp.org>
44074
44075         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44076         allow locale names without encoding suffix.
44077         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44078         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44079
44080 2007-10-16  Bruno Haible  <bruno@clisp.org>
44081
44082         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44083         * lib/getgroups.c (getgroups): Likewise.
44084         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44085
44086 2007-10-16  Bruno Haible  <bruno@clisp.org>
44087
44088         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44089         * modules/malloc-posix (License): Likewise.
44090         * modules/realloc-posix (License): Likewise.
44091         * modules/calloc-posix (License): Likewise.
44092         * modules/intprops (License): Change from GPL to LGPL, with
44093         Paul Eggert's approval.
44094
44095 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44096
44097         Merge glibc changes into lib/glob.c.
44098
44099         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44100         2007-10-15 04:59:03 UTC.  Here are the changes:
44101
44102         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44103
44104         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44105
44106         * lib/glob.c: Add some branch prediction throughout.
44107
44108         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44109
44110         [BZ #5103]
44111         * lib/glob.c (glob): Recognize patterns starting \/.
44112
44113         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44114
44115         [BZ #3996]
44116         * lib/glob.c (attribute_hidden): Define if not defined.
44117         (glob): Unescape dirname, filename or username when needed and not
44118         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44119         is NULL.  Handle unescaped [ in pattern without closing ].
44120         Don't pass GLOB_CHECK down to recursive glob for directories.
44121         (__glob_pattern_type): New function.
44122         (__glob_pattern_p): Implement using __glob_pattern_type.
44123         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44124         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44125         Remove unreachable code.
44126
44127         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44128
44129         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44130         explain why there are no leaks.
44131
44132         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44133
44134         [BZ #3253]
44135         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44136         time, rather allocate increasingly bigger arrays of pointers, if
44137         possible with alloca, if too large with malloc.
44138
44139 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44140
44141         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44142         Problem reported by H.Merijn Brand in
44143         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44144         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44145         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44146
44147 2007-10-15  Bruno Haible  <bruno@clisp.org>
44148
44149         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44150         with explicit rpl_ prefix.
44151         * lib/fopen.c (fopen): Likewise.
44152         * lib/freopen.c (freopen): Likewise.
44153         * lib/iconv.c (iconv): Likewise.
44154         * lib/iconv_close.c (iconv_close): Likewise.
44155
44156 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44157
44158         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44159
44160 2007-10-15  Bruno Haible  <bruno@clisp.org>
44161
44162         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44163         <stddef.h> instead of <stdlib.h> since we only need NULL.
44164         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44165
44166 2007-10-15  Bruno Haible  <bruno@clisp.org>
44167
44168         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44169         Replace paragraph talking about LIBOBJS.
44170         Reported by Colin Watson <cjwatson@debian.org>.
44171
44172 2007-10-15  Bruno Haible  <bruno@clisp.org>
44173
44174         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44175         <stdlib.h> before using NULL.
44176
44177 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44178
44179         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44180         Reported by Albert Chin <china@thewrittenword.com>.
44181
44182 2007-10-14  Bruno Haible  <bruno@clisp.org>
44183
44184         * modules/iconv_open-utf-tests: New file.
44185         * tests/test-iconv-utf.c: New file.
44186
44187         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44188         * modules/iconv_open-utf: New file.
44189         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44190         (iconv, iconv_close): New declarations.
44191         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44192         be defined.
44193         (iconv_open): Add special handling of conversion between UTF-8 and
44194         UTF-{16,32}{BE,LE}.
44195         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44196         * lib/iconv_close.c: New file.
44197         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44198         gl_FUNC_ICONV_OPEN.
44199         (gl_FUNC_ICONV_OPEN): Use it.
44200         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44201         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44202         and REPLACE_ICONV_UTF.
44203         * modules/iconv_open (Depends-on): Add c-strcase.
44204         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44205         ICONV_CONST.
44206         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44207
44208 2007-10-13  Albert Chin  <china@thewrittenword.com>
44209             Bruno Haible  <bruno@clisp.org>
44210
44211         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44212         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44213
44214 2007-10-13  Bruno Haible  <bruno@clisp.org>
44215
44216         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44217         defined, use the ISO C99 inline semantics.
44218         * lib/argp.h (ARGP_EI): Likewise.
44219
44220 2007-10-13  Bruno Haible  <bruno@clisp.org>
44221
44222         Handle 'inline' change in gcc 4.3.0.
44223         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
44224         argp_fmtstream_write, argp_fmtstream_set_lmargin,
44225         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
44226         argp_fmtstream_point): Disable 'extern' declaration if the function
44227         definition is going to be provided inline.
44228         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
44229         semantics, not the ISO C99 inline semantics.
44230         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
44231         'extern' declaration if the function definition is going to be provided
44232         inline.
44233         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
44234         the GNU C inline semantics, not the ISO C99 inline semantics. With
44235         GCC 4.2, avoid a warning.
44236
44237 2007-10-13  Bruno Haible  <bruno@clisp.org>
44238
44239         * lib/freading.h (freading): Enable the use of __freading for
44240         glibc >= 2.7.
44241         * lib/freading.c (freading): Likewise.
44242
44243 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44244
44245         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
44246         "warning: C99 inline functions are not supported; using GNU89".
44247
44248 2007-10-12  Bruno Haible  <bruno@clisp.org>
44249
44250         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
44251         of 2.
44252         * tests/test-ceilf2.c: New file.
44253         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
44254
44255         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
44256         * modules/ceilf-tests: Update.
44257
44258 2007-10-12  Bruno Haible  <bruno@clisp.org>
44259
44260         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
44261         of 2.
44262         * tests/test-floorf2.c: New file.
44263         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
44264
44265         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
44266         * modules/floorf-tests: Update.
44267
44268 2007-10-12  Bruno Haible  <bruno@clisp.org>
44269
44270         * tests/test-trunc2.c: New file.
44271         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
44272
44273         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
44274         * modules/trunc-tests: Update.
44275
44276 2007-10-12  Bruno Haible  <bruno@clisp.org>
44277
44278         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
44279         of 2.
44280         * tests/test-truncf2.c: New file.
44281         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
44282
44283         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
44284         * modules/truncf-tests: Update.
44285
44286 2007-10-11  Eric Blake  <ebb9@byu.net>
44287
44288         Don't claim strerror is broken on Interix.
44289         * doc/functions/strerror.texi (strerror): Known broken systems are
44290         now Solaris 8, and not Interix.
44291         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
44292         Interix on cross-compile.
44293         Reported by Martin Koeppe in
44294         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
44295
44296 2007-10-11  Bruno Haible  <bruno@clisp.org>
44297
44298         * modules/i-ring-tests: New file.
44299         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
44300         instead of assert.
44301
44302 2007-10-11  Bruno Haible  <bruno@clisp.org>
44303
44304         * modules/filenamecat-tests: New file.
44305         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
44306         * lib/filenamecat.c: Remove test code.
44307
44308 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44309
44310         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
44311
44312         * lib/strerror.c: Include <string.h> always, to test interface,
44313         and to remove the need for the dummy.
44314         Include intprops.h to compute width instead of doing it ourselves
44315         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
44316         (strerror): Define it to return NULL if there's no system strerror.
44317         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
44318         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
44319         ancient pre-strerror Unix systems well any more.  Saying "unknown
44320         system error" is enough.
44321         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
44322         simpler strerror.c implementation.
44323         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
44324         Simplify the tests to reflect the simpler strerror implementation.
44325         * modules/strerror (Depends-on): Add intprops.
44326
44327 2007-10-09  Eric Blake  <ebb9@byu.net>
44328
44329         Silence test-fpending.
44330         * modules/fpending-tests (Files): Add wrapper script.
44331         * tests/test-fpending.sh: New file.
44332
44333 2007-10-09  Bruno Haible  <bruno@clisp.org>
44334
44335         * MODULES.html.sh (func_module): Don't create a hyperlink for
44336         function names like 'printf_frexp'.
44337         (Misc): Add crc, memxor.
44338         (Characteristics of floating types): New section.
44339         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
44340         isnanf-nolibm, signbit, trunc, truncf, truncl.
44341         (Enhancements for ISO C 99 functions): New subsection Input/output.
44342         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
44343         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
44344         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
44345         (Compatibility checks for POSIX:2001 functions): Add clock-time.
44346         (Enhancements for POSIX:2001 functions): Add chdir-long.
44347         (File system functions): Add areadlink, chdir-safer, read-file.
44348         Remove cycle-check.
44349         (File system as inode set): New section.
44350         (Date and time): Add gethrxtime.
44351         (Multithreading): Add openmp.
44352         (Internationalization functions): Add localename.
44353         (Unicode string functions): Add unistr/u*-mbsnlen.
44354         (Support for maintaining and releasing projects): Add git-version-gen.
44355         (Lone files): Remove directories.
44356
44357 2007-10-08  Ben Pfaff  <blp@gnu.org>
44358
44359         * lib/xmalloca.h: Fix typo in comment.
44360
44361 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44362
44363         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
44364         when avoiding problems with integer overflow.  Use a portable test
44365         instead.
44366
44367 2007-10-08  Simon Josefsson  <simon@josefsson.org>
44368
44369         * modules/dummy (License): Change to LGPLv2+.
44370         * modules/float (License): Likewise
44371         * modules/realloc (License): Likewise
44372         * modules/stdlib (License): Likewise
44373
44374 2007-10-07  Bruno Haible  <bruno@clisp.org>
44375
44376         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
44377         * floor.c (TWO_MANT_DIG): Likewise.
44378         * ceil.c (TWO_MANT_DIG): Likewise.
44379         Reported by Ben Pfaff.
44380
44381 2007-10-07  Bruno Haible  <bruno@clisp.org>
44382
44383         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
44384         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
44385         * lib/frexp.c (FUNC): Likewise.
44386         * lib/printf-frexp.h (printf_frexp): Likewise.
44387         * lib/printf-frexpl.h (printf_frexpl): Likewise.
44388         * lib/printf-frexp.c (FUNC): Likewise.
44389         Suggested by Jim Meyering.
44390
44391 2007-10-07  Jim Meyering  <meyering@redhat.com>
44392
44393         Make xnanosleep's integer overflow test more robust.
44394         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
44395         so that gcc-4.3.0 doesn't optimize away this test for overflow.
44396
44397 2007-10-07  Bruno Haible  <bruno@clisp.org>
44398
44399         * NEWS: Mention the license change.
44400
44401         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
44402         abbreviations in the modules files.
44403
44404         Change copyright notice from GPLv2+ to GPLv3+.
44405         * README: Change copyright notice.
44406         * MODULES.html.sh: Likewise.
44407         * build-aux/bootstrap.conf: Likewise.
44408         * build-aux/config.libpath: Likewise.
44409         * build-aux/csharpcomp.sh.in: Likewise.
44410         * build-aux/csharpexec.sh.in: Likewise.
44411         * build-aux/install-reloc: Likewise.
44412         * build-aux/javacomp.sh.in: Likewise.
44413         * build-aux/javaexec.sh.in: Likewise.
44414         * build-aux/ldd.sh.in: Likewise.
44415         * build-aux/reloc-ldflags: Likewise.
44416         * build-aux/relocatable.sh.in: Likewise.
44417         * build-aux/x-to-1.in: Likewise.
44418         * check-module: Likewise.
44419         * config/srclistvars.sh: Likewise.
44420         * gnulib-tool: Likewise.
44421         * lib/acl-internal.h: Likewise.
44422         * lib/acl.c: Likewise.
44423         * lib/acl.h: Likewise.
44424         * lib/acl_entries.c: Likewise.
44425         * lib/areadlink-with-size.c: Likewise.
44426         * lib/areadlink.c: Likewise.
44427         * lib/areadlink.h: Likewise.
44428         * lib/argmatch.c: Likewise.
44429         * lib/argmatch.h: Likewise.
44430         * lib/argp-ba.c: Likewise.
44431         * lib/argp-eexst.c: Likewise.
44432         * lib/argp-fmtstream.c: Likewise.
44433         * lib/argp-fmtstream.h: Likewise.
44434         * lib/argp-fs-xinl.c: Likewise.
44435         * lib/argp-help.c: Likewise.
44436         * lib/argp-namefrob.h: Likewise.
44437         * lib/argp-parse.c: Likewise.
44438         * lib/argp-pin.c: Likewise.
44439         * lib/argp-pv.c: Likewise.
44440         * lib/argp-pvh.c: Likewise.
44441         * lib/argp-xinl.c: Likewise.
44442         * lib/argp.h: Likewise.
44443         * lib/at-func.c: Likewise.
44444         * lib/atanl.c: Likewise.
44445         * lib/backupfile.c: Likewise.
44446         * lib/backupfile.h: Likewise.
44447         * lib/basename.c: Likewise.
44448         * lib/binary-io.h: Likewise.
44449         * lib/byteswap.in.h: Likewise.
44450         * lib/c-stack.c: Likewise.
44451         * lib/c-stack.h: Likewise.
44452         * lib/c-strcasestr.c: Likewise.
44453         * lib/c-strcasestr.h: Likewise.
44454         * lib/c-strstr.c: Likewise.
44455         * lib/c-strstr.h: Likewise.
44456         * lib/c-strtod.c: Likewise.
44457         * lib/calloc.c: Likewise.
44458         * lib/canon-host.c: Likewise.
44459         * lib/canon-host.h: Likewise.
44460         * lib/canonicalize-lgpl.c: Likewise.
44461         * lib/canonicalize.c: Likewise.
44462         * lib/canonicalize.h: Likewise.
44463         * lib/ceil.c: Likewise.
44464         * lib/ceilf.c: Likewise.
44465         * lib/ceill.c: Likewise.
44466         * lib/chdir-long.c: Likewise.
44467         * lib/chdir-long.h: Likewise.
44468         * lib/chdir-safer.c: Likewise.
44469         * lib/chdir-safer.h: Likewise.
44470         * lib/chown.c: Likewise.
44471         * lib/classpath.c: Likewise.
44472         * lib/classpath.h: Likewise.
44473         * lib/clean-temp.c: Likewise.
44474         * lib/clean-temp.h: Likewise.
44475         * lib/cloexec.c: Likewise.
44476         * lib/close-stream.c: Likewise.
44477         * lib/closein.c: Likewise.
44478         * lib/closein.h: Likewise.
44479         * lib/closeout.c: Likewise.
44480         * lib/closeout.h: Likewise.
44481         * lib/concat-filename.c: Likewise.
44482         * lib/copy-file.c: Likewise.
44483         * lib/copy-file.h: Likewise.
44484         * lib/count-one-bits.h: Likewise.
44485         * lib/crc.c: Likewise.
44486         * lib/crc.h: Likewise.
44487         * lib/creat-safer.c: Likewise.
44488         * lib/csharpcomp.c: Likewise.
44489         * lib/csharpcomp.h: Likewise.
44490         * lib/csharpexec.c: Likewise.
44491         * lib/csharpexec.h: Likewise.
44492         * lib/cycle-check.c: Likewise.
44493         * lib/cycle-check.h: Likewise.
44494         * lib/diacrit.c: Likewise.
44495         * lib/diacrit.h: Likewise.
44496         * lib/diffseq.h: Likewise.
44497         * lib/dirchownmod.c: Likewise.
44498         * lib/dirent.in.h: Likewise.
44499         * lib/dirfd.c: Likewise.
44500         * lib/dirfd.h: Likewise.
44501         * lib/dirname.c: Likewise.
44502         * lib/dirname.h: Likewise.
44503         * lib/dummy.c: Likewise.
44504         * lib/dup-safer.c: Likewise.
44505         * lib/dup2.c: Likewise.
44506         * lib/eealloc.h: Likewise.
44507         * lib/error.c: Likewise.
44508         * lib/error.h: Likewise.
44509         * lib/euidaccess.c: Likewise.
44510         * lib/exclude.c: Likewise.
44511         * lib/exclude.h: Likewise.
44512         * lib/execute.c: Likewise.
44513         * lib/execute.h: Likewise.
44514         * lib/exitfail.c: Likewise.
44515         * lib/exitfail.h: Likewise.
44516         * lib/expl.c: Likewise.
44517         * lib/fatal-signal.c: Likewise.
44518         * lib/fatal-signal.h: Likewise.
44519         * lib/fbufmode.c: Likewise.
44520         * lib/fbufmode.h: Likewise.
44521         * lib/fchdir.c: Likewise.
44522         * lib/fchmodat.c: Likewise.
44523         * lib/fchownat.c: Likewise.
44524         * lib/fcntl--.h: Likewise.
44525         * lib/fcntl-safer.h: Likewise.
44526         * lib/fcntl.in.h: Likewise.
44527         * lib/fd-safer.c: Likewise.
44528         * lib/fflush.c: Likewise.
44529         * lib/file-has-acl.c: Likewise.
44530         * lib/file-set.c: Likewise.
44531         * lib/file-type.c: Likewise.
44532         * lib/file-type.h: Likewise.
44533         * lib/fileblocks.c: Likewise.
44534         * lib/filemode.c: Likewise.
44535         * lib/filemode.h: Likewise.
44536         * lib/filename.h: Likewise.
44537         * lib/filenamecat.c: Likewise.
44538         * lib/filenamecat.h: Likewise.
44539         * lib/findprog.c: Likewise.
44540         * lib/findprog.h: Likewise.
44541         * lib/float.in.h: Likewise.
44542         * lib/floor.c: Likewise.
44543         * lib/floorf.c: Likewise.
44544         * lib/floorl.c: Likewise.
44545         * lib/fopen-safer.c: Likewise.
44546         * lib/fopen.c: Likewise.
44547         * lib/fpending.c: Likewise.
44548         * lib/fpending.h: Likewise.
44549         * lib/fprintf.c: Likewise.
44550         * lib/fprintftime.h: Likewise.
44551         * lib/fpucw.h: Likewise.
44552         * lib/fpurge.c: Likewise.
44553         * lib/fpurge.h: Likewise.
44554         * lib/freadable.c: Likewise.
44555         * lib/freadable.h: Likewise.
44556         * lib/freadahead.c: Likewise.
44557         * lib/freadahead.h: Likewise.
44558         * lib/freading.c: Likewise.
44559         * lib/freading.h: Likewise.
44560         * lib/free.c: Likewise.
44561         * lib/freopen.c: Likewise.
44562         * lib/frexp.c: Likewise.
44563         * lib/frexpl.c: Likewise.
44564         * lib/fseek.c: Likewise.
44565         * lib/fseterr.c: Likewise.
44566         * lib/fseterr.h: Likewise.
44567         * lib/fstatat.c: Likewise.
44568         * lib/fstrcmp.c: Likewise.
44569         * lib/fstrcmp.h: Likewise.
44570         * lib/fsusage.c: Likewise.
44571         * lib/fsusage.h: Likewise.
44572         * lib/ftell.c: Likewise.
44573         * lib/ftello.c: Likewise.
44574         * lib/fts-cycle.c: Likewise.
44575         * lib/fts.c: Likewise.
44576         * lib/fts_.h: Likewise.
44577         * lib/full-read.c: Likewise.
44578         * lib/full-read.h: Likewise.
44579         * lib/full-write.c: Likewise.
44580         * lib/full-write.h: Likewise.
44581         * lib/fwritable.c: Likewise.
44582         * lib/fwritable.h: Likewise.
44583         * lib/fwriteerror.c: Likewise.
44584         * lib/fwriteerror.h: Likewise.
44585         * lib/fwriting.c: Likewise.
44586         * lib/fwriting.h: Likewise.
44587         * lib/gcd.c: Likewise.
44588         * lib/gcd.h: Likewise.
44589         * lib/getcwd.c: Likewise.
44590         * lib/getdate.h: Likewise.
44591         * lib/getdate.y: Likewise.
44592         * lib/getdomainname.c: Likewise.
44593         * lib/getdomainname.h: Likewise.
44594         * lib/getgroups.c: Likewise.
44595         * lib/gethostname.c: Likewise.
44596         * lib/gethrxtime.c: Likewise.
44597         * lib/gethrxtime.h: Likewise.
44598         * lib/getloadavg.c: Likewise.
44599         * lib/getndelim2.c: Likewise.
44600         * lib/getndelim2.h: Likewise.
44601         * lib/getnline.c: Likewise.
44602         * lib/getnline.h: Likewise.
44603         * lib/getopt.c: Likewise.
44604         * lib/getopt.in.h: Likewise.
44605         * lib/getopt1.c: Likewise.
44606         * lib/getopt_int.h: Likewise.
44607         * lib/getpagesize.h: Likewise.
44608         * lib/getsubopt.c: Likewise.
44609         * lib/gettime.c: Likewise.
44610         * lib/getugroups.c: Likewise.
44611         * lib/getugroups.h: Likewise.
44612         * lib/getusershell.c: Likewise.
44613         * lib/gl_anyavltree_list1.h: Likewise.
44614         * lib/gl_anyavltree_list2.h: Likewise.
44615         * lib/gl_anyhash_list1.h: Likewise.
44616         * lib/gl_anyhash_list2.h: Likewise.
44617         * lib/gl_anylinked_list1.h: Likewise.
44618         * lib/gl_anylinked_list2.h: Likewise.
44619         * lib/gl_anyrbtree_list1.h: Likewise.
44620         * lib/gl_anyrbtree_list2.h: Likewise.
44621         * lib/gl_anytree_list1.h: Likewise.
44622         * lib/gl_anytree_list2.h: Likewise.
44623         * lib/gl_anytree_oset.h: Likewise.
44624         * lib/gl_anytreehash_list1.h: Likewise.
44625         * lib/gl_anytreehash_list2.h: Likewise.
44626         * lib/gl_array_list.c: Likewise.
44627         * lib/gl_array_list.h: Likewise.
44628         * lib/gl_array_oset.c: Likewise.
44629         * lib/gl_array_oset.h: Likewise.
44630         * lib/gl_avltree_list.c: Likewise.
44631         * lib/gl_avltree_list.h: Likewise.
44632         * lib/gl_avltree_oset.c: Likewise.
44633         * lib/gl_avltree_oset.h: Likewise.
44634         * lib/gl_avltreehash_list.c: Likewise.
44635         * lib/gl_avltreehash_list.h: Likewise.
44636         * lib/gl_carray_list.c: Likewise.
44637         * lib/gl_carray_list.h: Likewise.
44638         * lib/gl_linked_list.c: Likewise.
44639         * lib/gl_linked_list.h: Likewise.
44640         * lib/gl_linkedhash_list.c: Likewise.
44641         * lib/gl_linkedhash_list.h: Likewise.
44642         * lib/gl_list.c: Likewise.
44643         * lib/gl_list.h: Likewise.
44644         * lib/gl_oset.c: Likewise.
44645         * lib/gl_oset.h: Likewise.
44646         * lib/gl_rbtree_list.c: Likewise.
44647         * lib/gl_rbtree_list.h: Likewise.
44648         * lib/gl_rbtree_oset.c: Likewise.
44649         * lib/gl_rbtree_oset.h: Likewise.
44650         * lib/gl_rbtreehash_list.c: Likewise.
44651         * lib/gl_rbtreehash_list.h: Likewise.
44652         * lib/gl_sublist.c: Likewise.
44653         * lib/gl_sublist.h: Likewise.
44654         * lib/group-member.c: Likewise.
44655         * lib/group-member.h: Likewise.
44656         * lib/hard-locale.c: Likewise.
44657         * lib/hard-locale.h: Likewise.
44658         * lib/hash-pjw.c: Likewise.
44659         * lib/hash-pjw.h: Likewise.
44660         * lib/hash-triple.c: Likewise.
44661         * lib/hash.c: Likewise.
44662         * lib/hash.h: Likewise.
44663         * lib/human.c: Likewise.
44664         * lib/human.h: Likewise.
44665         * lib/i-ring.c: Likewise.
44666         * lib/i-ring.h: Likewise.
44667         * lib/idcache.c: Likewise.
44668         * lib/imaxabs.c: Likewise.
44669         * lib/imaxdiv.c: Likewise.
44670         * lib/inet_pton.c: Likewise.
44671         * lib/inet_pton.h: Likewise.
44672         * lib/intprops.h: Likewise.
44673         * lib/inttostr.c: Likewise.
44674         * lib/inttostr.h: Likewise.
44675         * lib/inttypes.in.h: Likewise.
44676         * lib/isapipe.c: Likewise.
44677         * lib/isdir.c: Likewise.
44678         * lib/isnan.c: Likewise.
44679         * lib/isnan.h: Likewise.
44680         * lib/isnanf.c: Likewise.
44681         * lib/isnanf.h: Likewise.
44682         * lib/isnanl-nolibm.h: Likewise.
44683         * lib/isnanl.c: Likewise.
44684         * lib/isnanl.h: Likewise.
44685         * lib/javacomp.c: Likewise.
44686         * lib/javacomp.h: Likewise.
44687         * lib/javaexec.c: Likewise.
44688         * lib/javaexec.h: Likewise.
44689         * lib/javaversion.c: Likewise.
44690         * lib/javaversion.h: Likewise.
44691         * lib/javaversion.java: Likewise.
44692         * lib/lbrkprop.h: Likewise.
44693         * lib/lchmod.h: Likewise.
44694         * lib/lchown.c: Likewise.
44695         * lib/ldexpl.c: Likewise.
44696         * lib/linebreak.c: Likewise.
44697         * lib/linebreak.h: Likewise.
44698         * lib/linebuffer.c: Likewise.
44699         * lib/linebuffer.h: Likewise.
44700         * lib/locale.in.h: Likewise.
44701         * lib/logl.c: Likewise.
44702         * lib/long-options.c: Likewise.
44703         * lib/long-options.h: Likewise.
44704         * lib/lstat.c: Likewise.
44705         * lib/lstat.h: Likewise.
44706         * lib/math.in.h: Likewise.
44707         * lib/mbchar.c: Likewise.
44708         * lib/mbchar.h: Likewise.
44709         * lib/mbfile.h: Likewise.
44710         * lib/mbiter.h: Likewise.
44711         * lib/mbscasecmp.c: Likewise.
44712         * lib/mbscasestr.c: Likewise.
44713         * lib/mbschr.c: Likewise.
44714         * lib/mbscspn.c: Likewise.
44715         * lib/mbslen.c: Likewise.
44716         * lib/mbsncasecmp.c: Likewise.
44717         * lib/mbsnlen.c: Likewise.
44718         * lib/mbspbrk.c: Likewise.
44719         * lib/mbspcasecmp.c: Likewise.
44720         * lib/mbsrchr.c: Likewise.
44721         * lib/mbssep.c: Likewise.
44722         * lib/mbsspn.c: Likewise.
44723         * lib/mbsstr.c: Likewise.
44724         * lib/mbstok_r.c: Likewise.
44725         * lib/mbswidth.c: Likewise.
44726         * lib/mbswidth.h: Likewise.
44727         * lib/mbuiter.h: Likewise.
44728         * lib/memcasecmp.c: Likewise.
44729         * lib/memcasecmp.h: Likewise.
44730         * lib/memchr.c: Likewise.
44731         * lib/memcmp.c: Likewise.
44732         * lib/memcoll.c: Likewise.
44733         * lib/memcoll.h: Likewise.
44734         * lib/memcpy.c: Likewise.
44735         * lib/memrchr.c: Likewise.
44736         * lib/mkancesdirs.c: Likewise.
44737         * lib/mkdir-p.c: Likewise.
44738         * lib/mkdir-p.h: Likewise.
44739         * lib/mkdir.c: Likewise.
44740         * lib/mkdirat.c: Likewise.
44741         * lib/mkdtemp.c: Likewise.
44742         * lib/mkstemp-safer.c: Likewise.
44743         * lib/mkstemp.c: Likewise.
44744         * lib/modechange.c: Likewise.
44745         * lib/modechange.h: Likewise.
44746         * lib/mountlist.c: Likewise.
44747         * lib/mountlist.h: Likewise.
44748         * lib/mpsort.c: Likewise.
44749         * lib/nanosleep.c: Likewise.
44750         * lib/obstack.c: Likewise.
44751         * lib/obstack.h: Likewise.
44752         * lib/open-safer.c: Likewise.
44753         * lib/open.c: Likewise.
44754         * lib/openat-die.c: Likewise.
44755         * lib/openat-priv.h: Likewise.
44756         * lib/openat-proc.c: Likewise.
44757         * lib/openat.c: Likewise.
44758         * lib/openat.h: Likewise.
44759         * lib/pagealign_alloc.c: Likewise.
44760         * lib/pagealign_alloc.h: Likewise.
44761         * lib/physmem.c: Likewise.
44762         * lib/physmem.h: Likewise.
44763         * lib/pipe-safer.c: Likewise.
44764         * lib/pipe.c: Likewise.
44765         * lib/pipe.h: Likewise.
44766         * lib/posixtm.c: Likewise.
44767         * lib/posixtm.h: Likewise.
44768         * lib/posixver.c: Likewise.
44769         * lib/printf-frexp.c: Likewise.
44770         * lib/printf-frexp.h: Likewise.
44771         * lib/printf-frexpl.c: Likewise.
44772         * lib/printf-frexpl.h: Likewise.
44773         * lib/printf.c: Likewise.
44774         * lib/progname.c: Likewise.
44775         * lib/progname.h: Likewise.
44776         * lib/progreloc.c: Likewise.
44777         * lib/putenv.c: Likewise.
44778         * lib/quote.c: Likewise.
44779         * lib/quote.h: Likewise.
44780         * lib/quotearg.c: Likewise.
44781         * lib/quotearg.h: Likewise.
44782         * lib/raise.c: Likewise.
44783         * lib/readline.c: Likewise.
44784         * lib/readline.h: Likewise.
44785         * lib/readlink.c: Likewise.
44786         * lib/readtokens.c: Likewise.
44787         * lib/readtokens.h: Likewise.
44788         * lib/readtokens0.c: Likewise.
44789         * lib/readtokens0.h: Likewise.
44790         * lib/readutmp.c: Likewise.
44791         * lib/readutmp.h: Likewise.
44792         * lib/realloc.c: Likewise.
44793         * lib/relocwrapper.c: Likewise.
44794         * lib/rename-dest-slash.c: Likewise.
44795         * lib/rename.c: Likewise.
44796         * lib/rmdir.c: Likewise.
44797         * lib/rpmatch.c: Likewise.
44798         * lib/safe-read.c: Likewise.
44799         * lib/safe-read.h: Likewise.
44800         * lib/safe-write.c: Likewise.
44801         * lib/safe-write.h: Likewise.
44802         * lib/same-inode.h: Likewise.
44803         * lib/same.c: Likewise.
44804         * lib/same.h: Likewise.
44805         * lib/save-cwd.c: Likewise.
44806         * lib/save-cwd.h: Likewise.
44807         * lib/savedir.c: Likewise.
44808         * lib/savedir.h: Likewise.
44809         * lib/savewd.c: Likewise.
44810         * lib/savewd.h: Likewise.
44811         * lib/search.in.h: Likewise.
44812         * lib/setenv.c: Likewise.
44813         * lib/setenv.h: Likewise.
44814         * lib/settime.c: Likewise.
44815         * lib/sh-quote.c: Likewise.
44816         * lib/sh-quote.h: Likewise.
44817         * lib/sig2str.c: Likewise.
44818         * lib/sig2str.h: Likewise.
44819         * lib/signal.in.h: Likewise.
44820         * lib/signbitd.c: Likewise.
44821         * lib/signbitf.c: Likewise.
44822         * lib/signbitl.c: Likewise.
44823         * lib/sigprocmask.c: Likewise.
44824         * lib/sincosl.c: Likewise.
44825         * lib/sleep.c: Likewise.
44826         * lib/sprintf.c: Likewise.
44827         * lib/sqrtl.c: Likewise.
44828         * lib/stat-time.h: Likewise.
44829         * lib/stdio--.h: Likewise.
44830         * lib/stdio-safer.h: Likewise.
44831         * lib/stdlib--.h: Likewise.
44832         * lib/stdlib-safer.h: Likewise.
44833         * lib/stdlib.in.h: Likewise.
44834         * lib/stpcpy.c: Likewise.
44835         * lib/stpncpy.c: Likewise.
44836         * lib/strchrnul.c: Likewise.
44837         * lib/strcspn.c: Likewise.
44838         * lib/strerror.c: Likewise.
44839         * lib/strftime.c: Likewise.
44840         * lib/strftime.h: Likewise.
44841         * lib/striconveh.c: Likewise.
44842         * lib/striconveh.h: Likewise.
44843         * lib/striconveha.c: Likewise.
44844         * lib/striconveha.h: Likewise.
44845         * lib/stripslash.c: Likewise.
44846         * lib/strnlen1.c: Likewise.
44847         * lib/strnlen1.h: Likewise.
44848         * lib/strtod.c: Likewise.
44849         * lib/strtoimax.c: Likewise.
44850         * lib/strtok_r.c: Likewise.
44851         * lib/strtol.c: Likewise.
44852         * lib/strtoll.c: Likewise.
44853         * lib/strtoul.c: Likewise.
44854         * lib/strtoull.c: Likewise.
44855         * lib/sysexits.in.h: Likewise.
44856         * lib/tempname.c: Likewise.
44857         * lib/tempname.h: Likewise.
44858         * lib/timespec.h: Likewise.
44859         * lib/tls.c: Likewise.
44860         * lib/tls.h: Likewise.
44861         * lib/tmpdir.c: Likewise.
44862         * lib/tmpdir.h: Likewise.
44863         * lib/tmpfile-safer.c: Likewise.
44864         * lib/tmpfile.c: Likewise.
44865         * lib/trigl.c: Likewise.
44866         * lib/trigl.h: Likewise.
44867         * lib/trim.c: Likewise.
44868         * lib/trim.h: Likewise.
44869         * lib/trunc.c: Likewise.
44870         * lib/truncf.c: Likewise.
44871         * lib/truncl.c: Likewise.
44872         * lib/tsearch.c: Likewise.
44873         * lib/unicodeio.c: Likewise.
44874         * lib/unicodeio.h: Likewise.
44875         * lib/unistd--.h: Likewise.
44876         * lib/unistd-safer.h: Likewise.
44877         * lib/unistdio/ulc-fprintf.c: Likewise.
44878         * lib/unistdio/ulc-vfprintf.c: Likewise.
44879         * lib/unlinkdir.c: Likewise.
44880         * lib/unlinkdir.h: Likewise.
44881         * lib/unlocked-io.h: Likewise.
44882         * lib/unsetenv.c: Likewise.
44883         * lib/userspec.c: Likewise.
44884         * lib/utime.c: Likewise.
44885         * lib/utimecmp.c: Likewise.
44886         * lib/utimecmp.h: Likewise.
44887         * lib/utimens.c: Likewise.
44888         * lib/verify.h: Likewise.
44889         * lib/verror.c: Likewise.
44890         * lib/verror.h: Likewise.
44891         * lib/version-etc-fsf.c: Likewise.
44892         * lib/version-etc.c: Likewise.
44893         * lib/version-etc.h: Likewise.
44894         * lib/vfprintf.c: Likewise.
44895         * lib/vprintf.c: Likewise.
44896         * lib/vsprintf.c: Likewise.
44897         * lib/w32spawn.h: Likewise.
44898         * lib/wait-process.c: Likewise.
44899         * lib/wait-process.h: Likewise.
44900         * lib/wcwidth.c: Likewise.
44901         * lib/write-any-file.c: Likewise.
44902         * lib/xalloc-die.c: Likewise.
44903         * lib/xalloc.h: Likewise.
44904         * lib/xasprintf.c: Likewise.
44905         * lib/xgetcwd.c: Likewise.
44906         * lib/xgetcwd.h: Likewise.
44907         * lib/xgetdomainname.c: Likewise.
44908         * lib/xgetdomainname.h: Likewise.
44909         * lib/xgethostname.c: Likewise.
44910         * lib/xmalloc.c: Likewise.
44911         * lib/xmalloca.c: Likewise.
44912         * lib/xmalloca.h: Likewise.
44913         * lib/xmemcoll.c: Likewise.
44914         * lib/xnanosleep.c: Likewise.
44915         * lib/xreadlink.c: Likewise.
44916         * lib/xreadlink.h: Likewise.
44917         * lib/xsetenv.c: Likewise.
44918         * lib/xsetenv.h: Likewise.
44919         * lib/xstriconv.c: Likewise.
44920         * lib/xstriconv.h: Likewise.
44921         * lib/xstrndup.c: Likewise.
44922         * lib/xstrndup.h: Likewise.
44923         * lib/xstrtod.c: Likewise.
44924         * lib/xstrtod.h: Likewise.
44925         * lib/xstrtol-error.c: Likewise.
44926         * lib/xstrtol.c: Likewise.
44927         * lib/xstrtol.h: Likewise.
44928         * lib/xtime.h: Likewise.
44929         * lib/xvasprintf.c: Likewise.
44930         * lib/xvasprintf.h: Likewise.
44931         * lib/yesno.c: Likewise.
44932         * lib/yesno.h: Likewise.
44933         * posix-modules: Likewise.
44934         * tests/test-alloca-opt.c: Likewise.
44935         * tests/test-arcfour.c: Likewise.
44936         * tests/test-arctwo.c: Likewise.
44937         * tests/test-argmatch.c: Likewise.
44938         * tests/test-argp-2.sh: Likewise.
44939         * tests/test-argp.c: Likewise.
44940         * tests/test-arpa_inet.c: Likewise.
44941         * tests/test-array_list.c: Likewise.
44942         * tests/test-array_oset.c: Likewise.
44943         * tests/test-atexit.c: Likewise.
44944         * tests/test-avltree_list.c: Likewise.
44945         * tests/test-avltree_oset.c: Likewise.
44946         * tests/test-avltreehash_list.c: Likewise.
44947         * tests/test-base64.c: Likewise.
44948         * tests/test-binary-io.c: Likewise.
44949         * tests/test-byteswap.c: Likewise.
44950         * tests/test-c-ctype.c: Likewise.
44951         * tests/test-c-strcasecmp.c: Likewise.
44952         * tests/test-c-strcasestr.c: Likewise.
44953         * tests/test-c-strncasecmp.c: Likewise.
44954         * tests/test-c-strstr.c: Likewise.
44955         * tests/test-canonicalize-lgpl.c: Likewise.
44956         * tests/test-canonicalize.c: Likewise.
44957         * tests/test-carray_list.c: Likewise.
44958         * tests/test-ceilf.c: Likewise.
44959         * tests/test-ceill.c: Likewise.
44960         * tests/test-count-one-bits.c: Likewise.
44961         * tests/test-crc.c: Likewise.
44962         * tests/test-dirname.c: Likewise.
44963         * tests/test-fbufmode.c: Likewise.
44964         * tests/test-fcntl.c: Likewise.
44965         * tests/test-fflush.c: Likewise.
44966         * tests/test-floorf.c: Likewise.
44967         * tests/test-floorl.c: Likewise.
44968         * tests/test-fopen.c: Likewise.
44969         * tests/test-fprintf-posix.c: Likewise.
44970         * tests/test-fprintf-posix.h: Likewise.
44971         * tests/test-fpurge.c: Likewise.
44972         * tests/test-freadable.c: Likewise.
44973         * tests/test-freadahead.c: Likewise.
44974         * tests/test-freading.c: Likewise.
44975         * tests/test-freopen.c: Likewise.
44976         * tests/test-frexp.c: Likewise.
44977         * tests/test-frexpl.c: Likewise.
44978         * tests/test-fseek.c: Likewise.
44979         * tests/test-fseeko.c: Likewise.
44980         * tests/test-fseterr.c: Likewise.
44981         * tests/test-fstrcmp.c: Likewise.
44982         * tests/test-ftell.c: Likewise.
44983         * tests/test-ftello.c: Likewise.
44984         * tests/test-fwritable.c: Likewise.
44985         * tests/test-fwriting.c: Likewise.
44986         * tests/test-getaddrinfo.c: Likewise.
44987         * tests/test-getpass.c: Likewise.
44988         * tests/test-gettimeofday.c: Likewise.
44989         * tests/test-hmac-md5.c: Likewise.
44990         * tests/test-hmac-sha1.c: Likewise.
44991         * tests/test-iconv.c: Likewise.
44992         * tests/test-iconvme.c: Likewise.
44993         * tests/test-inttypes.c: Likewise.
44994         * tests/test-isnan.c: Likewise.
44995         * tests/test-isnanf.c: Likewise.
44996         * tests/test-isnanl-nolibm.c: Likewise.
44997         * tests/test-isnanl.c: Likewise.
44998         * tests/test-isnanl.h: Likewise.
44999         * tests/test-ldexpl.c: Likewise.
45000         * tests/test-linked_list.c: Likewise.
45001         * tests/test-linkedhash_list.c: Likewise.
45002         * tests/test-locale.c: Likewise.
45003         * tests/test-localename.c: Likewise.
45004         * tests/test-lock.c: Likewise.
45005         * tests/test-lseek.c: Likewise.
45006         * tests/test-malloca.c: Likewise.
45007         * tests/test-math.c: Likewise.
45008         * tests/test-mbscasecmp.c: Likewise.
45009         * tests/test-mbscasestr1.c: Likewise.
45010         * tests/test-mbscasestr2.c: Likewise.
45011         * tests/test-mbscasestr3.c: Likewise.
45012         * tests/test-mbscasestr4.c: Likewise.
45013         * tests/test-mbschr.c: Likewise.
45014         * tests/test-mbscspn.c: Likewise.
45015         * tests/test-mbsncasecmp.c: Likewise.
45016         * tests/test-mbspbrk.c: Likewise.
45017         * tests/test-mbspcasecmp.c: Likewise.
45018         * tests/test-mbsrchr.c: Likewise.
45019         * tests/test-mbsspn.c: Likewise.
45020         * tests/test-mbsstr1.c: Likewise.
45021         * tests/test-mbsstr2.c: Likewise.
45022         * tests/test-mbsstr3.c: Likewise.
45023         * tests/test-md5.c: Likewise.
45024         * tests/test-memmem.c: Likewise.
45025         * tests/test-netinet_in.c: Likewise.
45026         * tests/test-open.c: Likewise.
45027         * tests/test-printf-frexp.c: Likewise.
45028         * tests/test-printf-frexpl.c: Likewise.
45029         * tests/test-printf-posix.c: Likewise.
45030         * tests/test-printf-posix.h: Likewise.
45031         * tests/test-rbtree_list.c: Likewise.
45032         * tests/test-rbtree_oset.c: Likewise.
45033         * tests/test-rbtreehash_list.c: Likewise.
45034         * tests/test-read-file.c: Likewise.
45035         * tests/test-rijndael.c: Likewise.
45036         * tests/test-search.c: Likewise.
45037         * tests/test-signbit.c: Likewise.
45038         * tests/test-sleep.c: Likewise.
45039         * tests/test-snprintf-posix.c: Likewise.
45040         * tests/test-snprintf-posix.h: Likewise.
45041         * tests/test-snprintf.c: Likewise.
45042         * tests/test-sprintf-posix.c: Likewise.
45043         * tests/test-sprintf-posix.h: Likewise.
45044         * tests/test-stat-time.c: Likewise.
45045         * tests/test-stdbool.c: Likewise.
45046         * tests/test-stdint.c: Likewise.
45047         * tests/test-stdio.c: Likewise.
45048         * tests/test-stdlib.c: Likewise.
45049         * tests/test-stpncpy.c: Likewise.
45050         * tests/test-strcasestr.c: Likewise.
45051         * tests/test-striconv.c: Likewise.
45052         * tests/test-striconveh.c: Likewise.
45053         * tests/test-striconveha.c: Likewise.
45054         * tests/test-string.c: Likewise.
45055         * tests/test-sys_select.c: Likewise.
45056         * tests/test-sys_socket.c: Likewise.
45057         * tests/test-sys_stat.c: Likewise.
45058         * tests/test-sys_time.c: Likewise.
45059         * tests/test-sysexits.c: Likewise.
45060         * tests/test-time.c: Likewise.
45061         * tests/test-tls.c: Likewise.
45062         * tests/test-trunc.c: Likewise.
45063         * tests/test-truncf.c: Likewise.
45064         * tests/test-truncl.c: Likewise.
45065         * tests/test-unistd.c: Likewise.
45066         * tests/test-vasnprintf-posix.c: Likewise.
45067         * tests/test-vasnprintf-posix2.c: Likewise.
45068         * tests/test-vasnprintf.c: Likewise.
45069         * tests/test-vasprintf-posix.c: Likewise.
45070         * tests/test-vasprintf.c: Likewise.
45071         * tests/test-verify.c: Likewise.
45072         * tests/test-vfprintf-posix.c: Likewise.
45073         * tests/test-vprintf-posix.c: Likewise.
45074         * tests/test-vsnprintf-posix.c: Likewise.
45075         * tests/test-vsnprintf.c: Likewise.
45076         * tests/test-vsprintf-posix.c: Likewise.
45077         * tests/test-wchar.c: Likewise.
45078         * tests/test-wctype.c: Likewise.
45079         * tests/test-wcwidth.c: Likewise.
45080         * tests/test-xstrtol.c: Likewise.
45081         * tests/test-xvasprintf.c: Likewise.
45082         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45083         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45084         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45085         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45086         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45087         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45088         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45089         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45090         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45091         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45092         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45093         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45094         * tests/uniname/test-uninames.c: Likewise.
45095         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45096         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45097         * tests/unistdio/test-u16-printf1.h: Likewise.
45098         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45099         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45100         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45101         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45102         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45103         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45104         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45105         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45106         * tests/unistdio/test-u32-printf1.h: Likewise.
45107         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45108         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45109         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45110         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45111         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45112         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45113         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45114         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45115         * tests/unistdio/test-u8-printf1.h: Likewise.
45116         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45117         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45118         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45119         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45120         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45121         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45122         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45123         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45124         * tests/unistdio/test-ulc-printf1.h: Likewise.
45125         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45126         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45127         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45128         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45129         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45130         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45131         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45132         * tests/uniwidth/test-u16-width.c: Likewise.
45133         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45134         * tests/uniwidth/test-u32-width.c: Likewise.
45135         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45136         * tests/uniwidth/test-u8-width.c: Likewise.
45137         * tests/uniwidth/test-uc_width.c: Likewise.
45138         * config/srclist-update: Likewise.
45139         (fixlicense): Update to GPLv3+.
45140
45141         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45142         * tests/test-tsearch.c: Change copyright notice.
45143
45144         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45145         * lib/c-strcaseeq.h: Change copyright notice.
45146         * lib/streq.h: Likewise.
45147         * lib/uniconv.h: Likewise.
45148         * lib/uniconv/u-conv-from-enc.h: Likewise.
45149         * lib/uniconv/u-conv-to-enc.h: Likewise.
45150         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45151         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45152         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45153         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45154         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45155         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45156         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45157         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45158         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45159         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45160         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45161         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45162         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45163         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45164         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45165         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45166         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45167         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45168         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45169         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45170         * lib/uniname.h: Likewise.
45171         * lib/uniname/uniname.c: Likewise.
45172         * lib/unistdio.h: Likewise.
45173         * lib/unistdio/u-asnprintf.h: Likewise.
45174         * lib/unistdio/u-asprintf.h: Likewise.
45175         * lib/unistdio/u-printf-args.c: Likewise.
45176         * lib/unistdio/u-printf-args.h: Likewise.
45177         * lib/unistdio/u-printf-parse.h: Likewise.
45178         * lib/unistdio/u-snprintf.h: Likewise.
45179         * lib/unistdio/u-sprintf.h: Likewise.
45180         * lib/unistdio/u-vasprintf.h: Likewise.
45181         * lib/unistdio/u-vsnprintf.h: Likewise.
45182         * lib/unistdio/u-vsprintf.h: Likewise.
45183         * lib/unistdio/u16-asnprintf.c: Likewise.
45184         * lib/unistdio/u16-asprintf.c: Likewise.
45185         * lib/unistdio/u16-printf-parse.c: Likewise.
45186         * lib/unistdio/u16-snprintf.c: Likewise.
45187         * lib/unistdio/u16-sprintf.c: Likewise.
45188         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45189         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45190         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45191         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45192         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45193         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45194         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45195         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45196         * lib/unistdio/u16-vasnprintf.c: Likewise.
45197         * lib/unistdio/u16-vasprintf.c: Likewise.
45198         * lib/unistdio/u16-vsnprintf.c: Likewise.
45199         * lib/unistdio/u16-vsprintf.c: Likewise.
45200         * lib/unistdio/u32-asnprintf.c: Likewise.
45201         * lib/unistdio/u32-asprintf.c: Likewise.
45202         * lib/unistdio/u32-printf-parse.c: Likewise.
45203         * lib/unistdio/u32-snprintf.c: Likewise.
45204         * lib/unistdio/u32-sprintf.c: Likewise.
45205         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45206         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45207         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45208         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45209         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45210         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45211         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45212         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45213         * lib/unistdio/u32-vasnprintf.c: Likewise.
45214         * lib/unistdio/u32-vasprintf.c: Likewise.
45215         * lib/unistdio/u32-vsnprintf.c: Likewise.
45216         * lib/unistdio/u32-vsprintf.c: Likewise.
45217         * lib/unistdio/u8-asnprintf.c: Likewise.
45218         * lib/unistdio/u8-asprintf.c: Likewise.
45219         * lib/unistdio/u8-printf-parse.c: Likewise.
45220         * lib/unistdio/u8-snprintf.c: Likewise.
45221         * lib/unistdio/u8-sprintf.c: Likewise.
45222         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
45223         * lib/unistdio/u8-u8-asprintf.c: Likewise.
45224         * lib/unistdio/u8-u8-snprintf.c: Likewise.
45225         * lib/unistdio/u8-u8-sprintf.c: Likewise.
45226         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
45227         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
45228         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
45229         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
45230         * lib/unistdio/u8-vasnprintf.c: Likewise.
45231         * lib/unistdio/u8-vasprintf.c: Likewise.
45232         * lib/unistdio/u8-vsnprintf.c: Likewise.
45233         * lib/unistdio/u8-vsprintf.c: Likewise.
45234         * lib/unistdio/ulc-asnprintf.c: Likewise.
45235         * lib/unistdio/ulc-asprintf.c: Likewise.
45236         * lib/unistdio/ulc-printf-parse.c: Likewise.
45237         * lib/unistdio/ulc-snprintf.c: Likewise.
45238         * lib/unistdio/ulc-sprintf.c: Likewise.
45239         * lib/unistdio/ulc-vasnprintf.c: Likewise.
45240         * lib/unistdio/ulc-vasprintf.c: Likewise.
45241         * lib/unistdio/ulc-vsnprintf.c: Likewise.
45242         * lib/unistdio/ulc-vsprintf.c: Likewise.
45243         * lib/unistr.h: Likewise.
45244         * lib/unistr/u-cpy-alloc.h: Likewise.
45245         * lib/unistr/u-cpy.h: Likewise.
45246         * lib/unistr/u-endswith.h: Likewise.
45247         * lib/unistr/u-move.h: Likewise.
45248         * lib/unistr/u-set.h: Likewise.
45249         * lib/unistr/u-startswith.h: Likewise.
45250         * lib/unistr/u-stpcpy.h: Likewise.
45251         * lib/unistr/u-stpncpy.h: Likewise.
45252         * lib/unistr/u-strcat.h: Likewise.
45253         * lib/unistr/u-strcpy.h: Likewise.
45254         * lib/unistr/u-strcspn.h: Likewise.
45255         * lib/unistr/u-strdup.h: Likewise.
45256         * lib/unistr/u-strlen.h: Likewise.
45257         * lib/unistr/u-strncat.h: Likewise.
45258         * lib/unistr/u-strncpy.h: Likewise.
45259         * lib/unistr/u-strnlen.h: Likewise.
45260         * lib/unistr/u-strpbrk.h: Likewise.
45261         * lib/unistr/u-strspn.h: Likewise.
45262         * lib/unistr/u-strstr.h: Likewise.
45263         * lib/unistr/u-strtok.h: Likewise.
45264         * lib/unistr/u16-check.c: Likewise.
45265         * lib/unistr/u16-chr.c: Likewise.
45266         * lib/unistr/u16-cmp.c: Likewise.
45267         * lib/unistr/u16-cpy-alloc.c: Likewise.
45268         * lib/unistr/u16-cpy.c: Likewise.
45269         * lib/unistr/u16-endswith.c: Likewise.
45270         * lib/unistr/u16-mblen.c: Likewise.
45271         * lib/unistr/u16-mbsnlen.c: Likewise.
45272         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45273         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45274         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45275         * lib/unistr/u16-mbtouc.c: Likewise.
45276         * lib/unistr/u16-mbtoucr.c: Likewise.
45277         * lib/unistr/u16-move.c: Likewise.
45278         * lib/unistr/u16-next.c: Likewise.
45279         * lib/unistr/u16-prev.c: Likewise.
45280         * lib/unistr/u16-set.c: Likewise.
45281         * lib/unistr/u16-startswith.c: Likewise.
45282         * lib/unistr/u16-stpcpy.c: Likewise.
45283         * lib/unistr/u16-stpncpy.c: Likewise.
45284         * lib/unistr/u16-strcat.c: Likewise.
45285         * lib/unistr/u16-strchr.c: Likewise.
45286         * lib/unistr/u16-strcmp.c: Likewise.
45287         * lib/unistr/u16-strcpy.c: Likewise.
45288         * lib/unistr/u16-strcspn.c: Likewise.
45289         * lib/unistr/u16-strdup.c: Likewise.
45290         * lib/unistr/u16-strlen.c: Likewise.
45291         * lib/unistr/u16-strmblen.c: Likewise.
45292         * lib/unistr/u16-strmbtouc.c: Likewise.
45293         * lib/unistr/u16-strncat.c: Likewise.
45294         * lib/unistr/u16-strncmp.c: Likewise.
45295         * lib/unistr/u16-strncpy.c: Likewise.
45296         * lib/unistr/u16-strnlen.c: Likewise.
45297         * lib/unistr/u16-strpbrk.c: Likewise.
45298         * lib/unistr/u16-strrchr.c: Likewise.
45299         * lib/unistr/u16-strspn.c: Likewise.
45300         * lib/unistr/u16-strstr.c: Likewise.
45301         * lib/unistr/u16-strtok.c: Likewise.
45302         * lib/unistr/u16-to-u32.c: Likewise.
45303         * lib/unistr/u16-to-u8.c: Likewise.
45304         * lib/unistr/u16-uctomb-aux.c: Likewise.
45305         * lib/unistr/u16-uctomb.c: Likewise.
45306         * lib/unistr/u32-check.c: Likewise.
45307         * lib/unistr/u32-chr.c: Likewise.
45308         * lib/unistr/u32-cmp.c: Likewise.
45309         * lib/unistr/u32-cpy-alloc.c: Likewise.
45310         * lib/unistr/u32-cpy.c: Likewise.
45311         * lib/unistr/u32-endswith.c: Likewise.
45312         * lib/unistr/u32-mblen.c: Likewise.
45313         * lib/unistr/u32-mbsnlen.c: Likewise.
45314         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45315         * lib/unistr/u32-mbtouc.c: Likewise.
45316         * lib/unistr/u32-mbtoucr.c: Likewise.
45317         * lib/unistr/u32-move.c: Likewise.
45318         * lib/unistr/u32-next.c: Likewise.
45319         * lib/unistr/u32-prev.c: Likewise.
45320         * lib/unistr/u32-set.c: Likewise.
45321         * lib/unistr/u32-startswith.c: Likewise.
45322         * lib/unistr/u32-stpcpy.c: Likewise.
45323         * lib/unistr/u32-stpncpy.c: Likewise.
45324         * lib/unistr/u32-strcat.c: Likewise.
45325         * lib/unistr/u32-strchr.c: Likewise.
45326         * lib/unistr/u32-strcmp.c: Likewise.
45327         * lib/unistr/u32-strcpy.c: Likewise.
45328         * lib/unistr/u32-strcspn.c: Likewise.
45329         * lib/unistr/u32-strdup.c: Likewise.
45330         * lib/unistr/u32-strlen.c: Likewise.
45331         * lib/unistr/u32-strmblen.c: Likewise.
45332         * lib/unistr/u32-strmbtouc.c: Likewise.
45333         * lib/unistr/u32-strncat.c: Likewise.
45334         * lib/unistr/u32-strncmp.c: Likewise.
45335         * lib/unistr/u32-strncpy.c: Likewise.
45336         * lib/unistr/u32-strnlen.c: Likewise.
45337         * lib/unistr/u32-strpbrk.c: Likewise.
45338         * lib/unistr/u32-strrchr.c: Likewise.
45339         * lib/unistr/u32-strspn.c: Likewise.
45340         * lib/unistr/u32-strstr.c: Likewise.
45341         * lib/unistr/u32-strtok.c: Likewise.
45342         * lib/unistr/u32-to-u16.c: Likewise.
45343         * lib/unistr/u32-to-u8.c: Likewise.
45344         * lib/unistr/u32-uctomb.c: Likewise.
45345         * lib/unistr/u8-check.c: Likewise.
45346         * lib/unistr/u8-chr.c: Likewise.
45347         * lib/unistr/u8-cmp.c: Likewise.
45348         * lib/unistr/u8-cpy-alloc.c: Likewise.
45349         * lib/unistr/u8-cpy.c: Likewise.
45350         * lib/unistr/u8-endswith.c: Likewise.
45351         * lib/unistr/u8-mblen.c: Likewise.
45352         * lib/unistr/u8-mbsnlen.c: Likewise.
45353         * lib/unistr/u8-mbtouc-aux.c: Likewise.
45354         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45355         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45356         * lib/unistr/u8-mbtouc.c: Likewise.
45357         * lib/unistr/u8-mbtoucr.c: Likewise.
45358         * lib/unistr/u8-move.c: Likewise.
45359         * lib/unistr/u8-next.c: Likewise.
45360         * lib/unistr/u8-prev.c: Likewise.
45361         * lib/unistr/u8-set.c: Likewise.
45362         * lib/unistr/u8-startswith.c: Likewise.
45363         * lib/unistr/u8-stpcpy.c: Likewise.
45364         * lib/unistr/u8-stpncpy.c: Likewise.
45365         * lib/unistr/u8-strcat.c: Likewise.
45366         * lib/unistr/u8-strchr.c: Likewise.
45367         * lib/unistr/u8-strcmp.c: Likewise.
45368         * lib/unistr/u8-strcpy.c: Likewise.
45369         * lib/unistr/u8-strcspn.c: Likewise.
45370         * lib/unistr/u8-strdup.c: Likewise.
45371         * lib/unistr/u8-strlen.c: Likewise.
45372         * lib/unistr/u8-strmblen.c: Likewise.
45373         * lib/unistr/u8-strmbtouc.c: Likewise.
45374         * lib/unistr/u8-strncat.c: Likewise.
45375         * lib/unistr/u8-strncmp.c: Likewise.
45376         * lib/unistr/u8-strncpy.c: Likewise.
45377         * lib/unistr/u8-strnlen.c: Likewise.
45378         * lib/unistr/u8-strpbrk.c: Likewise.
45379         * lib/unistr/u8-strrchr.c: Likewise.
45380         * lib/unistr/u8-strspn.c: Likewise.
45381         * lib/unistr/u8-strstr.c: Likewise.
45382         * lib/unistr/u8-strtok.c: Likewise.
45383         * lib/unistr/u8-to-u16.c: Likewise.
45384         * lib/unistr/u8-to-u32.c: Likewise.
45385         * lib/unistr/u8-uctomb-aux.c: Likewise.
45386         * lib/unistr/u8-uctomb.c: Likewise.
45387         * lib/unitypes.h: Likewise.
45388         * lib/uniwidth.h: Likewise.
45389         * lib/uniwidth/cjk.h: Likewise.
45390         * lib/uniwidth/u16-strwidth.c: Likewise.
45391         * lib/uniwidth/u16-width.c: Likewise.
45392         * lib/uniwidth/u32-strwidth.c: Likewise.
45393         * lib/uniwidth/u32-width.c: Likewise.
45394         * lib/uniwidth/u8-strwidth.c: Likewise.
45395         * lib/uniwidth/u8-width.c: Likewise.
45396         * lib/uniwidth/width.c: Likewise.
45397
45398 2007-10-07  Bruno Haible  <bruno@clisp.org>
45399
45400         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
45401         The file is still under LGPL (see modules/inttypes).
45402
45403 2007-10-06  Bruno Haible  <bruno@clisp.org>
45404
45405         * modules/trunc (Dependencies): Add 'extensions'.
45406         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
45407         Reported by Ben Pfaff <blp@gnu.org>.
45408
45409 2007-10-06  Bruno Haible  <bruno@clisp.org>
45410
45411         * modules/freopen-tests: New file.
45412         * tests/test-freopen.c: New file.
45413
45414         * modules/fopen-tests: New file.
45415         * tests/test-fopen.c: New file.
45416
45417         * modules/fopen: New file.
45418         * lib/fopen.c: New file.
45419         * m4/fopen.m4: New file.
45420         * modules/freopen: New file.
45421         * lib/freopen.c: New file.
45422         * m4/freopen.m4: New file.
45423         * lib/stdio.in.h (fopen, freopen): New declarations.
45424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
45425         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45426         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
45427         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45428         * doc/functions/fopen.texi: Mention the 'fopen' module.
45429         * doc/functions/freopen.texi: Mention the 'freopen' module.
45430
45431 2007-10-06  Bruno Haible  <bruno@clisp.org>
45432
45433         * modules/open-tests: New file.
45434         * tests/test-open.c: New file.
45435
45436         * modules/open: New file.
45437         * lib/open.c: New file.
45438         * m4/open.m4: New file.
45439         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
45440         lib/open.c does.
45441         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
45442         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
45443         macros.
45444         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
45445         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
45446         REPLACE_OPEN.
45447         * doc/functions/open.texi: Mention the 'open' module.
45448
45449 2007-10-04  Bruno Haible  <bruno@clisp.org>
45450
45451         * modules/ceill-tests: New file.
45452         * tests/test-ceill.c: New file.
45453
45454         * modules/ceill: New file.
45455         * lib/ceill.c: Replace entire file.
45456         * m4/ceill.m4: New file.
45457         * lib/math.in.h (ceill): Replace declaration.
45458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
45459         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
45460         * doc/functions/ceill.texi: Mention the 'ceill' module.
45461         * modules/mathl (Files): Remove lib/ceill.c.
45462         (Depends-on): Add ceill.
45463
45464 2007-10-04  Bruno Haible  <bruno@clisp.org>
45465
45466         * modules/ceilf-tests: New file.
45467         * tests/test-ceilf.c: New file.
45468
45469         * modules/ceilf: New file.
45470         * lib/ceil.c: New file.
45471         * lib/ceilf.c: New file.
45472         * m4/ceilf.m4: New file.
45473         * lib/math.in.h (ceilf): New declaration.
45474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
45475         HAVE_DECL_CEILF.
45476         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
45477         HAVE_DECL_CEILF.
45478         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
45479
45480 2007-10-04  Bruno Haible  <bruno@clisp.org>
45481
45482         * modules/floorl-tests: New file.
45483         * tests/test-floorl.c: New file.
45484
45485         * modules/floorl: New file.
45486         * lib/floorl.c: Replace entire file.
45487         * m4/floorl.m4: New file.
45488         * lib/math.in.h (floorl): Replace declaration.
45489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
45490         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
45491         * doc/functions/floorl.texi: Mention the 'floorl' module.
45492         * modules/mathl (Files): Remove lib/floorl.c.
45493         (Depends-on): Add floorl.
45494
45495 2007-10-04  Bruno Haible  <bruno@clisp.org>
45496
45497         * modules/floorf-tests: New file.
45498         * tests/test-floorf.c: New file.
45499
45500         * modules/floorf: New file.
45501         * lib/floor.c: New file.
45502         * lib/floorf.c: New file.
45503         * m4/floorf.m4: New file.
45504         * lib/math.in.h (floorf): New declaration.
45505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
45506         HAVE_DECL_FLOORF.
45507         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
45508         HAVE_DECL_FLOORF.
45509         * doc/functions/floorf.texi: Mention the 'floorf' module.
45510
45511 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
45512             Bruno Haible  <bruno@clisp.org>
45513
45514         Advertise for the Git server instead of the CVS server.
45515         * doc/gnulib-intro.texi (Steady Development): Mention the Git
45516         repository instead of the CVS one.
45517         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
45518         about all VCS systems generically.
45519         * doc/gnulib.texi (Introduction): Capitalize `Git'.
45520
45521 2007-10-04  Bruno Haible  <bruno@clisp.org>
45522
45523         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
45524         means.
45525         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
45526
45527 2007-10-04  Bruno Haible  <bruno@clisp.org>
45528
45529         * modules/truncl-tests: New file.
45530         * tests/test-truncl.c: New file.
45531
45532         * modules/truncl: New file.
45533         * lib/truncl.c: New file.
45534         * m4/truncl.m4: New file.
45535         * lib/math.in.h (truncl): New declaration.
45536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
45537         HAVE_DECL_TRUNCL.
45538         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
45539         HAVE_DECL_TRUNCL.
45540         * doc/functions/truncl.texi: Mention the 'truncl' module.
45541
45542 2007-10-04  Bruno Haible  <bruno@clisp.org>
45543
45544         * modules/truncf-tests: New file.
45545         * tests/test-truncf.c: New file.
45546
45547         * modules/truncf: New file.
45548         * lib/trunc.c: Make paramerizable through USE_* macros.
45549         * lib/truncf.c: New file.
45550         * m4/truncf.m4: New file.
45551         * lib/math.in.h (truncf): New declaration.
45552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
45553         HAVE_DECL_TRUNCF.
45554         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
45555         HAVE_DECL_TRUNCF.
45556         * doc/functions/truncf.texi: Mention the 'truncf' module.
45557
45558 2007-10-03  Bruno Haible  <bruno@clisp.org>
45559
45560         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45561         augmentation also for tests modules.
45562         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45563         * modules/atexit-tests (Makefile.am): Likewise.
45564         * modules/binary-io-tests (Makefile.am): Likewise.
45565         * modules/c-strcase-tests (Makefile.am): Likewise.
45566         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45567         * modules/canonicalize-tests (Makefile.am): Likewise.
45568         * modules/closein-tests (Makefile.am): Likewise.
45569         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45570         * modules/freadahead-tests (Makefile.am): Likewise.
45571         * modules/fseek-tests (Makefile.am): Likewise.
45572         * modules/fseeko-tests (Makefile.am): Likewise.
45573         * modules/ftell-tests (Makefile.am): Likewise.
45574         * modules/ftello-tests (Makefile.am): Likewise.
45575         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45576         * modules/isnanl-tests (Makefile.am): Likewise.
45577         * modules/lseek-tests (Makefile.am): Likewise.
45578         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45579         * modules/mbscasestr-tests (Makefile.am): Likewise.
45580         * modules/mbschr-tests (Makefile.am): Likewise.
45581         * modules/mbscspn-tests (Makefile.am): Likewise.
45582         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45583         * modules/mbspbrk-tests (Makefile.am): Likewise.
45584         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45585         * modules/mbsrchr-tests (Makefile.am): Likewise.
45586         * modules/mbsspn-tests (Makefile.am): Likewise.
45587         * modules/mbsstr-tests (Makefile.am): Likewise.
45588         * modules/printf-posix-tests (Makefile.am): Likewise.
45589         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45590         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45591         * modules/tsearch-tests (Makefile.am): Likewise.
45592         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45593         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45594         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45595         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45596         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45597         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45598         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45599         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45600         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45601         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45602         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45603         * modules/xstrtol-tests (Makefile.am): Likewise.
45604         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45605         * modules/yesno-tests (Makefile.am): Likewise.
45606
45607 2007-10-03  Bruno Haible  <bruno@clisp.org>
45608
45609         * modules/trunc-tests: New file.
45610         * tests/test-trunc.c: New file.
45611
45612         * modules/trunc: New file.
45613         * lib/trunc.c: New file.
45614         * m4/trunc.m4: New file.
45615         * lib/math.in.h (trunc): New declaration.
45616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45617         HAVE_DECL_TRUNC.
45618         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45619         HAVE_DECL_TRUNC.
45620         * doc/functions/trunc.texi: Mention the 'trunc' module.
45621
45622 2007-10-03  Bruno Haible  <bruno@clisp.org>
45623
45624         * tests/test-fpending.c: New file, mostly copied
45625         from coreutils/lib/t-fpending.c.
45626         * modules/fpending-tests: New file.
45627
45628 2007-10-03  Bruno Haible  <bruno@clisp.org>
45629
45630         Port the stdio extensions to QNX (untested).
45631         * lib/fseterr.c (fseterr): Add support for QNX.
45632         * lib/fbufmode.c (fbufmode): Likewise.
45633         * lib/freadable.c (freadable): Likewise.
45634         * lib/fwritable.c (fwritable): Likewise.
45635         * lib/freading.c (freading): Likewise.
45636         * lib/fwriting.c (fwriting): Likewise.
45637         * lib/freadahead.c (freadahed): Likewise.
45638         * lib/fpurge.c (fpurge): Likewise.
45639         * lib/fseeko.c (rpl_fseeko): Likewise.
45640
45641 2007-10-03  Bruno Haible  <bruno@clisp.org>
45642             Jim Meyering  <jim@meyering.net>
45643             Eric Blake  <ebb9@byu.net>
45644
45645         * doc/relocatable.texi: Use @command instead of @program.
45646
45647 2007-10-02  Jim Meyering  <jim@meyering.net>
45648
45649         Perform one more "_.h" -> ".in.h" substitution.
45650         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45651         instead of unistd_.h here, too.
45652
45653 2007-10-01  Bruno Haible  <bruno@clisp.org>
45654
45655         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45656         Needed for the alloca-opt module.
45657
45658 2007-09-30  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45661         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45662         alloca_.h.
45663         * lib/argz.in.h: Renamed from lib/argz_.h.
45664         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45665         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45666         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45667         byteswap_.h.
45668         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45669         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45670         dirent_.h.
45671         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45672         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45673         fcntl_.h.
45674         * lib/float.in.h: Renamed from lib/float_.h.
45675         * modules/float (Files, Makefile.am): Use float.in.h instead of
45676         float_.h.
45677         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45678         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45679         fnmatch_.h.
45680         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45681         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45682         getopt_.h.
45683         * lib/glob.in.h: Renamed from lib/glob_.h.
45684         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45685         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45686         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45687         iconv_.h.
45688         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45689         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45690         inttypes_.h.
45691         * lib/locale.in.h: Renamed from lib/locale_.h.
45692         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45693         locale_.h.
45694         * lib/math.in.h: Renamed from lib/math_.h.
45695         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45696         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45697         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45698         of netinet_in_.h. Add dependency.
45699         * lib/poll.in.h: Renamed from lib/poll_.h.
45700         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45701         * lib/search.in.h: Renamed from lib/search_.h.
45702         * modules/search (Files, Makefile.am): Use search.in.h instead of
45703         search_.h.
45704         * lib/signal.in.h: Renamed from lib/signal_.h.
45705         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45706         _signal.h.
45707         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45708         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45709         stdbool_.h.
45710         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45711         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45712         stdint_.h.
45713         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45714         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45715         stdio_.h.
45716         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45717         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45718         stdlib_.h.
45719         * lib/string.in.h: Renamed from lib/string_.h.
45720         * modules/string (Files, Makefile.am): Use string.in.h instead of
45721         string_.h.
45722         * doc/gnulib-tool.texi (Initial import): Update.
45723         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45724         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45725         of sys_select_.h. Add dependency.
45726         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45727         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45728         of sys_socket_.h.
45729         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45730         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45731         sys_stat_.h.
45732         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45733         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45734         sys_time_.h.
45735         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45736         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45737         sysexits_.h.
45738         * lib/time.in.h: Renamed from lib/time_.h.
45739         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45740         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45741         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45742         unistd_.h.
45743         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45744         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45745         wchar_.h.
45746         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45747         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45748         wctype_.h.
45749         * build-aux/bootstrap (slurp): Update.
45750         * lib/.cppi-disable: Update.
45751
45752 2007-09-30  Bruno Haible  <bruno@clisp.org>
45753
45754         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45755         Needed on BeOS.
45756
45757 2007-09-30  Bruno Haible  <bruno@clisp.org>
45758
45759         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45760
45761 2007-09-29  Bruno Haible  <bruno@clisp.org>
45762
45763         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45764
45765 2007-09-29  Bruno Haible  <bruno@clisp.org>
45766
45767         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45768         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45769         * build-aux/install-reloc: Compile also areadlink.c.
45770         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45771
45772 2007-09-29  Bruno Haible  <bruno@clisp.org>
45773
45774         * gnulib-tool (func_emit_initmacro_done): Indentation.
45775
45776 2007-09-29  Bruno Haible  <bruno@clisp.org>
45777
45778         * README: Add CVS checkout update instructions.
45779         Info from Bob Proulx <bob@proulx.com>.
45780
45781 2007-09-28  Eric Blake  <ebb9@byu.net>
45782
45783         Provide move-if-change.
45784         * build-aux/move-if-change: New file, based on best practice
45785         rather than any canonical upstream location.
45786
45787 2007-09-28  Jim Meyering  <jim@meyering.net>
45788
45789         Fix canonicalize loop-detection corner case.
45790         Do not attempt to stat the symlink values stored via seen_triple.
45791         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45792         on linux-2.6.18, (but not 2.6.22).
45793         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45794         triple_compare.  The former compares dev,ino,filename, while the latter
45795         would actually stat dirname(filename) when dev and ino were equal.
45796         * lib/hash-triple.c: Install <string.h>.
45797         (STREQ): Define.
45798         (triple_compare_ino_str): New function.
45799         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45800
45801 2007-09-28  Eric Blake  <ebb9@byu.net>
45802
45803         Enforce that AC_REPLACE_FUNCS files exist.
45804         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45805         override check for typos.
45806
45807         Fix test-closein on Solaris 10.
45808         * tests/test-closein.c (main): Don't assume stdin can be inherited
45809         closed on all systems.
45810         * tests/test-closein.sh: Likewise.
45811         Reported by Piotr Tarnowski.
45812
45813 2007-09-28  Jim Meyering  <jim@meyering.net>
45814
45815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45816
45817 2007-09-27  Jim Meyering  <jim@meyering.net>
45818
45819         canonicalize: Avoid a false-positive cycle failure.
45820         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45821         Sort.  Remove cycle-check.
45822         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45823         not cycle-check.h.
45824         (seen_triple): New function.
45825         (canonicalize_filename_mode): Use it instead of cycle-check.
45826         * tests/test-canonicalize.c: Add a test for this bug.
45827         * tests/test-canonicalize.sh: Set up and run the test.
45828
45829         New module, file-set, from coreutils.
45830         * modules/file-set: Define it.
45831         * lib/file-set.c, lib/file-set.h: Implement.
45832
45833         New module, hash-triple, from coreutils.
45834         * modules/hash-triple: Define it.
45835         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45836
45837 2007-09-25  Eric Blake  <ebb9@byu.net>
45838
45839         Fix strerror on Interix.
45840         * lib/string_.h (strerror): Declare replacement.
45841         * doc/functions/strerror.texi (strerror): Document the Interix
45842         shortcoming.
45843         * modules/string (Makefile.am): Support new hooks.
45844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45845         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45846         gl_FUNC_STRERROR_SEPARATE.
45847         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45848         * lib/strerror.c (rpl_strerror): Provide replacement.
45849         * modules/strerror (Depends-on): Add string.
45850         (configure.ac): Detect use of module.
45851         * tests/test-strerror.c: New file.
45852         * modules/strerror-tests: New test module.
45853         * modules/argp (Depends-on): Add strerror.
45854         * modules/error (Depends-on): Likewise.
45855         Reported by Martin Koeppe.
45856
45857 2007-09-24  Bruno Haible  <bruno@clisp.org>
45858
45859         * README: Update git instructions.
45860
45861 2007-09-24  Eric Blake  <ebb9@byu.net>
45862
45863         Revert fpending breakage from 2007-09-08.
45864         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45865         __fpending.c.
45866
45867 2007-09-24  Jim Meyering  <jim@meyering.net>
45868
45869         filenamecat.c: Add a test.
45870         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45871         showing how the function works when DIR is the empty string.
45872
45873 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45874
45875         * tests/test-canonicalize.sh: Turn on executable bit.
45876
45877 2007-09-19  Eric Blake  <ebb9@byu.net>
45878
45879         * README: Update CVS instructions.
45880
45881 2007-09-18  Bruno Haible  <bruno@clisp.org>
45882
45883         * modules/areadlink: New file.
45884         * lib/areadlink.h (areadlink): New declaration.
45885         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45886
45887 2007-09-17  Jim Meyering  <jim@meyering.net>
45888
45889         * lib/savewd.c (ESTALE) [!defined]: Define.
45890         Reported to be required on Interix by Martin Koeppe.
45891
45892 2007-09-17  Bruno Haible  <bruno@clisp.org>
45893
45894         * gnulib-tool (func_version): Use $version.
45895
45896 2007-09-16  Bruno Haible  <bruno@clisp.org>
45897
45898         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45899         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45900         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45901         Reported by Greg Schafer <gschafer@zip.com.au>.
45902
45903 2007-09-15  Bruno Haible  <bruno@clisp.org>
45904
45905         * gnulib-tool (sed): Try a little harder to make bash understand the
45906         alias.
45907         Reported by Bruce Korb <bruce.korb@gmail.com>.
45908
45909 2007-09-13  Eric Blake  <ebb9@byu.net>
45910
45911         * ChangeLog: Remove conflict markers.
45912
45913 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45914
45915         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45916         Reported by Bruno Haible <bruno@clisp.org>.
45917
45918 2007-09-12  Bruno Haible  <bruno@clisp.org>
45919
45920         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45921         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45922         is not defined.
45923
45924 2007-09-12  Eric Blake  <ebb9@byu.net>
45925
45926         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45927         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45928         Autoconf definition.
45929         * modules/euidaccess (Depends-on): Add extensions, for
45930         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45931         * modules/fnmatch (Depends-on): Likewise.
45932         * modules/getaddrinfo (Depends-on): Likewise.
45933         * modules/getdelim (Depends-on): Likewise.
45934         * modules/getline (Depends-on): Likewise.
45935         * modules/getsubopt (Depends-on): Likewise.
45936         * modules/gettext (Depends-on): Likewise.
45937         * modules/group-member (Depends-on): Likewise.
45938         * modules/mbchar (Depends-on): Likewise.
45939         * modules/memmem (Depends-on): Likewise.
45940         * modules/mempcpy (Depends-on): Likewise.
45941         * modules/memrchr (Depends-on): Likewise.
45942         * modules/pagealign_alloc (Depends-on): Likewise.
45943         * modules/readutmp (Depends-on): Likewise.
45944         * modules/stpcpy (Depends-on): Likewise.
45945         * modules/stpncpy (Depends-on): Likewise.
45946         * modules/strchrnul (Depends-on): Likewise.
45947         * modules/strndup (Depends-on): Likewise.
45948         * modules/strsep (Depends-on): Likewise.
45949         * modules/strverscmp (Depends-on): Likewise.
45950         * modules/vasprintf (Depends-on): Likewise.
45951         * modules/wcwidth (Depends-on): Likewise.
45952         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45953         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45954         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45955         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45956         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45957         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45958         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45959         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45960         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45961         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45962         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45963         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45964         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45965         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45966         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45967         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45968         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45969         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45971         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45972         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45973         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45974         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45975         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45976         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45978         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45979         so that lock.m4 can be used in gettext without extensions module.
45980
45981 2007-09-11  Bruno Haible  <bruno@clisp.org>
45982
45983         * m4/isc-posix.m4: Remove file.
45984         Suggested by Eric Blake.
45985
45986 2007-09-11  Eric Blake  <ebb9@byu.net>
45987
45988         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45989
45990 2007-09-10  Bruno Haible  <bruno@clisp.org>
45991
45992         * posix-modules: Fix typo in error message.
45993         Reported by Matt <mkraai@beckman.com>.
45994
45995 2007-09-09  Bruno Haible  <bruno@clisp.org>
45996
45997         * doc/functions/getdelim.texi: Update list of platforms lacking the
45998         function.
45999         * doc/functions/getline.texi: Likewise.
46000
46001 2007-09-09  Jim Meyering  <jim@meyering.net>
46002
46003         * lib/hash.c (hash_initialize): Detect calloc failure.
46004         Reported by Bruno Haible.
46005
46006 2007-09-09  Bruno Haible  <bruno@clisp.org>
46007
46008         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46009         malloc or realloc fails.
46010
46011 2007-09-09  Bruno Haible  <bruno@clisp.org>
46012
46013         * modules/getcwd (Depends-on): Add malloc-posix.
46014         * modules/glob (Depends-on): Likewise.
46015         * modules/putenv (Depends-on): Likewise.
46016         * modules/strdup (Depends-on): Likewise.
46017         * modules/getdelim (Depends-on): Add realloc-posix.
46018         * modules/read-file (Depends-on): Likewise.
46019
46020 2007-09-09  Bruno Haible  <bruno@clisp.org>
46021
46022         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46023         (gl_FUNC_MALLOC_POSIX): Require it.
46024         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46025         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46026         * modules/realloc (Files): Add m4/malloc.m4.
46027         * modules/calloc (Files): Likewise.
46028
46029 2007-09-09  Bruno Haible  <bruno@clisp.org>
46030
46031         * modules/malloc-posix: New file.
46032         * modules/malloc (Depends-on): Add malloc-posix.
46033         * lib/malloc.c: Include errno.h.
46034         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46035         and a POSIX-compatible malloc into a single function. Set ENOMEM
46036         when returning NULL.
46037         * m4/malloc.m4: New file.
46038         * doc/functions/malloc.texi: Mention the malloc-posix module.
46039         * lib/stdlib_.h (malloc): New declaration.
46040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46041         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46042         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46043         and HAVE_MALLOC_POSIX.
46044
46045 2007-09-09  Bruno Haible  <bruno@clisp.org>
46046
46047         * modules/realloc-posix: New file.
46048         * modules/realloc (Depends-on): Add realloc-posix.
46049         * lib/realloc.c: Include errno.h.
46050         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46051         and a POSIX-compatible realloc into a single function. Set ENOMEM
46052         when returning NULL.
46053         * m4/realloc.m4: New file.
46054         * doc/functions/realloc.texi: Mention the realloc-posix module.
46055         * lib/stdlib_.h (realloc): New declaration.
46056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46057         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46058         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46059         and HAVE_REALLOC_POSIX.
46060
46061 2007-09-09  Bruno Haible  <bruno@clisp.org>
46062
46063         * modules/calloc-posix: New file.
46064         * modules/calloc (Depends-on): Add calloc-posix.
46065         * lib/calloc.c: Include errno.h.
46066         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46067         and a POSIX-compatible calloc into a single function. Set ENOMEM
46068         when returning NULL.
46069         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46070         * doc/functions/calloc.texi: Mention the calloc-posix module.
46071         * lib/stdlib_.h (calloc): New declaration.
46072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46073         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46074         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46075         and HAVE_CALLOC_POSIX.
46076
46077 2007-09-09  Bruno Haible  <bruno@clisp.org>
46078
46079         Allow for modules to show an arbitrary notice.
46080         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46081         * gnulib-tool: New option --extract-notice.
46082         (func_usage): Document it.
46083         (sed_extract_prog): Update.
46084         (func_get_notice): New function.
46085         (func_modules_notice): New function.
46086         (func_import, func_create_testdir): Invoke it.
46087         Suggested by Jim Meyering.
46088
46089 2007-09-09  Bruno Haible  <bruno@clisp.org>
46090
46091         * gnulib-tool: New options --verbose, --quiet.
46092         (func_usage): Document them.
46093         (verbose): New variable.
46094         (func_execute_command): New function.
46095         (func_import): Don't show the module list and the file list if
46096         $verbose < 0.
46097         (func_create_testdir): Likewise. Use func_execute_command.
46098         (func_create_megatestdir): Use func_execute_command.
46099
46100 2007-09-08  Bruno Haible  <bruno@clisp.org>
46101
46102         * gnulib-tool (func_import): Prefer rsync over wget when available,
46103         for fetching the PO files.
46104
46105 2007-09-08  Bruno Haible  <bruno@clisp.org>
46106
46107         * posix-modules: New file. Portions copied from gnulib-tool.
46108         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46109
46110 2007-09-08  Jim Meyering  <jim@meyering.net>
46111
46112         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46113         * lib/fpending.h: Rename from __fpending.h.
46114         * lib/fpending.c: Rename from __fpending.c.
46115         Include "fpending.h", not "__fpending.h".
46116         * lib/__fpending.h, lib/__fpending.c: Remove files.
46117         * modules/fpending (Files): Reflect new file names.
46118         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46119
46120 2007-09-08  Bruno Haible  <bruno@clisp.org>
46121
46122         * m4/inttypes-h.m4: Remove stub file.
46123
46124 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46125
46126         * doc/headers/stdint.texi: Discuss #include_next issue.
46127
46128 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46129
46130         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46131
46132 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46133
46134         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46135         in variable name.
46136
46137 2007-09-03  Jim Meyering  <jim@meyering.net>
46138
46139         New module: git-version-gen.
46140         * modules/git-version-gen: New file.
46141
46142         Import changes from coreutils for bootstrap script.
46143
46144         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46145
46146         bootstrap: uses rsync to download the .po files
46147         * build-aux/bootstrap (po_download_command_format): New global.
46148         (download_po_files): Use rsync.
46149         (update_po_files): Don't remove .po files after download,
46150         so future rsync runs can take advantage of the copies.
46151
46152         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46153
46154         Solve the unnecessary-.po-file-regeneration problem once and for all.
46155         * build-aux/bootstrap (download_po_files): New function, renamed from
46156         get_translations.  Now, downloads, but doesn't update LINGUAS.
46157         (update_po_files): New function.
46158
46159         bootstrap: Ignore more.
46160         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46161         uniwidth to e.g., lib/.gitignore.
46162         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46163
46164         * build-aux/bootstrap: New setting: vc_ignore.
46165         (insert_sorted_if_absent): Create $file if absent.
46166         Adapt to new, possibly empty, list: $vc_ignore.
46167
46168         bootstrap: generate more ignorable names
46169         * build-aux/bootstrap (slurp): When generating ignorable names,
46170         also map .sin to .sed, .gperf to .c, and .y to .c.
46171
46172 2007-09-03  Jim Meyering  <jim@meyering.net>
46173
46174         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46175         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46176
46177 2007-09-02  Bruno Haible  <bruno@clisp.org>
46178
46179         Fix mis-recognition of 'mcs' on QNX 6.
46180         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46181         output contains the string "Mono".
46182         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46183         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46184
46185 2007-09-01  Bruno Haible  <bruno@clisp.org>
46186
46187         Fix collision between uniwidth/* and linebreak modules.
46188         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46189         u32_width): Remove declarations.
46190         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46191         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46192         streq3, streq2, streq1, streq0): Remove functions.
46193         (STREQ): Remove macro.
46194         (is_cjk_encoding): Remove function.
46195         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46196         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46197         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46198         * NEWS: Document the change.
46199
46200 2007-09-01  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/streq.h: Add double-inclusion guard.
46203
46204 2007-09-01  Karl Berry  <karl@gnu.org>
46205
46206         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46207
46208 2007-08-28  Jim Meyering  <jim@meyering.net>
46209
46210         Rename mreadlink_with_size to areadlink_with_size.
46211         * NEWS: Document the change.
46212         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46213         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46214         * lib/mreadlink.h: Rename this to...
46215         * lib/areadlink.h: ...this.
46216         * modules/mreadlink-with-size: Rename this to...
46217         * modules/areadlink-with-size: ...this.
46218         * lib/canonicalize.c: Reflect the renaming.
46219         * modules/canonicalize: Likewise.
46220
46221 2007-08-26  Bruno Haible  <bruno@clisp.org>
46222
46223         * gnulib-tool (func_import): When deciding which files to remove,
46224         consider also dangling symbolic links.
46225         Reported by Eric Blake.
46226
46227 2007-08-26  Bruno Haible  <bruno@clisp.org>
46228
46229         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
46230
46231 2007-08-23  Simon Josefsson  <simon@josefsson.org>
46232
46233         * lib/readline.c: Don't include getline.h, the prototype is now
46234         found in stdio.h.
46235
46236 2007-08-23  Jim Meyering  <jim@meyering.net>
46237
46238         Getdelim touchup.
46239         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
46240         around the funlockfile call, since funlockfile never sets errno.
46241         Don't set errno upon failed realloc.
46242
46243 2007-08-22  Eric Blake  <ebb9@byu.net>
46244
46245         Getline touchups.
46246         * lib/getdelim.c (getdelim): Revert regression that required *n to
46247         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
46248         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
46249         getdelim, rather than whether implementation is missing.
46250         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
46251         * lib/stdio_.h (getline): Also declare if replacement is
46252         required.
46253         * doc/functions/getdelim.texi: New file.
46254         * doc/functions/getline.texi: Likewise.
46255         * doc/gnulib.texi (Function Substitutes): Add new files.
46256         Reported by Bruno Haible.
46257
46258 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
46259
46260         * users.txt: Add Guile.
46261
46262 2007-08-22  Eric Blake  <ebb9@byu.net>
46263
46264         * tests/test-getdelim.c (main): Use remove, not unlink.
46265         * tests/test-getline.c (main): Likewise.
46266
46267         Move getline and getdelim into stdio.h, per POSIX 200x.
46268         * modules/getline (Files): Remove getline.h.
46269         (Depends-on): Add stdio.
46270         (configure.ac): Add module indicator.
46271         * modules/getdelim (Files): Remove getdelim.h.
46272         (Depends-on): Add stdio.
46273         (configure.ac): Add module indicator.
46274         * modules/stdio (Makefile.am): Work with new indicators.
46275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46276         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
46277         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46278         * lib/getdelim.h: Delete.
46279         * lib/getline.h: Delete.
46280         * lib/stdio_.h (getdelim, getline): Declare.
46281         * modules/getdelim-tests: New module.
46282         * modules/getline-tests: Likewise.
46283         * tests/test-getdelim.c: New file.
46284         * tests/test-getline.c: Likewise.
46285         * NEWS: Document the change.
46286         * lib/getline.c: Update choice of header.
46287         * lib/csharpcomp.c: Likewise.
46288         * lib/getpass.c: Likewise.
46289         * lib/javacomp.c: Likewise.
46290         * lib/javaversion.c: Likewise.
46291         * lib/yesno.c: Likewise.
46292         * lib/getdelim.c: Likewise.
46293         (getdelim): Set errno on failure, and avoid memory leak.
46294
46295 2007-08-19  Bruno Haible  <bruno@clisp.org>
46296
46297         * modules/closein (Depends-on): Add freadahead.
46298         * lib/closein.c: Include freadahead.h.
46299         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
46300         is zero.
46301
46302 2007-08-19  Bruno Haible  <bruno@clisp.org>
46303
46304         * modules/freadahead-tests: New file.
46305         * tests/test-freadahead.sh: New file.
46306         * tests/test-freadahead.c: New file.
46307
46308         * modules/freadahead: New file.
46309         * lib/freadahead.h: New file.
46310         * lib/freadahead.c: New file.
46311         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
46312         fbufmode, fpurge, freadable, fwritable.
46313
46314 2007-08-19  Eric Blake  <ebb9@byu.net>
46315
46316         Test yesno in combination with closein.
46317         * lib/yesno.c (yesno): Document use of stdin.
46318         * modules/yesno-tests (Files): New module.
46319         * tests/test-yesno.c (main): New file.
46320         * tests/test-yesno.sh: Likewise.
46321
46322 2007-08-19  Bruno Haible  <bruno@clisp.org>
46323
46324         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
46325         * lib/fseeko.c (rpl_fseeko): Likewise.
46326         * lib/fseterr.c (fseterr): Likewise.
46327
46328 2007-08-19  Bruno Haible  <bruno@clisp.org>
46329
46330         * tests/test-lseek.c (main): Disable a test for BeOS.
46331         * doc/functions/lseek.texi: Document the BeOS bug.
46332
46333 2007-08-19  Bruno Haible  <bruno@clisp.org>
46334             Eric Blake  <ebb9@byu.net>
46335
46336         * lib/lseek.c: Include <sys/stat.h>.
46337         (rpl_lseek): Add workaround code also for Unix platforms.
46338         Needed for BeOS.
46339         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
46340         * doc/functions/lseek.texi: Document BeOS definiency.
46341
46342 2007-08-18  Bruno Haible  <bruno@clisp.org>
46343
46344         * modules/fstrcmp-tests: New file.
46345         * tests/test-fstrcmp.c: New file.
46346
46347 2007-08-18  Bruno Haible  <bruno@clisp.org>
46348
46349         * modules/fstrcmp: New file, from GNU gettext with modifications.
46350         * lib/fstrcmp.h: New file, from GNU gettext.
46351         * lib/fstrcmp.c: New file, from GNU gettext.
46352         * MODULES.html.sh (String handling): Add fstrcmp.
46353
46354 2007-08-18  Bruno Haible  <bruno@clisp.org>
46355
46356         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
46357         'bool'.
46358         (diag, compareseq): Remove const from the ctxt argument.
46359         (USE_HEURISTIC): Undefine at the end.
46360
46361 2007-08-18  Jim Meyering  <jim@meyering.net>
46362
46363         New file: lib/idcache.h
46364         * NEWS: Mention the addition.
46365         * modules/idcache (Files): Add lib/idcache.h
46366         * lib/idcache.c: Include "idcache.h".
46367         Don't include <sys/types.h>.
46368         Add a FIXME comment.
46369         Move file-scoped "static" declarations to the top.
46370         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
46371
46372 2007-08-17  Bruno Haible  <bruno@clisp.org>
46373         and Paul Eggert  <eggert@cs.ucla.edu>
46374
46375         * MODULES.html.sh: Add diffseq.
46376         * modules/diffseq: New file.
46377         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
46378         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
46379
46380 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46381
46382         Import changes from coreutils for bootstrap script.
46383
46384         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
46385
46386         * build-aux/bootstrap (slurp): Work even in environments where
46387         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
46388         current code does not slurp files whose names start with ".", and
46389         this looks like it might be a troublesome area.
46390
46391         2007-07-11  Jim Meyering  <jim@meyering.net>
46392
46393         If there's a GPL vN copyright comment, require that N == 3.
46394
46395         2007-07-08  Jim Meyering  <jim@meyering.net>
46396
46397         Run the coreutils-specific code only if tests/Makefile.am.in exists.
46398         * build-aux/bootstrap (mam_template): Move definition out of loop.
46399
46400         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
46401
46402         * build-aux/bootstrap (symlink_to_dir): Rename function from
46403         symlink_to_gnulib.  Add a directory parameter.  Update all
46404         callers.
46405         (cp_mark_as_generated): Also check for -- and link to -- files in
46406         gl/.
46407
46408         2007-07-08  Jim Meyering  <jim@meyering.net>
46409
46410         Adapt to deeper hierarchy in gnulib.
46411         * build-aux/bootstrap (symlink_to_dir): If the destination
46412         directory doesn't exist, create it. This is required at least for
46413         "lib/uniwidth/cjk.h".
46414
46415         2007-05-15  Jim Meyering  <jim@meyering.net>
46416
46417         * build-aux/bootstrap: Now that generated Makefile.am files
46418         are no longer under version control, they must be created at
46419         bootstrap time.
46420
46421 2007-08-14  Ben Pfaff  <blp@gnu.org>
46422
46423         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
46424
46425 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46426
46427         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
46428         given the changes below.
46429         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
46430         even on hosts that have padding bits beyond the supported 64.
46431
46432 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46433
46434         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
46435         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
46436         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
46437         depends on it.
46438         (xstrtol_error): Remove.
46439         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
46440         but with a different signature.
46441         (ATTRIBUTE_NORETURN, __attribute__): New macros.
46442         * lib/xstrtol-error.c: Include exitfail.h.
46443         (xstrtol_fatal): New function, with a different signature from the
46444         old xstrtol_error, so that the caller need not worry about passing
46445         in an exit status, or about storage management of the option argument.
46446         (xstrtol_error): Now a static function.  Redo signature to
46447         implement xstrtol_fatal.  Output the correct number of hyphens in
46448         front of the option so that the caller need not worry about
46449         storage management.
46450         (N_): New macro.
46451         (_): Remove; not used now.
46452         * modules/xstrtol: Depend on getopt.
46453         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
46454         of old STRTOL_FATAL_ERROR macro.
46455         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
46456         of test program.
46457         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
46458         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
46459
46460 2007-08-08  Eric Blake  <ebb9@byu.net>
46461
46462         * lib/xstrtol-error.c: Add missing include.
46463
46464         Move xstrtol messages into gnulib domain, when --pobase is used.
46465         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
46466         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
46467         * modules/xstrtol (Files): Distribute new file.
46468         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
46469         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
46470         * tests/test-xstrtol.c: ...into new file.
46471         * tests/test-xstrtoul.c: Also test xstrtoul.
46472         * tests/test-xstrtoimax.c: Also test xstrtoimax.
46473         * tests/test-xstrtoumax.c: Also test xstrtoumax.
46474         * tests/test-xstrtol.sh: Drive the tests.
46475         * tests/test-xstrtoimax.sh: Likewise.
46476         * tests/test-xstrtoumax.sh: Likewise.
46477         * modules/xstrtol-tests: New module.
46478         * modules/xstrtoimax-tests: Likewise.
46479         * modules/xstrtoumax-tests: Likewise.
46480
46481 2007-08-08  Jim Meyering  <jim@meyering.net>
46482
46483         New function: mfile_name_concat.
46484         * lib/filenamecat.c (mfile_name_concat): New function, just like
46485         file_name_concat, but return NULL upon failure rather than exiting
46486         with a diagnostic.
46487         * lib/filenamecat.h: Declare it.
46488
46489 2007-08-07  Bruno Haible  <bruno@clisp.org>
46490
46491         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
46492         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
46493         warning from gcc.
46494         Reported by Eric Blake.
46495
46496 2007-08-07  Simon Josefsson  <simon@josefsson.org>
46497
46498         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
46499         * modules/crypto/arcfour (License): Likewise.
46500         * modules/crypto/des-tests (License): Likewise.
46501         * modules/crypto/gc-arctwo-tests (License): Likewise.
46502         * modules/crypto/gc-des-tests (License): Likewise.
46503         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
46504         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
46505         * modules/crypto/gc-md2-tests (License): Likewise.
46506         * modules/crypto/gc-md4-tests (License): Likewise.
46507         * modules/crypto/gc-md5-tests (License): Likewise.
46508         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
46509         * modules/crypto/gc-rijndael-tests (License): Likewise.
46510         * modules/crypto/gc-sha1-tests (License): Likewise.
46511         * modules/crypto/gc-tests (License): Likewise.
46512         * modules/crypto/hmac-md5 (License): Likewise.
46513         * modules/crypto/hmac-sha1 (License): Likewise.
46514         * modules/crypto/md2-tests (License): Likewise.
46515         * modules/crypto/md4-tests (License): Likewise.
46516         * modules/crypto/md5 (License): Likewise.
46517         * modules/crypto/rijndael (License): Likewise.
46518         * modules/crypto/sha1 (License): Likewise.
46519         * modules/memxor (License): Likewise.
46520
46521 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46522         and Bruno Haible  <bruno@clisp.org>
46523
46524         * NEWS: Describe interface changes to human, xstrtol.
46525         * lib/human.h: Include <xstrtol.h>.
46526         (human_options): Return enum strtol_error, not int.  Remove
46527         bool arg; take int * instead.
46528         * lib/human.c: Don't include "gettext.h".
46529         (_): Remove; no longer used.
46530         Don't include <xstrtol.h>, since human.h does it.
46531         (human_options): Adjust to abovementioned interface changes.
46532         Do not report error to stderr; that's now the caller's
46533         responsibility.
46534         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
46535         interface change.
46536         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
46537         Str, Argument_type_string.  All uses changed.  Put " argument"
46538         in diagnostics to make them clearer.  Change wording of suffix
46539         message for clarity.
46540         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
46541         Argument_type_string.
46542         (STRTOL_FATAL_WARN): Remove; no longer used.
46543         * modules/human (Depends-on): Remove gettext-h.
46544
46545 2007-08-06  Simon Josefsson  <simon@josefsson.org>
46546
46547         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
46548
46549 2007-07-31  Bruno Haible  <bruno@clisp.org>
46550
46551         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
46552         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
46553         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
46554
46555 2007-07-31  Bruno Haible  <bruno@clisp.org>
46556
46557         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46558         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46559
46560 2007-07-30  Bruno Haible  <bruno@clisp.org>
46561
46562         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46563         * modules/c-ctype (License): Likewise.
46564         * modules/c-strcase (License): Likewise.
46565         * modules/check-version (License): Likewise.
46566         * modules/iconv (License): Likewise.
46567         * modules/iconv_open (License): Likewise.
46568         * modules/read-file (License): Likewise.
46569         * modules/striconv (License): Likewise.
46570         * modules/strverscmp (License): Likewise.
46571         * modules/vasprintf (License): Likewise.
46572         * modules/crypto/des (License): Likewise.
46573         * modules/crypto/gc (License): Likewise.
46574         * modules/crypto/gc-arcfour (License): Likewise.
46575         * modules/crypto/gc-arctwo (License): Likewise.
46576         * modules/crypto/gc-des (License): Likewise.
46577         * modules/crypto/gc-hmac-md5 (License): Likewise.
46578         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46579         * modules/crypto/gc-md2 (License): Likewise.
46580         * modules/crypto/gc-md4 (License): Likewise.
46581         * modules/crypto/gc-md5 (License): Likewise.
46582         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46583         * modules/crypto/gc-random (License): Likewise.
46584         * modules/crypto/gc-rijndael (License): Likewise.
46585         * modules/crypto/gc-sha1 (License): Likewise.
46586         * modules/crypto/md2 (License): Likewise.
46587         * modules/crypto/md4 (License): Likewise.
46588
46589 2007-07-30  Jim Meyering  <jim@meyering.net>
46590
46591         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46592         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46593         it has valid stat data.  This bug would cause du not to count the
46594         sizes of inaccessible directories.
46595         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46596         in <http://bugzilla.redhat.com/250077>.
46597
46598 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46599             Bruno Haible  <bruno@clisp.org>
46600
46601         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46602         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46603         #include_next, gives a diagnostic about it, but reports no error in
46604         the exit code.
46605         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46606
46607 2007-07-24  Ben Pfaff  <blp@gnu.org>
46608
46609         Improve name: "count-one-bits" is better than "popcount".
46610         * MODULES.html.sh: Update name.
46611         * lib/popcount.h: Renamed lib/count-one-bits.h.
46612         (popcount): Renamed count_one_bits.
46613         (popcountl): Renamed count_one_bits_l.
46614         (popcountll): Renamed count_one_bits_ll.
46615         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46616         * modules/popcount: Renamed module/count-one-bits.
46617         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46618         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46619
46620 2007-07-23  Ben Pfaff  <blp@gnu.org>
46621
46622         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46623         better code generation, and add U to large constants to avoid
46624         warnings, in non-GCC case.
46625         Suggested by Bruno Haible.
46626
46627 2007-07-23  Ben Pfaff  <blp@gnu.org>
46628
46629         * lib/popcount.h: Use verify_true instead of if...abort.
46630         * modules/popcount: Depend on verify module.
46631         Suggested by Jim Meyering.
46632
46633 2007-07-23  Bruno Haible  <bruno@clisp.org>
46634
46635         * gnulib-tool (func_import): Create a .cvsignore file also when the
46636         directory is not yet in CVS but the toplevel directory is. When
46637         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46638         Reported by Karl Berry.
46639
46640 2007-07-22  Ben Pfaff  <blp@gnu.org>
46641
46642         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46643         case.
46644         Suggested by Eric Blake.
46645
46646 2007-07-22  Ben Pfaff  <blp@gnu.org>
46647
46648         New module: popcount.
46649         * MODULES.html.sh: Add popcount.
46650         * modules/popcount: New file.
46651         * modules/popcount-tests: New file.
46652         * tests/test-popcount.c: New file.
46653         * lib/popcount.h: New file.
46654         * m4/popcount.m4: New file.
46655
46656 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46657
46658         * build-aux/announce-gen: Update to GPLv3.
46659
46660         * build-aux/config.guess: Update from config.
46661
46662 2007-07-21  Bruno Haible  <bruno@clisp.org>
46663
46664         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46665         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46666
46667 2007-07-20  Jim Meyering  <jim@meyering.net>
46668
46669         * check-module: Diagnose a self-dependency.
46670
46671 2007-07-19  Bruno Haible  <bruno@clisp.org>
46672
46673         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46674         empty.
46675         Reported by Eric Blake.
46676
46677 2007-07-18  Bruno Haible  <bruno@clisp.org>
46678
46679         * gnulib-tool: New options --po-base, --po-domain.
46680         (func_usage): Document them.
46681         (pobase, po_domain): New variables.
46682         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46683         DEFAULT_TEXT_DOMAIN.
46684         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46685         (func_import): Consider pobase and po_domain. Create a po/ directory.
46686         (func_create_testdir): Set pobase and po_domain to empty.
46687         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46688         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46689
46690 2007-07-18  Bruno Haible  <bruno@clisp.org>
46691
46692         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46693         EXTRA_DIST augmentation for files in build-aux/.
46694
46695 2007-07-16  Bruno Haible  <bruno@clisp.org>
46696
46697         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46698         * modules/getdelim (License): Likewise.
46699
46700 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46701
46702         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46703         * modules/d-type (License): Likewise.
46704         * modules/extensions (License): Likewise.
46705         * modules/fnmatch (License): Likewise.
46706         * modules/fseeko (License): Likewise.
46707         * modules/getaddrinfo (License): Likewise.
46708         * modules/getline (License): Likewise.
46709         * modules/getlogin_r (License): Likewise.
46710         * modules/getpass (License): Likewise.
46711         * modules/gettimeofday (License): Likewise.
46712         * modules/glob (License): Likewise.
46713         * modules/inet_ntop (License): Likewise.
46714         * modules/malloc (License): Likewise.
46715         * modules/malloca (License): Likewise.
46716         * modules/memmem (License): Likewise.
46717         * modules/mempcpy (License): Likewise.
46718         * modules/memset (License): Likewise.
46719         * modules/minmax (License): Likewise.
46720         * modules/mktime (License): Likewise.
46721         * modules/netinet_in (License): Likewise.
46722         * modules/pathmax (License): Likewise.
46723         * modules/poll (License): Likewise.
46724         * modules/regex (License): Likewise.
46725         * modules/snprintf (License): Likewise.
46726         * modules/stdbool (License): Likewise.
46727         * modules/stdint (License): Likewise.
46728         * modules/stdio (License): Likewise.
46729         * modules/strcase (License): Likewise.
46730         * modules/strcasestr (License): Likewise.
46731         * modules/strdup (License): Likewise.
46732         * modules/string (License): Likewise.
46733         * modules/strndup (License): Likewise.
46734         * modules/strnlen (License): Likewise.
46735         * modules/strpbrk (License): Likewise.
46736         * modules/strptime (License): Likewise.
46737         * modules/strsep (License): Likewise.
46738         * modules/sys_select (License): Likewise.
46739         * modules/sys_socket (License): Likewise.
46740         * modules/sys_stat (License): Likewise.
46741         * modules/sys_time (License): Likewise.
46742         * modules/time (License): Likewise.
46743         * modules/time_r (License): Likewise.
46744         * modules/timegm (License): Likewise.
46745         * modules/unistd (License): Likewise.
46746         * modules/vsnprintf (License): Likewise.
46747         * modules/wctype (License): Likewise.
46748
46749 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46750
46751         * modules/argz (License): LGPLv2+.
46752
46753 2007-07-15  Karl Berry  <karl@gnu.org>
46754
46755         * doc/gnulib.texi: revise node structure per new fdl.texi.
46756
46757 2007-07-14  Bruno Haible  <bruno@clisp.org>
46758
46759         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46760         the output file.
46761         * lib/uniname/uninames.h: Regenerated.
46762
46763 2007-07-14  Karl Berry  <karl@gnu.org>
46764
46765         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46766         omitting sectioning and index commands.
46767
46768 2007-07-13  Bruno Haible  <bruno@clisp.org>
46769
46770         New gnulib-tool option --more-symlinks.
46771         * gnulib-tool (func_usage): Document --more-symlinks.
46772         (do_copyrights): New variable.
46773         Recognize option --more-symlinks.
46774         (func_import): Don't add a copyright notice transform to
46775         sed_transform_lib_file if do_copyrights is empty.
46776
46777 2007-07-13  Bruno Haible  <bruno@clisp.org>
46778
46779         * lib/vasnprintf.c (decimal_point_char): Define also if
46780         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46781         && !NEED_PRINTF_DIRECTIVE_A.
46782         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46783         Gary V. Vaughan <gary@gnu.org>.
46784
46785 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46786
46787         * lib/inttypes_.h: Undo previous change, since it was fixed
46788         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46789
46790 2007-07-13  Bruno Haible  <bruno@clisp.org>
46791
46792         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46793         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46794
46795 2007-07-13  Jim Meyering  <jim@meyering.net>
46796
46797         df: Don't fail for Tru64's "file-on-file mount".
46798         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46799         so we fall through and use statfs instead.  Details here:
46800         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46801         Reported by Albert Chin.
46802
46803 2007-07-13  Bruno Haible  <bruno@clisp.org>
46804
46805         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46806         * modules/configmake (License): Likewise.
46807         * modules/gettext (License): Likewise.
46808         * modules/gettext-h (License): Likewise.
46809         * modules/include_next (License): Likewise.
46810         * modules/link-warning (License): Likewise.
46811         * modules/localcharset (License): Likewise.
46812         * modules/localename (License): Likewise.
46813         * modules/lock (License): Likewise.
46814         * modules/relocatable-lib-lgpl (License): Likewise.
46815         * modules/size_max (License): Likewise.
46816         * modules/vasnprintf (License): Likewise.
46817         * modules/wchar (License): Likewise.
46818         * modules/xsize (License): Likewise.
46819
46820 2007-07-13  Bruno Haible  <bruno@clisp.org>
46821
46822         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46823         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46824
46825 2007-07-12  Bruno Haible  <bruno@clisp.org>
46826
46827         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46828         in the modules files.
46829
46830 2007-07-11  Karl Berry  <karl@gnu.org>
46831
46832         * MODULES.html.sh (func_module): use
46833          sed -e '\|^'"${includefile}"'$|d'
46834          instead of /.../d, to avoid errors on $includefile's containing /.
46835
46836 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46837
46838         * gnulib-tool (func_import): Avoid duplication of --avoid
46839         statements
46840         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46841         names to `_' in variable names.
46842
46843 2007-07-10  Eric Blake  <ebb9@byu.net>
46844
46845         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46846         * NEWS: Document this change.
46847
46848 2007-07-08  Bruno Haible  <bruno@clisp.org>
46849
46850         Update to Unicode 5.0.
46851         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46852         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46853         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46854         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46855         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46856         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46857         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46858         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46859         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46860         U+10A3F, U+1D242..U+1D244.
46861         (nonspacing_table_ind): Update.
46862         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46863         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46864
46865 2007-07-08  Bruno Haible  <bruno@clisp.org>
46866
46867         Update to Unicode 5.0.
46868         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46869         code transform. Extend the name index field of unicode_name_to_code and
46870         unicode_code_to_name from 16 to 24 bits.
46871         * lib/uniname/uniname.c (unicode_character_name,
46872         unicode_name_character): Add the range 0x12xxx to the code transform.
46873         * lib/uniname/uninames.h: Regenerated.
46874         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46875
46876 2007-07-07  Bruno Haible  <bruno@clisp.org>
46877
46878         * modules/wcwidth-tests: New file.
46879         * tests/test-wcwidth.c: New file.
46880
46881         Work around MacOS X wcwidth() bug.
46882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46883         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46884         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46885         original wcwidth in non-UTF-8 locales.
46886         * modules/wcwidth (Depends-on): Add localcharset, streq,
46887         uniwidth/width.
46888         * doc/functions/wcwidth.texi: Update.
46889
46890 2007-07-07  Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46893         (wcwidth): New declaration.
46894         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46895         macros.
46896         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46897         here. Prepare for creating <wchar.h> unconditionally.
46898         * modules/wchar (Depends-on): Add link-warning.
46899         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46900         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46901         * lib/wcwidth.h: Remove file.
46902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46903         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46904         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46905         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46906         (Include): Replace wcwidth.h with <wchar.h>.
46907         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46908         * lib/mbchar.h: Don't include wcwidth.h.
46909         * lib/mbswidth.c: Likewise.
46910         * NEWS: Mention the change.
46911
46912 2007-07-07  Bruno Haible  <bruno@clisp.org>
46913
46914         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46915         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46916         definition with an external declaration.
46917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46918         defined as a function. Remove AC_C_INLINE requirement.
46919         * modules/wcwidth (Files): Add lib/wcwidth.c.
46920         (Makefile.am): Remove redundant statement.
46921
46922 2007-07-07  Bruno Haible  <bruno@clisp.org>
46923
46924         * MODULES.html.sh (Unicode string functions): Add the new modules.
46925
46926         * tests/uniwidth/test-u32-strwidth.c: New file.
46927         * modules/uniwidth/u32-strwidth-tests: New file.
46928
46929         * lib/uniwidth/u32-strwidth.c: New file.
46930         * modules/uniwidth/u32-strwidth: New file.
46931
46932         * tests/uniwidth/test-u16-strwidth.c: New file.
46933         * modules/uniwidth/u16-strwidth-tests: New file.
46934
46935         * lib/uniwidth/u16-strwidth.c: New file.
46936         * modules/uniwidth/u16-strwidth: New file.
46937
46938         * tests/uniwidth/test-u8-strwidth.c: New file.
46939         * modules/uniwidth/u8-strwidth-tests: New file.
46940
46941         * lib/uniwidth/u8-strwidth.c: New file.
46942         * modules/uniwidth/u8-strwidth: New file.
46943
46944         * tests/uniwidth/test-u32-width.c: New file.
46945         * modules/uniwidth/u32-width-tests: New file.
46946
46947         * lib/uniwidth/u32-width.c: New file.
46948         * modules/uniwidth/u32-width: New file.
46949
46950         * tests/uniwidth/test-u16-width.c: New file.
46951         * modules/uniwidth/u16-width-tests: New file.
46952
46953         * lib/uniwidth/u16-width.c: New file.
46954         * modules/uniwidth/u16-width: New file.
46955
46956         * tests/uniwidth/test-u8-width.c: New file.
46957         * modules/uniwidth/u8-width-tests: New file.
46958
46959         * lib/uniwidth/u8-width.c: New file.
46960         * modules/uniwidth/u8-width: New file.
46961
46962         * tests/uniwidth/test-uc_width.c: New file.
46963         * modules/uniwidth/width-tests: New file.
46964
46965         * lib/uniwidth/width.c: New file, from GNU libiconv.
46966         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46967         * modules/uniwidth/width: New file.
46968
46969         * lib/uniwidth.h: New file, from GNU libiconv.
46970         * modules/uniwidth/base: New file.
46971
46972 2007-07-07  Bruno Haible  <bruno@clisp.org>
46973
46974         * lib/uniname.h: New file, from GNU gettext.
46975         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46976         * lib/uniname/uninames.h: New file, from GNU gettext.
46977         * lib/uniname/uniname.c: New file, from GNU gettext.
46978         * tests/uniname/test-uninames.sh: New file.
46979         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46980         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46981         * modules/uniname/base: New file.
46982         * modules/uniname/uniname: New file.
46983         * modules/uniname/uniname-tests: New file.
46984         * MODULES.html.sh (Unicode string functions): Add the new modules.
46985
46986 2007-07-06  Bruno Haible  <bruno@clisp.org>
46987
46988         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46989
46990 2007-07-06  Bruno Haible  <bruno@clisp.org>
46991
46992         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46993         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46994         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46995         include <sys/time.h>.
46996         Reported by Eric Blake.
46997
46998 2007-07-06  Eric Blake  <ebb9@byu.net>
46999
47000         Fix testing canonicalize on cygwin.
47001         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47002         Revert patch from 2007-06-19.
47003         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47004         canonicalize module is also in use.
47005         * tests/test-canonicalize.c: New file.
47006         * tests/test-canonicalize.sh: Likewise.
47007         * modules/canonicalize-tests: Likewise.
47008
47009 2007-07-06  Jim Meyering  <jim@meyering.net>
47010
47011         * lib/getugroups.c (getugroups): Detect getgrent failure.
47012         Adjust comment to reflect reality: this function may return -1.
47013
47014 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47015
47016         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47017         the new TP address.
47018         (usage): Fix typo
47019         (gnulib_mk): New variable.
47020
47021 2007-07-05  Jim Meyering  <jim@meyering.net>
47022
47023         Don't let endgrent clobber errno, no matter how improbable.
47024         * lib/getugroups.c (getugroups): Save and restore errno around
47025         endgrent call.
47026
47027         Close the group DB even when failing with 2^31 or more members.
47028         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47029
47030 2007-07-04  Jim Meyering  <jim@meyering.net>
47031
47032         * lib/getugroups.h: New file.
47033         * lib/getugroups.c: Include "getugroups.h".
47034         Remove uses of "register" keyword.
47035         Move local variable, "cp", down into scope where used.
47036         Give "username" parameter the "const" attribute.
47037         * modules/getugroups (Files): Add lib/getugroups.h
47038
47039 2007-07-04  Karl Berry  <karl@gnu.org>
47040
47041         * MODULES.html.sh (func_all_modules): Complete rename of
47042         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47043
47044 2007-07-02  Bruno Haible  <bruno@clisp.org>
47045
47046         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47047         mode, when inttypes.h comes from gnulib.
47048         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47049
47050 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47051
47052         * NEWS: Mention lgpl module name change.
47053
47054         * modules/lgpl-2.1: Renamed from lgpl.
47055
47056         * NEWS: Mention gpl module name change.
47057
47058         * modules/gpl-3.0: New file, based on gpl-2.0.
47059
47060         * modules/gpl-2.0: Renamed from gpl.
47061
47062         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47063         doc/gpl-2.0.texi.
47064
47065 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47066
47067         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47068         #define __STDC_LIMIT_MACROS temporarily while including
47069         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47070         Problem reported by Joel E. Denny in
47071         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47072
47073 2007-07-01  Bruno Haible  <bruno@clisp.org>
47074
47075         * lib/unistdio.h: New file.
47076         * lib/unistdio/u-asnprintf.h: New file.
47077         * lib/unistdio/u-asprintf.h: New file.
47078         * lib/unistdio/u-printf-args.c: New file.
47079         * lib/unistdio/u-printf-args.h: New file.
47080         * lib/unistdio/u-printf-parse.h: New file.
47081         * lib/unistdio/u-snprintf.h: New file.
47082         * lib/unistdio/u-sprintf.h: New file.
47083         * lib/unistdio/u-vasprintf.h: New file.
47084         * lib/unistdio/u-vsnprintf.h: New file.
47085         * lib/unistdio/u-vsprintf.h: New file.
47086         * lib/unistdio/ulc-asnprintf.c: New file.
47087         * lib/unistdio/ulc-asprintf.c: New file.
47088         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47089         * lib/unistdio/ulc-printf-parse.c: New file.
47090         * lib/unistdio/ulc-snprintf.c: New file.
47091         * lib/unistdio/ulc-sprintf.c: New file.
47092         * lib/unistdio/ulc-vasnprintf.c: New file.
47093         * lib/unistdio/ulc-vasprintf.c: New file.
47094         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47095         * lib/unistdio/ulc-vsnprintf.c: New file.
47096         * lib/unistdio/ulc-vsprintf.c: New file.
47097         * lib/unistdio/u8-asnprintf.c: New file.
47098         * lib/unistdio/u8-asprintf.c: New file.
47099         * lib/unistdio/u8-printf-parse.c: New file.
47100         * lib/unistdio/u8-snprintf.c: New file.
47101         * lib/unistdio/u8-sprintf.c: New file.
47102         * lib/unistdio/u8-vasnprintf.c: New file.
47103         * lib/unistdio/u8-vasprintf.c: New file.
47104         * lib/unistdio/u8-vsnprintf.c: New file.
47105         * lib/unistdio/u8-vsprintf.c: New file.
47106         * lib/unistdio/u8-u8-asnprintf.c: New file.
47107         * lib/unistdio/u8-u8-asprintf.c: New file.
47108         * lib/unistdio/u8-u8-snprintf.c: New file.
47109         * lib/unistdio/u8-u8-sprintf.c: New file.
47110         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47111         * lib/unistdio/u8-u8-vasprintf.c: New file.
47112         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47113         * lib/unistdio/u8-u8-vsprintf.c: New file.
47114         * lib/unistdio/u16-asnprintf.c: New file.
47115         * lib/unistdio/u16-asprintf.c: New file.
47116         * lib/unistdio/u16-printf-parse.c: New file.
47117         * lib/unistdio/u16-snprintf.c: New file.
47118         * lib/unistdio/u16-sprintf.c: New file.
47119         * lib/unistdio/u16-vasnprintf.c: New file.
47120         * lib/unistdio/u16-vasprintf.c: New file.
47121         * lib/unistdio/u16-vsnprintf.c: New file.
47122         * lib/unistdio/u16-vsprintf.c: New file.
47123         * lib/unistdio/u16-u16-asnprintf.c: New file.
47124         * lib/unistdio/u16-u16-asprintf.c: New file.
47125         * lib/unistdio/u16-u16-snprintf.c: New file.
47126         * lib/unistdio/u16-u16-sprintf.c: New file.
47127         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47128         * lib/unistdio/u16-u16-vasprintf.c: New file.
47129         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47130         * lib/unistdio/u16-u16-vsprintf.c: New file.
47131         * lib/unistdio/u32-asnprintf.c: New file.
47132         * lib/unistdio/u32-asprintf.c: New file.
47133         * lib/unistdio/u32-printf-parse.c: New file.
47134         * lib/unistdio/u32-snprintf.c: New file.
47135         * lib/unistdio/u32-sprintf.c: New file.
47136         * lib/unistdio/u32-vasnprintf.c: New file.
47137         * lib/unistdio/u32-vasprintf.c: New file.
47138         * lib/unistdio/u32-vsnprintf.c: New file.
47139         * lib/unistdio/u32-vsprintf.c: New file.
47140         * lib/unistdio/u32-u32-asnprintf.c: New file.
47141         * lib/unistdio/u32-u32-asprintf.c: New file.
47142         * lib/unistdio/u32-u32-snprintf.c: New file.
47143         * lib/unistdio/u32-u32-sprintf.c: New file.
47144         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47145         * lib/unistdio/u32-u32-vasprintf.c: New file.
47146         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47147         * lib/unistdio/u32-u32-vsprintf.c: New file.
47148         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47149         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47150         * tests/unistdio/test-ulc-printf1.h: New file.
47151         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47152         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47153         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47154         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47155         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47156         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47157         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47158         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47159         * tests/unistdio/test-u8-asnprintf1.c: New file.
47160         * tests/unistdio/test-u8-asnprintf1.h: New file.
47161         * tests/unistdio/test-u8-printf1.h: New file.
47162         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47163         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47164         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47165         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47166         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47167         * tests/unistdio/test-u8-vasprintf1.c: New file.
47168         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47169         * tests/unistdio/test-u8-vsprintf1.c: New file.
47170         * tests/unistdio/test-u16-asnprintf1.c: New file.
47171         * tests/unistdio/test-u16-asnprintf1.h: New file.
47172         * tests/unistdio/test-u16-printf1.h: New file.
47173         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47174         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47175         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47176         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47177         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47178         * tests/unistdio/test-u16-vasprintf1.c: New file.
47179         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47180         * tests/unistdio/test-u16-vsprintf1.c: New file.
47181         * tests/unistdio/test-u32-asnprintf1.c: New file.
47182         * tests/unistdio/test-u32-asnprintf1.h: New file.
47183         * tests/unistdio/test-u32-printf1.h: New file.
47184         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47185         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47186         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47187         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47188         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47189         * tests/unistdio/test-u32-vasprintf1.c: New file.
47190         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47191         * tests/unistdio/test-u32-vsprintf1.c: New file.
47192         * modules/unistdio/base: New file.
47193         * modules/unistdio/u-printf-args: New file.
47194         * modules/unistdio/ulc-asnprintf: New file.
47195         * modules/unistdio/ulc-asprintf: New file.
47196         * modules/unistdio/ulc-fprintf: New file.
47197         * modules/unistdio/ulc-printf-parse: New file.
47198         * modules/unistdio/ulc-snprintf: New file.
47199         * modules/unistdio/ulc-sprintf: New file.
47200         * modules/unistdio/ulc-vasnprintf: New file.
47201         * modules/unistdio/ulc-vasprintf: New file.
47202         * modules/unistdio/ulc-vfprintf: New file.
47203         * modules/unistdio/ulc-vsnprintf: New file.
47204         * modules/unistdio/ulc-vsprintf: New file.
47205         * modules/unistdio/u8-asnprintf: New file.
47206         * modules/unistdio/u8-asprintf: New file.
47207         * modules/unistdio/u8-printf-parse: New file.
47208         * modules/unistdio/u8-snprintf: New file.
47209         * modules/unistdio/u8-sprintf: New file.
47210         * modules/unistdio/u8-vasnprintf: New file.
47211         * modules/unistdio/u8-vasprintf: New file.
47212         * modules/unistdio/u8-vsnprintf: New file.
47213         * modules/unistdio/u8-vsprintf: New file.
47214         * modules/unistdio/u8-u8-asnprintf: New file.
47215         * modules/unistdio/u8-u8-asprintf: New file.
47216         * modules/unistdio/u8-u8-snprintf: New file.
47217         * modules/unistdio/u8-u8-sprintf: New file.
47218         * modules/unistdio/u8-u8-vasnprintf: New file.
47219         * modules/unistdio/u8-u8-vasprintf: New file.
47220         * modules/unistdio/u8-u8-vsnprintf: New file.
47221         * modules/unistdio/u8-u8-vsprintf: New file.
47222         * modules/unistdio/u16-asnprintf: New file.
47223         * modules/unistdio/u16-asprintf: New file.
47224         * modules/unistdio/u16-printf-parse: New file.
47225         * modules/unistdio/u16-snprintf: New file.
47226         * modules/unistdio/u16-sprintf: New file.
47227         * modules/unistdio/u16-vasnprintf: New file.
47228         * modules/unistdio/u16-vasprintf: New file.
47229         * modules/unistdio/u16-vsnprintf: New file.
47230         * modules/unistdio/u16-vsprintf: New file.
47231         * modules/unistdio/u16-u16-asnprintf: New file.
47232         * modules/unistdio/u16-u16-asprintf: New file.
47233         * modules/unistdio/u16-u16-snprintf: New file.
47234         * modules/unistdio/u16-u16-sprintf: New file.
47235         * modules/unistdio/u16-u16-vasnprintf: New file.
47236         * modules/unistdio/u16-u16-vasprintf: New file.
47237         * modules/unistdio/u16-u16-vsnprintf: New file.
47238         * modules/unistdio/u16-u16-vsprintf: New file.
47239         * modules/unistdio/u32-asnprintf: New file.
47240         * modules/unistdio/u32-asprintf: New file.
47241         * modules/unistdio/u32-printf-parse: New file.
47242         * modules/unistdio/u32-snprintf: New file.
47243         * modules/unistdio/u32-sprintf: New file.
47244         * modules/unistdio/u32-vasnprintf: New file.
47245         * modules/unistdio/u32-vasprintf: New file.
47246         * modules/unistdio/u32-vsnprintf: New file.
47247         * modules/unistdio/u32-vsprintf: New file.
47248         * modules/unistdio/u32-u32-asnprintf: New file.
47249         * modules/unistdio/u32-u32-asprintf: New file.
47250         * modules/unistdio/u32-u32-snprintf: New file.
47251         * modules/unistdio/u32-u32-sprintf: New file.
47252         * modules/unistdio/u32-u32-vasnprintf: New file.
47253         * modules/unistdio/u32-u32-vasprintf: New file.
47254         * modules/unistdio/u32-u32-vsnprintf: New file.
47255         * modules/unistdio/u32-u32-vsprintf: New file.
47256         * modules/unistdio/ulc-asnprintf-tests: New file.
47257         * modules/unistdio/ulc-vasnprintf-tests: New file.
47258         * modules/unistdio/ulc-vasprintf-tests: New file.
47259         * modules/unistdio/ulc-vsnprintf-tests: New file.
47260         * modules/unistdio/ulc-vsprintf-tests: New file.
47261         * modules/unistdio/u8-asnprintf-tests: New file.
47262         * modules/unistdio/u8-vasnprintf-tests: New file.
47263         * modules/unistdio/u8-vasprintf-tests: New file.
47264         * modules/unistdio/u8-vsnprintf-tests: New file.
47265         * modules/unistdio/u8-vsprintf-tests: New file.
47266         * modules/unistdio/u16-asnprintf-tests: New file.
47267         * modules/unistdio/u16-vasnprintf-tests: New file.
47268         * modules/unistdio/u16-vasprintf-tests: New file.
47269         * modules/unistdio/u16-vsnprintf-tests: New file.
47270         * modules/unistdio/u16-vsprintf-tests: New file.
47271         * modules/unistdio/u32-asnprintf-tests: New file.
47272         * modules/unistdio/u32-vasnprintf-tests: New file.
47273         * modules/unistdio/u32-vasprintf-tests: New file.
47274         * modules/unistdio/u32-vsnprintf-tests: New file.
47275         * modules/unistdio/u32-vsprintf-tests: New file.
47276         * MODULES.html.sh (Unicode string functions): Add the new modules.
47277
47278 2007-07-01  Bruno Haible  <bruno@clisp.org>
47279
47280         * lib/sprintf.c (sprintf): Limit the available length estimation,
47281         to avoid address wraparound.
47282         * lib/vsprintf.c (vsprintf): Likewise.
47283         * modules/sprintf-posix (Dependencies): Add stdint.
47284         * modules/vsprintf-posix (Dependencies): Likewise.
47285
47286 2007-07-01  Bruno Haible  <bruno@clisp.org>
47287
47288         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
47289         Windows PATH as well. Conservative double-quoting. Comments.
47290
47291 2007-07-01  Bruno Haible  <bruno@clisp.org>
47292             Eric Blake  <ebb9@byu.net>
47293             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47294
47295         * gnulib-tool (self_abspathname): Fix algorithm to cope with
47296         empty components in $PATH, denoting '.'.
47297
47298 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47299
47300         * gnulib-tool: Fix indentation.
47301         (func_create_megatestdir): Likewise.
47302         Report by Bruno Haible.
47303
47304 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47305
47306         Sync from Automake.
47307         * build-aux/gnupload: Fix shell portability issues with for loops.
47308         Report by Karl Berry.
47309
47310 2007-06-29  Simon Josefsson  <simon@josefsson.org>
47311
47312         * build-aux/maint.mk (POURL): Use translationproject.org.
47313
47314 2007-06-27  Simon Josefsson  <simon@josefsson.org>
47315             Bruno Haible  <bruno@clisp.org>
47316
47317         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
47318         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
47319         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
47320         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
47321         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
47322
47323 2007-06-27  Bruno Haible  <bruno@clisp.org>
47324
47325         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
47326         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
47327
47328 2007-06-26  Karl Berry  <karl@gnu.org>
47329
47330         * MODULES.html.sh: remove xreadlink-with-size.
47331
47332 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47333
47334         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
47335         method that I hope also handles the double-include problem noted
47336         by Bruno Haible in
47337         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
47338
47339 2007-06-23  Bruno Haible  <bruno@clisp.org>
47340
47341         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47342         Don't let the 'mostlyclean' target fail if the last subdirectory could
47343         not be removed.
47344         Reported by Karl Berry.
47345
47346 2007-06-23  Bruno Haible  <bruno@clisp.org>
47347
47348         * gnulib-tool (echo): Add a speedier workaround for ksh.
47349         * tests/test-echo.sh: Likewise.
47350
47351 2007-06-23  Bruno Haible  <bruno@clisp.org>
47352
47353         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
47354         * tests/test-echo.sh: Likewise.
47355
47356 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47357
47358         * gnulib-tool (IFS): Initialize early, so we don't set it to
47359         empty later.
47360         (self_abspathname): Rewrite algorithm to set it, reindent.
47361         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
47362         (func_create_megatestdir): Merge some sed scripts.
47363
47364 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47365
47366         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
47367         exposed by Sun Studio 11 cc on Solaris 8.
47368
47369 2007-06-22  Bruno Haible  <bruno@clisp.org>
47370
47371         * gnulib-tool (echo): Ensure the echo primitive does not interpret
47372         backslashes.
47373         * tests/test-echo.sh: New file.
47374
47375 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47376
47377         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
47378         simplify `sed_replace_build_aux' scripts, they are portable but
47379         echoing them with `echo' is not.
47380         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
47381
47382 2007-06-21  Karl Berry  <karl@gnu.org>
47383
47384         * config/srclist.txt: guess we can't handle the licenses via
47385         srclist at the moment.
47386
47387 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47388
47389         * MODULES.html.sh: Add include_next.
47390         * modules/include_next: New file.
47391
47392 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47393
47394         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
47395         INCLUDE_NEXT.
47396         (gl_CHECK_NEXT_HEADERS): New macro.
47397         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
47398         the obsolescent gl_ABSOLUTE_HEADER.
47399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
47400         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
47401         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
47402         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47403         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47404         * m4/math_h.m4 (gl_MATH_H): Likewise.
47405         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47406         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47407         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47408         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47409         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47410         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47411         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47412         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47413         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47414         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47415         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
47416         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
47417         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47418         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47419         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47420         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47421         * m4/inttypes.m4 (gl_INTTYPES_H): Define
47422         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
47423         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
47424         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
47425         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
47426         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
47427         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
47428         * lib/float_.h: Likewise.
47429         * lib/inttypes_.h: Likewise.
47430         * lib/math_.h: Likewise.
47431         * lib/search_.h: Likewise.
47432         * lib/signal_.h: Likewise.
47433         * lib/stdint_.h: Likewise.
47434         * lib/stdio_.h: Likewise.
47435         * lib/stdlib_.h: Likewise.
47436         * lib/string_.h: Likewise.
47437         * lib/sys_stat_.h: Likewise.
47438         * lib/sys_time_.h: Likewise.
47439         * lib/time_.h: Likewise.
47440         * lib/unistd_.h: Likewise.
47441         * lib/wchar_.h: Likewise.
47442         * lib/wctype_.h: Likewise.
47443         * lib/dirent_.h: Likewise.
47444         * lib/iconv_.h: Likewise.
47445         * lib/locale_.h: Likewise.
47446         * lib/netinet_in_.h: Likewise.
47447         * lib/sys_select_.h: Likewise.
47448         * lib/sys_socket_.h: Likewise.
47449         * lib/sysexits_.h: Likewise.
47450         * modules/fcntl (Depends-on): Depend on include_next, not
47451         absolute_header.
47452         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
47453         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
47454         * modules/fchdir: Likewise.
47455         * modules/float: Likewise.
47456         * modules/iconv_open: Likewise.
47457         * modules/inttypes: Likewise.
47458         * modules/locale: Likewise.
47459         * modules/math: Likewise.
47460         * modules/netinet_in: Likewise.
47461         * modules/search: Likewise.
47462         * modules/signal: Likewise.
47463         * modules/stdint: Likewise.
47464         * modules/stdio: Likewise.
47465         * modules/stdlib: Likewise.
47466         * modules/string: Likewise.
47467         * modules/sys_select: Likewise.
47468         * modules/sys_socket: Likewise.
47469         * modules/sys_stat: Likewise.
47470         * modules/sys_time: Likewise.
47471         * modules/sysexits: Likewise.
47472         * modules/time: Likewise.
47473         * modules/unistd: Likewise.
47474         * modules/wchar: Likewise.
47475         * modules/wctype: Likewise.
47476         * modules/sys_stat: Change maintainer to "all".
47477         * modules/unistd: Likewise.
47478
47479 2007-06-20  Karl Berry  <karl@gnu.org>
47480
47481         * config/srclist.txt: track www changes in license files.
47482
47483 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
47484
47485         * build-aux/bootstrap: Remove stray dot.
47486         Make sure build_aux settings are honored when linking
47487         gnulib_extra_files.
47488
47489 2007-06-19  Eric Blake  <ebb9@byu.net>
47490
47491         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47492         Allow compilation on cygwin.
47493
47494 2007-06-19  Jim Meyering  <jim@meyering.net>
47495
47496         xreadlink-with-size: Remove module.  No longer used.
47497         Ex-callers now use xreadlink or mreadlink-with-size.
47498         * modules/xreadlink-with-size: Remove module.
47499         * lib/xreadlink-with-size.c: Remove file.
47500         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
47501         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
47502         just before the function definition *is* accurate.
47503
47504         Eliminate one way canonicalize_filename_mode could exit.
47505         * lib/canonicalize.c (canonicalize_filename_mode):
47506         Use mreadlink_with_size, not xreadlink_with_size.
47507
47508 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         Detect porting problems to FreeBSD/arm, which has time_t wider than
47511         long int.  Original problem reported for GNU diff by Xin Li in
47512         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
47513         * modules/getdate (Depends-on): Add intprops, verify.
47514         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
47515         is an integer type no wider than long int.
47516
47517 2007-06-18  Jim Meyering  <jim@meyering.net>
47518
47519         New module: mreadlink-with-size.
47520         * MODULES.html.sh: Add mreadlink-with-size.
47521         * modules/mreadlink-with-size: New module
47522         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
47523         not xreadlink-with-size.
47524         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
47525
47526 2007-06-16  Bruno Haible  <bruno@clisp.org>
47527
47528         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47529         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
47530         Reported by Gary V. Vaughan <gary@gnu.org>.
47531
47532 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
47533
47534         Revamp lchown so that it lives in unistd.h where it belongs.
47535         * lib/lchown.h: Remove.
47536         * lib/dirchownmod.c: Don't include lib/lchown.h.
47537         * lib/fchownat.c: Likewise.
47538         * lib/openat.c: Likewise.
47539         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
47540         does not follow symlinks.
47541         (EOPNOTSUPP): Define if not defined.
47542         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
47543         is defined to 0.
47544         (lchown): New decl.
47545         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
47546         Do not check for lchown decl.
47547         Set REPLACE_LCHOWN.
47548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
47549         REPLACE_LCHOWN.
47550         * modules/chown: Make it clear it follows symlinks.
47551         * modules/lchown: Make it clear it doesn't follow symlinks.
47552         (Files): Remove lib/lchown.h
47553         (Depends-on): Add unistd.
47554         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
47555         (Include): Include <unistd.h>, not "lchown.h".
47556         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47557         REPLACE_LCHOWN.
47558
47559 2007-06-15  Jim Meyering  <jim@meyering.net>
47560
47561         Change license (GPL to LGPL) of fsusage and dependents.
47562         * modules/fsusage (License): Change to LGPL.
47563         * modules/full-read (License): Likewise.
47564         * modules/full-write (License): Likewise.
47565         * modules/safe-read (License): Likewise.
47566         * modules/safe-write (License): Likewise.
47567
47568 2007-06-14  Ben Pfaff  <blp@gnu.org>
47569
47570         Missing part of allocsa -> malloca transition.
47571         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47572         gl_MALLOCA.
47573
47574 2007-06-12  Bruno Haible  <bruno@clisp.org>
47575
47576         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47577         to ia64, x86_64, i386.
47578         Reported by Eric Blake.
47579
47580 2007-06-12  Bruno Haible  <bruno@clisp.org>
47581
47582         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47583         cross-compiling to x86_64.
47584
47585 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47586
47587         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47588         glitch reported by Ralf Wildenhues in
47589         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47590
47591         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47592         Vin Shelton.
47593
47594 2007-06-11  Bruno Haible  <bruno@clisp.org>
47595
47596         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47597         replacement string.
47598         Reported by Eric Blake.
47599
47600 2007-06-10  Bruno Haible  <bruno@clisp.org>
47601
47602         Prepare vasnprintf code for use with Unicode strings.
47603         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47604         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47605         TYPE_U32_STRING.
47606         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47607         a_u32_string variants.
47608         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47609         * lib/printf-args.c: Don't include config.h and the specification
47610         header if PRINTF_FETCHARGS is already defined.
47611         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47612         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47613         TYPE_U16_STRING, TYPE_U32_STRING.
47614         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47615         u16_directive, u16_directives, u32_directive, u32_directives): New
47616         types.
47617         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47618         New declarations.
47619         * lib/printf-parse.c: Don't include config.h and the specification
47620         header if PRINTF_PARSE is already defined. Eliminate the set of
47621         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47622         them now. Include c-ctype.h.
47623         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47624         directive and CHAR_T_ONLY_ASCII.
47625         * lib/vasnprintf.c: Don't include config.h and the specification header
47626         if VASNPRINTF is already defined.
47627         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47628         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47629         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47630         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47631         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47632         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47633         code accordingly.
47634         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47635         pad_ourselves also in this case, with the 'c' and 's' directives, and
47636         with a different notion of "width".
47637         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47638
47639 2007-06-10  Bruno Haible  <bruno@clisp.org>
47640
47641         * modules/unistr/u32-mbsnlen: New file.
47642         * lib/unistr/u32-mbsnlen.c: New file.
47643
47644         * modules/unistr/u16-mbsnlen: New file.
47645         * lib/unistr/u16-mbsnlen.c: New file.
47646
47647         * modules/unistr/u8-mbsnlen: New file.
47648         * lib/unistr/u8-mbsnlen.c: New file.
47649
47650         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47651         declarations.
47652
47653 2007-06-10  Bruno Haible  <bruno@clisp.org>
47654
47655         * lib/string_.h (mbsnlen): New declaration.
47656         * lib/mbsnlen.c: New file.
47657         * m4/mbsnlen.m4: New file.
47658         * modules/mbsnlen: New file.
47659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47660         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47661         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47662
47663 2007-06-10  Bruno Haible  <bruno@clisp.org>
47664
47665         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47666
47667 2007-06-10  Bruno Haible  <bruno@clisp.org>
47668
47669         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47670         * lib/mbuiter.h: Likewise.
47671
47672 2007-06-10  Bruno Haible  <bruno@clisp.org>
47673
47674         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47675         declaration.
47676
47677 2007-06-10  Karl Berry  <karl@gnu.org>
47678
47679         * config/srclist.txt: remove gettext entries, Bruno prefers
47680         to update individually.
47681
47682 2007-06-10  Bruno Haible  <bruno@clisp.org>
47683
47684         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47685         'maxlen'. Ensure only length + width bytes are allocated, not
47686         length + 1 + width.
47687
47688 2007-06-09  Bruno Haible  <bruno@clisp.org>
47689
47690         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47691         (CHAR_T): Remove macro.
47692         (VASNPRINTF): Update.
47693
47694 2007-06-09  Bruno Haible  <bruno@clisp.org>
47695
47696         * MODULES.html.sh (Unicode string functions): Add the new modules.
47697
47698         * modules/uniconv/u32-conv-to-enc: New file.
47699         * lib/uniconv/u32-conv-to-enc.c: New file.
47700         * modules/uniconv/u32-conv-to-enc-tests: New file.
47701         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47702
47703         * modules/uniconv/u16-conv-to-enc: New file.
47704         * lib/uniconv/u16-conv-to-enc.c: New file.
47705         * lib/uniconv/u-conv-to-enc.h: New file.
47706         * modules/uniconv/u16-conv-to-enc-tests: New file.
47707         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47708
47709         * modules/uniconv/u8-conv-to-enc: New file.
47710         * lib/uniconv/u8-conv-to-enc.c: New file.
47711         * modules/uniconv/u8-conv-to-enc-tests: New file.
47712         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47713
47714         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47715         u32_conv_to_encoding): New declarations.
47716
47717 2007-06-09  Bruno Haible  <bruno@clisp.org>
47718
47719         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47720
47721 2007-06-09  Bruno Haible  <bruno@clisp.org>
47722
47723         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47724         * modules/malloca: Renamed from modules/allocsa, updated.
47725         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47726         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47727         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47728         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47729         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47730         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47731         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47732         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47733         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47734         * modules/c-strcasestr (Depends-on): Update.
47735         * lib/c-strcasestr.c: Update.
47736         * modules/c-strstr (Depends-on): Update.
47737         * lib/c-strstr.c: Update.
47738         * modules/canonicalize-lgpl (Depends-on): Update.
47739         * lib/canonicalize-lgpl.c: Update.
47740         * modules/clean-temp (Depends-on): Update.
47741         * lib/clean-temp.c: Update.
47742         * modules/csharpcomp (Depends-on): Update.
47743         * lib/csharpcomp.c: Update.
47744         * modules/csharpexec (Depends-on): Update.
47745         * lib/csharpexec.c: Update.
47746         * modules/javacomp (Depends-on): Update.
47747         * lib/javacomp.c: Update.
47748         * modules/javaexec (Depends-on): Update.
47749         * lib/javaexec.c: Update.
47750         * modules/mbscasestr (Depends-on): Update.
47751         * lib/mbscasestr.c: Update.
47752         * modules/mbsstr (Depends-on): Update.
47753         * lib/mbsstr.c: Update.
47754         * modules/setenv (Depends-on): Update.
47755         * lib/setenv.c: Update.
47756         * modules/strcasestr (Depends-on): Update.
47757         * lib/strcasestr.c: Update.
47758         * modules/striconveha (Depends-on): Update.
47759         * lib/striconveha.c: Update.
47760         * modules/relocatable-prog-wrapper (Files): Update.
47761         * lib/relocwrapper.c: Update.
47762         * build-aux/install-reloc: Update.
47763         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47764
47765 2007-06-08  Bruno Haible  <bruno@clisp.org>
47766
47767         Port to uClibc.
47768         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47769         * lib/fpurge.c (fpurge): Likewise.
47770         * lib/freading.c (freading): Likewise.
47771         * lib/fseeko.c (rpl_fseeko): Likewise.
47772         * lib/fseterr.c (fseterr): Likewise.
47773         * lib/fwriting.c (fwriting): Likewise.
47774         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47775
47776 2007-06-08  Bruno Haible  <bruno@clisp.org>
47777
47778         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47779         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47780         * modules/gettext (Files): Add m4/intlmacosx.m4.
47781
47782 2007-06-07  Bruno Haible  <bruno@clisp.org>
47783
47784         * modules/localename-tests: New file.
47785         * tests/test-localename.c: New file.
47786
47787         New module 'localename'.
47788         * lib/localename.h: New file.
47789         * lib/localename.c: New file, from GNU gettext.
47790         * m4/localename.m4: New file.
47791         * modules/localename: New file.
47792
47793 2007-06-07  Bruno Haible  <bruno@clisp.org>
47794
47795         Work around the lack of <wchar.h> on some builds of uClibc.
47796         * doc/headers/wchar.texi: Update.
47797         * lib/wchar_.h: Include <wchar.h> only if it exists.
47798         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47799         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47800         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47801         doesn't exist.
47802         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47803         * modules/mbfile (Depends-on): Add wchar.
47804         * modules/mbiter (Depends-on): Likewise.
47805         * modules/mbuiter (Depends-on): Likewise.
47806         Reported by Simon Josefsson.
47807
47808 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47809
47810         Work around problem reported by Steven M. Schweda in
47811         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47812         Tru64 5.1B with the Compaq compiler environment installed declares
47813         an 'isblank' function but does not define it in the C library.
47814         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47815         * lib/regex_internal.h (isblank): Likewise.
47816         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47817         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47818
47819 2007-06-05  Bruno Haible  <bruno@clisp.org>
47820
47821         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47822         ia64.
47823         * modules/printf-safe: New file.
47824         * modules/fprintf-posix (Depends-on): Add printf-safe.
47825         * modules/printf-posix (Depends-on): Likewise.
47826         * modules/snprintf-posix (Depends-on): Likewise.
47827         * modules/sprintf-posix (Depends-on): Likewise.
47828         * modules/vasnprintf-posix (Depends-on): Likewise.
47829         * modules/vasprintf-posix (Depends-on): Likewise.
47830         * modules/vfprintf-posix (Depends-on): Likewise.
47831         * modules/vprintf-posix (Depends-on): Likewise.
47832         * modules/vsnprintf-posix (Depends-on): Likewise.
47833         * modules/vsprintf-posix (Depends-on): Likewise.
47834         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47835         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47836         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47837         "no" on i386, x86_64, ia64.
47838         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47839         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47840         on i386, x86_64, ia64.
47841         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47842         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47843         on i386, x86_64, ia64.
47844         * tests/test-vasnprintf-posix.c: Include float.h.
47845         (LDBL80_WORDS): New macro.
47846         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47847         on i386, x86_64, ia64.
47848         * tests/test-vasprintf-posix.c: Include float.h.
47849         (LDBL80_WORDS): New macro.
47850         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47851         on i386, x86_64, ia64.
47852         * tests/test-snprintf-posix.c: Include float.h.
47853         * tests/test-sprintf-posix.c: Likewise.
47854         * tests/test-vsnprintf-posix.c: Likewise.
47855         * tests/test-vsprintf-posix.c: Likewise.
47856
47857 2007-06-05  Bruno Haible  <bruno@clisp.org>
47858
47859         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47860         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47861         non-IEEE numbers on i386, x86_64, ia64.
47862         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47863         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47864         * tests/test-isnanl.h: Include float.h.
47865         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47866
47867 2007-06-05  Bruno Haible  <bruno@clisp.org>
47868
47869         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47870         also the %a / %A. Handle the %a / %A code before this extra handling.
47871
47872 2007-06-05  Bruno Haible  <bruno@clisp.org>
47873
47874         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47875         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47876
47877 2007-06-05  Bruno Haible  <bruno@clisp.org>
47878
47879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47880         typo in variable name.
47881
47882 2007-06-05  Eric Blake  <ebb9@byu.net>
47883
47884         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47885         Reported by Simon Josefsson.
47886
47887 2007-06-04  Bruno Haible  <bruno@clisp.org>
47888
47889         Avoid test failures on some PowerPC platforms.
47890         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47891         Define differently for PowerPC.
47892         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47893         Reported by Gary V. Vaughan <gary@gnu.org>.
47894
47895 2007-06-02  Bruno Haible  <bruno@clisp.org>
47896
47897         Fix test-stdint failure on FreeBSD/ia64.
47898         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47899         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47900         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47901         * doc/headers/stdint.texi: Update.
47902
47903 2007-06-01  Bruno Haible  <bruno@clisp.org>
47904
47905         * tests/test-binary-io.c (main): Pass a third argument to open().
47906         Reported by Gary V. Vaughan <gary@gnu.org>.
47907
47908 2007-06-01  Bruno Haible  <bruno@clisp.org>
47909
47910         * doc/functions/frexpl.texi: Update for mingw.
47911
47912 2007-06-01  Bruno Haible  <bruno@clisp.org>
47913
47914         * tests/test-lseek.c (main): Disable test of errno for invalid third
47915         argument.
47916         * doc/functions/lseek.texi: Update.
47917         Reported by Gary V. Vaughan <gary@gnu.org>.
47918
47919 2007-05-28  Bruno Haible  <bruno@clisp.org>
47920
47921         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47922
47923 2007-05-31  Eric Blake  <ebb9@byu.net>
47924
47925         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47926         cross compiling.
47927
47928 2007-05-30  Eric Blake  <ebb9@byu.net>
47929         and Bruno Haible  <bruno@clisp.org>
47930
47931         Work around mingw test failures exposed by m4-1.4.9b.
47932         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47933         * tests/test-unistd.c: Disable uid_t and git_t tests for the
47934         moment.
47935
47936 2007-05-30  Bruno Haible  <bruno@clisp.org>
47937
47938         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47939         assuming that they are closed. Needed on HP-UX 11.
47940
47941 2007-05-29  Bruno Haible  <bruno@clisp.org>
47942
47943         Fix a problem with #include_next.
47944         * lib/dirent_.h: Split the double-inclusion guard.
47945         * lib/fcntl_.h: Likewise.
47946         * lib/float_.h: Likewise.
47947         * lib/iconv_.h: Likewise.
47948         * lib/inttypes_.h: Likewise.
47949         * lib/locale_.h: Likewise.
47950         * lib/math_.h: Likewise.
47951         * lib/netinet_in_.h: Likewise.
47952         * lib/search_.h: Likewise.
47953         * lib/signal_.h: Likewise.
47954         * lib/stdint_.h: Likewise.
47955         * lib/stdio_.h: Likewise.
47956         * lib/stdlib_.h: Likewise.
47957         * lib/string_.h: Likewise.
47958         * lib/sys_select_.h: Likewise.
47959         * lib/sys_socket_.h: Likewise.
47960         * lib/sys_stat_.h: Likewise.
47961         * lib/sys_time_.h: Likewise.
47962         * lib/sysexits_.h: Likewise.
47963         * lib/time_.h: Likewise.
47964         * lib/unistd_.h: Likewise.
47965         * lib/wchar_.h: Likewise.
47966         * lib/wctype_.h: Likewise.
47967
47968 2007-05-29  Bruno Haible  <bruno@clisp.org>
47969
47970         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47971         for the moment.
47972
47973 2007-05-29  Bruno Haible  <bruno@clisp.org>
47974
47975         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47976         invocation.
47977         Reported by Eric Blake.
47978
47979 2007-05-29  Bruno Haible  <bruno@clisp.org>
47980
47981         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47982         compiling case.
47983
47984 2007-05-29  Eric Blake  <ebb9@byu.net>
47985             Bruno Haible  <bruno@clisp.org>
47986
47987         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47988         cross compiles.
47989
47990 2007-05-28  Eric Blake  <ebb9@byu.net>
47991
47992         * modules/closein-tests (test_closein_LDADD): Support test on
47993         cygwin with libtool.
47994
47995 2007-05-28  Bruno Haible  <bruno@clisp.org>
47996
47997         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47998         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47999         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48000         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48001         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48002         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48003         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48004         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48005         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48006
48007 2007-05-28  Eric Blake  <ebb9@byu.net>
48008
48009         Unconditionally include <config.h> in unit tests.
48010         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48011         * tests/test-allocsa.c, tests/test-arcfour.c,
48012         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48013         tests/test-array_list.c, tests/test-array_oset.c,
48014         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48015         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48016         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48017         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48018         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48019         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48020         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48021         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48022         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48023         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48024         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48025         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48026         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48027         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48028         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48029         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48030         test-md5.c, test-memmem.c, test-printf-posix.c,
48031         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48032         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48033         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48034         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48035         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48036         test-vasnprintf-posix2.c, test-vasnprintf.c,
48037         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48038         test-vfprintf-posix.c, test-vprintf-posix.c,
48039         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48040         test-xvasprintf.c: Likewise.
48041
48042 2007-05-28  Bruno Haible  <bruno@clisp.org>
48043
48044         * gnulib-tool (func_import): Remember the --with-tests command-line
48045         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48046         Reported by Eric Blake.
48047
48048 2007-05-28  Bruno Haible  <bruno@clisp.org>
48049
48050         * modules/ftell-tests: New file.
48051         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48052         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48053
48054         * lib/ftell.c: New file.
48055         * modules/ftell: New file.
48056         * m4/ftell.m4: New file.
48057         * doc/functions/ftell.texi: Update.
48058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48059         REPLACE_FTELL.
48060         * lib/stdio_.h (rpl_ftell): New declaration.
48061         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48062         REPLACE_FTELL.
48063
48064 2007-05-28  Eric Blake  <ebb9@byu.net>
48065
48066         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48067
48068 2007-05-28  Bruno Haible  <bruno@clisp.org>
48069
48070         * modules/fseek-tests: New file.
48071         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48072         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48073
48074         * lib/fseek.c: New file.
48075         * modules/fseek: New file.
48076         * m4/fseek.m4: New file.
48077         * doc/functions/fseek.texi: Update.
48078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48079         REPLACE_FSEEK.
48080         * lib/stdio_.h (rpl_fseek): New declaration.
48081         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48082         REPLACE_FSEEK.
48083
48084 2007-05-28  Bruno Haible  <bruno@clisp.org>
48085
48086         * lib/stdio_.h (fflush): More comments.
48087
48088 2007-05-28  Bruno Haible  <bruno@clisp.org>
48089
48090         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48091         runtime test.
48092
48093 2007-05-28  Eric Blake  <ebb9@byu.net>
48094
48095         Improve lseek module.
48096         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48097         * lib/unistd_.h (lseek): Scale back link warning message.
48098         * tests/test-lseek.c: Beef up test.
48099         * tests/test-lseek.sh: Exercise more facets of lseek.
48100         Reported by Bruno Haible.
48101
48102 2007-05-28  Bruno Haible  <bruno@clisp.org>
48103
48104         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48105         to define.
48106
48107 2007-05-27  Bruno Haible  <bruno@clisp.org>
48108
48109         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48110
48111 2007-05-27  Bruno Haible  <bruno@clisp.org>
48112
48113         * modules/openmp: New file.
48114         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48115         Noah Misch.
48116
48117 2007-05-26  Bruno Haible  <bruno@clisp.org>
48118
48119         * modules/chdir-long (Depends-on): Add fchdir.
48120         * modules/chdir-safer (Depends-on): Likewise.
48121         * modules/fts (Depends-on): Likewise.
48122         * modules/fts-lgpl (Depends-on): Likewise.
48123         * modules/openat (Depends-on): Likewise.
48124         * modules/savewd (Depends-on): Likewise.
48125
48126 2007-05-24  Eric Blake  <ebb9@byu.net>
48127
48128         Fix lseek on mingw.
48129         * modules/lseek: New module.
48130         * m4/lseek.m4: New file.
48131         * lib/lseek.c: New file.
48132         * modules/lseek-tests: New file.
48133         * tests/test-lseek.c: New file.
48134         * tests/test-lseek.sh: New file.
48135         * MODULES.html.sh: Document lseek module.
48136         * modules/fflush (Depends-on): Add lseek, fseeko.
48137         * modules/fseeko (Depends-on): Likewise.
48138         * modules/ftello (Depends-on): Likewise.
48139         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48140         broken.
48141         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48142         broken.
48143         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48144         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48145         * lib/ftello.c (rpl_ftello): Likewise.
48146         * tests/test-fseeko.c (main): Test this.
48147         * tests/test-fseeko.sh: Likewise.
48148         * tests/test-ftello.c (main): Likewise.
48149         * tests/test-ftello.sh: Likewise.
48150         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48151         implies replacing fseek.
48152         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48153         HAVE_FTELLO.
48154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48155         * modules/unistd (Makefile.am): Likewise.
48156         * lib/unistd_.h (lseek): Declare a replacement.
48157         * doc/functions/lseek.texi (lseek): Document this fix.
48158         * doc/functions/fseek.texi (fseek): Likewise.
48159         * doc/functions/ftell.texi (ftell): Likewise.
48160
48161 2007-05-24  Bruno Haible  <bruno@clisp.org>
48162
48163         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48164         in the printed representation of a NaN.
48165         * tests/test-vasprintf-posix.c (test_function): Likewise.
48166         * tests/test-snprintf-posix.h (test_function): Likewise.
48167         * tests/test-sprintf-posix.h (test_function): Likewise.
48168         Reported by Eric Blake.
48169
48170 2007-05-23  Eric Blake  <ebb9@byu.net>
48171
48172         Fix fseeko/ftello on cygwin 1.5.24.
48173         * doc/functions/fseeko.texi (fseeko): Document the fix.
48174         * doc/functions/ftello.texi (ftello): Document the fix.
48175         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48176         * doc/functions/stdout.text (stdout): New file.
48177         * doc/functions/stderr.text (stderr): New file.
48178         * doc/gnulib.texi (Function Substitutes): Use new files.
48179         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48180         prior to 1.7.0.
48181         * tests/test-ftello.c (main): Likewise for ftello.
48182         * tests/test-fseeko.sh: New file.
48183         * tests/test-ftello.sh: New file.
48184         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48185         with seekable stdin.
48186         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48187         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48188         (gl_REPLACE_FSEEKO): New macro.
48189         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48190         * modules/fseeko (Files): Distribute fseeko.c.
48191         * modules/ftello (Files): Distribute ftello.c.
48192         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48193         mode.
48194         * lib/ftello.c (rpl_ftello): New file.
48195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48196         fseeko, ftello.
48197         (gl_STDIN_LARGE_OFFSET): New macro.
48198         * modules/stdio (Makefile.am): Perform the replacement.
48199         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48200
48201 2007-05-23  Bruno Haible  <bruno@clisp.org>
48202
48203         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48204         GNULIB_POSIXCHECK is defined.
48205
48206 2007-05-21  Bruno Haible  <bruno@clisp.org>
48207
48208         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48209         Check also the output for NaN arguments. When cross-compiling, guess
48210         no on IRIX.
48211         * lib/vasnprintf.c: Update comments.
48212         * tests/test-vasnprintf-posix.c (strisnan): New function.
48213         (test_function): Use it.
48214         * tests/test-vasprintf-posix.c (strisnan): New function.
48215         (test_function): Use it.
48216         * tests/test-snprintf-posix.h (strisnan): New function.
48217         (test_function): Use it.
48218         * tests/test-sprintf-posix.h (strisnan): New function.
48219         (test_function): Use it.
48220         Reported by Eric Blake.
48221
48222 2007-05-20  Bruno Haible  <bruno@clisp.org>
48223
48224         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
48225         numbers that fails on BeOS.
48226         * doc/functions/frexpl.texi: Update.
48227
48228 2007-05-20  Jim Meyering  <jim@meyering.net>
48229
48230         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
48231         forced upon us by glibc-2.6.
48232
48233 2007-05-20  Bruno Haible  <bruno@clisp.org>
48234
48235         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
48236         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
48237         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
48238         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
48239         NEED_PRINTF_INFINITE.
48240         (is_infinitel): New function.
48241         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
48242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
48243         gl_PREREQ_VASNPRINTF_INFINITE.
48244         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
48245         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48246         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
48247         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
48248         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
48249         gl_PREREQ_VASNPRINTF_INFINITE.
48250         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48251         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48252         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48253         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48254         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48255         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48256         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48257         * doc/functions/fprintf.texi: Update.
48258         * doc/functions/printf.texi: Update.
48259         * doc/functions/snprintf.texi: Update.
48260         * doc/functions/sprintf.texi: Update.
48261         * doc/functions/vfprintf.texi: Update.
48262         * doc/functions/vprintf.texi: Update.
48263         * doc/functions/vsnprintf.texi: Update.
48264         * doc/functions/vsprintf.texi: Update.
48265
48266 2007-05-20  Bruno Haible  <bruno@clisp.org>
48267
48268         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
48269         was not found in libc.
48270         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48271
48272 2007-05-20  Bruno Haible  <bruno@clisp.org>
48273
48274         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48275         printed as "-nan" instead of "nan".
48276         * tests/test-vasprintf-posix.c (test_function): Likewise.
48277         * tests/test-snprintf-posix.h (test_function): Likewise.
48278         * tests/test-sprintf-posix.h (test_function): Likewise.
48279         Needed for HP-UX 11.
48280
48281 2007-05-20  Jim Meyering  <jim@meyering.net>
48282
48283         Fix buggy test for the fchownat-deref bug.
48284         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
48285         symlink required for the run-test.  Without it, this test would
48286         always declare that fchownat doesn't work, and client code would
48287         unnecessarily use the replacement function with fixed libc.
48288         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
48289         Reported by Greg Schafer.
48290
48291 2007-05-19  Bruno Haible  <bruno@clisp.org>
48292
48293         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
48294         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
48295         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
48296         Needed for IRIX 6.5 and Solaris 2.5.1.
48297
48298 2007-05-19  Bruno Haible  <bruno@clisp.org>
48299
48300         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
48301         (test_function): Skip tests involving -0.0 on platforms where
48302         -0.0 = 0.0.
48303         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
48304         (test_function): Skip tests involving -0.0 on platforms where
48305         -0.0 = 0.0.
48306         * tests/test-snprintf-posix.h (have_minus_zero): New function.
48307         (test_function): Skip tests involving -0.0 on platforms where
48308         -0.0 = 0.0.
48309         * tests/test-sprintf-posix.h (have_minus_zero): New function.
48310         (test_function): Skip tests involving -0.0 on platforms where
48311         -0.0 = 0.0.
48312         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
48313         tests.
48314         * tests/test-printf-posix.h (test_function): Likewise.
48315         * tests/test-printf-posix.output: Remove all -0.0 related results.
48316         Needed for IRIX 6.5.
48317
48318 2007-05-19  Bruno Haible  <bruno@clisp.org>
48319
48320         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48321         printed as "nan0x7fffffff" instead of "nan".
48322         * tests/test-vasprintf-posix.c (test_function): Likewise.
48323         * tests/test-snprintf-posix.h (test_function): Likewise.
48324         * tests/test-sprintf-posix.h (test_function): Likewise.
48325         * tests/test-fprintf-posix.h (NaN): Remove macro.
48326         (test_function): Remove all NaN related tests.
48327         * tests/test-printf-posix.h (NaN): Remove macro.
48328         (test_function): Remove all NaN related tests.
48329         * tests/test-printf-posix.output: Remove all NaN related results.
48330         Needed for IRIX 6.5.
48331
48332 2007-05-19  Bruno Haible  <bruno@clisp.org>
48333
48334         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
48335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
48336
48337 2007-05-19  Bruno Haible  <bruno@clisp.org>
48338
48339         * lib/float_.h: New file.
48340         * m4/float_h.m4: New file.
48341         * modules/float: New file.
48342         * modules/isnanl (Dependencies): Add float.
48343         * modules/isnanl-nolibm (Dependencies): Likewise.
48344         * modules/mathl (Dependencies): Likewise.
48345         * modules/printf-frexpl (Dependencies): Likewise.
48346         * modules/signbit (Dependencies): Likewise.
48347         * modules/vasnprintf (Dependencies): Likewise.
48348         * doc/headers/float.texi: Update.
48349
48350 2007-05-19  Jim Meyering  <jim@meyering.net>
48351
48352         * lib/utimens.c (gl_futimens): Rename from futimens,
48353         now that glibc-2.6 declares futimens.
48354         * lib/utimens.h: Likewise.
48355
48356 2007-05-19  Bruno Haible  <bruno@clisp.org>
48357
48358         Avoid test failures on mingw.
48359         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
48360         * tests/test-printf-posix.sh: Likewise.
48361         * tests/test-vfprintf-posix.sh: Likewise.
48362         * tests/test-vprintf-posix.sh: Likewise.
48363
48364 2007-05-19  Bruno Haible  <bruno@clisp.org>
48365
48366         Fix *printf result for NaN, Inf, -0.0 on mingw.
48367         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
48368         * lib/vasnprintf.c: Include math.h and isnan.h.
48369         (is_infinite_or_zero): New function.
48370         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
48371         values in the %f, %F, %e, %E, %g, %G directives.
48372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
48373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48374         gl_PRINTF_INFINITE and test its result. Invoke
48375         gl_PREREQ_VASNPRINTF_INFINITE.
48376         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48377         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48380         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48382         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48383         * doc/functions/fprintf.texi: Update.
48384         * doc/functions/printf.texi: Update.
48385         * doc/functions/snprintf.texi: Update.
48386         * doc/functions/sprintf.texi: Update.
48387         * doc/functions/vfprintf.texi: Update.
48388         * doc/functions/vprintf.texi: Update.
48389         * doc/functions/vsnprintf.texi: Update.
48390         * doc/functions/vsprintf.texi: Update.
48391
48392 2007-05-19  Bruno Haible  <bruno@clisp.org>
48393
48394         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
48395         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
48396         Instead of multiplying with 10^k, set extra_zeroes to k.
48397         (scale10_round_long_double): Remove function.
48398
48399 2007-05-18  Bruno Haible  <bruno@clisp.org>
48400
48401         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
48402         introduced on 2007-05-06.
48403
48404 2007-05-18  Bruno Haible  <bruno@clisp.org>
48405
48406         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
48407         %g directives.
48408         * tests/test-vasprintf-posix.c (test_function): Likewise.
48409         * tests/test-snprintf-posix.h (test_function): Likewise.
48410         * tests/test-sprintf-posix.h (test_function): Likewise.
48411
48412 2007-05-18  Bruno Haible  <bruno@clisp.org>
48413
48414         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
48415         (strmatch): New function.
48416         (test_function): Test the %f directive on numbers of various exponents.
48417         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
48418         (strmatch): New function.
48419         (test_function): Test the %f directive on numbers of various exponents.
48420         * tests/test-snprintf-posix.h (strmatch): New function.
48421         (test_function): Test the %f directive on numbers of various exponents.
48422         * tests/test-sprintf-posix.h (strmatch): New function.
48423         (test_function): Test the %f directive on numbers of various exponents.
48424         * tests/test-snprintf-posix.c (SIZEOF): New macro.
48425         * tests/test-sprintf-posix.c (SIZEOF): New macro.
48426         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
48427         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
48428
48429 2007-05-18  Bruno Haible  <bruno@clisp.org>
48430
48431         Add support for 'long double' number output.
48432         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
48433         * lib/vasnprintf.c: Include math.h and float+.h.
48434         (mp_limb_t): New type.
48435         (GMP_LIMB_BITS): New macro.
48436         (mp_twolimb_t): New type.
48437         (GMP_TWOLIMB_BITS): New macro.
48438         (mpn_t): New type.
48439         (multiply, divide, convert_to_decimal, decode_long_double,
48440         scale10_round_long_double, scale10_round_decimal_long_double,
48441         floorlog10l): New functions.
48442         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
48443         for the %f, %F, %e, %E, %g, %G directives.
48444         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
48445         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48446         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
48447         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
48448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48453         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48454         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48455         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
48456         * modules/snprintf-posix (Depends-on): Likewise.
48457         * modules/sprintf-posix (Depends-on): Likewise.
48458         * modules/vasnprintf-posix (Depends-on): Likewise.
48459         * modules/vasprintf-posix (Depends-on): Likewise.
48460         * modules/vfprintf-posix (Depends-on): Likewise.
48461         * modules/vsnprintf-posix (Depends-on): Likewise.
48462         * modules/vsprintf-posix (Depends-on): Likewise.
48463         * modules/vasnprintf (Files): Add lib/float+.h.
48464         * doc/functions/fprintf.texi: Update.
48465         * doc/functions/printf.texi: Update.
48466         * doc/functions/snprintf.texi: Update.
48467         * doc/functions/sprintf.texi: Update.
48468         * doc/functions/vfprintf.texi: Update.
48469         * doc/functions/vprintf.texi: Update.
48470         * doc/functions/vsnprintf.texi: Update.
48471         * doc/functions/vsprintf.texi: Update.
48472
48473 2007-05-18  Bruno Haible  <bruno@clisp.org>
48474
48475         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
48476
48477 2007-05-18  Bruno Haible  <bruno@clisp.org>
48478
48479         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
48480         for printing 64-bit integers. Needed for mingw.
48481
48482 2007-05-18  Bruno Haible  <bruno@clisp.org>
48483
48484         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48485         gl_FUNC_FREXPL_WORKS.
48486         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
48487
48488 2007-05-18  Bruno Haible  <bruno@clisp.org>
48489
48490         * modules/frexpl-nolibm-tests: New file.
48491
48492         * modules/frexpl-nolibm: New file.
48493         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
48494
48495 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48496
48497         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
48498         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48499         GCC 4.2, which otherwise issues a lot of warnings.
48500         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
48501         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
48502         Likewise.
48503         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
48504         * modules/iconv_open (iconv.h): Likewise.
48505         * modules/locale (locale.h): Likewise.
48506         * modules/netinet_in (netinet/in.h): Likewise.
48507         * modules/sys_select (sys_select.h): Likewise.
48508         * modules/sys_socket (sys/socket.h): Likewise.
48509         * modules/sys_stat (sys/stat.h): Likewise.
48510         * modules/sysexits (sysexits.h): Likewise.
48511         * modules/unistd (unistd.h): Likewise.
48512
48513 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48514
48515         * modules/closein-tests (Makefile.am): Distribute
48516         `test-closein.sh'.
48517
48518 2007-05-17  Bruno Haible  <bruno@clisp.org>
48519
48520         * tests/test-printf-posix.output: Renamed from
48521         tests/test-fprintf-posix.out.
48522         * modules/fprintf-posix-tests: Update.
48523         * modules/printf-posix-tests: Update.
48524         * modules/vfprintf-posix-tests: Update.
48525         * modules/vprintf-posix-tests: Update.
48526         * tests/test-fprintf-posix.sh: Update.
48527         * tests/test-printf-posix.sh: Update.
48528         * tests/test-vfprintf-posix.sh: Update.
48529         * tests/test-vprintf-posix.sh: Update.
48530         Reported by Ralf Wildenhues.
48531
48532 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48533
48534         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
48535         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48536         GCC 4.2, which otherwise issues a lot of warnings.
48537         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
48538         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
48539         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
48540         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
48541         it should no longer be needed.
48542         * lib/string_.h: Likewise.
48543         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
48544         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
48545         * modules/inttypes (inttypes.h): Likewise.
48546         * modules/math (math.h): Likewise.
48547         * modules/search (search.h): Likewise.
48548         * modules/signal (signal.h): Likewise.
48549         * modules/stdint (stdint.h): Likewise.
48550         * modules/stdio (stdio.h): Likewise.
48551         * modules/stdlib (stdlib.h): Likewise.
48552         * modules/string (string.h): Likewise.
48553         * modules/sys_time (sys/time.h): Likewise.
48554         * modules/time (time.h): Likewise.
48555         * modules/wchar (wchar.h): Likewise.
48556         * modules/wctype (wtype.h): Likewise.
48557
48558 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48559
48560         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48561
48562 2007-05-13  Bruno Haible  <bruno@clisp.org>
48563
48564         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48565         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48566         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48567         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48568         (gl_PREREQ_STRTOK_R): Don't require it here.
48569
48570 2007-05-13  Bruno Haible  <bruno@clisp.org>
48571
48572         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48573         when used in C++ mode.
48574
48575 2007-05-12  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/linebuffer.h: Tweak doc.
48578         * lib/linebuffer.c: Likewise.
48579
48580 2007-05-12  James Youngman  <jay@gnu.org>
48581
48582         * lib/linebuffer.c (readlinebuffer_delim): New function,
48583         like readlinebuffer, but use a caller-specified delimiter.
48584         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48585         as the delimiter.
48586         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48587
48588 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48589
48590         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48591         * modules/openat (Files): Remove openat-die.c.
48592         (Depends-on): Add openat-die.
48593         * modules/openat-die: New module.
48594
48595 2007-05-06  Bruno Haible  <bruno@clisp.org>
48596
48597         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48598         Update with info about Cygwin.
48599         * doc/functions/fprintf.texi: Update.
48600         * doc/functions/printf.texi: Update.
48601         * doc/functions/snprintf.texi: Update.
48602         * doc/functions/sprintf.texi: Update.
48603         * doc/functions/vfprintf.texi: Update.
48604         * doc/functions/vprintf.texi: Update.
48605         * doc/functions/vsnprintf.texi: Update.
48606         * doc/functions/vsprintf.texi: Update.
48607         Reported by Eric Blake.
48608
48609 2007-05-06  Bruno Haible  <bruno@clisp.org>
48610
48611         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48612         padding ourselves for the floating-point directives.
48613         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48614         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48616         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48617         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48618         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48619         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48620         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48621         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48622         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48623         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48624         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48625         * tests/test-snprintf-posix.h (test_function): Also check the width
48626         and some flags in the %f directive.
48627         * tests/test-sprintf-posix.h (test_function): Likewise.
48628         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48629         * tests/test-vasprintf-posix.c (test_function): Likewise.
48630         * doc/functions/fprintf.texi: Update.
48631         * doc/functions/printf.texi: Update.
48632         * doc/functions/snprintf.texi: Update.
48633         * doc/functions/sprintf.texi: Update.
48634         * doc/functions/vfprintf.texi: Update.
48635         * doc/functions/vprintf.texi: Update.
48636         * doc/functions/vsnprintf.texi: Update.
48637         * doc/functions/vsprintf.texi: Update.
48638
48639 2007-05-06  Bruno Haible  <bruno@clisp.org>
48640
48641         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48642         pass the ' flag character to sprintf or snprintf.
48643         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48645         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48646         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48647         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48648         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48649         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48650         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48651         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48652         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48653         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48654         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48655         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48656         flag.
48657         * tests/test-sprintf-posix.h (test_function): Likewise.
48658         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48659         * tests/test-vasprintf-posix.c (test_function): Likewise.
48660         * doc/functions/fprintf.texi: Update.
48661         * doc/functions/printf.texi: Update.
48662         * doc/functions/snprintf.texi: Update.
48663         * doc/functions/sprintf.texi: Update.
48664         * doc/functions/vfprintf.texi: Update.
48665         * doc/functions/vprintf.texi: Update.
48666         * doc/functions/vsnprintf.texi: Update.
48667         * doc/functions/vsprintf.texi: Update.
48668
48669 2007-05-01  Bruno Haible  <bruno@clisp.org>
48670
48671         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48672
48673 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48674
48675         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48676         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48677
48678 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48679
48680         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48681         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48682         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48683
48684 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48685
48686         * lib/argp-help.c (struct hol_entry): New member `ord'.
48687         (HOL_ENTRY_PTRCMP): Use ord for comparison
48688         (hol_sort): Initialize ord.
48689
48690 2007-05-01  Bruno Haible  <bruno@clisp.org>
48691
48692         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48693         Reported by Eric Blake.
48694         * doc/gnulib.texi (Function Substitutes): Update.
48695
48696 2007-05-01  Bruno Haible  <bruno@clisp.org>
48697
48698         * doc/functions.texi: Remove file, now redundant through
48699         doc/functions/*.texi.
48700
48701 2007-05-01  Bruno Haible  <bruno@clisp.org>
48702
48703         * modules/argp (Depends-on): Add sleep.
48704
48705 2007-05-01  Bruno Haible  <bruno@clisp.org>
48706
48707         * modules/sleep-tests: New file.
48708         * tests/test-sleep.c: New file.
48709
48710         * modules/sleep: New file.
48711         * lib/sleep.c: New file.
48712         * m4/sleep.m4: New file.
48713         * lib/unistd_.h (sleep): New declaration.
48714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48715         HAVE_SLEEP.
48716         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48717         * doc/functions/sleep.texi: Document the sleep module.
48718
48719 2007-05-01  Bruno Haible  <bruno@clisp.org>
48720
48721         * lib/sigprocmask.h: Remove file.
48722         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48723         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48724         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48725         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48726         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48727         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48728         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48729         HAVE_SIGSET_T as a shell variable.
48730         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48731         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48732         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48733         (Depends-on): Add signal. Remove verify.
48734         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48735         (Include): Mention <signal.h> instead of sigprocmask.h.
48736         * NEWS: Mention the change.
48737         * lib/fatal-signal.c: Don't include sigprocmask.h.
48738
48739 2007-05-01  Bruno Haible  <bruno@clisp.org>
48740
48741         * modules/signal: New file.
48742         * lib/signal_.h: New file.
48743         * m4/signal_h.m4: New file.
48744
48745 2007-05-01  Bruno Haible  <bruno@clisp.org>
48746
48747         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48748         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48749         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48750         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48751
48752 2007-05-01  Bruno Haible  <bruno@clisp.org>
48753
48754         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48755         configure time.
48756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48757         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48758         * modules/sys_stat (Makefile.am): Substitute their values into
48759         sys/stat.h.
48760
48761 2007-05-01  Bruno Haible  <bruno@clisp.org>
48762
48763         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48764         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48765         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48766
48767 2007-05-01  Bruno Haible  <bruno@clisp.org>
48768
48769         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48770         'assert' module here.
48771
48772 2007-05-01  Bruno Haible  <bruno@clisp.org>
48773
48774         * doc/functions/*.texi: New files.
48775         * doc/functions/google-ranking.txt: New file.
48776         * doc/gnulib.texi (Function Substitutes): New chapter.
48777         (ctime, inet_ntoa): Remove sections.
48778         * doc/ctime.texi: Remove file.
48779         * doc/inet_ntoa.texi: Remove file.
48780         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48781         dependencies.
48782         (%.info): New rule, specifying a --reference-limit.
48783
48784 2007-05-01  Bruno Haible  <bruno@clisp.org>
48785
48786         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48787
48788 2007-05-01  Bruno Haible  <bruno@clisp.org>
48789
48790         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48791         the portability of 'mkdir' to mingw systems.
48792
48793 2007-05-01  Bruno Haible  <bruno@clisp.org>
48794
48795         * doc/headers/google-ranking.txt: New file.
48796
48797 2007-04-30  Eric Blake  <ebb9@byu.net>
48798
48799         Prefer fseeko to fseek.
48800         * modules/getpass (Depends-on): Add fseeko.
48801         * lib/getpass.c (getpass): Use fseeko, not fseek.
48802
48803 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48804
48805         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48806         assumes the sorting is stable, while most qsort implementations
48807         are not.  Use argument addresses to ensure they never compare as
48808         equal.
48809
48810         * tests/test-argp-2.sh (usage-indent test): Fix output
48811         (func_compare): Restore diff options
48812         * tests/test-argp.c: Restore #include "progname.h"
48813
48814 2007-04-29  Bruno Haible  <bruno@clisp.org>
48815
48816         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48818         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48820         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48821         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48822         (TESTS, check_PROGRAMS): Add test-snprintf.
48823         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48824         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48825         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48826         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48827         assertions that fail on HP-UX, OSF/1, or IRIX.
48828         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48829
48830 2007-04-29  Bruno Haible  <bruno@clisp.org>
48831
48832         * MODULES.html.sh (posix_functions): Remove 'contents'.
48833
48834 2007-04-29  Karl Berry  <karl@gnu.org>
48835
48836         * config/srclist.txt (gendocs_template_min): new entry.
48837
48838 2007-04-29  Bruno Haible  <bruno@clisp.org>
48839
48840         Work around fpurge bug on BSD systems.
48841         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48842         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48843         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48844         fpurge to rpl_fpurge if the system already has this function.
48845         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48846         the case where the system already has this function. Correct invariants
48847         on BSD systems.
48848         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48849         BSD systems.
48850
48851 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48852
48853         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48854         proposed by Sven Verdoolaege.
48855
48856         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48857         options.
48858         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48859         (usage and help tests): Update
48860
48861 2007-04-29  Bruno Haible  <bruno@clisp.org>
48862
48863         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48864         Print more information in case of failure. Disable a test on BeOS.
48865
48866 2007-04-29  Bruno Haible  <bruno@clisp.org>
48867
48868         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48869         This helps debugging on systems on which no gdb is available.
48870
48871 2007-04-29  Bruno Haible  <bruno@clisp.org>
48872
48873         * lib/freading.h: Improve comments.
48874         * lib/fwriting.h: Likewise.
48875         * tests/test-freading.c (main): Don't check freading immediately after
48876         repositioning. Needed for glibc.
48877
48878 2007-04-29  Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/freading.c (freading): Trivial simplification.
48881
48882 2007-04-28  Bruno Haible  <bruno@clisp.org>
48883
48884         * tests/test-fwriting.c (main): Also test the interaction between
48885         fflush and fwriting.
48886         * modules/fwriting-tests (Depends-on): Add fflush.
48887
48888         * tests/test-freading.c (main): Also test the interaction between
48889         fflush and freading.
48890         * modules/freading-tests (Depends-on): Add fflush.
48891
48892 2007-04-28  Bruno Haible  <bruno@clisp.org>
48893
48894         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48895         fseeko and ftello.
48896         Suggested by Eric Blake.
48897
48898 2007-04-28  Jim Meyering  <jim@meyering.net>
48899
48900         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48901         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48902         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48903
48904 2007-04-27  Eric Blake  <ebb9@byu.net>
48905
48906         * doc/headers/assert.texi (assert.h): Document assert module use.
48907
48908 2007-04-27  Bruno Haible  <bruno@clisp.org>
48909
48910         * doc/headers/*.texi: New files.
48911         * doc/gnulib.texi (Header File Substitutes): New chapter.
48912         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48913         dependencies.
48914         (standards.info ,standards.html, standards.dvi): Update dependencies.
48915         (mostlyclean, clean): New targets.
48916
48917 2007-04-27  Bruno Haible  <bruno@clisp.org>
48918
48919         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48920         * modules/sysexits (Files, Makefile.am): Update.
48921
48922         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48923         * modules/sys_socket (Files, Makefile.am): Update.
48924
48925         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48926         * modules/sys_stat (Files, Makefile.am): Update.
48927
48928 2007-04-27  Eric Blake  <ebb9@byu.net>
48929
48930         * lib/freading.h: Improve comments.
48931         * lib/fwriting.h: Likewise.
48932         * lib/fflush.c: Likewise.
48933
48934         Fix closein for mingw.
48935         * modules/closein-tests: Add tests for closein.
48936         * tests/test-closein.c: New file.
48937         * tests/test-closein.sh: Likewise.
48938         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48939         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48940
48941 2007-04-27  Bruno Haible  <bruno@clisp.org>
48942
48943         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48944         version is < 6.
48945         * lib/math_.h [__DECC]: Likewise.
48946         * lib/stdio_.h [__DECC]: Likewise.
48947         * lib/stdlib_.h [__DECC]: Likewise.
48948         * lib/string_.h [__DECC]: Likewise.
48949         * lib/time_.h [__DECC]: Likewise.
48950         * lib/wchar_.h [__DECC]: Likewise.
48951         * lib/wctype_.h [__DECC]: Likewise.
48952
48953 2007-04-27  Bruno Haible  <bruno@clisp.org>
48954
48955         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48956
48957 2007-04-27  Bruno Haible  <bruno@clisp.org>
48958
48959         * lib/fflush.c: Add comments.
48960         * modules/fpurge-tests (Depends-on): Add fflush.
48961         * modules/freadable-tests (Depends-on): Likewise.
48962         * modules/fwritable-tests (Depends-on): Likewise.
48963
48964 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48965
48966         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48967         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48968         Report by Bruno Haible <bruno@clisp.org>.
48969
48970 2007-04-26  Eric Blake  <ebb9@byu.net>
48971
48972         Fix fflush on mingw.
48973         * modules/fflush (Depends-on): Add freading.
48974         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48975         but unread data.
48976
48977 2007-04-26  Eric Blake  <ebb9@byu.net>
48978         and Bruno Haible  <bruno@clisp.org>
48979
48980         Implement freading and fwriting.
48981         * lib/freading.c: New file.
48982         * lib/freading.h: Likewise.
48983         * m4/freading.m4: Likewise.
48984         * modules/freading: Likewise.
48985         * modules/freading-tests: Likewise.
48986         * tests/test-freading.c: Likewise.
48987         * lib/fwriting.c: New file.
48988         * lib/fwriting.h: Likewise.
48989         * m4/fwriting.m4: Likewise.
48990         * modules/fwriting: Likewise.
48991         * modules/fwriting-tests: Likewise.
48992         * tests/test-fwriting.c: Likewise.
48993         * MODULES.html.sh (File stream based Input/Output): Mention them.
48994
48995 2007-04-26  Bruno Haible  <bruno@clisp.org>
48996
48997         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48998         'long' when we assume it.
48999         Suggested by Eric Blake.
49000
49001 2007-04-26  Bruno Haible  <bruno@clisp.org>
49002
49003         Ensure fseeko, ftello are declared on glibc systems.
49004         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49005         * modules/fseeko (configure.ac-early): Likewise.
49006         * modules/ftello (configure.ac-early): Likewise.
49007         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49008         AC_FUNC_FSEEKO for this.
49009         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49010         (gl_CHECK_FSEEKO): Remove macro.
49011
49012 2007-04-26  Bruno Haible  <bruno@clisp.org>
49013
49014         * tests/test-fflush.c (main): Also check the ftell result after
49015         fflush and fseek/fseeko.
49016         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49017         file descriptor position cache in the stream.
49018         * lib/fseeko.c (rpl_fseeko): Likewise.
49019
49020 2007-04-26  Bruno Haible  <bruno@clisp.org>
49021
49022         * modules/fflush-tests (Depends-on): Add fseeko.
49023
49024 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49025             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49026
49027         * lib/argz_.h: ensure error_t definition is obtained in same
49028         mechanism system argz.h would have.
49029         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49030         argz facilities are known bad.  Err on the side of caution if
49031         cross-compiling.
49032
49033 2007-04-25  Eric Blake  <ebb9@byu.net>
49034
49035         * lib/fpurge.c (includes): Use stdlib.h for free.
49036         * tests/test-fflush.c (main): Also test fflush-fseeko.
49037
49038 2007-04-25  Bruno Haible  <bruno@clisp.org>
49039
49040         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49041         * lib/fseeko.c: New file.
49042         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49043         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49044         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49045         gl_FUNC_FSEEKO.
49046         (gl_FUNC_FSEEKO): Invoke it.
49047         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49048         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49049         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49050
49051 2007-04-25  Bruno Haible  <bruno@clisp.org>
49052
49053         * modules/fflush (Depends-on): Add ftello.
49054
49055 2007-04-25  Bruno Haible  <bruno@clisp.org>
49056
49057         * modules/ftello-tests: New file.
49058         * tests/test-ftello.c: New file.
49059
49060         * modules/ftello: New file.
49061         * m4/ftello.m4: New file.
49062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49063         HAVE_FTELLO.
49064         * lib/stdio_.h (ftello): New declaration.
49065         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49066         HAVE_FTELLO.
49067
49068 2007-04-25  Bruno Haible  <bruno@clisp.org>
49069
49070         * modules/fseeko-tests: New file.
49071         * tests/test-fseeko.c: New file.
49072
49073         * modules/fseeko: New file.
49074         * m4/fseeko.m4: New file.
49075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49076         HAVE_FSEEKO.
49077         * lib/stdio_.h (fseeko): New declaration.
49078         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49079         HAVE_FSEEKO.
49080
49081 2007-04-25  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49084
49085 2007-04-25  Bruno Haible  <bruno@clisp.org>
49086
49087         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49088         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49089         * tests/test-unistd.c: Likewise.
49090         * tests/test-fcntl.c: Likewise.
49091
49092 2007-04-23  Eric Blake  <ebb9@byu.net>
49093
49094         * lib/fflush.c: Fix missing include.
49095         Reported by Bruno Haible.
49096
49097 2007-04-23  Bruno Haible  <bruno@clisp.org>
49098
49099         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49100         Reported by Eric Blake.
49101
49102 2007-04-23  Bruno Haible  <bruno@clisp.org>
49103
49104         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49105
49106 2007-04-23  Bruno Haible  <bruno@clisp.org>
49107
49108         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49109
49110 2007-04-23  Bruno Haible  <bruno@clisp.org>
49111
49112         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49113         Needed on HP-UX 11.
49114
49115 2007-04-16  Eric Blake  <ebb9@byu.net>
49116
49117         Make fflush rely on fpurge.
49118         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49119         open coding all variants.
49120         * modules/fflush (Depends-on): Add fpurge and unistd.
49121         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49122         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49123
49124         Fix --with-tests compilation on cygwin.
49125         * modules/argmatch-tests (Makefile.am): List gnulib library first
49126         in LDADD.
49127         * modules/argp-tests (Makefile.am): Likewise.
49128         * modules/array-list-tests (Makefile.am): Likewise.
49129         * modules/array-oset-tests (Makefile.am): Likewise.
49130         * modules/avltree-list-tests (Makefile.am): Likewise.
49131         * modules/avltree-oset-tests (Makefile.am): Likewise.
49132         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49133         * modules/carray-list-tests (Makefile.am): Likewise.
49134         * modules/dirname-tests (Makefile.am): Likewise.
49135         * modules/frexp-tests (Makefile.am): Likewise.
49136         * modules/isnanl-tests (Makefile.am): Likewise.
49137         * modules/linked-list-tests (Makefile.am): Likewise.
49138         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49139         * modules/lock-tests (Makefile.am): Likewise.
49140         * modules/rbtree-list-tests (Makefile.am): Likewise.
49141         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49142         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49143         * modules/tls-tests (Makefile.am): Likewise.
49144         * modules/tsearch-tests (Makefile.am): Likewise.
49145         * modules/xvasprintf-tests (Makefile.am): Likewise.
49146
49147         Fix fpurge for cygwin.
49148         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49149         value.
49150         * modules/fpurge-tests (Depends-on): Clean up trash.
49151
49152 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49153
49154         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49155
49156         * m4/autobuild.m4: Re-indent.
49157
49158 2007-04-13  Bruno Haible  <bruno@clisp.org>
49159
49160         * modules/fpurge-tests: New file.
49161         * tests/test-fpurge.c: New file.
49162
49163         * modules/fpurge: New file.
49164         * lib/fpurge.h: New file.
49165         * lib/fpurge.c: New file.
49166         * m4/fpurge.m4: New file.
49167
49168 2007-04-13  Bruno Haible  <bruno@clisp.org>
49169
49170         * modules/fbufmode-tests: New file.
49171         * tests/test-fbufmode.c: New file.
49172
49173         * modules/fbufmode: New file.
49174         * lib/fbufmode.h: New file.
49175         * lib/fbufmode.c: New file.
49176         * m4/fbufmode.m4: New file.
49177
49178 2007-04-13  Bruno Haible  <bruno@clisp.org>
49179
49180         * modules/fwritable-tests: New file.
49181         * tests/test-fwritable.c: New file.
49182
49183         * modules/fwritable: New file.
49184         * lib/fwritable.h: New file.
49185         * lib/fwritable.c: New file.
49186         * m4/fwritable.m4: New file.
49187
49188 2007-04-13  Bruno Haible  <bruno@clisp.org>
49189
49190         * modules/freadable-tests: New file.
49191         * tests/test-freadable.c: New file.
49192
49193         * modules/freadable: New file.
49194         * lib/freadable.h: New file.
49195         * lib/freadable.c: New file.
49196         * m4/freadable.m4: New file.
49197
49198 2007-04-13  Bruno Haible  <bruno@clisp.org>
49199
49200         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49201         MOSTLYCLEANFILES.
49202
49203 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49204
49205         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49206         gzip bootstrap.conf to avoid dragging in i18n machinery.
49207         (gnulib_tool_option): Use it.
49208
49209 2007-04-13  Bruno Haible  <bruno@clisp.org>
49210
49211         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49212         %F directives.
49213         * tests/test-vasprintf-posix.c (test_function): Likewise.
49214         * tests/test-snprintf-posix.h (test_function): Likewise.
49215         * tests/test-sprintf-posix.h (test_function): Likewise.
49216         * tests/test-fprintf-posix.h (test_function): Likewise.
49217         * tests/test-printf-posix.h (test_function): Likewise.
49218         * tests/test-fprintf-posix.out: Likewise.
49219
49220 2007-04-13  Bruno Haible  <bruno@clisp.org>
49221
49222         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
49223         * modules/tls-tests (configure.ac): Likewise.
49224         Reported by Arto C. Nirkko <anirkko@insel.ch>.
49225
49226 2007-04-13  Bruno Haible  <bruno@clisp.org>
49227
49228         * lib/tls.c (glthread_tls_get): Fix return type.
49229         Patch by Arto C. Nirkko <anirkko@insel.ch>.
49230
49231 2007-04-12  Eric Blake  <ebb9@byu.net>
49232
49233         * modules/gettime (Depends-on): Remove gettime.
49234         Reported by Dmitry V. Levin.
49235
49236 2007-04-12  Bruno Haible  <bruno@clisp.org>
49237
49238         * modules/fflush (Include): Mention <stdio.h>.
49239         * modules/strtoimax (Include): Mention <inttypes.h>.
49240         * modules/strtoumax (Include): Likewise.
49241
49242 2007-04-12  Eric Blake  <ebb9@byu.net>
49243
49244         * .cvsignore: New file.
49245         * .gitignore: Likewise.
49246
49247 2007-04-12  Bruno Haible  <bruno@clisp.org>
49248
49249         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
49250         not before, since $(LDADD) often contains libgnu.a.
49251         * modules/striconv-tests (test_striconv_LDADD): Likewise.
49252         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
49253         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
49254         Needed on Cygwin.
49255
49256 2007-04-12  Eric Blake  <ebb9@byu.net>
49257
49258         Work around glibc's failure to flush stdin on fclose.
49259         * lib/closein.c (close_stdin): Flush stdin before closing.
49260
49261         Work around glibc's failure to reset seekable stdin on exit.
49262         * modules/closein: New module.
49263         * lib/closein.c: New file.
49264         * lib/closein.h: Likewise.
49265         * m4/closein.m4: Likewise.
49266         * MODULES.html.sh (File stream based Input/Output): Document it.
49267
49268 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49269
49270         * gnulib-tool: Rename generated 'autobuild' script to
49271         'do-autobuild' in --create-megatestdir output.
49272
49273         * doc/gnulib.texi (Build robot for gnulib): Fix.
49274
49275 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49276
49277         * modules/sysexits (Depends-on): Add absolute-header.
49278
49279 2007-04-12  Eric Blake  <ebb9@byu.net>
49280
49281         No need to preserve errno on success.
49282         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
49283         Reported by Bruno Haible.
49284
49285 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49286
49287         * MODULES.html.sh (Support for maintaining and releasing
49288         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
49289
49290 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49291
49292         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
49293
49294 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49295
49296         * modules/autobuild: New module.
49297
49298         * m4/autobuild.m4: New file.
49299
49300 2007-04-11  Bruno Haible  <bruno@clisp.org>
49301
49302         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
49303         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
49304         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
49305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
49306         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
49319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49321         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
49322         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49323         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
49325         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49326         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
49328         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49329         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49330         Reported by Eric Blake.
49331
49332 2007-04-11  Bruno Haible  <bruno@clisp.org>
49333
49334         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
49335
49336 2007-04-10  Bruno Haible  <bruno@clisp.org>
49337
49338         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
49339         for NaN and Infinity. Needed on FreeBSD 6.1.
49340         * tests/test-vasnprintf-posix.c (test_function): Undo last change
49341         regarding results for "%010a" of Infinity and NaN.
49342         * tests/test-vasprintf-posix.c (test_function): Likewise.
49343         * tests/test-snprintf-posix.h (test_function): Likewise.
49344         * tests/test-sprintf-posix.h (test_function): Likewise.
49345         * tests/test-fprintf-posix.h (test_function): Likewise.
49346         * tests/test-printf-posix.h (test_function): Likewise.
49347         * tests/test-fprintf-posix.out: Likewise.
49348
49349 2007-04-10  Bruno Haible  <bruno@clisp.org>
49350
49351         * modules/locale-tests: New file.
49352         * tests/test-locale.c: New file.
49353
49354         * modules/locale: New file.
49355         * lib/locale_.h: New file.
49356         * m4/locale_h.m4: New file.
49357
49358 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
49359             Bruno Haible  <bruno@clisp.org>
49360
49361         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
49362         be determined, test for availability of the copysignf, copysign,
49363         copysignl functions.
49364         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
49365         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
49366         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
49367
49368 2007-04-09  Eric Blake  <ebb9@byu.net>
49369
49370         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
49371         * modules/stdio (Makefile.am): Support fflush.
49372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49373         * modules/fflush: New file.
49374         * lib/fflush.c: Likewise.
49375         * m4/fflush.m4: Likewise.
49376         * modules/fflush-tests: New test.
49377         * tests/test-fflush.c: Likewise.
49378         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
49379
49380 2007-04-06  Bruno Haible  <bruno@clisp.org>
49381
49382         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
49383         (VASNPRINTF): Use signbit for faster determination whether to print a
49384         minus sign.
49385         * modules/vasnprintf (Files): Remove lib/float+.h.
49386         * modules/fprintf-posix (Depends-on): Add signbit.
49387         * modules/snprintf-posix (Depends-on): Likewise.
49388         * modules/sprintf-posix (Depends-on): Likewise.
49389         * modules/vasnprintf-posix (Depends-on): Likewise.
49390         * modules/vasprintf-posix (Depends-on): Likewise.
49391         * modules/vfprintf-posix (Depends-on): Likewise.
49392         * modules/vsnprintf-posix (Depends-on): Likewise.
49393         * modules/vsprintf-posix (Depends-on): Likewise.
49394
49395 2007-04-06  Bruno Haible  <bruno@clisp.org>
49396
49397         * tests/test-frexp.c (main): Test also the sign bit of zero results.
49398         * tests/test-frexpl.c (main): Likewise.
49399         * tests/test-ldexpl.c (main): Likewise.
49400         * modules/frexp-tests (Depends-on): Add signbit.
49401         * modules/frexpl-tests (Depdends-on): Likewise.
49402         * modules/ldexpl-tests (Depdends-on): Likewise.
49403
49404 2007-04-06  Bruno Haible  <bruno@clisp.org>
49405
49406         * modules/signbit-tests: New file.
49407         * tests/test-signbit.c: New file.
49408
49409         * modules/signbit: New file.
49410         * lib/signbitf.c: New file.
49411         * lib/signbitd.c: New file.
49412         * lib/signbitl.c: New file.
49413         * m4/signbit.m4: New file.
49414         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
49415         (signbit): New macro.
49416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
49417         REPLACE_SIGNBIT.
49418         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
49419         REPLACE_FREXPL into math.h.
49420
49421 2007-04-06  Bruno Haible  <bruno@clisp.org>
49422
49423         * modules/isnanf-nolibm-tests: New file.
49424         * tests/test-isnanf.c: New file.
49425
49426         * modules/isnanf-nolibm: New file.
49427         * lib/isnanf.h: New file.
49428         * lib/isnanf.c: New file.
49429         * lib/isnan.c: Consider the USE_FLOAT macro.
49430         * m4/isnanf.m4: New file.
49431
49432 2007-04-06  Bruno Haible  <bruno@clisp.org>
49433
49434         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
49435         (Link): New section.
49436
49437         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
49438
49439 2007-04-06  Bruno Haible  <bruno@clisp.org>
49440
49441         Assume the 'long double' type.
49442         * m4/longdouble.m4: Remove file.
49443         * config/srclist.txt: Don't mention longdouble.m4.
49444         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
49445         * lib/float+.h: Likewise.
49446         * lib/frexp.c: Likewise.
49447         * lib/printf-args.h: Likewise.
49448         * lib/printf-args.c: Likewise.
49449         * lib/printf-frexp.c: Likewise.
49450         * lib/printf-parse.c: Likewise.
49451         * lib/vasnprintf.c: Likewise.
49452         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
49453         * m4/intl.m4: Likewise.
49454         * m4/isnanl.m4: Likewise.
49455         * m4/printf.m4: Likewise.
49456         * m4/printf-frexpl.m4: Likewise.
49457         * m4/vasnprintf.m4: Likewise.
49458         * modules/allocsa (Files): Remove m4/longdouble.m4.
49459         * modules/gettext (Files): Likewise.
49460         * modules/relocatable-prog-wrapper (Files): Likewise.
49461         * modules/vasnprintf (Files): Likewise.
49462         * modules/isnanl (Files): Likewise.
49463         (Include): Simplify.
49464         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
49465         (Include): Simplify.
49466         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
49467         (Include): Simplify.
49468         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
49469         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49470         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
49471         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49472         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49473         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49474         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
49475         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49476         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49477         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49478         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
49479         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49480         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
49481         * tests/test-isnanl.c: Likewise.
49482         * tests/test-snprintf-posix.h: Likewise.
49483         * tests/test-sprintf-posix.h: Likewise.
49484         * tests/test-vasnprintf-posix.c: Likewise.
49485         * tests/test-vasnprintf-posix2.c: Likewise.
49486         * tests/test-vasprintf-posix.c: Likewise.
49487
49488 2007-04-06  Bruno Haible  <bruno@clisp.org>
49489
49490         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
49491         * lib/math_.h [__DECC]: Include the overridden include file through
49492         #include_next, outside the double-inclusion guard.
49493         * lib/stdio_.h [__DECC]: Likewise.
49494         * lib/stdlib_.h [__DECC]: Likewise.
49495         * lib/string_.h [__DECC]: Likewise.
49496         * lib/time_.h [__DECC]: Likewise.
49497         * lib/wchar_.h [__DECC]: Likewise.
49498         * lib/wctype_.h [__DECC]: Likewise.
49499         * lib/inttypes_.h [__DECC]: Likewise.
49500         Reported by Albert Chin <china@thewrittenword.com> in
49501         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
49502
49503 2007-04-04  Eric Blake  <ebb9@byu.net>
49504
49505         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
49506         1.5.x.
49507
49508 2007-04-04  Bruno Haible  <bruno@clisp.org>
49509
49510         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
49511         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
49512
49513 2007-04-04  Bruno Haible  <bruno@clisp.org>
49514
49515         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
49516         results for "%010a" of Infinity and NaN.
49517         * tests/test-vasprintf-posix.c (test_function): Likewise.
49518         * tests/test-snprintf-posix.h (test_function): Likewise.
49519         * tests/test-sprintf-posix.h (test_function): Likewise.
49520         * tests/test-fprintf-posix.h (test_function): Remove these tests.
49521         * tests/test-printf-posix.h (test_function): Likewise.
49522         * tests/test-fprintf-posix.out: Update.
49523         Needed for FreeBSD 6.1.
49524
49525 2007-04-04  Bruno Haible  <bruno@clisp.org>
49526
49527         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
49528         directly used by the gnulib modules nor by gnulib-tool.
49529
49530 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49531
49532         * DEPENDENCIES: Give overall description of version dependency
49533         desirability.  Use more-typical names for apps.
49534         Add shell, coreutils, diffutils, grep, tar, gzip.
49535
49536 2007-04-04  Simon Josefsson  <simon@josefsson.org>
49537
49538         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
49539
49540 2007-04-04  Karl Berry  <karl@gnu.org>
49541
49542         * MODULES.html.sh (func_module): missing '.
49543
49544 2007-04-03  Bruno Haible  <bruno@clisp.org>
49545
49546         * modules/argmatch-tests (Makefile.am): New variable
49547         test_argmatch_LDADD.
49548         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
49549         * modules/array-list-tests (Makefile.am): New variable
49550         test_array_list_LDADD.
49551         * modules/array-oset-tests (Makefile.am): New variable
49552         test_array_oset_LDADD.
49553         * modules/avltree-list-tests (Makefile.am): New variable
49554         test_avltree_list_LDADD.
49555         * modules/avltree-oset-tests (Makefile.am): New variable
49556         test_avltree_oset_LDADD.
49557         * modules/avltreehash-list-tests (Makefile.am): New variable
49558         test_avltreehash_list_LDADD.
49559         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49560         test_canonicalize_lgpl_LDADD.
49561         * modules/carray-list-tests (Makefile.am): New variable
49562         test_carray_list_LDADD.
49563         * modules/dirname-tests (Makefile.am): New variable
49564         test_dirname_LDADD.
49565         * modules/linked-list-tests (Makefile.am): New variable
49566         test_linked_list_LDADD.
49567         * modules/linkedhash-list-tests (Makefile.am): New variable
49568         test_linkedhash_list_LDADD.
49569         * modules/rbtree-list-tests (Makefile.am): New variable
49570         test_rbtree_list_LDADD.
49571         * modules/rbtree-oset-tests (Makefile.am): New variable
49572         test_rbtree_oset_LDADD.
49573         * modules/rbtreehash-list-tests (Makefile.am): New variable
49574         test_rbtreehash_list_LDADD.
49575         * modules/xvasprintf-tests (Makefile.am): New variable
49576         test_xvasprintf_LDADD.
49577         Reported by Eric Blake.
49578
49579 2007-04-03  Eric Blake  <ebb9@byu.net>
49580
49581         * DEPENDENCIES: Weaken m4 requirements.
49582
49583 2007-04-03  Bruno Haible  <bruno@clisp.org>
49584
49585         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49586         * modules/isnanl-tests (configure.ac): Likewise.
49587
49588 2007-04-03  Ben Pfaff  <blp@gnu.org>
49589
49590         * modules/iconv_open: Add $(srcdir)/ to source directory
49591         references in Makefile fragments that call gperf, to fix VPATH
49592         builds.
49593
49594 2007-04-03  Bruno Haible  <bruno@clisp.org>
49595
49596         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49597         * lib/ldexpl.c: Undo last change.
49598
49599 2007-04-03  Bruno Haible  <bruno@clisp.org>
49600
49601         * modules/printf-frexpl (Depends-on): Undo last change.
49602         (Files): Add m4/ldexpl.m4.
49603
49604 2007-04-03  Bruno Haible  <bruno@clisp.org>
49605
49606         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49607         * modules/isnanl (Link): New section.
49608
49609         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49610         * modules/frexp (Link): New section.
49611
49612         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49613         * modules/frexpl (Link): New section.
49614
49615         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49616         * modules/ldexpl (Link): New section.
49617
49618 2007-04-03  Bruno Haible  <bruno@clisp.org>
49619
49620         * modules/TEMPLATE-EXTENDED: New file.
49621         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49622
49623 2007-04-03  Bruno Haible  <bruno@clisp.org>
49624
49625         * DEPENDENCIES: New file.
49626         Suggested by Simon Josefsson.
49627
49628 2007-04-03  Bruno Haible  <bruno@clisp.org>
49629
49630         * doc/gnulib.texi: Escape @.
49631
49632 2007-04-03  James Youngman  <jay@gnu.org>
49633         and Paul Eggert  <eggert@cs.ucla.edu>
49634
49635         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49636         birthtime on all systems that have birthtime, not just those which
49637         use st_birthtimensec rather than st_birthtim.  Putting zero in
49638         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49639         that the birth time is not available for files on an NFS mount.
49640
49641 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49642
49643         * modules/memxor: Move back from crypto/, suggested by Bruno.
49644         * modules/crypto/hmac-sha1: Fix memxor dependency.
49645
49646         * modules/crypto/gc: Moved from ../.
49647
49648 2007-04-02  Eric Blake  <ebb9@byu.net>
49649
49650         * lib/ldexpl.c (includes): Avoid libm.
49651
49652         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49653
49654 2007-04-02  Bruno Haible  <bruno@clisp.org>
49655
49656         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49657         on IRIX.
49658
49659 2007-04-02  Bruno Haible  <bruno@clisp.org>
49660
49661         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49662         x86 or x86_64 platforms running MacOS X.
49663         Reported by Ryan Schmidt <@ryandesign.com>.
49664
49665 2007-04-02  Bruno Haible  <bruno@clisp.org>
49666
49667         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49668         i386.
49669
49670 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49671
49672         * modules/crypto/arcfour: Moved from ../.
49673         * modules/crypto/arcfour-tests: Moved from ../.
49674         * modules/crypto/arctwo: Moved from ../.
49675         * modules/crypto/arctwo-tests: Moved from ../.
49676         * modules/crypto/des: Moved from ../.
49677         * modules/crypto/des-tests: Moved from ../.
49678         * modules/crypto/gc-arcfour: Moved from ../.
49679         * modules/crypto/gc-arcfour-tests: Moved from ../.
49680         * modules/crypto/gc-arctwo: Moved from ../.
49681         * modules/crypto/gc-arctwo-tests: Moved from ../.
49682         * modules/crypto/gc-des: Moved from ../.
49683         * modules/crypto/gc-des-tests: Moved from ../.
49684         * modules/crypto/gc-hmac-md5: Moved from ../.
49685         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49686         * modules/crypto/gc-hmac-sha1: Moved from ../.
49687         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49688         * modules/crypto/gc-md2: Moved from ../.
49689         * modules/crypto/gc-md2-tests: Moved from ../.
49690         * modules/crypto/gc-md4: Moved from ../.
49691         * modules/crypto/gc-md4-tests: Moved from ../.
49692         * modules/crypto/gc-md5: Moved from ../.
49693         * modules/crypto/gc-md5-tests: Moved from ../.
49694         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49695         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49696         * modules/crypto/gc-random: Moved from ../.
49697         * modules/crypto/gc-rijndael: Moved from ../.
49698         * modules/crypto/gc-rijndael-tests: Moved from ../.
49699         * modules/crypto/gc-sha1: Moved from ../.
49700         * modules/crypto/gc-sha1-tests: Moved from ../.
49701         * modules/crypto/gc-tests: Moved from ../.
49702         * modules/crypto/hmac-md5: Moved from ../.
49703         * modules/crypto/hmac-md5-tests: Moved from ../.
49704         * modules/crypto/hmac-sha1: Moved from ../.
49705         * modules/crypto/hmac-sha1-tests: Moved from ../.
49706         * modules/crypto/md2: Moved from ../.
49707         * modules/crypto/md2-tests: Moved from ../.
49708         * modules/crypto/md4: Moved from ../.
49709         * modules/crypto/md4-tests: Moved from ../.
49710         * modules/crypto/md5: Moved from ../.
49711         * modules/crypto/md5-tests: Moved from ../.
49712         * modules/crypto/memxor: Moved from ../.
49713         * modules/crypto/rijndael: Moved from ../.
49714         * modules/crypto/rijndael-tests: Moved from ../.
49715         * modules/crypto/sha1: Moved from ../.
49716
49717 2007-03-30  James Youngman  <jay@gnu.org>
49718
49719         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49720         rename() to change the ctime of a file (because ctime is unaffected
49721         by rename on jfs2 on AIX 5.1).
49722         (main): Start by doing cleanup, in case a previous run failed leaving
49723         test files behind.
49724
49725 2007-03-31  Bruno Haible  <bruno@clisp.org>
49726
49727         Support old proprietary implementations of iconv.
49728         * modules/iconv_open: New file.
49729         * lib/iconv_.h: New file.
49730         * m4/iconv_h.m4: New file.
49731         * lib/iconv_open.c: New file.
49732         * lib/iconv_open-aix.gperf: New file.
49733         * lib/iconv_open-hpux.gperf: New file.
49734         * lib/iconv_open-irix.gperf: New file.
49735         * lib/iconv_open-osf.gperf: New file.
49736         * m4/iconv_open.m4: New file.
49737         * modules/linebreak (Depends-on): Add iconv_open.
49738         * modules/striconv (Depends-on): Likewise.
49739         * modules/striconveh (Depends-on): Likewise.
49740         * modules/unicodeio (Depends-on): Likewise.
49741         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49742         (iconv_t)(-1).
49743         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49744         conversion if cd is (iconv_t)(-1).
49745         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49746         is not possible.
49747
49748 2007-03-31  Bruno Haible  <bruno@clisp.org>
49749
49750         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49751         work on Solaris either. Protect also second use of "autodetect_jp".
49752
49753 2007-03-31  Bruno Haible  <bruno@clisp.org>
49754
49755         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49756         the function is not present.
49757
49758 2007-03-31  Bruno Haible  <bruno@clisp.org>
49759
49760         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49761         the function is not present.
49762
49763 2007-03-31  Bruno Haible  <bruno@clisp.org>
49764
49765         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49766         a bug in HP-UX iconv_open().
49767
49768 2007-03-31  Bruno Haible  <bruno@clisp.org>
49769
49770         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49771         (Mathematics <math.h>): New section, add fpieee.
49772         (Input/output <stdio.h>): Add fseterr.
49773         (Mathematics <math.h>): New section, add printf-frexp.
49774         (Container data structures): Add sublist.
49775         (Core language properties): Add fpucw, inline.
49776         (Functions for greatest-width integer types <inttypes.h>): Add
49777         imaxabs, imaxdiv, inttypes.
49778         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49779         isnanl-nolibm, ldexp.
49780         (Mathematics <math.h>): New section, add printf-frexpl.
49781         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49782         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49783         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49784         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49785         (Unicode string functions): Add unistr/u*-mbtoucr.
49786         (Java): Add javacomp-script, javaexec-script.
49787         (C#): Add csharpcomp-script, csharpexec-script.
49788         (Support for building libraries and executables): Add havelib,
49789         relocatable-*.
49790         (Support for maintaining and releasing projects): Renamed from
49791         'Support for maintaining and release projects'. Add announce-gen.
49792
49793 2007-03-31  Bruno Haible  <bruno@clisp.org>
49794
49795         * README: Talk primarily about git.
49796         (git and CVS): Renamed from CVS.
49797         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49798         gnulib is available through git.
49799         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49800
49801 2007-03-30  Bruno Haible  <bruno@clisp.org>
49802
49803         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49804         * lib/poll_.h: Likewise.
49805         * lib/stat_.h: Likewise.
49806         * lib/sys_time_.h: Likewise.
49807         * lib/sysexit_.h: Likewise.
49808         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49809         * lib/stdbool_.h: Likewise.
49810         * lib/byteswap_.h: Add double-inclusion guard.
49811
49812 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49813
49814         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49815
49816 2007-03-30  Karl Berry  <karl@gnu.org>
49817
49818         * config/srclist-update: double space after USA in the license
49819         substitution, since that's how it's usually (?) written.
49820
49821 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49822
49823         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49824         reported by Bruno Haible.
49825
49826 2007-03-29  Bruno Haible  <bruno@clisp.org>
49827
49828         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49829         a bug in AIX iconv().
49830
49831 2007-03-29  Bruno Haible  <bruno@clisp.org>
49832
49833         * modules/ldexpl-tests: New file.
49834         * tests/test-ldexpl.c: New file.
49835
49836 2007-03-29  Bruno Haible  <bruno@clisp.org>
49837
49838         * lib/ldexpl.c: Include fpucw.h.
49839         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49840         multiplication.
49841         * modules/ldexpl (Depends-on): Add fpucw.
49842
49843 2007-03-29  Bruno Haible  <bruno@clisp.org>
49844
49845         * modules/ldexpl: New file.
49846         * m4/ldexpl.m4: New file.
49847         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49848         set.
49849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49850         REPLACE_LDEXPL.
49851         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49852         REPLACE_LDEXPL.
49853         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49854         gl_FUNC_LDEXPL_WORKS.
49855         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49856         * modules/mathl (Files): Remove lib/ldexpl.c.
49857         (Depends-on): Add ldexpl.
49858
49859 2007-03-29  Bruno Haible  <bruno@clisp.org>
49860
49861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49862
49863 2007-03-29  Bruno Haible  <bruno@clisp.org>
49864
49865         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49866         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49867         and possibly also HP-UX.
49868         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49869         work on AIX, IRIX, HP-UX, OSF/1.
49870         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49871         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49872         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49873         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49874         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49875         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49876
49877 2007-03-29  Bruno Haible  <bruno@clisp.org>
49878
49879         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49880
49881 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49882
49883         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49884         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49885
49886 2007-03-29  Eric Blake  <ebb9@byu.net>
49887
49888         * lib/acl-internal.h: Remove redundant include.
49889         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49890         Cygwin when a file is locked.
49891
49892 2007-03-29  Bruno Haible  <bruno@clisp.org>
49893
49894         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49895         file.
49896         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49897
49898 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49899
49900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49901         try to remove a parent directory if the child couldn't be removed
49902         (except for the first rmdir, which could fail because the child
49903         doesn't exist).  Problem reported by Jeff Blaine in
49904         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49905
49906 2007-03-28  Bruno Haible  <bruno@clisp.org>
49907
49908         * lib/striconveh.c (utf8conv_carefully): New function.
49909         (mem_cd_iconveh_internal): Invoke it.
49910
49911 2007-03-28  Bruno Haible  <bruno@clisp.org>
49912
49913         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49914         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49915         input.
49916         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49917         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49918         unistr/u8-uctomb.
49919
49920 2007-03-28  Bruno Haible  <bruno@clisp.org>
49921
49922         * modules/unistr/u8-mbtoucr: New file.
49923         * lib/unistr/u8-mbtoucr.c: New file.
49924         * modules/unistr/u16-mbtoucr: New file.
49925         * lib/unistr/u16-mbtoucr.c: New file.
49926         * modules/unistr/u16-mbtoucr: New file.
49927         * lib/unistr/u16-mbtoucr.c: New file.
49928         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49929
49930 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49931             Bruno Haible  <bruno@clisp.org>
49932
49933         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
49934         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
49935         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
49936
49937         * m4/stdio_h.m4: Add stubs for vasprintf too.
49938
49939         * modules/stdio: Support vasprintf in sed command.
49940
49941         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49942         vasprintf.h.  Add stdio module indicator.
49943
49944         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49945         vasprintf.h.
49946
49947         * lib/vasprintf.h: File removed.
49948
49949         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49950         * lib/vasprintf.c: Ditto.
49951         * lib/xvasprintf.c: Ditto.
49952         * tests/test-vasprintf-posix.c: Ditto.
49953         * tests/test-vasprintf.c: Ditto.
49954
49955 2007-03-27  Bruno Haible  <bruno@clisp.org>
49956
49957         Make vasnprintf multithread-safe.
49958         * lib/vasnprintf.c (decimal_point_char): New function.
49959         (VASNPRINTF): Use it.
49960         Suggested by Simon Josefsson.
49961
49962 2007-03-27  Eric Blake  <ebb9@byu.net>
49963
49964         Support sub-second birthtime on cygwin.
49965         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49966         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49967         (get_stat_birthtime): Also work with st_birthtim.
49968
49969 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49970
49971         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49972         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49973         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49974         (get_stat_birthtime_ns): Simplify compile-time tests.
49975         (get_stat_birthtime): Change the API to look like
49976         get_stat_mtime etc., except return a negative tv_nsec on error.
49977         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49978         Don't check for "spare" fields.
49979         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49980         or for struct stat.st_birthtime, as these tests aren't used.
49981         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49982
49983 2007-03-27  Bruno Haible  <bruno@clisp.org>
49984
49985         * lib/stat-time.h: Include <sys/stat.h>.
49986
49987 2007-03-27  James Youngman  <jay@gnu.org>
49988
49989         * lib/stat-time.h (get_stat_birthtime): New function for
49990           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49991         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49992           and its variants.
49993         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49994         * modules/stat-time-test: New file.
49995         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49996
49997 2007-03-26  Bruno Haible  <bruno@clisp.org>
49998
49999         Better support of signalling NaNs.
50000         * lib/atanl.c: Include isnanl.h.
50001         (atanl): Perform test for NaN at the beginning of the function and
50002         through a call to isnanl.
50003         * lib/cosl.c: Include isnanl.h.
50004         (cosl): Perform test for NaN at the beginning of the function and
50005         through a call to isnanl.
50006         * lib/ldexpl.c: Include isnanl.h.
50007         (ldexpl): Perform test for NaN through a call to isnanl.
50008         * lib/logl.c: Include isnanl.h.
50009         (logl): Perform test for NaN at the beginning of the function and
50010         through a call to isnanl.
50011         * lib/sinl.c: Include isnanl.h.
50012         (sinl): Perform test for NaN at the beginning of the function and
50013         through a call to isnanl.
50014         * lib/sqrtl.c: Include isnanl.h.
50015         (sqrtl): Perform test for NaN at the beginning of the function and
50016         through a call to isnanl.
50017         * lib/tanl.c: Include isnanl.h.
50018         (tanl): Perform test for NaN at the beginning of the function and
50019         through a call to isnanl.
50020         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50021         * modules/mathl (Depends-on): Add isnanl.
50022
50023 2007-03-26  Eric Blake  <ebb9@byu.net>
50024
50025         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50026         regression in logic sense of previous patch.
50027
50028 2007-03-26  Bruno Haible  <bruno@clisp.org>
50029
50030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50031         unportable shell command "if ! ...".
50032         Reported by Ralf Wildenhues.
50033
50034 2007-03-25  Bruno Haible  <bruno@clisp.org>
50035
50036         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50037         <sysexits.h> file, and only add EX_CONFIG.
50038         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50039         absolute file name and whether it is sufficient. Substitute also
50040         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50041         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50042         ABSOLUTE_SYSEXITS_H into sysexits.h.
50043
50044 2007-03-25  Bruno Haible  <bruno@clisp.org>
50045
50046         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50047         hints is NULL.
50048
50049 2007-03-25  Bruno Haible  <bruno@clisp.org>
50050
50051         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50052         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50053
50054 2007-03-25  Bruno Haible  <bruno@clisp.org>
50055
50056         * lib/vasnprintf.c: Include langinfo.h.
50057         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50058         multithread-safe.
50059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50060         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50061         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50062         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50063         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50064         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50065         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50066         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50067         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50068         Reported by Simon Josefsson.
50069
50070 2007-03-25  Bruno Haible  <bruno@clisp.org>
50071
50072         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50073         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50074         * modules/vasnprintf (Depends-on): Add stdint.
50075
50076 2007-03-25  Bruno Haible  <bruno@clisp.org>
50077
50078         * modules/fpieee: New file.
50079         * m4/fpieee.m4: New file.
50080         * modules/isnan-nolibm (Depends-on): Add fpieee.
50081         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50082         * modules/isnanl (Depends-on): Add fpieee.
50083
50084 2007-03-25  Bruno Haible  <bruno@clisp.org>
50085
50086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50087
50088 2007-03-25  Bruno Haible  <bruno@clisp.org>
50089
50090         Avoid test failures on IRIX 6.5.
50091         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50092         (main): Use it.
50093         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50094         macros.
50095         (main): Use them.
50096
50097 2007-03-25  Bruno Haible  <bruno@clisp.org>
50098
50099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50100         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50101         exists but doesn't work.
50102         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50103         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50105         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50106
50107 2007-03-25  Bruno Haible  <bruno@clisp.org>
50108
50109         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50110         returns inf. Needed on IRIX 6.5.
50111
50112 2007-03-25  Bruno Haible  <bruno@clisp.org>
50113
50114         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50115         (main): Use isnanl instead of x != x idiom.
50116         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50117
50118         * tests/test-frexp.c: Include isnan.h.
50119         (main): Use isnan instead of x != x idiom.
50120         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50121
50122 2007-03-25  Bruno Haible  <bruno@clisp.org>
50123
50124         * tests/test-frexp.c (NaN): New function/macro.
50125         (main): Use it instead of 0.0 / 0.0.
50126         * tests/test-isnan.c (NaN): New function/macro.
50127         (main): Use it instead of 0.0 / 0.0.
50128         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50129         (test_function): Use it instead of 0.0 / 0.0.
50130         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50131         (test_function): Use it instead of 0.0 / 0.0.
50132         * tests/test-snprintf-posix.h (NaN): New function/macro.
50133         (test_function): Use it instead of 0.0 / 0.0.
50134         * tests/test-sprintf-posix.h (NaN): New function/macro.
50135         (test_function): Use it instead of 0.0 / 0.0.
50136         * tests/test-fprintf-posix.h (NaN): New function/macro.
50137         (test_function): Use it instead of 0.0 / 0.0.
50138         * tests/test-printf-posix.h (NaN): New function/macro.
50139         (test_function): Use it instead of 0.0 / 0.0.
50140
50141         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50142
50143 2007-03-25  Bruno Haible  <bruno@clisp.org>
50144
50145         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50146
50147 2007-03-25  Bruno Haible  <bruno@clisp.org>
50148
50149         * lib/regexec.c (merge_state_with_log): Make static.
50150
50151 2007-03-25  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/trigl.c (kernel_rem_pio2): Make static.
50154
50155 2007-03-25  Bruno Haible  <bruno@clisp.org>
50156
50157         * lib/sincosl.c (sincosl_table): Make static.
50158
50159 2007-03-25  Bruno Haible  <bruno@clisp.org>
50160
50161         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50162         if the compiler does not support C99.
50163
50164 2007-03-25  Bruno Haible  <bruno@clisp.org>
50165
50166         * modules/time (Makefile.am): Ensure all rule action lines start with a
50167         tab.
50168
50169 2007-03-24  Bruno Haible  <bruno@clisp.org>
50170
50171         * modules/tsearch-tests: New file.
50172         * tests/test-tsearch.sh: New file.
50173         * tests/test-tsearch.c: New file, mostly copied from glibc.
50174
50175         * modules/search-tests: New file.
50176         * tests/test-search.c: New file.
50177
50178         * modules/search: New file.
50179         * lib/search_.h: New file, incorporating lib/tsearch.h.
50180         * m4/search_h.m4: New file.
50181         * lib/tsearch.h: Remove file.
50182         * lib/tsearch.c: Include search.h instead of tsearch.h.
50183         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50184         HAVE_TSEARCH.
50185         * modules/tsearch (Files): Remove lib/tsearch.h.
50186         (Depends-on): Add search.
50187         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50188         (Include): Change tsearch.h into search.h.
50189
50190 2007-03-24  Bruno Haible  <bruno@clisp.org>
50191
50192         * modules/fpucw: New file.
50193         * lib/fpucw.h: New file.
50194         * lib/frexp.c: Include fpucw.h.
50195         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50196         (FUNC): Use them.
50197         * lib/printf-frexp.c: Include fpucw.h.
50198         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50199         (FUNC): Use them.
50200         * lib/vasnprintf.c: Include fpucw.h.
50201         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50202         'long double' calculations.
50203         * tests/test-frexpl.c: Include fpucw.h.
50204         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50205         * tests/test-printf-frexpl.c: Include fpucw.h.
50206         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50207         * modules/frexpl (Depends-on): Add fpucw.
50208         * modules/printf-frexpl (Depends-on): Likewise.
50209         * modules/fprintf-posix (Depends-on): Likewise.
50210         * modules/snprintf-posix (Depends-on): Likewise.
50211         * modules/sprintf-posix (Depends-on): Likewise.
50212         * modules/vasnprintf-posix (Depends-on): Likewise.
50213         * modules/vasprintf-posix (Depends-on): Likewise.
50214         * modules/vfprintf-posix (Depends-on): Likewise.
50215         * modules/vsnprintf-posix (Depends-on): Likewise.
50216         * modules/vsprintf-posix (Depends-on): Likewise.
50217         * modules/frexpl-tests (Depends-on): Likewise.
50218         * modules/printf-frexpl-tests (Depends-on): Likewise.
50219
50220 2007-03-24  Bruno Haible  <bruno@clisp.org>
50221
50222         * lib/float+.h: New file.
50223         * lib/isnan.c: Include float+.h.
50224         (SIZE): New macro.
50225         (FUNC): Compare only SIZE bytes of the value.
50226         * lib/vasnprintf.c: Include float+.h.
50227         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
50228         SIZEOF_LDBL or SIZEOF_DBL bytes.
50229         * modules/isnan-nolibm (Files): Add lib/float+.h.
50230         * modules/isnanl-nolibm (Files): Add lib/float+.h.
50231         * modules/isnanl (Files): Add lib/float+.h.
50232         * modules/vasnprintf (Files): Add lib/float+.h.
50233
50234 2007-03-24  Bruno Haible  <bruno@clisp.org>
50235
50236         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
50237         include isnanl-nolibm.h.
50238
50239 2007-03-24  Bruno Haible  <bruno@clisp.org>
50240
50241         * tests/test-read-file.c (main): Don't produce spurious output for
50242         expected situations. Make the test fail if it encountered unexpected
50243         results.
50244
50245 2007-03-24  Bruno Haible  <bruno@clisp.org>
50246
50247         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
50248         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
50249
50250 2007-03-24  Bruno Haible  <bruno@clisp.org>
50251
50252         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
50253
50254 2007-03-24  Bruno Haible  <bruno@clisp.org>
50255
50256         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
50257         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
50258
50259         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
50260         * modules/utf8-ucs4: Turn into a symbolic link to module
50261         unistr/u8-mbtouc.
50262
50263         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
50264         utf8-ucs4-unsafe.
50265         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
50266         unistr/u8-mbtouc-unsafe.
50267
50268         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
50269         * modules/utf16-ucs4: Turn into a symbolic link to module
50270         unistr/u16-mbtouc.
50271
50272         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
50273         utf16-ucs4-unsafe.
50274         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
50275         unistr/u16-mbtouc-unsafe.
50276
50277         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
50278         * modules/ucs4-utf8: Turn into a symbolic link to module
50279         unistr/u8-ubtomb.
50280
50281         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
50282         * modules/ucs4-utf16: Turn into a symbolic link to module
50283         unistr/u16-ubtomb.
50284
50285 2007-03-24  Bruno Haible  <bruno@clisp.org>
50286
50287         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
50288         Enable the function only if HAVE_INLINE.
50289         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
50290         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50291         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
50292         Enable the function only if HAVE_INLINE.
50293         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
50294         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50295         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
50296         Enable the function only if HAVE_INLINE.
50297         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
50298         Enable the function only if HAVE_INLINE.
50299         * modules/utf8-ucs4: Update.
50300         * modules/utf8-ucs4-unsafe: Update.
50301         * modules/utf16-ucs4: Update.
50302         * modules/utf16-ucs4-unsafe: Update.
50303         * modules/ucs4-utf8: Update.
50304         * modules/ucs4-utf16: Update.
50305
50306 2007-03-24  Bruno Haible  <bruno@clisp.org>
50307
50308         * lib/utf8-ucs4.h: Remove file.
50309         * lib/utf8-ucs4-unsafe.h: Remove file.
50310         * lib/utf16-ucs4.h: Remove file.
50311         * lib/utf16-ucs4-unsafe.h: Remove file.
50312         * lib/ucs4-utf8.h: Remove file.
50313         * lib/ucs4-utf16.h: Remove file.
50314         * lib/unistr.h: Include their previous contents.
50315         * m4/utf-ucs4.m4: Remove file.
50316         * m4/ucs4-utf.m4: Remove file.
50317         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
50318         (Depends-on): Add unistr/base.
50319         (configure.ac): Remove gl_UTF_UCS4.
50320         (Makefile.am): Update.
50321         (Include): Change to unistr.h.
50322         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
50323         (Depends-on): Add unistr/base.
50324         (configure.ac): Remove gl_UTF_UCS4.
50325         (Makefile.am): Update.
50326         (Include): Change to unistr.h.
50327         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
50328         (Depends-on): Add unistr/base.
50329         (configure.ac): Remove gl_UTF_UCS4.
50330         (Makefile.am): Update.
50331         (Include): Change to unistr.h.
50332         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
50333         (Depends-on): Add unistr/base.
50334         (configure.ac): Remove gl_UTF_UCS4.
50335         (Makefile.am): Update.
50336         (Include): Change to unistr.h.
50337         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
50338         (Depends-on): Add unistr/base.
50339         (configure.ac): Remove gl_UCS4_UTF.
50340         (Makefile.am): Update.
50341         (Include): Change to unistr.h.
50342         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
50343         (Depends-on): Add unistr/base.
50344         (configure.ac): Remove gl_UCS4_UTF.
50345         (Makefile.am): Update.
50346         (Include): Change to unistr.h.
50347         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
50348         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
50349         utf8-ucs4-unsafe.h.
50350         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
50351         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
50352         utf16-ucs4-unsafe.h.
50353         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
50354         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
50355         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
50356         * lib/unistr/u8-strchr.c: Likewise.
50357         * lib/unistr/u8-strrchr.c: Likewise.
50358         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
50359         * lib/unistr/u16-strchr.c: Likewise.
50360         * lib/unistr/u16-strrchr.c: Likewise.
50361         * lib/striconveh.c: Update.
50362         * lib/linebreak.c: Update.
50363
50364 2007-03-24  Bruno Haible  <bruno@clisp.org>
50365
50366         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
50367         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
50368
50369 2007-03-22  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
50372
50373 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50374
50375         * MODULES.html.sh (File system functions): New module write-any-file.
50376         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
50377         * m4/write-any-file.m4: New files.
50378
50379 2007-03-23  Eric Blake  <ebb9@byu.net>
50380
50381         * gnulib-tool: Rearrange space-tab sequences, since some editors
50382         like to eat them.
50383
50384 2007-03-23  Eric Blake  <ebb9@byu.net>
50385
50386         * lib/version-etc.c (version_etc_va): Update license wording to
50387         be more concise.  Recommended by Richard Stallman.
50388
50389 2007-03-22  Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/poll.c (MSG_PEEK): New fallback definition.
50392
50393 2007-03-22  Bruno Haible  <bruno@clisp.org>
50394
50395         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
50396         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
50397         (main): Update.
50398         Fixes a compilation error on BeOS.
50399
50400 2007-03-22  Bruno Haible  <bruno@clisp.org>
50401
50402         * modules/frexpl-tests: New file.
50403         * tests/test-frexpl.c: New file.
50404
50405         * modules/frexpl: New file.
50406         * m4/frexpl.m4: New file.
50407         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
50408         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
50409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
50410         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
50411         (Depends-on): Add frexpl. Remove isnanl-nolibm.
50412         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
50413
50414 2007-03-22  Bruno Haible  <bruno@clisp.org>
50415
50416         * lib/frexpl.c: Share code with lib/frexp.c.
50417         * modules/mathl (Files): Add lib/frexp.c.
50418         (Depends-on): Add isnanl-nolibm.
50419
50420 2007-03-22  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/printf-frexp (Files): Add m4/frexp.m4.
50423         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
50424         only if the found frexp function actually works.
50425
50426 2007-03-22  Bruno Haible  <bruno@clisp.org>
50427
50428         * lib/frexp.c: Remove older implementation that uses divisions.
50429
50430 2007-03-21  Bruno Haible  <bruno@clisp.org>
50431
50432         * modules/frexp-tests: New file.
50433         * tests/test-frexp.c: New file.
50434
50435         * modules/frexp: New file.
50436         * lib/frexp.c: New file.
50437         * m4/frexp.m4: New file.
50438         * lib/math_.h (frexp): New declaration.
50439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
50440         REPLACE_FREXP.
50441         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
50442
50443 2007-03-21  Bruno Haible  <bruno@clisp.org>
50444
50445         * modules/isnanl-tests: New file.
50446         * tests/test-isnanl.c: New file.
50447
50448         * modules/isnanl: New file.
50449         * lib/isnanl.h: New file.
50450         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
50451         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
50452         gl_FUNC_ISNANL_WORKS.
50453         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
50454         New macros.
50455
50456 2007-03-21  Bruno Haible  <bruno@clisp.org>
50457
50458         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
50459         lib/isnanl.h.
50460         (Include): Update.
50461         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
50462         * lib/vasnprintf.c: Update.
50463         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
50464         tests/test-isnanl.h, remove tests/test-isnanl.c.
50465         (Makefile.am): Update.
50466         * tests/test-isnanl-nolibm.c: New file.
50467         * tests/test-isnanl.h: New file.
50468         * tests/test-isnanl.c: Remove file.
50469
50470 2007-03-21  Jim Meyering  <jim@meyering.net>
50471
50472         When trying to open ".", treat ESTALE like EACCES.
50473         * lib/savewd.c (savewd_save): Resort to forking not just upon
50474         failure with EACCES, but also when errno is ESTALE.
50475
50476 2007-03-20  Bruno Haible  <bruno@clisp.org>
50477
50478         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
50479         Needed on AIX 5.1. Reported by Matthew Woehlke.
50480
50481 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50482
50483         Suggestions by Bruno Haible:
50484         * lib/acl-internal.h: Include "gettext.h" rather than rolling
50485         our own.
50486         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
50487         * modules/acl (Depends-on): Add gettext.
50488
50489 2007-03-19  Bruno Haible  <bruno@clisp.org>
50490
50491         * modules/iconvme: Remove file.
50492         * lib/iconvme.h: Remove file.
50493         * lib/iconvme.c: Remove file.
50494         * m4/iconvme.m4: Remove file.
50495
50496 2007-03-19  Bruno Haible  <bruno@clisp.org>
50497
50498         * doc/relocatable-maint.texi: Break long shell script line.
50499         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50500
50501 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50502
50503         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
50504         handle file_has_acl.
50505         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
50506         * lib/acl.c: Move header inclusions and related macro defns into
50507         lib/acl-internal.h.
50508         (S_ISLNK): Remove defn, since that's now done for us.
50509         (file_has_acl): Move to lib/file-has-acl.c.
50510         Call acl_trivial if available.  This is the crucial part of the fix.
50511         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
50512         shared within the library.  Rewrite a bit, partly to make it compatible
50513         with the GNU coding style.
50514         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
50515         Remove unnecessary double-quotes.
50516         Don't test for acl_to_text; the build will catch that.
50517         Replace acl_entries if it doesn't exist and it is needed.
50518         Check for -lsec and acl_trivial (as used on Solaris 10).
50519         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
50520         lib/file-has-acl.c.
50521         (Depends-on): Add sys_stat, for S_ISLNK.
50522
50523 2007-03-19  Ben Pfaff  <blp@gnu.org>
50524
50525         * doc/gnulib.texi: Fix typos.
50526         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50527
50528 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50529
50530         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
50531         If size is zero here, buf must be zero.
50532
50533 2007-03-19  Simon Josefsson  <simon@josefsson.org>
50534
50535         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
50536         <bruno@clisp.org>.
50537
50538 2007-03-18  Bruno Haible  <bruno@clisp.org>
50539
50540         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
50541         Suggested by Eric Blake.
50542
50543 2007-03-18  Ben Pfaff  <blp@gnu.org>
50544
50545         * doc/relocatable.texi: Recommend using as prefix a directory
50546         that does not exist and will never be created.  Based on
50547         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
50548         and others.
50549
50550 2007-03-17  Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/fchownat.c: Include lchown.h.
50553
50554 2007-03-17  Bruno Haible  <bruno@clisp.org>
50555
50556         Fix endless loop when the given allocated size was > INT_MAX.
50557         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50558         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50559         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50560         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50561         * lib/sprintf.c (sprintf): Likewise.
50562
50563 2007-03-17  Bruno Haible  <bruno@clisp.org>
50564
50565         * tests/test-argp-2.sh (func_compare): Output a context diff.
50566
50567 2007-03-17  Bruno Haible  <bruno@clisp.org>
50568
50569         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50570         locale's decimal-point character.
50571
50572 2007-03-17  Bruno Haible  <bruno@clisp.org>
50573
50574         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50575         before comparing it. Needed because on some platforms (e.g. x86) a
50576         'long double' occupies less bytes than sizeof (long double).
50577
50578 2007-03-17  Bruno Haible  <bruno@clisp.org>
50579
50580         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50581         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50582         * tests/test-getaddrinfo.c (simple): Likewise.
50583         * tests/test-read-file.c (main): Likewise.
50584
50585 2007-03-17  Bruno Haible  <bruno@clisp.org>
50586
50587         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50588
50589 2007-03-17  Bruno Haible  <bruno@clisp.org>
50590
50591         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50592         unused variable.
50593
50594 2007-03-17  Bruno Haible  <bruno@clisp.org>
50595
50596         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50597         * tests/test-c-strncasecmp.c: Likewise.
50598
50599 2007-03-17  Bruno Haible  <bruno@clisp.org>
50600
50601         * modules/stdlib (Depends-on): Add unistd.
50602         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50603         Needed for MacOS X 10.3.
50604
50605 2007-03-17  Bruno Haible  <bruno@clisp.org>
50606
50607         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50608
50609 2007-03-17  Bruno Haible  <bruno@clisp.org>
50610
50611         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50612
50613 2007-03-17  Bruno Haible  <bruno@clisp.org>
50614
50615         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50616         to reflect files copied from gnulib (with or without modifications).
50617         Suggested by Jim Meyering.
50618
50619 2007-03-17  Eric Blake  <ebb9@byu.net>
50620
50621         * NEWS: Document stdlib change from 2007-02-18.
50622
50623 2007-03-17  Jim Meyering  <jim@meyering.net>
50624
50625         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50626         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50627         someone uses a name containing shell meta-characters.
50628         Reported by Alfred M. Szmidt.
50629
50630         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50631
50632 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50633
50634         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50635         and copy gettext configuration files only if configure.ac contains
50636         a use of AM_GNU_GETTEXT_VERSION.
50637
50638 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50639
50640         * build-aux/bootstrap (gnulib_name): New variable.
50641         (gnulib_tool_options): Use it.
50642
50643 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50644
50645         * tests/test-des.c: Use new namespace.
50646
50647 2007-03-15  Bruno Haible  <bruno@clisp.org>
50648
50649         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50650         Reported by James Youngman <jay@gnu.org>.
50651
50652 2007-03-15  Bruno Haible  <bruno@clisp.org>
50653
50654         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50655         declared prototype. Needed with cc on OSF/1 5.1.
50656
50657 2007-03-15  Bruno Haible  <bruno@clisp.org>
50658
50659         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50660         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50661         (struct gl_list_implementation): Add dispose_fn argument to the
50662         'create_empty', 'create' methods.
50663         (struct gl_list_impl_base): Add field 'dispose_fn'.
50664         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50665         argument.
50666         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50667         dispose_fn argument.
50668         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50669         dispose_fn on the dropped values.
50670         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50671         dispose_fn argument.
50672         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50673         dropped values.
50674         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50675         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50676         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50677         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50678         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50679         argument.
50680         (gl_tree_list_free): Call dispose_fn on the dropped values.
50681         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50682         the dropped values.
50683         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50684         Add dispose_fn argument.
50685         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50686         Call dispose_fn on the dropped values.
50687         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50688         Add dispose_fn argument.
50689         (gl_sublist_create): Initialize the 'dispose_fn' field.
50690         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50691         * tests/test-array_list.c (main): Update.
50692         * tests/test-carray_list.c (main): Update.
50693         * tests/test-avltree_list.c (main): Update.
50694         * tests/test-rbtree_list.c (main): Update.
50695         * tests/test-avltreehash_list.c (main): Update.
50696         * tests/test-rbtreehash_list.c (main): Update.
50697         * tests/test-linked_list.c (main): Update.
50698         * tests/test-linkedhash_list.c (main): Update.
50699         * tests/test-array_oset.c (main): Update.
50700
50701 2007-03-15  Bruno Haible  <bruno@clisp.org>
50702
50703         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50704         (gl_oset_create_empty): Add dispose_fn argument.
50705         (struct gl_oset_implementation): Add dispose_fn argument to
50706         'create_empty' method.
50707         (struct gl_oset_impl_base): Add dispose_fn field.
50708         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50709         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50710         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50711         values.
50712         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50713         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50714         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50715         dropped value.
50716         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50717         dropped value.
50718         * tests/test-array_oset.c (main): Update.
50719         * tests/test-avltree_oset.c (main): Update.
50720         * tests/test-rbtree_oset.c (main): Update.
50721         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50722
50723 2007-03-13  Bruno Haible  <bruno@clisp.org>
50724
50725         * tests/test-stdbool.c (i): Update after last patch.
50726
50727 2007-03-12  Bruno Haible  <bruno@clisp.org>
50728
50729         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50730         the iswprint macro. Needed on Solaris 2.5.1.
50731
50732 2007-03-12  Bruno Haible  <bruno@clisp.org>
50733
50734         * tests/test-printf-frexp.c (main): Declare x as volatile.
50735
50736 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50737
50738         * doc/gnulib.texi (Build robot for gnulib): New section.
50739
50740 2007-03-12  Jim Meyering  <jim@meyering.net>
50741
50742         * build-aux/bootstrap: New file.
50743         * build-aux/bootstrap.conf: New file, from coreutils.
50744
50745 2007-03-11  Bruno Haible  <bruno@clisp.org>
50746
50747         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50748
50749 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50750
50751         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50752         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50753         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50754
50755 2007-03-11  Bruno Haible  <bruno@clisp.org>
50756
50757         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50758         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50759
50760 2007-03-11  Bruno Haible  <bruno@clisp.org>
50761
50762         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50763         formula. Needed for SunPRO C 5.0.
50764
50765 2007-03-11  Bruno Haible  <bruno@clisp.org>
50766
50767         * modules/long-options (Depends-on): Add getopt.
50768
50769 2007-03-11  Bruno Haible  <bruno@clisp.org>
50770
50771         * modules/modechange (Depends-on): Add stdbool.
50772
50773 2007-03-11  Bruno Haible  <bruno@clisp.org>
50774
50775         * modules/i-ring (Depends-on): Add stdbool.
50776
50777 2007-03-11  Bruno Haible  <bruno@clisp.org>
50778
50779         * modules/gc-des (Depends-on): Add stdbool.
50780
50781 2007-03-11  Bruno Haible  <bruno@clisp.org>
50782
50783         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50784
50785 2007-03-11  Bruno Haible  <bruno@clisp.org>
50786
50787         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50788
50789 2007-03-11  Bruno Haible  <bruno@clisp.org>
50790
50791         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50792
50793 2007-03-11  Bruno Haible  <bruno@clisp.org>
50794
50795         * lib/vasnprintf.c (sprintf): Undefine.
50796
50797 2007-03-11  Bruno Haible  <bruno@clisp.org>
50798
50799         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50800         initializers in SunPRO C and Compaq C compilers.
50801
50802 2007-03-11  Bruno Haible  <bruno@clisp.org>
50803
50804         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50805         decrementing code ANSI C compliant.
50806
50807 2007-03-11  Bruno Haible  <bruno@clisp.org>
50808
50809         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50810         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50811
50812 2007-03-11  Bruno Haible  <bruno@clisp.org>
50813
50814         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50815         <stdbool.h> substitute doesn't pass.
50816
50817 2007-03-11  Bruno Haible  <bruno@clisp.org>
50818
50819         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50820
50821 2007-03-11  Bruno Haible  <bruno@clisp.org>
50822
50823         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50824         script, for submission to autobuild.josefsson.org.
50825
50826 2007-03-10  Bruno Haible  <bruno@clisp.org>
50827
50828         * modules/canonicalize-lgpl-tests: New file.
50829         * tests/test-canonicalize-lgpl.sh: New file.
50830         * tests/test-canonicalize-lgpl.c: New file.
50831
50832         * modules/c-strcase-tests: New file.
50833         * tests/test-c-strcase.sh: New file.
50834         * tests/test-c-strcasecmp.c: New file.
50835         * tests/test-c-strncasecmp.c: New file.
50836
50837         * modules/atexit-tests: New file.
50838         * tests/test-atexit.sh: New file.
50839         * tests/test-atexit.c: New file.
50840
50841 2007-03-10  Bruno Haible  <bruno@clisp.org>
50842
50843         * tests/test-binary-io.sh: Use temporary filenames that are not so
50844         likely to clash with those of other tests (in a parallel make).
50845         * tests/test-binary-io.c: Likewise.
50846
50847 2007-03-10  Bruno Haible  <bruno@clisp.org>
50848
50849         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50850         fallback; use #error instead.
50851         Suggested by Simon Josefsson.
50852
50853 2007-03-10  Bruno Haible  <bruno@clisp.org>
50854
50855         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50856         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50857         first and the last.
50858
50859 2007-03-10  Bruno Haible  <bruno@clisp.org>
50860
50861         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50862
50863 2007-03-10  Bruno Haible  <bruno@clisp.org>
50864
50865         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50866         "make distcheck".
50867         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50868         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50869         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50870
50871 2007-03-10  Bruno Haible  <bruno@clisp.org>
50872
50873         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50874         variable.
50875         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50876         variable.
50877
50878 2007-03-09  Eric Blake  <ebb9@byu.net>
50879         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50880
50881         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50882         types are not being provided by gnulib.
50883         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50884         types are supported.
50885
50886 2007-03-10  Bruno Haible  <bruno@clisp.org>
50887
50888         * lib/stdio_.h (__attribute__): New macro.
50889         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50890         vsprintf): Specify __attribute__ __format__ for GCC.
50891         Suggested by Eric Blake.
50892
50893 2007-03-09  Bruno Haible  <bruno@clisp.org>
50894
50895         * modules/printf-posix-tests: New file.
50896         * tests/test-printf-posix.sh: New file.
50897         * tests/test-printf-posix.c: New file.
50898
50899         * modules/printf-posix: New file.
50900         * lib/printf.c: New file.
50901         * m4/printf-posix-rpl.m4: New file.
50902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50903         REPLACE_PRINTF.
50904         * lib/stdio_.h (printf): New declaration.
50905         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50906         ____strfmon____): New macros.
50907         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50908         REPLACE_PRINTF.
50909
50910 2007-03-09  Bruno Haible  <bruno@clisp.org>
50911
50912         * tests/test-vasnprintf-posix2.sh: New file.
50913         * tests/test-vasnprintf-posix2.c: New file.
50914         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50915         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50916         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50917
50918         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50919         a locale dependent decimal point, rather than always '.'.
50920
50921 2007-03-09  Eric Blake  <ebb9@byu.net>
50922
50923         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50924         spite of platforms like Tandem/NSK that define it to -1.
50925
50926 2007-03-08  Bruno Haible  <bruno@clisp.org>
50927
50928         * modules/vprintf-posix-tests: New file.
50929         * tests/test-vprintf-posix.sh: New file.
50930         * tests/test-vprintf-posix.c: New file.
50931         * tests/test-printf-posix.h: New file.
50932
50933         * modules/vprintf-posix: New file.
50934         * lib/vprintf.c: New file.
50935         * m4/vprintf-posix.m4: New file.
50936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50937         REPLACE_VPRINTF.
50938         * lib/stdio_.h (vprintf): New declaration.
50939         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50940         REPLACE_VPRINTF.
50941
50942 2007-03-08  Bruno Haible  <bruno@clisp.org>
50943
50944         * modules/fprintf-posix-tests: New file.
50945         * tests/test-fprintf-posix.sh: New file.
50946         * tests/test-fprintf-posix.c: New file.
50947
50948         * modules/fprintf-posix: New file.
50949         * lib/fprintf.c: New file.
50950         * m4/fprintf-posix.m4: New file.
50951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50952         REPLACE_FPRINTF.
50953         * lib/stdio_.h (fprintf): New declaration.
50954         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50955         REPLACE_FPRINTF.
50956
50957 2007-03-08  Bruno Haible  <bruno@clisp.org>
50958
50959         * modules/vfprintf-posix-tests: New file.
50960         * tests/test-vfprintf-posix.sh: New file.
50961         * tests/test-vfprintf-posix.c: New file.
50962         * tests/test-fprintf-posix.h: New file.
50963         * tests/test-fprintf-posix.out: New file.
50964
50965         * modules/vfprintf-posix: New file.
50966         * lib/vfprintf.c: New file.
50967         * m4/vfprintf-posix.m4: New file.
50968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50969         REPLACE_VFPRINTF.
50970         * lib/stdio_.h (vfprintf): New declaration.
50971         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50972         REPLACE_VFPRINTF.
50973
50974 2007-03-08  Bruno Haible  <bruno@clisp.org>
50975
50976         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50977
50978 2007-03-08  Bruno Haible  <bruno@clisp.org>
50979
50980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50981         instead of 'expr' invocations.
50982         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50983         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50984         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50987         Suggested by Paul Eggert.
50988
50989 2007-03-08  Bruno Haible  <bruno@clisp.org>
50990
50991         * modules/fseterr-tests: New file.
50992         * tests/test-fseterr.c: New file.
50993
50994         * modules/fseterr: New file.
50995         * lib/fseterr.h: New file.
50996         * lib/fseterr.c: New file.
50997
50998 2007-03-08  Bruno Haible  <bruno@clisp.org>
50999
51000         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51001         * lib/getopt_.h: Likewise.
51002         * lib/mbswidth.h: Likewise.
51003         * lib/setenv.h: Likewise.
51004         * lib/vasnprintf.h: Likewise.
51005         * lib/vasprintf.h: Likewise.
51006         * lib/verror.h: Likewise.
51007         * lib/xsetenv.h: Likewise.
51008         * lib/xvasprintf.h: Likewise.
51009
51010 2007-03-08  Jim Meyering  <jim@meyering.net>
51011
51012         * users.txt: Add parted.
51013
51014         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51015
51016 2007-03-07  Bruno Haible  <bruno@clisp.org>
51017
51018         * m4/printf.m4: Make the shell script snippets copy&pastable.
51019
51020 2007-03-02  Bruno Haible  <bruno@clisp.org>
51021
51022         * lib/netinet_in_.h: New file.
51023         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51024         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51025         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51026         (Depends-on): Add absolute-header.
51027         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51028         into netinet/in.h.
51029
51030 2007-03-03  Bruno Haible  <bruno@clisp.org>
51031
51032         * lib/sys_select_.h: New file.
51033         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51034         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51035         * modules/sys_select (Files): Add lib/sys_select_.h.
51036         (Depends-on): Add absolute-header.
51037         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51038         into sys/select.h.
51039
51040 2007-03-02  Bruno Haible  <bruno@clisp.org>
51041
51042         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51043         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51044         values.
51045         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51046         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51047         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51048         * modules/sys_socket (Depends-on): Add absolute-header.
51049         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51050         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51051         (Include): Remove requirement of inclusion of <sys/types.h>.
51052
51053 2007-03-02  Bruno Haible  <bruno@clisp.org>
51054
51055         * lib/byteswap_.h (bswap_32): Fix formula.
51056
51057 2007-03-06  Bruno Haible  <bruno@clisp.org>
51058
51059         * modules/sprintf-posix-tests: New file.
51060         * tests/test-sprintf-posix.c: New file.
51061
51062         * modules/sprintf-posix: New file.
51063         * lib/sprintf.c: New file.
51064         * m4/sprintf-posix.m4: New file.
51065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51066         REPLACE_SPRINTF.
51067         * lib/stdio_.h (sprintf): New declaration.
51068         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51069         REPLACE_SPRINTF.
51070
51071 2007-03-06  Bruno Haible  <bruno@clisp.org>
51072
51073         * modules/vsprintf-posix-tests: New file.
51074         * tests/test-vsprintf-posix.c: New file.
51075         * tests/test-sprintf-posix.h: New file.
51076
51077         * modules/vsprintf-posix: New file.
51078         * lib/vsprintf.c: New file.
51079         * m4/vsprintf-posix.m4: New file.
51080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51081         REPLACE_VSPRINTF.
51082         * lib/stdio_.h (vsprintf): New declaration.
51083         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51084         REPLACE_VSPRINTF.
51085
51086 2007-03-06  Bruno Haible  <bruno@clisp.org>
51087
51088         * modules/vsnprintf (Depend-on): Remove minmax.
51089
51090 2007-03-06  Bruno Haible  <bruno@clisp.org>
51091
51092         * modules/snprintf-posix-tests: New file.
51093         * tests/test-snprintf-posix.c: New file.
51094
51095         * modules/snprintf-posix: New file.
51096         * m4/snprintf-posix.m4: New file.
51097         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51098         gl_FUNC_SNPRINTF.
51099         (gl_FUNC_SNPRINTF): Invoke it.
51100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51101         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51102         is set.
51103         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51104
51105 2007-03-06  Bruno Haible  <bruno@clisp.org>
51106
51107         * modules/vsnprintf-posix-tests: New file.
51108         * tests/test-vsnprintf-posix.c: New file.
51109         * tests/test-snprintf-posix.h: New file.
51110
51111         * modules/vsnprintf-posix: New file.
51112         * m4/vsnprintf-posix.m4: New file.
51113         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51114         gl_FUNC_VSNPRINTF.
51115         (gl_FUNC_VSNPRINTF): Invoke it.
51116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51117         * lib/stdio_.h (vsnprintf): Define as a replacement if
51118         REPLACE_VSNPRINTF is set.
51119         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51120
51121 2007-03-06  Bruno Haible  <bruno@clisp.org>
51122
51123         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51125
51126 2007-03-06  Bruno Haible  <bruno@clisp.org>
51127
51128         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51129         (asinl): Declare also if HAVE_DECL_ASINL is set.
51130         (atanl): Declare also if HAVE_DECL_ATANL is set.
51131         (ceill): Declare also if HAVE_DECL_CEILL is set.
51132         (cosl): Declare also if HAVE_DECL_COSL is set.
51133         (expl): Declare also if HAVE_DECL_EXPL is set.
51134         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51135         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51136         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51137         (logl): Declare also if HAVE_DECL_LOGL is set.
51138         (sinl): Declare also if HAVE_DECL_SINL is set.
51139         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51140         (tanl): Declare also if HAVE_DECL_TANL is set.
51141         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51143         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51144         declaration of frexpl, ldexpl.
51145         * modules/printf-frexpl (Depends-on): Add math.
51146         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51147
51148 2007-03-05  Bruno Haible  <bruno@clisp.org>
51149
51150         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51151         frexpl and ldexpl are declared.
51152         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51153
51154 2007-03-05  Bruno Haible  <bruno@clisp.org>
51155
51156         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51157         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51158
51159 2007-03-05  Bruno Haible  <bruno@clisp.org>
51160
51161         * lib/stdio_.h: Include <stddef.h>.
51162
51163 2007-03-05  Bruno Haible  <bruno@clisp.org>
51164
51165         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51166
51167 2007-03-05  Bruno Haible  <bruno@clisp.org>
51168
51169         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51170         NetBSD 4, from Ralf Wildenhues.
51171
51172 2007-03-04  Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/vasprintf.h: Update #if logic for the case when the functions
51175         exist but are overridden.
51176
51177 2007-03-04  Bruno Haible  <bruno@clisp.org>
51178
51179         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51180         implementations: glibc-2.4 and MacOS X 10.3.
51181         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51182         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51183         * tests/test-vasprintf-posix.c (test_function): Likewise.
51184
51185 2007-03-04  Bruno Haible  <bruno@clisp.org>
51186
51187         * modules/vasprintf-posix-tests: New file.
51188         * tests/test-vasprintf-posix.c: New file.
51189
51190         * modules/vasprintf-posix: New file.
51191         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51192         defined.
51193         * m4/vasprintf-posix.m4: New file.
51194         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51195         gl_FUNC_VASPRINTF.
51196         (gl_FUNC_VASPRINTF): Invoke it.
51197         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51198         here.
51199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51200
51201 2007-03-04  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51204         REPLACE_GETTIMEOFDAY.
51205         * modules/sys_time (Makefile.am): Likewise.
51206         * m4/sys_time_h.m4: Likewise.
51207         * m4/gettimeofday.m4: Likewise.
51208
51209 2007-03-04  Bruno Haible  <bruno@clisp.org>
51210
51211         * modules/vasnprintf-posix-tests: New file.
51212         * tests/test-vasnprintf-posix.c: New file.
51213
51214         * modules/vasnprintf-posix: New file.
51215         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51216         printf-frexpl.h.
51217         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51218         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51219         REPLACE_VASNPRINTF is defined.
51220         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
51221         gl_FUNC_VASNPRINTF.
51222         (gl_FUNC_VASNPRINTF): Invoke it.
51223         * m4/vasnprintf-posix.m4: New file.
51224         * m4/printf.m4: New file.
51225
51226 2007-03-04  Bruno Haible  <bruno@clisp.org>
51227
51228         Compile progreloc.c only if --enable-relocatable is specified.
51229         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
51230         if --enable-relocatable was specified.
51231         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
51232         lib_SOURCES.
51233
51234 2007-03-04  Jim Meyering  <jim@meyering.net>
51235
51236         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
51237         Use it consistently, rather than enumerating errno constants.
51238
51239 2007-03-04  Bruno Haible  <bruno@clisp.org>
51240
51241         * modules/xvasprintf-tests: New file.
51242         * tests/test-xvasprintf.c: New file.
51243
51244         * modules/vasprintf-tests: New file.
51245         * tests/test-vasprintf.c: New file.
51246
51247         * modules/vasnprintf-tests: New file.
51248         * tests/test-vasnprintf.c: New file.
51249
51250         * modules/vsnprintf-tests: New file.
51251         * tests/test-vsnprintf.c: New file.
51252
51253         * modules/snprintf-tests: New file.
51254         * tests/test-snprintf.c: New file.
51255
51256 2007-03-04  Bruno Haible  <bruno@clisp.org>
51257
51258         Compile relocatable.c only if --enable-relocatable is specified.
51259         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
51260         gl_RELOCATABLE_LIBRARY.
51261         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
51262         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
51263         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
51264         gl_RELOCATABLE_LIBRARY.
51265         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
51266         (Makefile.am): Remove lib_SOURCES.
51267         * modules/relocatable-lib-lgpl (configure.ac): Invoke
51268         gl_RELOCATABLE_LIBRARY.
51269         (Makefile.am): Remove lib_SOURCES.
51270         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
51271         always.
51272         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51273         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
51274
51275 2007-03-04  Bruno Haible  <bruno@clisp.org>
51276
51277         * modules/argmatch-tests: New file.
51278         * tests/test-argmatch.c: New file.
51279
51280         * tests/test-allocsa.c (main): Halve the number of loop runs.
51281
51282         * modules/alloca-opt-tests: New file.
51283         * tests/test-alloca-opt.c: New file.
51284
51285 2007-03-04  Jim Meyering  <jim@meyering.net>
51286
51287         Work around difference between Linux ACLs and Solaris 10 ZFS.
51288         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
51289         for EINVAL.
51290
51291 2007-03-03  Bruno Haible  <bruno@clisp.org>
51292
51293         * modules/relocatable-prog (Depends-on): Add back progreloc's
51294         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
51295
51296 2007-03-03  Bruno Haible  <bruno@clisp.org>
51297
51298         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
51299         * modules/relocatable-lib: New file.
51300
51301 2007-03-03  Bruno Haible  <bruno@clisp.org>
51302
51303         * modules/relocatable-prog: Renamed from modules/relocatable.
51304         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
51305
51306 2007-03-03  Bruno Haible  <bruno@clisp.org>
51307
51308         * modules/relocatable-script (Files): Add doc/relocatable.texi,
51309         m4/relocatable-lib.m4.
51310         (Depends-on): Remove 'relocatable'.
51311         (configure.ac): Add gl_RELOCATABLE_NOP.
51312
51313 2007-03-03  Bruno Haible  <bruno@clisp.org>
51314
51315         * modules/relocatable-prog-wrapper: New file.
51316         * modules/relocatable (Depends-on): Add it. Remove all other
51317         dependencies except progname.
51318         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
51319
51320         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
51321         (gl_FUNC_STRERROR): Nop.
51322         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
51323
51324         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
51325         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
51326
51327         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
51328         (gl_FUNC_READLINK): Update.
51329
51330         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
51331
51332 2007-03-03  Bruno Haible  <bruno@clisp.org>
51333
51334         * lib/xreadlink.c: Include <unistd.h> unconditionally.
51335         * modules/xreadlink (Depends-on): Add unistd.
51336         * modules/xreadlink-with-size (Depends-on): Likewise.
51337
51338 2007-03-03  Bruno Haible  <bruno@clisp.org>
51339
51340         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
51341         extracted from gt_FUNC_SETENV.
51342         (gt_FUNC_SETENV): Remove macro.
51343         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
51344         remove gt_FUNC_SETENV.
51345
51346 2007-03-03  Bruno Haible  <bruno@clisp.org>
51347
51348         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
51349         ENABLE_RELOCATABLE here.
51350         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
51351
51352 2007-03-03  Bruno Haible  <bruno@clisp.org>
51353
51354         * modules/rbtreehash-list-tests (Depends-on): Add progname.
51355         * tests/test-rbtreehash_list.c: Include progname.h.
51356         (main): Call set_program_name.
51357
51358         * modules/rbtree-oset-tests (Depends-on): Add progname.
51359         * tests/test-rbtree_oset.c: Include progname.h.
51360         (main): Call set_program_name.
51361
51362         * modules/rbtree-list-tests (Depends-on): Add progname.
51363         * tests/test-rbtree_list.c: Include progname.h.
51364         (main): Call set_program_name.
51365
51366         * modules/linked-list-tests (Depends-on): Add progname.
51367         * tests/test-linked_list.c: Include progname.h.
51368         (main): Call set_program_name.
51369
51370 2007-03-03  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
51373         All uses of __restrict changed to _Restrict_.
51374         * lib/glob_.h (__restrict): Remove macro.
51375
51376 2007-03-02  Bruno Haible  <bruno@clisp.org>
51377
51378         * modules/gettext (configure.ac): Require gettext infrastructure
51379         from version 0.16.1.
51380
51381 2007-03-02  Bruno Haible  <bruno@clisp.org>
51382
51383         * modules/linkedhash-list-tests (Depends-on): Add progname.
51384         * tests/test-linkedhash_list.c: Include progname.h.
51385         (main): Call set_program_name.
51386
51387         * modules/carray-list-tests (Depends-on): Add progname.
51388         * tests/test-carray_list.c: Include progname.h.
51389         (main): Call set_program_name.
51390
51391         * modules/avltreehash-list-tests (Depends-on): Add progname.
51392         * tests/test-avltreehash_list.c: Include progname.h.
51393         (main): Call set_program_name.
51394
51395         * modules/avltree-oset-tests (Depends-on): Add progname.
51396         * tests/test-avltree_oset.c: Include progname.h.
51397         (main): Call set_program_name.
51398
51399         * modules/avltree-list-tests (Depends-on): Add progname.
51400         * tests/test-avltree_list.c: Include progname.h.
51401         (main): Call set_program_name.
51402
51403         * modules/array-oset-tests (Depends-on): Add progname.
51404         * tests/test-array_oset.c: Include progname.h.
51405         (main): Call set_program_name.
51406
51407         * modules/array-list-tests (Depends-on): Add progname.
51408         * tests/test-array_list.c: Include progname.h.
51409         (main): Call set_program_name.
51410
51411         * modules/argp-tests (Depends-on): Add progname.
51412         * tests/test-argp.c: Include argp.h first. Include progname.h.
51413         (main): Call set_program_name.
51414
51415 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
51416
51417         * doc/gnulib-tool.texi (Initial import): Reword description of
51418         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
51419         limited effect even if defined after the first system include.
51420
51421 2007-03-01  Bruno Haible  <bruno@clisp.org>
51422
51423         * build-aux/config.libpath: Update to libtool-1.5.22.
51424         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51425
51426 2007-03-01  Bruno Haible  <bruno@clisp.org>
51427
51428         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
51429         foo_CFLAGS.
51430         Reported by Ralf Wildenhues.
51431
51432 2007-03-01  Bruno Haible  <bruno@clisp.org>
51433
51434         * build-aux/install-reloc: Remove object files left over by some
51435         compilers.
51436         Reported by Ralf Wildenhues.
51437
51438 2007-03-01  Bruno Haible  <bruno@clisp.org>
51439
51440         * build-aux/install-reloc: Break long lines.
51441
51442 2007-03-01  Bruno Haible  <bruno@clisp.org>
51443
51444         * doc/relocatable.texi: Document that it may not work on OpenBSD.
51445         Reported by Ralf Wildenhues.
51446
51447 2007-03-01  Bruno Haible  <bruno@clisp.org>
51448
51449         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
51450         include ordering constraints.
51451
51452 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51453
51454         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
51455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
51456         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
51457         as another example.
51458         * lib/time_.h: Fix misspelling.
51459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51460         Require gl_HEADER_TIME_H_DEFAULTS.
51461         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
51462         * m4/time_r.m4 (gl_TIME_R): Likewise.
51463         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
51464
51465 2007-03-01  Bruno Haible  <bruno@clisp.org>
51466
51467         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
51468         * m4/utimens.m4 (gl_UTIMENS): Likewise.
51469
51470 2007-03-01  Jim Meyering  <jim@meyering.net>
51471
51472         * modules/xreadlink (Maintainer): Add my name.
51473         * modules/xreadlink-with-size (Depends-on): Alphabetize.
51474
51475 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
51476             Bruno Haible  <bruno@clisp.org>
51477
51478         * build-aux/install-reloc: Compile also c-ctype.c.
51479         * build-aux/relocatable.sh.in: New file.
51480         * doc/relocatable.texi: New file.
51481         * doc/relocatable-maint.texi: New file.
51482         * doc/gnulib.texi: Include relocatable-maint.texi.
51483         * lib/progreloc.c: Include unistd.h unconditionally.
51484         * lib/relocwrapper.c: Include unistd.h unconditionally.
51485         Include c-ctype.h.
51486         (add_dotbin): Use c_tolower.
51487         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
51488         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
51489         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
51490         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
51491         to m4/relocatable-lib.m4.
51492         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
51493         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
51494         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
51495         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
51496         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
51497         * modules/relocatable: New file.
51498         * modules/relocatable-lib: New file.
51499         * modules/relocatable-script: New file.
51500
51501 2007-02-28  Bruno Haible  <bruno@clisp.org>
51502
51503         Import --enable-relocatable infrastructure.
51504         * build-aux/config.libpath: New file, from GNU gettext.
51505         * build-aux/install-reloc: New file, from GNU gettext.
51506         * build-aux/reloc-ldflags: New file, from GNU gettext.
51507         * lib/relocatable.h: New file, from GNU gettext.
51508         * lib/relocatable.c: New file, from GNU gettext.
51509         * lib/relocwrapper.c: New file, from GNU gettext.
51510         * m4/relocatable.m4: New file, from GNU gettext.
51511
51512 2007-02-28  Bruno Haible  <bruno@clisp.org>
51513
51514         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
51515
51516         * modules/xreadlink: New file, from GNU gettext with modifications.
51517         * lib/xreadlink.c: New file, from GNU gettext.
51518         * lib/xreadlink.h: Add comments.
51519         (xreadlink): New declaration.
51520
51521         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
51522         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
51523         lib/xreadlink-with-size.c.
51524         (configure.ac): Remove gl_XREADLINK invocation.
51525         (Makefile.am): Augment lib_SOURCES.
51526         * m4/xreadlink.m4: Remove file.
51527         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
51528         (xreadlink_with_size): Renamed from xreadink.
51529         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
51530         * modules/canonicalize (Depends-on): Replace xreadlink with
51531         xreadlink-with-size.
51532         * lib/canonicalize.c (canonicalize_filename_mode): Update.
51533
51534 2007-02-25  Jim Meyering  <jim@meyering.net>
51535
51536         * build-aux/announce-gen: When complaining about excess arguments,
51537         list them.
51538
51539 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51540
51541         * README: Document signed integer overflow situation more
51542         accurately.
51543
51544 2007-02-25  Bruno Haible  <bruno@clisp.org>
51545
51546         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
51547         'a' or 'A' conversion.
51548
51549 2007-02-25  Bruno Haible  <bruno@clisp.org>
51550
51551         * modules/filename: Renamed from modules/pathname.
51552         (Files): Replace lib/pathname.h with lib/filename.h. Replace
51553         lib/concatpath.c with lib/concat-filename.c.
51554         (Makefile.am): Update.
51555         (Include): Replace pathname.h with filename.h.
51556         * lib/filename.h: Renamed from lib/pathname.h.
51557         (concatenated_filename): Renamed from concatenated_pathname.
51558         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51559         (concatenated_filename): Renamed from concatenated_pathname.
51560         * lib/findprog.c: Include filename.h instead of pathname.h.
51561         (find_in_path): Update.
51562         * lib/javacomp.c: Include filename.h instead of pathname.h.
51563         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51564         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51565         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51566         is_oldgcj_14_13_usable, is_javac_usable): Update.
51567         * lib/javaexec.c: Include filename.h instead of pathname.h.
51568         (execute_java_class): Update.
51569         * modules/findprog: Update.
51570         * modules/javacomp: Update.
51571         * modules/javaexec: Update.
51572         * MODULES.html.sh (File system functions): Add 'filename', remove
51573         'pathname'.
51574
51575 2007-02-25  Bruno Haible  <bruno@clisp.org>
51576
51577         * modules/printf-frexpl-tests: New file.
51578         * tests/test-printf-frexpl.c: New file.
51579
51580         * modules/printf-frexpl: New file.
51581         * lib/printf-frexpl.h: New file.
51582         * lib/printf-frexpl.c: New file.
51583         * m4/printf-frexpl.m4: New file.
51584
51585 2007-02-25  Bruno Haible  <bruno@clisp.org>
51586
51587         * modules/printf-frexp-tests: New file.
51588         * tests/test-printf-frexp.c: New file.
51589
51590         * modules/printf-frexp: New file.
51591         * lib/printf-frexp.h: New file.
51592         * lib/printf-frexp.c: New file.
51593         * m4/printf-frexp.m4: New file.
51594
51595 2007-02-25  Bruno Haible  <bruno@clisp.org>
51596
51597         Assume automake >= 1.10 for the tests.
51598         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51599         * modules/arctwo-tests: Likewise.
51600         * modules/argp-tests: Likewise.
51601         * modules/avltree-list-tests: Likewise.
51602         * modules/avltree-oset-tests: Likewise.
51603         * modules/avltreehash-list-tests: Likewise.
51604         * modules/carray-list-tests: Likewise.
51605         * modules/crc-tests: Likewise.
51606         * modules/des-tests: Likewise.
51607         * modules/gc-arcfour-tests: Likewise.
51608         * modules/gc-arctwo-tests: Likewise.
51609         * modules/gc-des-tests: Likewise.
51610         * modules/gc-hmac-md5-tests: Likewise.
51611         * modules/gc-hmac-sha1-tests: Likewise.
51612         * modules/gc-md2-tests: Likewise.
51613         * modules/gc-md4-tests: Likewise.
51614         * modules/gc-md5-tests: Likewise.
51615         * modules/gc-pbkdf2-sha1-tests: Likewise.
51616         * modules/gc-rijndael-tests: Likewise.
51617         * modules/gc-sha1-tests: Likewise.
51618         * modules/gc-tests: Likewise.
51619         * modules/getaddrinfo-tests: Likewise.
51620         * modules/hmac-md5-tests: Likewise.
51621         * modules/hmac-sha1-tests: Likewise.
51622         * modules/linked-list-tests: Likewise.
51623         * modules/linkedhash-list-tests: Likewise.
51624         * modules/lock-tests: Likewise.
51625         * modules/md2-tests: Likewise.
51626         * modules/md4-tests: Likewise.
51627         * modules/md5-tests: Likewise.
51628         * modules/rbtree-list-tests: Likewise.
51629         * modules/rbtree-oset-tests: Likewise.
51630         * modules/rbtreehash-list-tests: Likewise.
51631         * modules/read-file-tests: Likewise.
51632         * modules/rijndael-tests: Likewise.
51633         * modules/stdint-tests: Likewise.
51634         * modules/tls-tests: Likewise.
51635
51636 2007-02-24  Bruno Haible  <bruno@clisp.org>
51637
51638         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51639         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51640         function; instead check whether isnan with a double argument links.
51641         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51642         function; instead check whether isnan with a 'long double' argument
51643         links.
51644         Reported by Eric Blake <ebb9@byu.net>.
51645
51646 2007-02-24  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51649         defined.
51650         * lib/isnanl.c: Remove all code. Just include isnan.c.
51651         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51652
51653 2007-02-25  Jim Meyering  <jim@meyering.net>
51654
51655         Avoid conflicting types for 'unsetenv' on FreeBSD.
51656         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51657         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51658         in stdlib.h.
51659
51660 2007-02-24  Bruno Haible  <bruno@clisp.org>
51661
51662         * modules/isnanl-nolibm-tests: New file.
51663         * tests/test-isnanl.c: New file.
51664
51665         * modules/isnanl-nolibm: New file.
51666         * lib/isnanl.h: New file.
51667         * lib/isnanl.c: New file.
51668         * m4/isnanl.m4: New file.
51669
51670 2007-02-24  Bruno Haible  <bruno@clisp.org>
51671
51672         * modules/isnan-nolibm-tests: New file.
51673         * tests/test-isnan.c: New file.
51674
51675         * modules/isnan-nolibm: New file.
51676         * lib/isnan.h: New file.
51677         * lib/isnan.c: New file.
51678         * m4/isnan.m4: New file.
51679
51680 2007-02-24  Bruno Haible  <bruno@clisp.org>
51681
51682         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51683         assume that an exponent fits in 20 bits.
51684
51685 2007-02-24  Jim Meyering  <jim@meyering.net>
51686
51687         * m4/regex.m4: Update the description of the configure-time option,
51688         --without-included-regex, to state accurately what the defaults are,
51689         and perhaps to give people an idea why using this option is risky.
51690
51691 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51692
51693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51694         loops on small arguments.  This attempts to avoid the problem
51695         Bruno Haible reported for AIX 4.3.2 in
51696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51697
51698 2007-02-23  Bruno Haible  <bruno@clisp.org>
51699
51700         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51701         Needed for help2man.
51702
51703 2007-02-23  Karl Berry  <karl@gnu.org>
51704
51705         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51706         exists, foo.h should be cvs-ignored, not committed.
51707
51708 2007-02-23  Eric Blake  <ebb9@byu.net>
51709
51710         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51711         * lib/stat-time.h (includes): Likewise.
51712         * lib/utimecmp.c (includes): Likewise.
51713         * lib/utimens.h (includes): Likewise.
51714         * lib/getdate.y (includes): Also include "timespec.h" for use
51715         internal to the module.
51716         * modules/utimens (Depends-on): Revert yesterday's patch.
51717         * modules/nanosleep (Depends-on): Add missing dependency.
51718
51719 2007-02-22  Bruno Haible  <bruno@clisp.org>
51720
51721         * lib/glob.c: Don't include getlogin_r.h.
51722
51723 2007-02-22  Jim Meyering  <jim@meyering.net>
51724
51725         * modules/utimens (Depends-on): Add timespec, required for
51726         utimens.h's inclusion of timespec.h.
51727
51728 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51729
51730         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51731         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51732         Schwab in
51733         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51734         I'll try to think of a better way to fix the Solaris problem.
51735
51736         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51737         like glibc; on Solaris 10, it fails with errno == EINVAL.
51738         POSIX says the behavior is unspecified if the first argument is NULL,
51739         so play it safe and never pass NULL to the system getcwd.
51740
51741 2007-02-21  Jim Meyering  <jim@meyering.net>
51742
51743         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51744         of gettimeofday.  It would conflict with the one now always
51745         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51746         an IRIX 6.5 build failure.
51747
51748 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51749
51750         Minor fixups to port to Solaris 10 with Sun C 5.8.
51751         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51752         * modules/getcwd (Depends-on): Add dirfd.
51753         * lib/putenv.c (putenv): #undef it.
51754         (rpl_putenv): New decl.
51755         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51756
51757 2007-02-20  Bruno Haible  <bruno@clisp.org>
51758
51759         * modules/stdio-tests: New file.
51760         * tests/test-stdio.c: New file.
51761
51762         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51763         (Depends-on): Add stdio.
51764         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51765         (Include): Use <stdio.h> instead of vsnprintf.h.
51766         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51767         HAVE_DECL_VSNPRINTF.
51768         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51769
51770         * modules/snprintf (Files): Remove lib/snprintf.h.
51771         (Depends-on): Add stdio.
51772         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51773         (Include): Use <stdio.h> instead of snprintf.h.
51774         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51775         HAVE_DECL_SNPRINTF.
51776         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51777         * lib/getaddrinfo.c: Likewise.
51778
51779         * modules/stdio: New file.
51780         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51781         * lib/snprintf.h: Remove file.
51782         * lib/vsnprintf.h: Remove file.
51783         * lib/.cppi-disable: Remove snprintf.h.
51784         * m4/stdio_h.m4: New file.
51785         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51786
51787 2007-02-20  Jim Meyering  <jim@meyering.net>
51788
51789         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51790         used by e.g., mingw.  From Bruno Haible.
51791
51792 2007-02-19  Bruno Haible  <bruno@clisp.org>
51793
51794         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51795         warnings.
51796         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51797
51798 2007-02-19  Bruno Haible  <bruno@clisp.org>
51799
51800         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51801         from mingw users.
51802
51803 2007-02-19  Bruno Haible  <bruno@clisp.org>
51804
51805         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51806         warnings.
51807         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51808
51809 2007-02-19  Jim Meyering  <jim@meyering.net>
51810
51811         Don't use FD after a successful "fdopendir (fd)".
51812         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51813         Reset it by calling dirfd on the just-obtained DIR*.
51814
51815         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51816         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51817
51818 2007-02-18  Bruno Haible  <bruno@clisp.org>
51819
51820         * lib/readlink.c: Include <unistd.h>.
51821         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51822         HAVE_READLINK.
51823         * modules/readlink (Depends-on): Add unistd.
51824         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51825         (Include): Add <unistd.h>.
51826
51827         * lib/getlogin_r.h: Remove file.
51828         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51829         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51830         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51831         HAVE_DECL_GETLOGIN_R.
51832         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51834         (Include): Use <unistd.h> instead of getlogin_r.h.
51835
51836         * lib/getcwd.h: Remove file.
51837         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51838         * lib/xgetcwd.c: Likewise.
51839         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51840         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51841         * modules/getcwd (Files): Remove lib/getcwd.h.
51842         (Depends-on): Add unistd.
51843         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51844         (Include): Use <unistd.h> instad of getcwd.h.
51845
51846         * lib/ftruncate.c: Include <unistd.h> first.
51847         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51848         Set HAVE_FTRUNCATE.
51849         * modules/ftruncate (Depends-on): Add unistd.
51850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51851
51852         * lib/fchdir.c: Include <unistd.h> first.
51853         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51855         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51856         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51857         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51858
51859         * lib/dup2.c: Include <unistd.h> first.
51860         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51861         HAVE_DUP2.
51862         * modules/dup2 (Depends-on): Add unistd.
51863         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51864
51865         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51866         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51867         REPLACE_CHOWN. Don't define chown as a macro here.
51868         * modules/chown (Depends-on): Add unistd.
51869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51870
51871         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51872         Add definition for GL_LINK_WARNING.
51873         (chown, dup2): New declarations.
51874         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51875         link warning.
51876         (ftruncate): New declaration.
51877         (getcwd): New declaration, taken from old getcwd.h.
51878         (getlogin_r): New declaration, taken from old getlogin_r.h.
51879         (readlink): New declaration.
51880         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51881         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51882         (gl_PREREQ_UNISTD): Remove macro.
51883         (gl_UNISTD_MODULE_INDICATOR): New macro.
51884         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51885         many new variables. Don't set UNISTD_H.
51886         * modules/unistd (Description): Change.
51887         (Depends-on): Add link-warning.
51888         (configure.ac): Update.
51889         (Makefile.am): Create unistd.h always. Substitute many new variables
51890         into it.
51891
51892 2007-02-18  Bruno Haible  <bruno@clisp.org>
51893
51894         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51895         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51896         HAVE_GETSUBOPT.
51897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51898         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51899         * lib/getsubopt.h: Remove file.
51900         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51901         (Depends-on): Add stdlib.
51902         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51903         (Includes): Use <stdlib.h> instead of getsubopt.h.
51904         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51905         Set HAVE_GETSUBOPT.
51906         * lib/getsubopt.c: Don't include getsubopt.h.
51907
51908 2007-02-18  Bruno Haible  <bruno@clisp.org>
51909
51910         * modules/fchdir (Depends-on): Add dup2.
51911
51912 2007-02-18  Bruno Haible  <bruno@clisp.org>
51913
51914         * lib/stdlib_.h: Handle glibc's special invocation convention
51915         specially.
51916
51917 2007-02-18  Bruno Haible  <bruno@clisp.org>
51918
51919         * modules/stdlib-tests: New file.
51920         * tests/test-stdlib.c: New file.
51921
51922         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51923         (Depends-on): Add stdlib.
51924         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51925         (Includes): Use <stdlib.h> instead of mkstemp.h.
51926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51927         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51928         * lib/mkstemp.c: Don't include mkstemp.h.
51929         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51930         * lib/stdlib--.h: Don't include mkstemp.h.
51931
51932         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51933         (Depends-on): Add stdlib.
51934         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51935         (Includes): Use <stdlib.h> instead of mkdtemp.h.
51936         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51937         HAVE_MKDTEMP.
51938         * lib/mkdtemp.c: Don't include mkdtemp.h.
51939         * lib/clean-temp.c: Don't include mkdtemp.h.
51940
51941         * modules/exit (Files): Remove lib/exit.h.
51942         (Depends-on): Add stdlib.
51943         (Makefile.am): Remove lib_SOURCES.
51944         (Include): Use <stdlib.h> instead of exit.h.
51945         * lib/argmatch.c: Don't include exit.h.
51946         * lib/execute.c: Likewise.
51947         * lib/pagealign_alloc.c: Likewise.
51948         * lib/pipe.c: Likewise.
51949         * lib/wait-process.c: Likewise.
51950         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51951         * lib/exitfail.c: Likewise.
51952         * lib/savewd.c: Likewise.
51953         * lib/xsetenv.c: Likewise.
51954
51955         * modules/stdlib: New file.
51956         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51957         and extra comments about mkstemp().
51958         * lib/exit.h: Remove file.
51959         * lib/mkdtemp.h: Remove file.
51960         * lib/mkstemp.h: Remove file.
51961         * m4/stdlib_h.m4: New file.
51962         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51963
51964 2007-02-18  Bruno Haible  <bruno@clisp.org>
51965
51966         * modules/math-tests: New file.
51967         * tests/test-math.c: New file.
51968
51969         * modules/math: New file.
51970         * modules/mathl (Files): Remove lib/mathl.h.
51971         (Depends-on): Add math.
51972         (Makefile.am): Don't mention mathl.h.
51973         (Include): Use <math.h> instead of mathl.h.
51974         * lib/math_.h: New file.
51975         * lib/mathl.h: Remove file.
51976         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51977         mathl.h.
51978         * lib/asinl.c: Likewise.
51979         * lib/atanl.c: Likewise.
51980         * lib/ceill.c: Likewise.
51981         * lib/cosl.c: Likewise.
51982         * lib/expl.c: Likewise.
51983         * lib/floorl.c: Likewise.
51984         * lib/frexpl.c: Likewise.
51985         * lib/ldexpl.c: Likewise.
51986         * lib/logl.c: Likewise.
51987         * lib/sincosl.c: Likewise.
51988         * lib/sinl.c: Likewise.
51989         * lib/sqrtl.c: Likewise.
51990         * lib/tanl.c: Likewise.
51991         * lib/trigl.c: Likewise.
51992         * m4/math_h.m4: New file.
51993         * MODULES.html.sh (Mathematics): Add math.
51994
51995 2007-02-17  Bruno Haible  <bruno@clisp.org>
51996
51997         * modules/wctype-tests: New file.
51998         * tests/test-wctype.c: New file.
51999
52000         * modules/wchar-tests: New file.
52001         * tests/test-wchar.c: New file.
52002
52003         * modules/unistd-tests: New file.
52004         * tests/test-unistd.c: New file.
52005
52006         * modules/time-tests: New file.
52007         * tests/test-time.c: New file.
52008
52009         * modules/sysexits-tests: New file.
52010         * tests/test-sysexits.c: New file.
52011
52012         * modules/sys_time-tests: New file.
52013         * tests/test-sys_time.c: New file.
52014
52015         * modules/sys_stat-tests: New file.
52016         * tests/test-sys_stat.c: New file.
52017
52018         * modules/sys_socket-tests: New file.
52019         * tests/test-sys_socket.c: New file.
52020
52021         * modules/sys_select-tests: New file.
52022         * tests/test-sys_select.c: New file.
52023
52024         * modules/string-tests: New file.
52025         * tests/test-string.c: New file.
52026
52027         * modules/stdbool-tests: New file.
52028         * tests/test-stdbool.c: New file.
52029
52030         * modules/netinet_in-tests: New file.
52031         * tests/test-netinet_in.c: New file.
52032
52033         * modules/inttypes-tests: New file.
52034         * tests/test-inttypes.c: New file.
52035
52036         * modules/fcntl-tests: New file.
52037         * tests/test-fcntl.c: New file.
52038
52039         * modules/byteswap-tests: New file.
52040         * tests/test-byteswap.c: New file.
52041
52042         * modules/arpa_inet-tests: New file.
52043         * tests/test-arpa_inet.c: New file.
52044
52045 2007-02-17  Bruno Haible  <bruno@clisp.org>
52046
52047         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52048         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52049         if the corresponding module is not enabled. Emit link warnings if
52050         the function is used nevertheless.
52051         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52052         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52053         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52054         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52055         * modules/inttypes (Depends-on): Add link-warning.
52056         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52057         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52058         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52059         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52060         * modules/imaxdiv (configure.ac): Likewise.
52061         * modules/strtoimax (configure.ac): Likewise.
52062         * modules/strtoumax (configure.ac): Likewise.
52063
52064 2007-02-17  Bruno Haible  <bruno@clisp.org>
52065
52066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52067         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52068         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52069         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52070
52071 2007-02-17  Bruno Haible  <bruno@clisp.org>
52072
52073         * modules/link-warning: New file.
52074         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52075         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52076         * modules/string (Depends-on): Add link-warning.
52077         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52078         string.h.
52079         * MODULES.html.sh (Support for building libraries and executables): Add
52080         link-warning.
52081
52082 2007-02-17  Bruno Haible  <bruno@clisp.org>
52083
52084         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52085         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52086         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52087         long lines.
52088
52089 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52090             Bruno Haible  <bruno@clisp.org>
52091
52092         * modules/tmpfile: New file.
52093         * lib/tmpfile.c: New file.
52094         * m4/tmpfile.m4: New file.
52095         * MODULES.html.sh (func_all_modules): New section "Input/output".
52096
52097 2007-02-15  Bruno Haible  <bruno@clisp.org>
52098
52099         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52100         (supports_delete_on_close): New function.
52101         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52102
52103 2007-02-14  Bruno Haible  <bruno@clisp.org>
52104
52105         * modules/mbspcasecmp-tests: New file.
52106         * tests/test-mbspcasecmp.sh: New file.
52107         * tests/test-mbspcasecmp.c: New file.
52108
52109         New module mbspcasecmp.
52110         * modules/mbspcasecmp: New file.
52111         * lib/mbspcasecmp.c: New file.
52112         * lib/string_.h (strncasecmp): Change warning message.
52113         (mbspcasecmp): New declaration.
52114         * m4/mbspcasecmp.m4: New file.
52115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52116         GNULIB_MBSPCASECMP.
52117         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52118         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52119
52120 2007-02-14  Bruno Haible  <bruno@clisp.org>
52121
52122         * modules/mbsncasecmp-tests: New file.
52123         * tests/test-mbsncasecmp.sh: New file.
52124         * tests/test-mbsncasecmp.c: New file.
52125
52126         New module mbsncasecmp.
52127         * modules/mbsncasecmp: New file.
52128         * lib/mbsncasecmp.c: New file.
52129         * lib/string_.h (mbsncasecmp): New declaration.
52130         * m4/mbsncasecmp.m4: New file.
52131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52132         GNULIB_MBSNCASECMP.
52133         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52134         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52135
52136 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52137
52138         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52139         Verify that it doesn't overlap with our flags.
52140         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52141         do not have the desired effect in multibyte locales; instead, use
52142         mbscasecmp.
52143         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52144         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52145         we don't require GNU fnmatch ourselves (if our users require it, they
52146         should do so explicitly).
52147
52148         Fix regex code so it doesn't rely on strcasecmp.
52149         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52150         Otherwise, include gnulib's langinfo.h.
52151         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52152         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52153         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52154         * modules/regex (FILES): Remove m4/codeset.m4.
52155         (Depends-on): Add localcharset.  Remove strcase.
52156
52157 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52158
52159         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52160         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52161
52162 2007-02-13  Bruno Haible  <bruno@clisp.org>
52163
52164         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52165         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52166
52167 2007-02-12  Bruno Haible  <bruno@clisp.org>
52168
52169         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52170         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52171         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52172         time warning rather than a link error.
52173
52174 2007-02-12  Bruno Haible  <bruno@clisp.org>
52175
52176         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52177         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52179
52180 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52183         args, not 2.
52184
52185 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52186
52187         New module 'time', so that apps can include <time.h> as per
52188         POSIX and GNU instead of separate include files like time_r.h
52189         and timegm.h.  This implementation tries out a simpler approach
52190         for replacing decls in standard include files (as compared to
52191         the string module), somewhat as an experiment.
52192
52193         * config/srclist.txt: Comment out mktime.c for now.
52194         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52195         since it doesn't apply any more.  Use generic wording instead.
52196         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52197         'time'.
52198         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52199         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52200         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52201         Don't include <sys/types.h>; no longer needed since we assume C89.
52202         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52203         * lib/strftime.c: Likewise.
52204         * lib/time_r.c: Likewise.
52205         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52206         * lib/nanosleep.c: Include <time.h> first, to check interface.
52207         * lib/strptime.c: Likewise.
52208         * lib/time_r.c: Likewise.
52209         * lib/timegm.c: Likewise.
52210         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52211         needed.
52212         * lib/timegm.c: Don't include timegm.h; no longer needed.
52213         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52214         time.h now handles any problems in that area.
52215         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52216         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52217         that time.h defines struct timespec.
52218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52219         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52220         handles that.
52221         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
52222         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
52223         needed.  Set REPLACE_LOCALTIME.
52224         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
52225         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
52226         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
52227         nanosleep; time_h.m4 now does that.  Don't require
52228         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
52229         module handles this now.
52230         * modules/getdate (Depends-on): Remove timespec.  Add time.
52231         * modules/nanosleep (Depends-on): Likewise.
52232         * modules/stat-time (Depends-on): Likewise.
52233         * modules/nanosleep (Include): Include time.h, not timespec.h.
52234         * modules/strptime (Files): Remove lib/strptime.h.
52235         (Depends-on): Add extensions, time.
52236         (Include): Include time.h, not strptime.h.
52237         * modules/time_r (Files): Remove lib/time_r.h.
52238         (Depends-on): Add time.
52239         (Include): Include time.h, not time_r.h.
52240         * modules/timegm: Likewise.
52241         * modules/timespec (Description): Now does timespec-related decls
52242         of our own, instead of struct timespec itself.
52243         (Depends-on): Add time; remove extensions.
52244         (Maintainer): Add self.
52245         * modules/utimecmp (Depends-on): Add time; remove timespec.
52246         * modules/utimens (Depends-on): Likewise.
52247         * modules/xnanosleep (Depends-on): Likewise.
52248
52249 2007-02-11  Bruno Haible  <bruno@clisp.org>
52250
52251         * lib/c-strstr.c: Include allocsa.h.
52252         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52253         * lib/c-strcasestr.c: Include allocsa.h.
52254         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52255         * lib/strcasestr.c: Include allocsa.h.
52256         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52257         * lib/mbsstr.c: Include allocsa.h.
52258         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52259         allocsa/freesa instead of malloc/free.
52260         * lib/mbscasestr.c: Include allocsa.h.
52261         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52262         allocsa/freesa instead of malloc/free.
52263         * modules/c-strstr (Depends-on): Add allocsa.
52264         * modules/c-strcasestr (Depends-on): Likewise.
52265         * modules/strcasestr (Depends-on): Likewise.
52266         * modules/mbsstr (Depends-on): Likewise.
52267         * modules/mbscasestr (Depends-on): Likewise.
52268
52269 2007-02-11  Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
52272
52273         * modules/mbsspn-tests: New file.
52274         * tests/test-mbsspn.sh: New file.
52275         * tests/test-mbsspn.c: New file.
52276
52277 2007-02-11  Bruno Haible  <bruno@clisp.org>
52278
52279         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
52280
52281         * modules/mbspbrk-tests: New file.
52282         * tests/test-mbspbrk.sh: New file.
52283         * tests/test-mbspbrk.c: New file.
52284
52285 2007-02-11  Bruno Haible  <bruno@clisp.org>
52286
52287         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
52288         unneeded cast.
52289
52290         * modules/mbscspn-tests: New file.
52291         * tests/test-mbscspn.sh: New file.
52292         * tests/test-mbscspn.c: New file.
52293
52294 2007-02-11  Bruno Haible  <bruno@clisp.org>
52295
52296         * modules/mbscasecmp-tests: New file.
52297         * tests/test-mbscasecmp.sh: New file.
52298         * tests/test-mbscasecmp.c: New file.
52299
52300 2007-02-11  Bruno Haible  <bruno@clisp.org>
52301
52302         Ensure O(n) worst-case complexity of mbscasestr.
52303         * lib/mbscasestr.c: Include stdbool.h.
52304         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52305         functions.
52306         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
52307         the bookkeeping indicates that it's worth it.
52308         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
52309
52310         * modules/mbscasestr-tests: New file.
52311         * tests/test-mbscasestr1.c: New file.
52312         * tests/test-mbscasestr2.sh: New file.
52313         * tests/test-mbscasestr2.c: New file.
52314         * tests/test-mbscasestr3.sh: New file.
52315         * tests/test-mbscasestr3.c: New file.
52316         * tests/test-mbscasestr4.sh: New file.
52317         * tests/test-mbscasestr4.c: New file.
52318         * m4/locale-tr.m4: New file.
52319
52320 2007-02-11  Bruno Haible  <bruno@clisp.org>
52321
52322         Ensure O(n) worst-case complexity of mbsstr.
52323         * lib/mbsstr.c: Include stdbool.h.
52324         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52325         functions.
52326         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
52327         bookkeeping indicates that it's worth it.
52328         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
52329
52330         * modules/mbsstr-tests: New file.
52331         * tests/test-mbsstr1.c: New file.
52332         * tests/test-mbsstr2.sh: New file.
52333         * tests/test-mbsstr2.c: New file.
52334         * tests/test-mbsstr3.sh: New file.
52335         * tests/test-mbsstr3.c: New file.
52336         * m4/locale-fr.m4: New file.
52337
52338 2007-02-11  Bruno Haible  <bruno@clisp.org>
52339
52340         * lib/mbsrchr.c (mbsrchr): Fix bug.
52341
52342         * modules/mbsrchr-tests: New file.
52343         * tests/test-mbsrchr.sh: New file.
52344         * tests/test-mbsrchr.c: New file.
52345
52346 2007-02-11  Bruno Haible  <bruno@clisp.org>
52347
52348         * lib/mbschr.c (mbschr): Fix bug.
52349
52350         * modules/mbschr-tests: New file.
52351         * tests/test-mbschr.sh: New file.
52352         * tests/test-mbschr.c: New file.
52353         * m4/locale-zh.m4: New file.
52354
52355 2007-02-11  Bruno Haible  <bruno@clisp.org>
52356
52357         Support for copying multibyte string iterators.
52358         * lib/mbiter.h: Include <string.h>.
52359         (mbiter_multi_copy): New function.
52360         (mbi_copy): New macro.
52361         * lib/mbuiter.h: Include <string.h>.
52362         (mbuiter_multi_copy): New function.
52363         (mbui_copy): New macro.
52364
52365 2007-02-11  Bruno Haible  <bruno@clisp.org>
52366
52367         New module mbslen.
52368         * modules/mbslen: New file.
52369         * lib/mbslen.c: New file.
52370         * lib/string_.h (mbslen): New declaration.
52371         * m4/mbslen.m4: New file.
52372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52373         GNULIB_MBSLEN.
52374         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
52375         * MODULES.html.sh (Internationalization functions): Add mbslen.
52376
52377 2007-02-11  Bruno Haible  <bruno@clisp.org>
52378
52379         Ensure O(n) worst-case complexity of strcasestr substitute.
52380         * lib/strcasestr.c: Include stdbool.h.
52381         (knuth_morris_pratt): New function.
52382         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52383         bookkeeping indicates that it's worth it.
52384         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
52385
52386         * modules/strcasestr-tests: New file.
52387         * tests/test-strcasestr.c: New file.
52388
52389 2007-02-11  Bruno Haible  <bruno@clisp.org>
52390
52391         Ensure O(n) worst-case complexity of c_strcasestr.
52392         * lib/c-strcasestr.c: Include stdbool.h, string.h.
52393         (knuth_morris_pratt): New function.
52394         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
52395         the bookkeeping indicates that it's worth it.
52396         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
52397
52398         * modules/c-strcasestr-tests: New file.
52399         * tests/test-c-strcasestr.c: New file.
52400
52401 2007-02-11  Bruno Haible  <bruno@clisp.org>
52402
52403         Ensure O(n) worst-case complexity of c_strstr.
52404         * lib/c-strstr.c: Include stdbool.h, string.h.
52405         (knuth_morris_pratt): New function.
52406         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52407         bookkeeping indicates that it's worth it.
52408         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
52409
52410         * lib/c-strstr.c: Complete rewrite for maintainability.
52411
52412         * modules/c-strstr-tests: New file.
52413         * tests/test-c-strstr.c: New file.
52414
52415 2007-02-11  Bruno Haible  <bruno@clisp.org>
52416
52417         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
52418         5.2.1 and earlier, whereby \055 was treated just like the range
52419         delimiter '-'.
52420         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52421
52422 2007-02-08  Bruno Haible  <bruno@clisp.org>
52423
52424         * modules/regex (Depends-on): Add stdbool.
52425         Reported by Dalibor Topic <robilad@kaffe.org>.
52426
52427 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52428
52429         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
52430         Prefer returning from main to exiting from it.
52431         Remove unnecessary parens after sizeof.
52432
52433 2007-02-05  Bruno Haible  <bruno@clisp.org>
52434
52435         New module mbssep.
52436         * modules/mbssep: New file.
52437         * lib/mbssep.c: New file.
52438         * lib/string_.h (strsep): Add a conditional link warning.
52439         (mbssep): New declaration.
52440         * m4/mbssep.m4: New file.
52441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52442         GNULIB_MBSSEP.
52443         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
52444         * MODULES.html.sh (Internationalization functions): Add mbssep.
52445
52446 2007-02-05  Bruno Haible  <bruno@clisp.org>
52447
52448         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
52449         Optimize search in case of 1 delimiter.
52450
52451 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52452
52453         * lib/acl.h: Include sys/types.h before sys/acl.h.
52454
52455 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52456
52457         Merge upstream fix for glibc bugzilla #3957:
52458
52459         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
52460
52461         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
52462         bit for RE_HAT_LISTS_NOT_NEWLINE.
52463         (build_charclass_op): Remove bogus comment.
52464
52465 2007-02-05  Simon Josefsson  <simon@josefsson.org>
52466
52467         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
52468
52469 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52470
52471         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
52472         * lib/memmem.c [!defined _LIBC]: Include config.h.
52473
52474 2007-02-04  Bruno Haible  <bruno@clisp.org>
52475
52476         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
52477         warning message.
52478
52479 2007-02-04  Bruno Haible  <bruno@clisp.org>
52480
52481         New module mbstok_r.
52482         * modules/mbstok_r: New file.
52483         * lib/mbstok_r.c: New file.
52484         * lib/string_.h (strtok_r): Change argument names to match the
52485         comments. Add a conditional link warning.
52486         (mbstok_r): New declaration.
52487         * m4/mbstok_r.m4: New file.
52488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52489         GNULIB_MBSTOK_R.
52490         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
52491         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
52492
52493 2007-02-04  Bruno Haible  <bruno@clisp.org>
52494
52495         New module mbsspn.
52496         * modules/mbsspn: New file.
52497         * lib/mbsspn.c: New file.
52498         * lib/string_.h (strspn): Add a conditional link warning.
52499         (mbsspn): New declaration.
52500         * m4/mbsspn.m4: New file.
52501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52502         GNULIB_MBSSPN.
52503         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
52504         * MODULES.html.sh (Internationalization functions): Add mbsspn.
52505
52506 2007-02-04  Bruno Haible  <bruno@clisp.org>
52507
52508         New module mbspbrk.
52509         * modules/mbspbrk: New file.
52510         * lib/mbspbrk.c: New file.
52511         * lib/string_.h (strpbrk): Add a conditional link warning.
52512         (mbspbrk): New declaration.
52513         * m4/mbspbrk.m4: New file.
52514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52515         GNULIB_MBSPBRK.
52516         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
52517         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
52518
52519 2007-02-04  Bruno Haible  <bruno@clisp.org>
52520
52521         New module mbscspn.
52522         * modules/mbscspn: New file.
52523         * lib/mbscspn.c: New file.
52524         * lib/string_.h (strcspn): Add a conditional link warning.
52525         (mbscspn): New declaration.
52526         * m4/mbscspn.m4: New file.
52527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52528         GNULIB_MBSCSPN.
52529         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
52530         * MODULES.html.sh (Internationalization functions): Add mbscspn.
52531
52532 2007-02-04  Bruno Haible  <bruno@clisp.org>
52533
52534         New module mbscasestr, reduced goal of strcasestr.
52535         * modules/mbscasestr: New file.
52536         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
52537         (mbscasestr): Renamed from strcasestr.
52538         * lib/strcasestr.c: Don't include mbuiter.h.
52539         (strcasestr): Remove support for multibyte locales.
52540         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
52541         Change the conditional link warning.
52542         (mbscasestr): New declaration.
52543         * m4/mbscasestr.m4: New file.
52544         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
52545         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
52546         REPLACE_STRCASESTR.
52547         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
52548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52549         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52550         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
52551         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
52552         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52553         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
52554         (Depends-on): Remove mbuiter.
52555         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
52556
52557 2007-02-04  Bruno Haible  <bruno@clisp.org>
52558
52559         Simplify handling of strncasecmp.
52560         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52561         the conditional link warning.
52562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52563         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52564         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52565         * modules/strcase (configure.ac): Don't invoke
52566         gl_STRING_MODULE_INDICATOR.
52567         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52568
52569 2007-02-04  Bruno Haible  <bruno@clisp.org>
52570
52571         New module mbscasecmp, reduced goal of strcasecmp.
52572         * modules/mbscasecmp: New file.
52573         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52574         (mbscasecmp): Renamed from strcasecmp.
52575         * lib/strcasecmp.c: Don't include mbuiter.h.
52576         (strcasecmp): Remove support for multibyte locales.
52577         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52578         Change the conditional link warning.
52579         (mbscasecmp): New declaration.
52580         * m4/mbscasecmp.m4: New file.
52581         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52582         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52583         REPLACE_STRCASECMP.
52584         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52586         GNULIB_MBSCASECMP.
52587         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52588         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52589         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52590         (Depends-on): Remove mbuiter.
52591         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52592
52593 2007-02-04  Bruno Haible  <bruno@clisp.org>
52594
52595         New module mbsstr. Remove module strstr.
52596         * modules/mbsstr: New file.
52597         * modules/strstr: Remove file.
52598         * lib/mbsstr.c: Renamed from lib/strstr.c.
52599         (mbsstr): Renamed from strstr.
52600         * lib/string_.h (strstr): Remove declaration. Change the conditional
52601         link warning.
52602         (mbsstr): New declaration.
52603         * m4/mbsstr.m4: New file.
52604         * m4/strstr.m4: Remove file.
52605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52606         REPLACE_STRSTR.
52607         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52608         Don't initialize GNULIB_STRSTR.
52609         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52610         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52611         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52612         (Support for systems lacking ANSI C 89): Remove strstr.
52613
52614 2007-02-04  Bruno Haible  <bruno@clisp.org>
52615
52616         New module mbsrchr.
52617         * modules/mbsrchr: New file.
52618         * lib/mbsrchr.c: New file.
52619         * lib/string_.h (strrchr): Add a conditional link warning.
52620         (mbsrchr): New declaration.
52621         * m4/mbsrchr.m4: New file.
52622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52623         GNULIB_MBSRCHR.
52624         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52625         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52626
52627 2007-02-04  Bruno Haible  <bruno@clisp.org>
52628
52629         New module mbschr.
52630         * modules/mbschr: New file.
52631         * lib/mbschr.c: New file.
52632         * lib/string_.h (strchr): Add a conditional link warning.
52633         (mbschr): New declaration.
52634         * m4/mbschr.m4: New file.
52635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52636         GNULIB_MBSCHR.
52637         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52638         * MODULES.html.sh (Internationalization functions): Add mbschr.
52639
52640 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52641
52642         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52643
52644         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52645
52646 2007-02-04  Bruno Haible  <bruno@clisp.org>
52647
52648         New module description section 'configure.ac-early'.
52649         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52650         (func_get_autoconf_early_snippet): New function.
52651         (func_import, func_create_testdir): Use it. Remove special cases for
52652         modules 'extensions' and 'lock'.
52653         * modules/extensions (configure.ac-early): Require
52654         gl_USE_SYSTEM_EXTENSIONS.
52655         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52656
52657 2007-02-04  Bruno Haible  <bruno@clisp.org>
52658
52659         Make use of gcj-4.3's -fsource and -ftarget option.
52660         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52661         and if so try the options -fsource and -ftarget.
52662         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52663         source_version, ftarget_option, target_version arguments.
52664         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52665         (is_envjavac_oldgcj_14_14_usable): Renamed from
52666         is_envjavac_gcj_14_14_usable.
52667         (is_envjavac_oldgcj_14_13_usable): Renamed from
52668         is_envjavac_gcj_14_13_usable.
52669         (is_gcj_present): Update.
52670         (is_gcj_43, is_gcj43_usable): New functions.
52671         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52672         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52673         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52674         try the options -fsource and -ftarget.
52675
52676 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52677
52678         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52679         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52680         larger value.
52681
52682 2007-02-03  Jim Meyering  <jim@meyering.net>
52683
52684         Give tools a better chance to allocate space for very large buffers.
52685         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52686
52687         Make pwd and readlink work also when run with an unreadable parent dir
52688         on systems with openat support.
52689         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52690         provided getcwd function, even when we have openat support.
52691         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52692
52693 2007-02-02  Bruno Haible  <bruno@clisp.org>
52694
52695         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52696         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52697         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52698         portability problems if one of these functions is only used on specific
52699         platforms.
52700         Reported by Paul Eggert.
52701
52702 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52703
52704         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52705         is causing more trouble than it's curing.
52706         * lib/regex_internal.h (__mempcpy): Remove.
52707         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52708         (and make the code a tad smaller to boot).
52709         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52710
52711 2007-02-02  Jim Meyering  <jim@meyering.net>
52712
52713         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52714         section, not in the Makefile.am: one.
52715
52716 2007-02-02  Eric Blake  <ebb9@byu.net>
52717
52718         * lib/strchrnul.c: Always include config.h first.
52719
52720         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52721         gnulib strstr is not necessary here.
52722
52723 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52724
52725         * m4/socklen.m4: Fix typo.
52726
52727 2007-02-02  Eric Blake  <ebb9@byu.net>
52728
52729         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52730         * modules/netinet_in (Makefile.am): Likewise.
52731
52732 2007-02-01  Bruno Haible  <bruno@clisp.org>
52733
52734         * lib/string_.h (GL_LINK_WARNING): New macro.
52735         (strcasecmp, strstr, strcasestr): If provided by the system,
52736         conditionally define as a macro that leads to a warning instead of to
52737         an error.
52738         (strncasecmp): Conditionally define as a macro that leads to a warning.
52739
52740 2007-02-01  Karl Berry  <karl@gnu.org>
52741
52742         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52743
52744 2007-02-01  Bruno Haible  <bruno@clisp.org>
52745
52746         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52747         renamings.
52748
52749 2007-02-01  Eric Blake  <ebb9@byu.net>
52750
52751         * modules/regex (Depends-on): Revert dependence on mempcpy.
52752         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52753         module's definition of mempcpy.
52754         Reported by Paul Eggert.
52755
52756 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52757
52758         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52759         the symbol XYZ before redefining it.  This fixes a problem with
52760         programs that don't use XYZ, when compiled on systems that define
52761         XYZ to something else.
52762
52763 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52764
52765         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52766         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52767         writeable to group or other and (2) is intended to have a special
52768         mode bit that is set or cleared.  In such a case, the directory
52769         should be neither group- nor other-writeable until the special
52770         mode bits are right.
52771
52772 2007-01-31  Eric Blake  <ebb9@byu.net>
52773
52774         * modules/mountlist (Depends-on): Add strstr.
52775
52776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52777         bug.
52778         * modules/string (Makefile.am): Remove redundant replacement.
52779         * modules/regex (Depends-on): Add mempcpy.
52780
52781 2007-01-31  Bruno Haible  <bruno@clisp.org>
52782
52783         New module description field 'Link'.
52784         * gnulib-tool (func_usage): Document --extract-link-directive.
52785         (sed_extract_prog): Recognize 'Link' directive.
52786         (func_get_link_directive): New function.
52787         (func_import): Show summary of link directives.
52788         Handle --extract-link-directive option.
52789         * modules/acl (Link): New section.
52790         * modules/clock-time (Link): New section.
52791         * modules/euidaccess (Link): New section.
52792         * modules/gettext (Link): New section.
52793         * modules/iconv (Link): New section.
52794         * modules/lock (Link): New section.
52795         * modules/nanosleep (Link): New section.
52796         * modules/readline (Link): New section.
52797
52798 2007-01-27  Bruno Haible  <bruno@clisp.org>
52799
52800         Enforce the use of gnulib modules for unportable <string.h> functions.
52801         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52802         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52803         (gl_HEADER_STRING_H_BODY): Require it.
52804         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52805         the symbol XYZ to one that gives a link error.
52806         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52807         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52808         * modules/mempcpy (configure.ac): Likewise.
52809         * modules/memrchr (configure.ac): Likewise.
52810         * modules/stpcpy (configure.ac): Likewise.
52811         * modules/stpncpy (configure.ac): Likewise.
52812         * modules/strcase (configure.ac): Likewise.
52813         * modules/strcasestr (configure.ac): Likewise.
52814         * modules/strchrnul (configure.ac): Likewise.
52815         * modules/strdup (configure.ac): Likewise.
52816         * modules/strndup (configure.ac): Likewise.
52817         * modules/strnlen (configure.ac): Likewise.
52818         * modules/strpbrk (configure.ac): Likewise.
52819         * modules/strsep (configure.ac): Likewise.
52820         * modules/strstr (configure.ac): Likewise.
52821         * modules/strtok_r (configure.ac): Likewise.
52822
52823 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52824
52825         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52826
52827 2007-01-30  Jim Meyering  <jim@meyering.net>
52828
52829         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52830
52831 2007-01-29  Bruno Haible  <bruno@clisp.org>
52832
52833         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52834         * lib/execute.c: Likewise.
52835         * lib/pipe.c: Likewise.
52836         * lib/printf-args.h: Likewise.
52837         * lib/printf-args.c: Likewise.
52838         * lib/printf-parse.c: Likewise.
52839         * lib/vasnprintf.c: Likewise.
52840
52841 2007-01-29  Eric Blake  <ebb9@byu.net>
52842
52843         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52844         declaration.
52845
52846 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52847
52848         * lib/strptime.h (strptime): Use 'restrict' for args where
52849         POSIX requires this.
52850         * lib/strptime.c (strptime): Likewise.
52851         Change license notice from LGPL to GPL, since gnulib-tool will
52852         change this as needed.
52853         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52854         defined.
52855         Include "strptime.h" first, to check interface.
52856         Do not #undef _LIBC and _NL_CURRENT.
52857         Do not include <stdlib.h>; no longer needed.
52858         Include "time_r.h" and declare ptime_locale_status
52859         only if _LIBC is not defined.
52860         (__P): Remove unused macro.
52861         (match_string): Bring back glibc version, but use it only if _LIBC
52862         is defined.
52863         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52864         Remove unnecessary assertion and abort() call.
52865         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52866         * m4/strptime.m4: Fix serial number comment.
52867         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52868         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52869         (Depends-on): Add time_r.
52870
52871 2007-01-29  Bruno Haible  <bruno@clisp.org>
52872
52873         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52874         strptime.
52875         * modules/strptime (Depends-on): Add stdbool.
52876         * lib/strptime.h: Include <time.h> always. Add comments.
52877
52878 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52879
52880         * modules/strptime: New file.
52881         * lib/strptime.h: New file.
52882         * lib/strptime.c: New file.
52883         * m4/strptime.m4: New file.
52884
52885 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52886
52887         * MODULES.html.sh: New module mpsort.
52888         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52889
52890         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52891         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52892         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52893         All uses changed.
52894         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52895         All uses changed.
52896         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52897         to _Restrict_.
52898         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52899         the parameter matches the prototype.
52900
52901 2007-01-28  Jim Meyering  <jim@meyering.net>
52902
52903         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52904         sys/time.h here, reverting that part of the previous patch:
52905         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52906
52907 2007-01-28  Bruno Haible  <bruno@clisp.org>
52908
52909         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52910         value of $(SYS_TIME_H).
52911         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52912         remove it conditionally, too. [added by Jim Meyering]
52913         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52914         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52915         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52916         GETTIMEOFDAY_REPLACEMENT to 1.
52917
52918 2007-01-28  Bruno Haible  <bruno@clisp.org>
52919
52920         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52921         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52923         Set UNISTD_H instead of UNISTD_H2.
52924         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52925
52926 2007-01-28  Bruno Haible  <bruno@clisp.org>
52927
52928         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52929         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52930
52931 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52932
52933         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
52934         (func_create_testdir): Ensure C locale for `grep' and `tr'
52935         character ranges.
52936         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52937         ACLOCAL_AMFLAGS parsing state machine.
52938
52939 2007-01-27  Bruno Haible  <bruno@clisp.org>
52940
52941         * modules/unistr/base: Update.
52942
52943 2007-01-27  Bruno Haible  <bruno@clisp.org>
52944
52945         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52946         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52947         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52948         modules/unistr/u32-mbtouc.
52949         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52950         * lib/unistr.h: Update.
52951         * lib/linebreak.c: Update.
52952         * modules/unistr/u32-mbtouc: Renamed from
52953         modules/unistr/u32-mbtouc-safe.
52954         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52955         * lib/unistr.h: Update.
52956         * lib/unistr/u32-to-u8.c: Update.
52957         * lib/unistr/u32-to-u16.c: Update.
52958
52959 2007-01-27  Bruno Haible  <bruno@clisp.org>
52960
52961         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52962         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52963         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52964         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52965         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52966         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52967         modules/unistr/u16-mbtouc.
52968         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52969         * lib/unistr.h: Update.
52970         * lib/linebreak.c: Update.
52971         * modules/linebreak: Update.
52972         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52973         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52974         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52975         * modules/unistr/u16-mbtouc: Renamed from
52976         modules/unistr/u16-mbtouc-safe.
52977         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52978         * lib/unistr.h: Update.
52979         * lib/unistr/u16-to-u8.c: Update.
52980         * modules/unistr/u16-to-u8: Update.
52981         * lib/unistr/u16-to-u32.c: Update.
52982         * modules/unistr/u16-to-u32: Update.
52983
52984 2007-01-27  Bruno Haible  <bruno@clisp.org>
52985
52986         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52987         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52988         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52989         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52990         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52991         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52992         modules/unistr/u8-mbtouc.
52993         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52994         * lib/unistr.h: Update.
52995         * lib/striconveh.c: Update.
52996         * modules/striconveh: Update.
52997         * lib/linebreak.c: Update.
52998         * modules/linebreak: Update.
52999         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53000         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53001         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53002         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53003         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53004         * lib/unistr.h: Update.
53005         * lib/striconveh.c: Update.
53006         * modules/striconveh: Update.
53007         * lib/unistr/u8-to-u16.c: Update.
53008         * modules/unistr/u8-to-u16: Update.
53009         * lib/unistr/u8-to-u32.c: Update.
53010         * modules/unistr/u8-to-u32: Update.
53011
53012 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53013
53014         Sync from Libtool.
53015         * lib/argz.c: Do not include strings.h nor memory.h, include
53016         string.h unconditionally.  Patch by Simon Josefsson.
53017
53018 2007-01-27  Bruno Haible  <bruno@clisp.org>
53019
53020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53021         from gl_HEADER_STRING_H_BODY.
53022         (gl_HEADER_STRING_H_BODY): Require it.
53023         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53024         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53025         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53026         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53027         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53028         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53030         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53031         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53032         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53033         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53034         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53035         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53036         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53037         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53038
53039 2007-01-27  Bruno Haible  <bruno@clisp.org>
53040
53041         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53042         check_PROGRAMS into noinst_PROGRAMS.
53043         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53044         check_PROGRAMS in this case.
53045         (func_import): Set for_test to false.
53046         (func_create_testdir): Set for_test to true.
53047
53048 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53049             Bruno Haible  <bruno@clisp.org>
53050
53051         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53052         (Depends-on): Add string.
53053         (Includes): Use <string.h> instead of strcasestr.h.
53054         * modules/string (Makefile.am): Also substitute the value of
53055         REPLACE_STRCASESTR.
53056         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53057         assume strcasestr is declared in <string.h> not <strings.h>. Also
53058         set REPLACE_STRCASESTR.
53059         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53060         REPLACE_STRCASESTR.
53061         * lib/strcasestr.h: Remove file.
53062         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53063         * lib/string_.h (strcasestr): New declaration.
53064
53065 2007-01-27  Bruno Haible  <bruno@clisp.org>
53066
53067         * lib/string_.h: Use 'extern'.
53068
53069 2007-01-27  Jim Meyering  <jim@meyering.net>
53070
53071         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53072         of set-but-not-used local, "q".
53073
53074         * lib/mempcpy.c: Include <config.h> before <string.h>.
53075         This fixes a compilation error on HP-UX, due to the system's
53076         "restrict"-using mempcpy prototype.
53077
53078 2007-01-26  Bruno Haible  <bruno@clisp.org>
53079
53080         Small optimization.
53081         * lib/javacomp.c: Include c-strstr.h.
53082          (is_envjavac_gcj): Use c_strstr instead of strstr.
53083         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53084
53085 2007-01-26  Bruno Haible  <bruno@clisp.org>
53086
53087         * MODULES.html.sh (Unicode string functions): Add the new modules.
53088
53089         * modules/uniconv/u32-strconv-to-locale: New file.
53090         * lib/uniconv/u32-strconv-to-locale.c: New file.
53091
53092         * modules/uniconv/u16-strconv-to-locale: New file.
53093         * lib/uniconv/u16-strconv-to-locale.c: New file.
53094
53095         * modules/uniconv/u8-strconv-to-locale: New file.
53096         * lib/uniconv/u8-strconv-to-locale.c: New file.
53097
53098         * modules/uniconv/u32-strconv-from-locale: New file.
53099         * lib/uniconv/u32-strconv-from-locale.c: New file.
53100
53101         * modules/uniconv/u16-strconv-from-locale: New file.
53102         * lib/uniconv/u16-strconv-from-locale.c: New file.
53103
53104         * modules/uniconv/u8-strconv-from-locale: New file.
53105         * lib/uniconv/u8-strconv-from-locale.c: New file.
53106
53107         * modules/uniconv/u32-strconv-to-enc: New file.
53108         * lib/uniconv/u32-strconv-to-enc.c: New file.
53109         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53110         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53111
53112         * modules/uniconv/u16-strconv-to-enc: New file.
53113         * lib/uniconv/u16-strconv-to-enc.c: New file.
53114         * lib/uniconv/u-strconv-to-enc.h: New file.
53115         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53116         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53117
53118         * modules/uniconv/u8-strconv-to-enc: New file.
53119         * lib/uniconv/u8-strconv-to-enc.c: New file.
53120         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53121         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53122
53123         * modules/uniconv/u32-strconv-from-enc: New file.
53124         * lib/uniconv/u32-strconv-from-enc.c: New file.
53125         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53126         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53127
53128         * modules/uniconv/u16-strconv-from-enc: New file.
53129         * lib/uniconv/u16-strconv-from-enc.c: New file.
53130         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53131         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53132
53133         * modules/uniconv/u8-strconv-from-enc: New file.
53134         * lib/uniconv/u8-strconv-from-enc.c: New file.
53135         * lib/uniconv/u-strconv-from-enc.h: New file.
53136         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53137         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53138
53139         * modules/uniconv/u32-conv-from-enc: New file.
53140         * lib/uniconv/u32-conv-from-enc.c: New file.
53141         * modules/uniconv/u32-conv-from-enc-tests: New file.
53142         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53143
53144         * modules/uniconv/u16-conv-from-enc: New file.
53145         * lib/uniconv/u16-conv-from-enc.c: New file.
53146         * lib/uniconv/u-conv-from-enc.h: New file.
53147         * modules/uniconv/u16-conv-from-enc-tests: New file.
53148         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53149
53150         * modules/uniconv/u8-conv-from-enc: New file.
53151         * lib/uniconv/u8-conv-from-enc.c: New file.
53152         * modules/uniconv/u8-conv-from-enc-tests: New file.
53153         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53154
53155         * modules/uniconv/base: New file.
53156         * lib/uniconv.h: New file.
53157
53158 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53159
53160         * doc/gnulib-tool.texi (Initial import): Update to match current
53161         behavior with strdup module.
53162         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53163         * lib/memmem.h: Remove; all uses removed.  This is now done
53164         by <string.h>.
53165         * lib/mempcpy.h: Likewise.
53166         * lib/memrchr.h: Likewise.
53167         * lib/stpcpy.h: Likewise.
53168         * lib/stpncpy.h: Likewise.
53169         * lib/strcase.h: Likewise.
53170         * lib/strchrnul.h: Likewise.
53171         * lib/strdup.h: Likewise.
53172         * lib/strndup.h: Likewise.
53173         * lib/strnlen.h: Likewise.
53174         * lib/strpbrk.h: Likewise.
53175         * lib/strsep.h: Likewise.
53176         * lib/strstr.h: Likewise.
53177         * lib/strtok_r.h: Likewise.
53178         * lib/string_.h: New file.
53179         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53180         Rely on <string.h> instead.
53181         * lib/canon-host.c: Likewise.
53182         * lib/chdir-long.c: Likewise.
53183         * lib/concatpath.c: Likewise.
53184         * lib/exclude.c: Likewise.
53185         * lib/fchdir.c: Likewise.
53186         * lib/getaddrinfo.c: Likewise.
53187         * lib/getcwd.c: Likewise.
53188         * lib/getsubopt.c: Likewise.
53189         * lib/glob.c: Likewise.
53190         * lib/hard-locale.c: Likewise.
53191         * lib/iconvme.c: Likewise.
53192         * lib/javacomp.c: Likewise.
53193         * lib/mempcpy.c: Likewise.
53194         * lib/memrchr.c: Likewise.
53195         * lib/regex_internal.h: Likewise.
53196         * lib/stpncpy.c: Likewise.
53197         * lib/strcasecmp.c: Likewise.
53198         * lib/strchrnul.c: Likewise.
53199         * lib/strdup.c: Likewise.
53200         * lib/striconv.c: Likewise.
53201         * lib/striconveh.c: Likewise.
53202         * lib/striconveha.c: Likewise.
53203         * lib/strncasecmp.c: Likewise.
53204         * lib/strndup.c: Likewise.
53205         * lib/strnlen.c: Likewise.
53206         * lib/strsep.c: Likewise.
53207         * lib/strstr.c: Likewise.
53208         * lib/strtok_r.c: Likewise.
53209         * lib/userspec.c: Likewise.
53210         * lib/w32spawn.h: Likewise.
53211         * lib/xstrndup.c: Likewise.
53212         * lib/mountlist.c (strstr): Remove decl.
53213         * m4/string_h.m4: New file.
53214         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53215         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53216         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53217         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53218         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53219         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53220         Set REPLACE_STRCASECMP if necessary.
53221         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
53222         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
53223         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
53224         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
53225         HAVE_DECL_STRDUP if necessary.
53226         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
53227         since gl_FUNC_STRNDUP does that now.
53228         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
53229         Check for decl here...
53230         (gl_PREREQ_STRNLEN): ... not here.
53231         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
53232         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
53233         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
53234         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
53235         necessary.
53236         * modules/string: New file.
53237         * modules/memmem (Files): Remove special-purpose include file.
53238         (Depends-on): Add string.
53239         (Include): Include <string.h>, not the removed file.
53240         * modules/mempcpy: Likewise.
53241         * modules/memrchr: Likewise.
53242         * modules/stpcpy: Likewise.
53243         * modules/stpncpy: Likewise.
53244         * modules/strcase: Likewise.
53245         * modules/strchrnul: Likewise.
53246         * modules/strdup: Likewise.
53247         * modules/strndup: Likewise.
53248         * modules/strnlen: Likewise.
53249         * modules/strpbrk: Likewise.
53250         * modules/strsep: Likewise.
53251         * modules/strstr: Likewise.
53252         * modules/strtok_r: Likewise.
53253         * tests/test-dirname.c: Don't include "strdup.h", since
53254         <string.h> now suffices.
53255         * tests/test-memmem.c: Don't include "memmem.h", since
53256         <string.h> now suffices.
53257
53258 2007-01-25  Bruno Haible  <bruno@clisp.org>
53259
53260         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
53261         *resultp is 0.
53262
53263         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
53264         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
53265         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
53266         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
53267
53268         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
53269         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
53270         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
53271         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
53272         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
53273         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
53274
53275 2007-01-24  Bruno Haible  <bruno@clisp.org>
53276
53277         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
53278         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
53279         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
53280         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
53281         gl_FUNC_FTS_CORE.
53282         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
53283         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
53284         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53285         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
53286         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
53287         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
53288         gl_FUNC_FCHOWNAT.
53289         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
53290         gl_FUNC_STRFTIME.
53291         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
53292         Reported by Ralf Wildenhues.
53293
53294 2007-01-24  Bruno Haible  <bruno@clisp.org>
53295
53296         Drop AC_REQUIRE calls that are redundant with the module dependencies.
53297         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
53298         gl_GETADDRINFO.
53299         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
53300         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
53301         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
53302
53303 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
53304
53305         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
53306         Don't use 'exit'; just return from 'main'.
53307         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
53308
53309         * lib/fnmatch_.h: Readjust white space and comments to match
53310         glibc, to avoid spurious diffs.
53311
53312 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53313
53314         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
53315         2004-12-01 change by Jakub Jelinek, since this code won't compile
53316         if !LIBC.  Problem reported by Bob Proulx.
53317
53318 2007-01-23  Bruno Haible  <bruno@clisp.org>
53319
53320         * lib/striconveh.c: Include c-strcaseeq.h.
53321         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
53322         * modules/striconveh (Depends-on): Add c-strcaseeq.
53323
53324 2007-01-23  Bruno Haible  <bruno@clisp.org>
53325
53326         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
53327
53328         * modules/c-strcaseeq: New file.
53329         * lib/c-strcaseeq.h: New file.
53330
53331         * modules/streq: New file.
53332         * lib/streq.h: New file.
53333
53334 2007-01-23  Bruno Haible  <bruno@clisp.org>
53335
53336         * modules/striconveha-tests: New file.
53337         * tests/test-striconveha.c: New file.
53338
53339         * lib/striconveha.h: Include <stdbool.h>.
53340         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
53341         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
53342         (mem_iconveha_notranslit): Renamed from mem_iconveha.
53343         (mem_iconveha): New function.
53344         (str_iconveha_notranslit): Renamed from str_iconveha.
53345         (str_iconveha): New function.
53346         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
53347         c-strcase.
53348
53349 2007-01-23  Bruno Haible  <bruno@clisp.org>
53350
53351         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
53352         encodings without forgiving before trying any encoding with handler.
53353         (str_iconveha): Try all encodings without forgiving before trying any
53354         encoding with handler.
53355
53356 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53357
53358         Import the following changes from libc.
53359
53360         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53361
53362         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
53363
53364         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53365
53366         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
53367         normal_bracket label.
53368
53369         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
53370
53371         [BZ #361]
53372         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
53373         to normal_bracket after fetching the next character.
53374
53375 2007-01-22  Bruno Haible  <bruno@clisp.org>
53376
53377         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
53378         argument.
53379         * lib/striconveh.c (iconv_carefully_1): New function.
53380         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
53381         argument.
53382         (str_cd_iconveh): Update.
53383         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
53384         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
53385         * tests/test-striconveh.c (MAGIC): New macro.
53386         (new_offsets): New function.
53387         (main): Test call with and without offsets.
53388
53389 2007-01-22  Bruno Haible  <bruno@clisp.org>
53390
53391         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
53392         * modules/sys_select (Makefile.am): Likewise.
53393         * modules/sys_socket (Makefile.am): Likewise.
53394         * modules/sys_time (Makefile.am): Likewise.
53395
53396 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53397
53398         * modules/gettimeofday (License): Change from GPL to LGPL, since
53399         gettimeofday is a library function.
53400
53401 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53402
53403         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
53404
53405 2007-01-21  Bruno Haible  <bruno@clisp.org>
53406
53407         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
53408
53409 2007-01-21  Bruno Haible  <bruno@clisp.org>
53410
53411         * modules/striconveha: New file.
53412         * lib/striconveha.h: New file.
53413         * lib/striconveha.c: New file.
53414         * MODULES.html.sh (Internationalization functions): Add striconveha.
53415         * lib/striconv.c (str_iconv): Optimize the case of an empty input
53416         string.
53417         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
53418
53419 2007-01-21  Bruno Haible  <bruno@clisp.org>
53420
53421         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
53422         * lib/striconveh.c (str_iconveh): Likewise.
53423
53424 2007-01-21  Bruno Haible  <bruno@clisp.org>
53425
53426         * lib/striconveh.h (mem_iconveh): New declaration.
53427         * lib/striconveh.c (mem_iconveh): New function.
53428         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
53429
53430 2007-01-21  Bruno Haible  <bruno@clisp.org>
53431
53432         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
53433
53434         * lib/striconveh.h (mem_cd_iconveh): Change specification.
53435         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
53436         original result buffer.
53437         (str_cd_iconveh): Update.
53438         * tests/test-striconveh.c (main): Update.
53439
53440         * lib/striconv.h (mem_cd_iconv): Change specification.
53441         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
53442         result buffer.
53443         (str_cd_iconv): Update.
53444         * tests/test-striconv.c (main): Update.
53445
53446 2007-01-21  Bruno Haible  <bruno@clisp.org>
53447
53448         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
53449
53450 2007-01-20  Jim Meyering  <jim@meyering.net>
53451
53452         * lib/userspec.c (parse_with_separator): If a user or group string
53453         starts with "+", skip the corresponding name-to-ID look-up, since
53454         such a look-up must fail: user and group names may not include "+".
53455
53456 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53457
53458         * lib/poll.c: Include sys/time.h and time.h unconditionally,
53459         since we now assume the sys_time module.
53460         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
53461         check for sys/time.h; no longer needed.
53462         * modules/poll (Depends-on): Depend on sys_time.
53463
53464 2007-01-18  Bruno Haible  <bruno@clisp.org>
53465
53466         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
53467         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53468
53469         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
53470         gettimeofday.
53471
53472         * tests/test-gettimeofday.c: Include <time.h>.
53473         (dummy): Remove variable.
53474
53475         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
53476         gl_HEADER_SYS_TIME_H.
53477         (gl_HEADER_SYS_TIME_H): New macro.
53478
53479         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
53480         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53481         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53482         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
53483         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53484         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
53485         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
53486         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53487         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
53488         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
53489         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53490
53491         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
53492         last change; it caused a compilation error when cross-compiling to
53493         Cygwin.
53494
53495 2007-01-18  Jim Meyering  <jim@meyering.net>
53496
53497         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
53498         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
53499         than the race-prone "test -d sys || mkdir sys".
53500         (configure.ac): Use AC_PROG_MKDIR_P.
53501         * modules/sys_select: Likewise.
53502         * modules/sys_socket: Likewise.
53503         * modules/sys_time: Likewise.
53504
53505 2007-01-18  Eric Blake  <ebb9@byu.net>
53506
53507         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
53508         replace gettimeofday.
53509         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
53510         name, to avoid infinite recursion.
53511
53512 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
53513
53514         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
53515         module sys_time.
53516         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
53517         assume timespec.h defines struct timeval.
53518         * lib/settime.c: Likewise.
53519         * lib/utimens.c: Likewise.
53520         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
53521         since we now assume the gettimeofday module.
53522         * lib/tempname.c (__gen_tempname): Likewise.
53523         * lib/gettimeofday.h: Remove.
53524         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
53525         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
53526         Include <time.h>, for 'time()'.
53527         (localtime_buffer_addr): Also use this workaround if
53528         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
53529         to simplify the uses.  All uses changed.
53530         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
53531         that #undef is inside {}, and 'const' follows type name consistently.
53532         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
53533         (gettimeofday): Do not use the maximum possible value for
53534         tv->tv_usec, since that might break usages other than ls.c.
53535         Instead, we'll leave ls.c alone.  This undoes today's patch
53536         by Bruno.  Add a compile-time warning for 1s-clock resolution;
53537         we've never observed the problem but might as well keep the
53538         canary.
53539         * lib/nanosleep.c: Include timespec.h first, for interface check.
53540         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
53541         now assume the sys_time module.
53542         * lib/tempname.c: Likewise.
53543         * lib/timespec.h: Likewise.
53544         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
53545         needed.
53546         * lib/strftime.c: Likewise.
53547         * lib/timespec.h: Likewise.
53548         * lib/posixtm.c: Include posixtm.h first, for interface check.
53549         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
53550         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
53551         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
53552         * lib/sys_time_.h: New file.
53553         * lib/timespec.h (struct timespec): Use long int, not long.
53554         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53555         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
53556         Remove obsolescent call to AC_HEADER_TIME.
53557         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53559         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53560         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53561         Likewise.
53562         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53563         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53565         into the sys_time module.  Check for gettimeofday just once.
53566         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53567         for gettimeofday signature to just check the signature.  Merely
53568         compile it, since linking doesn't test signature.  Improve test for
53569         whether gettimeofday.o is actually needed.
53570         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53571         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53572         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53573         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53574         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53575         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53576         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53577         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53578         than worrying about sys/time.h.
53579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53580         Don't bother worrying about TIME_WITH_SYS_TIME.
53581         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53582         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53583         * m4/sys_time_h.m4: New file.
53584         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53585         Don't include sys/time.h.  Return from main rather than exiting.
53586         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53587         all uses changed.
53588         * modules/gethrxtime (Depends-on): Add sys_time.
53589         * modules/gettime (Depends-on): Likewise.
53590         * modules/gettimeofday (Depends-on): Likewise.
53591         * modules/nanosleep (Depends-on): Likewise.
53592         * modules/settime (Depends-on): Likewise.
53593         * modules/tempname (Depends-on): Likewise.
53594         * modules/utimens (Depends-on): Likewise.
53595         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53596         (Include:) Change back to <sys/time.h>.
53597         (Maintainer:) Add self.
53598         * modules/sys_time: New file.
53599         * modules/tempname (Depends-on): Add gettimeofday.
53600         * tests/test-gettimeofday.c: Include <sys/time.h>
53601         rather than gettimeofday.h.
53602
53603 2007-01-17  Bruno Haible  <bruno@clisp.org>
53604
53605         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53606         the license default to GPL.
53607         (func_create_testdir): Don't complain if a module is LGPL and its
53608         tests module depends on GPLed modules.
53609
53610 2007-01-17  Bruno Haible  <bruno@clisp.org>
53611
53612         * lib/gettimeofday.c (gettimeofday): Add code for the case
53613         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53614         maximum possible value for tv->tv_usec, rather than the minimum one.
53615
53616 2005-10-08  Martin Lambers  <marlam@marlam.de>
53617 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53618 2007-01-16  Bruno Haible  <bruno@clisp.org>
53619
53620         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53621         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53622         gl_FUNC_GETTIMEOFDAY.
53623         (Include): Add gettimeofday.h.
53624         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53625         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53626         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53627         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53628         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53629         * lib/gettimeofday.h: New file.
53630         * lib/gettimeofday.c: Include <sys/timeb.h>.
53631         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53632         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53633         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53634         fall back on time().
53635
53636         * tests/test-gettimeofday.c: New file.
53637         * modules/gettimeofday-tests: New file.
53638
53639 2007-01-16  Eric Blake  <ebb9@byu.net>
53640
53641         * modules/fnmatch (Depends-on): Depend on wchar.
53642         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53643         * m4/fnmatch.m4: Likewise.
53644         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53645         * m4/mbchar.m4: Likewise.
53646         * modules/mbswidth (Depends-on): Depend on wchar.
53647         * lib/mbswidth.c: Assume <wchar.h>.
53648         * m4/mbswidth.m4: Likewise.
53649         * modules/quotearg (Depends-on): Depend on wchar.
53650         * lib/quotearg.c: Assume <wchar.h>.
53651         * m4/quotearg.m4: Likewise.
53652         * modules/regex (Depends-on): Depend on wchar.
53653         * lib/regex_internal.h: Assume <wchar.h>.
53654         * m4/regex.m4: Likewise.
53655         * modules/stdint (Depends-on): Depend on wchar.
53656         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53657         * m4/stdint.m4: Likewise.
53658         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53659         * modules/strftime (Depends-on): Depend on wchar.
53660         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53661         * modules/strtol (Depends-on): Depend on wchar.
53662         * lib/strtol.c: Assume <wchar.h>.
53663         * modules/wcwidth (Depends-on): Depend on wchar.
53664         * lib/wcwidth.h: Assume <wchar.h>.
53665         * m4/wcwidth.m4: Likewise.
53666
53667 2007-01-16  Bruno Haible  <bruno@clisp.org>
53668
53669         * modules/csharpexec-script: New, created from...
53670         * modules/csharpexec: ... this.
53671
53672 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53673
53674         * modules/javaexec-script: New, created from...
53675         * modules/javaexec: ... this.
53676
53677 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53678
53679         * modules/poll (Dependencies): Add sys_select.
53680
53681 2007-01-15  Jim Meyering  <jim@meyering.net>
53682
53683         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53684         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53685         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53686         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53687
53688 2007-01-15  Bruno Haible  <bruno@clisp.org>
53689
53690         * modules/striconveh: New file.
53691         * lib/striconveh.h: New file.
53692         * lib/striconveh.c: New file.
53693         * MODULES.html.sh (Internationalization functions): Add striconveh.
53694
53695         * modules/striconveh-tests: New file.
53696         * tests/test-striconveh.c: New file.
53697
53698 2007-01-15  Bruno Haible  <bruno@clisp.org>
53699
53700         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53701         not from GNU libiconv or GNU libc.
53702
53703 2007-01-15  Bruno Haible  <bruno@clisp.org>
53704
53705         * doc/gnulib-intro.texi (Copyright): Explain the different license
53706         terms for module descriptions, autoconf macros, tests, documentation.
53707
53708 2007-01-14  Bruno Haible  <bruno@clisp.org>
53709
53710         * modules/striconv-tests: New file.
53711         * tests/test-striconv.c: New file.
53712
53713 2007-01-14  Bruno Haible  <bruno@clisp.org>
53714
53715         * modules/iconv-tests: New file.
53716         * tests/test-iconv.c: New file.
53717
53718 2007-01-14  Bruno Haible  <bruno@clisp.org>
53719
53720         * gnulib-tool (func_get_license): For test modules, use the license of
53721         the main module.
53722
53723 2007-01-14  Bruno Haible  <bruno@clisp.org>
53724
53725         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53726         if iconv is found to exist.
53727
53728 2007-01-14  Bruno Haible  <bruno@clisp.org>
53729
53730         * modules/c-ctype-tests: New file.
53731         * tests/test-c-ctype.c: New file.
53732
53733 2007-01-14  Bruno Haible  <bruno@clisp.org>
53734
53735         * modules/binary-io-tests: New file.
53736         * tests/test-binary-io.sh: New file.
53737         * tests/test-binary-io.c: New file.
53738
53739 2007-01-14  Bruno Haible  <bruno@clisp.org>
53740
53741         * modules/array-oset-tests: New file.
53742         * tests/test-array_oset.c: New file.
53743
53744 2007-01-14  Bruno Haible  <bruno@clisp.org>
53745
53746         * modules/array-list-tests: New file.
53747         * tests/test-array_list.c: New file.
53748
53749 2007-01-14  Bruno Haible  <bruno@clisp.org>
53750
53751         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53752         and make.
53753         Reported by Simon Josefsson in
53754         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53755
53756 2007-01-14  Bruno Haible  <bruno@clisp.org>
53757
53758         * modules/allocsa-tests: New file.
53759         * tests/test-allocsa.c: New file.
53760
53761 2007-01-14  Bruno Haible  <bruno@clisp.org>
53762
53763         * modules/fchdir (Depends-on): Add absolute-header.
53764         * modules/unistd (Depends-on): Likewise.
53765
53766 2006-12-30  Bruno Haible  <bruno@clisp.org>
53767
53768         * modules/fchdir: New file.
53769         * modules/unistd (Files): Add lib/unistd_.h.
53770         (Makefile.am): Generate unistd.h from unistd_.h.
53771         * lib/fchdir.c: New file.
53772         * lib/dirent_.h: New file.
53773         * lib/unistd_.h: New file.
53774         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53775         * m4/fchdir.m4: New file.
53776         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53777         (gl_HEADER_UNISTD): Invoke it.
53778         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53779         function.
53780         * lib/backupfile.c (opendir, closedir): Undefine.
53781         * lib/chown.c (open, close): Undefine.
53782         * lib/clean-temp.c (open, close): Undefine.
53783         * lib/copy-file.c (open, close): Undefine.
53784         * lib/execute.c (open, close): Undefine.
53785         * lib/fsusage.c (open, close): Undefine.
53786         * lib/gc-gnulib.c (open, close): Undefine.
53787         * lib/getcwd.c (opendir, closedir): Undefine.
53788         * lib/glob.c (opendir, closedir): Undefine.
53789         * lib/javacomp.c (open, close): Undefine.
53790         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53791         * lib/openat-proc.c (open, close): Undefine.
53792         * lib/pagealign_alloc.c (open, close): Undefine.
53793         * lib/pipe.c (open, close): Undefine.
53794         * lib/progreloc.c (open, close): Undefine.
53795         * lib/savedir.c (opendir, closedir): Undefine.
53796         * lib/utime.c (open, close): Undefine.
53797         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53798
53799 2007-01-10  Bruno Haible  <bruno@clisp.org>
53800
53801         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53802
53803 2007-01-12  Eric Blake  <ebb9@byu.net>
53804
53805         Provide a robust <wchar.h>.  Further simplifications are now
53806         possible in other modules, but not included here.
53807         * modules/wchar: New module.
53808         * m4/wchar.m4: New file.
53809         * lib/wchar_.h: Likewise.
53810         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53811         of the new module.
53812         * MODULES.html.sh (Extended multibyte and wide character utilities):
53813         New section.
53814
53815 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53816
53817         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53818         to a reasonable default for memory allocation.
53819         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53820         file system that reports garbage st_size values for symlinks.
53821         Problem reported by Liyang Hu.
53822
53823 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53824
53825         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53826         Emacs .#* auto-save files).
53827
53828 2007-01-11  Bruno Haible  <bruno@clisp.org>
53829
53830         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53831         directory.
53832
53833 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53834
53835         Use @...@ consistently in lib/wctype_.h.
53836         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53837         on it being set to 1 or 0.
53838         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53839         go back to AC_SUBSTing it.
53840         * modules/wctype (Makefile.am): Undo previous change.
53841
53842 2007-01-10  Eric Blake  <ebb9@byu.net>
53843
53844         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53845         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53846         * modules/wctype (Makefile.am): Likewise.
53847         Reported by Chris McGuire.
53848
53849 2007-01-10  Jim Meyering  <jim@meyering.net>
53850
53851         fts.c: a small readability/maintainability improvement
53852         * lib/fts.c (fts_read): Make this code slightly more readable and
53853         maintainable by hoisting the "sp->fts_cur = p" assignments to
53854         immediately follow the statements that set P.  Derived from
53855         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53856
53857 2007-01-10  Eric Blake  <ebb9@byu.net>
53858
53859         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53860         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53862         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53863         Reported by Chris McGuire.
53864
53865 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53866
53867         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53868         in sed script.
53869
53870 2007-01-09  Bruno Haible  <bruno@clisp.org>
53871
53872         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53873         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53874         variables.
53875         (func_module): Use them.
53876
53877 2007-01-09  Bruno Haible  <bruno@clisp.org>
53878
53879         * modules/unistr/base: New file.
53880         * lib/unistr.h: New file.
53881
53882         * modules/unistr/u8-to-u16: New file.
53883         * lib/unistr/u8-to-u16.c: New file.
53884
53885         * modules/unistr/u8-to-u32: New file.
53886         * lib/unistr/u8-to-u32.c: New file.
53887
53888         * modules/unistr/u16-to-u8: New file.
53889         * lib/unistr/u16-to-u8.c: New file.
53890
53891         * modules/unistr/u16-to-u32: New file.
53892         * lib/unistr/u16-to-u32.c: New file.
53893
53894         * modules/unistr/u32-to-u8: New file.
53895         * lib/unistr/u32-to-u8.c: New file.
53896
53897         * modules/unistr/u32-to-u16: New file.
53898         * lib/unistr/u32-to-u16.c: New file.
53899
53900         * modules/unistr/u8-check: New file.
53901         * modules/unistr/u16-check: New file.
53902         * modules/unistr/u32-check: New file.
53903         * lib/unistr/u8-check.c: New file.
53904         * lib/unistr/u16-check.c: New file.
53905         * lib/unistr/u32-check.c: New file.
53906
53907         * modules/unistr/u8-chr: New file.
53908         * modules/unistr/u16-chr: New file.
53909         * modules/unistr/u32-chr: New file.
53910         * lib/unistr/u8-chr.c: New file.
53911         * lib/unistr/u16-chr.c: New file.
53912         * lib/unistr/u32-chr.c: New file.
53913
53914         * modules/unistr/u8-cmp: New file.
53915         * modules/unistr/u16-cmp: New file.
53916         * modules/unistr/u32-cmp: New file.
53917         * lib/unistr/u8-cmp.c: New file.
53918         * lib/unistr/u16-cmp.c: New file.
53919         * lib/unistr/u32-cmp.c: New file.
53920
53921         * modules/unistr/u8-cpy: New file.
53922         * modules/unistr/u16-cpy: New file.
53923         * modules/unistr/u32-cpy: New file.
53924         * lib/unistr/u8-cpy.c: New file.
53925         * lib/unistr/u16-cpy.c: New file.
53926         * lib/unistr/u32-cpy.c: New file.
53927         * lib/unistr/u-cpy.h: New file.
53928
53929         * modules/unistr/u8-cpy-alloc: New file.
53930         * modules/unistr/u16-cpy-alloc: New file.
53931         * modules/unistr/u32-cpy-alloc: New file.
53932         * lib/unistr/u8-cpy-alloc.c: New file.
53933         * lib/unistr/u16-cpy-alloc.c: New file.
53934         * lib/unistr/u32-cpy-alloc.c: New file.
53935         * lib/unistr/u-cpy-alloc.h: New file.
53936
53937         * modules/unistr/u8-endswith: New file.
53938         * modules/unistr/u16-endswith: New file.
53939         * modules/unistr/u32-endswith: New file.
53940         * lib/unistr/u8-endswith.c: New file.
53941         * lib/unistr/u16-endswith.c: New file.
53942         * lib/unistr/u32-endswith.c: New file.
53943         * lib/unistr/u-endswith.h: New file.
53944
53945         * modules/unistr/u8-mblen: New file.
53946         * modules/unistr/u16-mblen: New file.
53947         * modules/unistr/u32-mblen: New file.
53948         * lib/unistr/u8-mblen.c: New file.
53949         * lib/unistr/u16-mblen.c: New file.
53950         * lib/unistr/u32-mblen.c: New file.
53951
53952         * modules/unistr/u8-mbtouc: New file.
53953         * modules/unistr/u16-mbtouc: New file.
53954         * modules/unistr/u32-mbtouc: New file.
53955         * lib/unistr/u8-mbtouc.c: New file.
53956         * lib/unistr/u16-mbtouc.c: New file.
53957         * lib/unistr/u32-mbtouc.c: New file.
53958
53959         * modules/unistr/u8-mbtouc-safe: New file.
53960         * modules/unistr/u16-mbtouc-safe: New file.
53961         * modules/unistr/u32-mbtouc-safe: New file.
53962         * lib/unistr/u8-mbtouc-safe.c: New file.
53963         * lib/unistr/u16-mbtouc-safe.c: New file.
53964         * lib/unistr/u32-mbtouc-safe.c: New file.
53965
53966         * modules/unistr/u8-move: New file.
53967         * modules/unistr/u16-move: New file.
53968         * modules/unistr/u32-move: New file.
53969         * lib/unistr/u8-move.c: New file.
53970         * lib/unistr/u16-move.c: New file.
53971         * lib/unistr/u32-move.c: New file.
53972         * lib/unistr/u-move.h: New file.
53973
53974         * modules/unistr/u8-next: New file.
53975         * modules/unistr/u16-next: New file.
53976         * modules/unistr/u32-next: New file.
53977         * lib/unistr/u8-next.c: New file.
53978         * lib/unistr/u16-next.c: New file.
53979         * lib/unistr/u32-next.c: New file.
53980
53981         * modules/unistr/u8-prev: New file.
53982         * modules/unistr/u16-prev: New file.
53983         * modules/unistr/u32-prev: New file.
53984         * lib/unistr/u8-prev.c: New file.
53985         * lib/unistr/u16-prev.c: New file.
53986         * lib/unistr/u32-prev.c: New file.
53987
53988         * modules/unistr/u8-set: New file.
53989         * modules/unistr/u16-set: New file.
53990         * modules/unistr/u32-set: New file.
53991         * lib/unistr/u8-set.c: New file.
53992         * lib/unistr/u16-set.c: New file.
53993         * lib/unistr/u32-set.c: New file.
53994         * lib/unistr/u-set.h: New file.
53995
53996         * modules/unistr/u8-startswith: New file.
53997         * modules/unistr/u16-startswith: New file.
53998         * modules/unistr/u32-startswith: New file.
53999         * lib/unistr/u8-startswith.c: New file.
54000         * lib/unistr/u16-startswith.c: New file.
54001         * lib/unistr/u32-startswith.c: New file.
54002         * lib/unistr/u-startswith.h: New file.
54003
54004         * modules/unistr/u8-stpcpy: New file.
54005         * modules/unistr/u16-stpcpy: New file.
54006         * modules/unistr/u32-stpcpy: New file.
54007         * lib/unistr/u8-stpcpy.c: New file.
54008         * lib/unistr/u16-stpcpy.c: New file.
54009         * lib/unistr/u32-stpcpy.c: New file.
54010         * lib/unistr/u-stpcpy.h: New file.
54011
54012         * modules/unistr/u8-stpncpy: New file.
54013         * modules/unistr/u16-stpncpy: New file.
54014         * modules/unistr/u32-stpncpy: New file.
54015         * lib/unistr/u8-stpncpy.c: New file.
54016         * lib/unistr/u16-stpncpy.c: New file.
54017         * lib/unistr/u32-stpncpy.c: New file.
54018         * lib/unistr/u-stpncpy.h: New file.
54019
54020         * modules/unistr/u8-strcat: New file.
54021         * modules/unistr/u16-strcat: New file.
54022         * modules/unistr/u32-strcat: New file.
54023         * lib/unistr/u8-strcat.c: New file.
54024         * lib/unistr/u16-strcat.c: New file.
54025         * lib/unistr/u32-strcat.c: New file.
54026         * lib/unistr/u-strcat.h: New file.
54027
54028         * modules/unistr/u8-strchr: New file.
54029         * modules/unistr/u16-strchr: New file.
54030         * modules/unistr/u32-strchr: New file.
54031         * lib/unistr/u8-strchr.c: New file.
54032         * lib/unistr/u16-strchr.c: New file.
54033         * lib/unistr/u32-strchr.c: New file.
54034
54035         * modules/unistr/u8-strcmp: New file.
54036         * modules/unistr/u16-strcmp: New file.
54037         * modules/unistr/u32-strcmp: New file.
54038         * lib/unistr/u8-strcmp.c: New file.
54039         * lib/unistr/u16-strcmp.c: New file.
54040         * lib/unistr/u32-strcmp.c: New file.
54041
54042         * modules/unistr/u8-strcpy: New file.
54043         * modules/unistr/u16-strcpy: New file.
54044         * modules/unistr/u32-strcpy: New file.
54045         * lib/unistr/u8-strcpy.c: New file.
54046         * lib/unistr/u16-strcpy.c: New file.
54047         * lib/unistr/u32-strcpy.c: New file.
54048         * lib/unistr/u-strcpy.h: New file.
54049
54050         * modules/unistr/u8-strcspn: New file.
54051         * modules/unistr/u16-strcspn: New file.
54052         * modules/unistr/u32-strcspn: New file.
54053         * lib/unistr/u8-strcspn.c: New file.
54054         * lib/unistr/u16-strcspn.c: New file.
54055         * lib/unistr/u32-strcspn.c: New file.
54056         * lib/unistr/u-strcspn.h: New file.
54057
54058         * modules/unistr/u8-strdup: New file.
54059         * modules/unistr/u16-strdup: New file.
54060         * modules/unistr/u32-strdup: New file.
54061         * lib/unistr/u8-strdup.c: New file.
54062         * lib/unistr/u16-strdup.c: New file.
54063         * lib/unistr/u32-strdup.c: New file.
54064         * lib/unistr/u-strdup.h: New file.
54065
54066         * modules/unistr/u8-strlen: New file.
54067         * modules/unistr/u16-strlen: New file.
54068         * modules/unistr/u32-strlen: New file.
54069         * lib/unistr/u8-strlen.c: New file.
54070         * lib/unistr/u16-strlen.c: New file.
54071         * lib/unistr/u32-strlen.c: New file.
54072         * lib/unistr/u-strlen.h: New file.
54073
54074         * modules/unistr/u8-strmblen: New file.
54075         * modules/unistr/u16-strmblen: New file.
54076         * modules/unistr/u32-strmblen: New file.
54077         * lib/unistr/u8-strmblen.c: New file.
54078         * lib/unistr/u16-strmblen.c: New file.
54079         * lib/unistr/u32-strmblen.c: New file.
54080
54081         * modules/unistr/u8-strmbtouc: New file.
54082         * modules/unistr/u16-strmbtouc: New file.
54083         * modules/unistr/u32-strmbtouc: New file.
54084         * lib/unistr/u8-strmbtouc.c: New file.
54085         * lib/unistr/u16-strmbtouc.c: New file.
54086         * lib/unistr/u32-strmbtouc.c: New file.
54087
54088         * modules/unistr/u8-strncat: New file.
54089         * modules/unistr/u16-strncat: New file.
54090         * modules/unistr/u32-strncat: New file.
54091         * lib/unistr/u8-strncat.c: New file.
54092         * lib/unistr/u16-strncat.c: New file.
54093         * lib/unistr/u32-strncat.c: New file.
54094         * lib/unistr/u-strncat.h: New file.
54095
54096         * modules/unistr/u8-strncmp: New file.
54097         * modules/unistr/u16-strncmp: New file.
54098         * modules/unistr/u32-strncmp: New file.
54099         * lib/unistr/u8-strncmp.c: New file.
54100         * lib/unistr/u16-strncmp.c: New file.
54101         * lib/unistr/u32-strncmp.c: New file.
54102
54103         * modules/unistr/u8-strncpy: New file.
54104         * modules/unistr/u16-strncpy: New file.
54105         * modules/unistr/u32-strncpy: New file.
54106         * lib/unistr/u8-strncpy.c: New file.
54107         * lib/unistr/u16-strncpy.c: New file.
54108         * lib/unistr/u32-strncpy.c: New file.
54109         * lib/unistr/u-strncpy.h: New file.
54110
54111         * modules/unistr/u8-strnlen: New file.
54112         * modules/unistr/u16-strnlen: New file.
54113         * modules/unistr/u32-strnlen: New file.
54114         * lib/unistr/u8-strnlen.c: New file.
54115         * lib/unistr/u16-strnlen.c: New file.
54116         * lib/unistr/u32-strnlen.c: New file.
54117         * lib/unistr/u-strnlen.h: New file.
54118
54119         * modules/unistr/u8-strpbrk: New file.
54120         * modules/unistr/u16-strpbrk: New file.
54121         * modules/unistr/u32-strpbrk: New file.
54122         * lib/unistr/u8-strpbrk.c: New file.
54123         * lib/unistr/u16-strpbrk.c: New file.
54124         * lib/unistr/u32-strpbrk.c: New file.
54125         * lib/unistr/u-strpbrk.h: New file.
54126
54127         * modules/unistr/u8-strrchr: New file.
54128         * modules/unistr/u16-strrchr: New file.
54129         * modules/unistr/u32-strrchr: New file.
54130         * lib/unistr/u8-strrchr.c: New file.
54131         * lib/unistr/u16-strrchr.c: New file.
54132         * lib/unistr/u32-strrchr.c: New file.
54133
54134         * modules/unistr/u8-strspn: New file.
54135         * modules/unistr/u16-strspn: New file.
54136         * modules/unistr/u32-strspn: New file.
54137         * lib/unistr/u8-strspn.c: New file.
54138         * lib/unistr/u16-strspn.c: New file.
54139         * lib/unistr/u32-strspn.c: New file.
54140         * lib/unistr/u-strspn.h: New file.
54141
54142         * modules/unistr/u8-strstr: New file.
54143         * modules/unistr/u16-strstr: New file.
54144         * modules/unistr/u32-strstr: New file.
54145         * lib/unistr/u8-strstr.c: New file.
54146         * lib/unistr/u16-strstr.c: New file.
54147         * lib/unistr/u32-strstr.c: New file.
54148         * lib/unistr/u-strstr.h: New file.
54149
54150         * modules/unistr/u8-strtok: New file.
54151         * modules/unistr/u16-strtok: New file.
54152         * modules/unistr/u32-strtok: New file.
54153         * lib/unistr/u8-strtok.c: New file.
54154         * lib/unistr/u16-strtok.c: New file.
54155         * lib/unistr/u32-strtok.c: New file.
54156         * lib/unistr/u-strtok.h: New file.
54157
54158         * modules/unistr/u8-uctomb: New file.
54159         * modules/unistr/u16-uctomb: New file.
54160         * modules/unistr/u32-uctomb: New file.
54161         * lib/unistr/u8-uctomb.c: New file.
54162         * lib/unistr/u16-uctomb.c: New file.
54163         * lib/unistr/u32-uctomb.c: New file.
54164
54165         * MODULES.html.sh (Unicode string functions): Add the new modules.
54166
54167 2007-01-08  Bruno Haible  <bruno@clisp.org>
54168
54169         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54170         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54171         subdirectories.
54172
54173 2007-01-08  Karl Berry  <karl@gnu.org>
54174
54175         * doc/error.texi: mention that main() fns must set program_name
54176         when progname is used.
54177
54178 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54179
54180         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54181         WCTYPE_H is empty, for the benefit of builds from non-distclean
54182         directories.  Problem reported by Eric Blake in
54183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54184
54185 2007-01-08  Bruno Haible  <bruno@clisp.org>
54186
54187         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54188         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54189         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54190         PROVIDE_CANONICALIZE_FILENAME_MODE.
54191         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54192
54193 2007-01-08  Bruno Haible  <bruno@clisp.org>
54194
54195         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54196         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54197         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54198         * lib/fts.c: Likewise.
54199         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54200
54201 2006-12-25  Bruno Haible  <bruno@clisp.org>
54202
54203         * modules/utf8-ucs4-safe: New file.
54204         * lib/utf8-ucs4-safe.h: New file.
54205         * lib/unistr/utf8-ucs4-safe.c: New file.
54206
54207         * modules/utf16-ucs4-safe: New file.
54208         * lib/utf16-ucs4-safe.h: New file.
54209         * lib/unistr/utf16-ucs4-safe.c: New file.
54210
54211         * MODULES.html.sh (Unicode string functions): Add the new modules.
54212
54213 2007-01-08  Bruno Haible  <bruno@clisp.org>
54214
54215         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54216         (Depends-on): Add unitypes.
54217         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54218         (u8_mbtouc_aux): Move out to separate file.
54219         (u8_mbtouc): Use ucs4_t, uint8_t types.
54220         * lib/unistr/utf8-ucs4.c: New file.
54221
54222         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
54223         (Depends-on): Add unitypes.
54224         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54225         (u16_mbtouc_aux): Move out to separate file.
54226         (u16_mbtouc): Use ucs4_t, uint16_t types.
54227         * lib/unistr/utf16-ucs4.c: New file.
54228
54229         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
54230         (Depends-on): Add unitypes.
54231         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
54232         (u8_uctomb_aux): Move out to separate file.
54233         (u8_uctomb): Use ucs4_t, uint8_t types.
54234         * lib/unistr/ucs4-utf8.c: New file.
54235
54236         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
54237         (Depends-on): Add unitypes.
54238         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
54239         (u16_uctomb_aux): Move out to separate file.
54240         (u16_uctomb): Use ucs4_t, uint16_t types.
54241         * lib/unistr/ucs4-utf16.c: New file.
54242
54243 2006-12-25  Bruno Haible  <bruno@clisp.org>
54244
54245         * modules/unitypes: New file.
54246         * lib/unitypes.h: New file.
54247         * MODULES.html.sh (func_all_modules): New section "Unicode string
54248         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
54249         this section. Add unitypes.
54250
54251 2007-01-08  Bruno Haible  <bruno@clisp.org>
54252
54253         Avoid variable names that conflict with those from libtool.
54254         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
54255         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
54256         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
54257         library_names_spec to acl_library_names_spec, hardcode_* to
54258         acl_hardcode_*.
54259         Reported by Ralf Wildenhues.
54260
54261 2007-01-08  Bruno Haible  <bruno@clisp.org>
54262
54263         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54264         definition.
54265         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
54266         definition.
54267         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
54268         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
54269         definition.
54270         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
54271         definition.
54272         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
54273         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
54274         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
54275         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
54276         definition.
54277         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
54278         definition.
54279         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
54280         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
54281         GC_USE_<algorithm>.
54282         * lib/gc-libgcrypt.c: Likewise.
54283         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
54284         * modules/gc-arctwo (configure.ac): Likewise.
54285         * modules/gc-des (configure.ac): Likewise.
54286         * modules/gc-hmac-md5 (configure.ac): Likewise.
54287         * modules/gc-hmac-sha1 (configure.ac): Likewise.
54288         * modules/gc-md2 (configure.ac): Likewise.
54289         * modules/gc-md4 (configure.ac): Likewise.
54290         * modules/gc-md5 (configure.ac): Likewise.
54291         * modules/gc-random (configure.ac): Likewise.
54292         * modules/gc-rijndael (configure.ac): Likewise.
54293         * modules/gc-sha1 (configure.ac): Likewise.
54294
54295 2007-01-08  Bruno Haible  <bruno@clisp.org>
54296
54297         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
54298         macro definition.
54299         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
54300         definition.
54301         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
54302         definition.
54303         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
54304         * modules/fcntl-safer (configure.ac): Likewise.
54305         * modules/fopen-safer (configure.ac): Likewise.
54306         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
54307         GNULIB_FWRITEERROR macro definition.
54308
54309 2007-01-08  Bruno Haible  <bruno@clisp.org>
54310
54311         * m4/gnulib-common.m4: New file.
54312         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
54313         (func_get_filelist): Add m4/gnulib-common.m4.
54314
54315 2007-01-08  Bruno Haible  <bruno@clisp.org>
54316
54317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
54318         command.
54319
54320 2007-01-08  Jim Meyering  <jim@meyering.net>
54321
54322         Use a more robust test for a "can't happen" condition.
54323         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
54324         narrowed the st_size value.  Presuming the "can't happen" condition
54325         is true, that narrowing could conceivably convert an invalid st_size
54326         value into a valid one.  Instead, use a change based on Matthew
54327         Woehlke's original patch.
54328
54329         Slight readability improvement: use an assert-like macro
54330         in place of literal "abort ()" uses.
54331         * lib/fts.c (fts_assert): Define.
54332         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
54333         Use this macro instead of a bare 'abort'.
54334
54335 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
54336
54337         Don't worry about using IRIX 5.3's wctype.h broken definitions;
54338         simply work around them.
54339         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
54340         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
54341         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
54342         declaring.
54343         Don't bother to define as macros, since the standard doesn't require it.
54344         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
54345         longer worry about IRIX 5.3.
54346         (HAVE_WCTYPE_CTMP_BUG): Remove.
54347
54348 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54349
54350         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
54351         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
54352         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54353         Problems reported by Georg Schwarz for IRIX 5.3.
54354
54355         * gnulib-tool (autoconf_minversion): Take the maximum version number
54356         found, not the minimum.  Problem reported by James Youngman.
54357
54358 2007-01-03  Karl Berry  <karl@gnu.org>
54359
54360         * doc/error.texi: new file, explaining interaction with progname.
54361         * doc/gnulib.texi: include it.  Update copyright.
54362
54363 2007-01-03  Simon Josefsson  <simon@josefsson.org>
54364
54365         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
54366         AC_CANONICAL_HOST, to improve autobuild outputs.
54367
54368 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
54369             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54370
54371         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
54372         sockets, server sockets, and other file descriptors.  Count errors
54373         to compute the return value.  Reorder the code a bit to be easier
54374         to follow.  Don't set event bits that were not requested (except
54375         POLLERR and POLLHUP).
54376
54377 2007-01-01  Bruno Haible  <bruno@clisp.org>
54378
54379         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
54380
54381 2007-01-03  Jim Meyering  <jim@meyering.net>
54382
54383         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
54384
54385 2007-01-02  Bruno Haible  <bruno@clisp.org>
54386
54387         * modules/settime (Include): Require timespec.h.
54388         * modules/nanosleep (Include): Likewise.
54389
54390 2007-01-01  Bruno Haible  <bruno@clisp.org>
54391
54392         * gnulib-tool (func_emit_copyright_notice): Bump year.
54393         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
54394
54395 2007-01-01  Bruno Haible  <bruno@clisp.org>
54396
54397         Improve support for OpenBSD.
54398         * build-aux/config.rpath (libname_spec): Export.
54399         (library_names_spec): New variable. Export.
54400         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
54401         library_names_spec from the config.rpath output. Locate shared library
54402         through the name pattern in library_names_spec.
54403
54404 2007-01-01  Eric Blake  <ebb9@byu.net>
54405
54406         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
54407
54408 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
54409
54410         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
54411         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
54412         assume the C locale, and avoid an "eval" that could cause trouble.
54413         Problem with SORT reported by Bob Proulx.
54414
54415         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
54416         Define.  Trivial patch from Henning Nielsen Lund, originally
54417         sent to bug-grep@gnu.org today.
54418
54419 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54420
54421         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
54422         struct stat.  Problem reported by Henning Nielsen Lund.
54423         * lib/acl.c: Include acl.h first, to check interface.  Don't
54424         bother to include sys/types.h and sys/stat.h again.
54425
54426 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         Import the following change from libc; problem reported by
54429         Sven Verdoolaege.
54430
54431         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
54432
54433         [BZ #1373]
54434         * lib/argp.h: Remove __NTH for __argp_usage inline function.
54435
54436 2006-12-28  Jim Meyering  <jim@meyering.net>
54437
54438         * build-aux/announce-gen: Do not assume that the package
54439         builds any of tar.gz, tar.bz2, and .xdelta files.
54440         Suggestion from Simon Josefsson.
54441
54442 2006-12-28  Simon Josefsson  <simon@josefsson.org>
54443
54444         * modules/announce-gen: New file.
54445
54446 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
54447
54448         * lib/mbchar.h: Just include <wctype.h>; the wctype module
54449         handles its gotchas now.
54450         * lib/mbswidth.c: Likewise.
54451         * lib/wcwidth.h: Likewise.
54452         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
54453         and iswcntrl; the wctype module does this stuff now.
54454         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54456         * modules/mbchar (Depends-on): Add wctype.
54457         * modules/mbswidth (Depends-on): Likewise.
54458         * modules/wcwidth (Depends-on): Likewise.
54459
54460 2006-12-27  Eric Blake  <ebb9@byu.net>
54461
54462         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
54463         module uses more than what <wctype.h> is required to provide.
54464
54465 2006-12-26  Eric Blake  <ebb9@byu.net>
54466
54467         * gnulib-tool (sed_extract_prog): Avoid space-tab.
54468
54469 2006-12-26  Eric Blake  <ebb9@byu.net>
54470
54471         * modules/absolute-header: New module.
54472         * modules/fcntl (Depends-on): Depend on it.
54473         * modules/inttypes (Depends-on): Likewise.
54474         * modules/stdint (Depends-on): Likewise.
54475         * modules/sys_stat (Depends-on): Likewise.
54476         * modules/wctype (Depends-on): Likewise.
54477         * MODULES.html.sh (Support for building libraries and
54478         executables): Document it.
54479
54480 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54481
54482         * gnulib-tool (SED): Remove, undoing previous change.
54483         The problem was that it broke coreutils on Solaris, because
54484         "sed --posix" leaked into a makefile.
54485         (sed): New alias, if 'alias' and GNU sed.
54486
54487 2006-12-24  Jim Meyering  <jim@meyering.net>
54488
54489         Work around an fchownat bug in glibc-2.4:
54490         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
54491         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
54492         in spite of the -P option.
54493         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
54494         New macros.
54495         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
54496         * modules/openat (Files): Add lib/fchownat.c.
54497         * lib/openat.c (fchownat): Don't define here.  Move to...
54498         * lib/fchownat.c: ...this new file.
54499
54500 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54501
54502         Fix bug reported by Bruno Haible in
54503         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
54504         where quotearg.c didn't compile on Mac OS X 10.2 because it
54505         lacks <wchar.h> and wint_t.
54506         * lib/wctype_.h (__wctype_wint_t): New type.
54507         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
54508         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
54509         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
54510         Arg is now of type __wctype_wint_t, not wint_t.
54511         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
54512         substitute HAVE_WINT_T.
54513         * modules/wctype (Files): Add m4/wint_t.m4.
54514         (wctype.h): Substitute HAVE_WINT_T.
54515
54516 2006-12-23  Bruno Haible  <bruno@clisp.org>
54517
54518         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
54519
54520 2006-12-23  Bruno Haible  <bruno@clisp.org>
54521
54522         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
54523         S_ISLNK.
54524         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
54525         mingw.
54526
54527 2006-12-22  Bruno Haible  <bruno@clisp.org>
54528
54529         * lib/copy-file.c: Include acl.h.
54530         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
54531         Close the file descriptors only after being done with copy_acl.
54532         * modules/copy-file (Depends-on): Add acl.
54533
54534 2006-12-22  Bruno Haible  <bruno@clisp.org>
54535
54536         * gnulib-tool (SED): New variable.
54537         Use $SED instead of sed everywhere.
54538
54539 2006-12-22  Bruno Haible  <bruno@clisp.org>
54540
54541         * modules/no-c++: New file.
54542         * m4/no-c++.m4: New file.
54543         * MODULES.html.sh (Support for building libraries and executables):
54544         Add no-c++.
54545
54546 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54547
54548         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54549         Include <limits.h>, and use its INT_MAX to rewrite the
54550         j loop so that it does not overflow 'int'.  Problem reported by
54551         Ralf Wildenhues in
54552         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
54553         Play it safe by shifting left by 1 rather than multiplying by 2,
54554         as GCC is less likely to optimize this away when the value
54555         is signed (when it assumes overflow leads to undefined behavior).
54556         Also, don't assume time_t uses two's complement.
54557
54558 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54559
54560         * MODULES.html.sh: New module wctype.
54561         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54562         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54563         <wctype.h>, since the new wctype module should fix this.
54564         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54565         the wctype module should arrange for it.
54566         * lib/regex_internal.h: Likewise.
54567         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54568         since the wctype module should handle this now.
54569         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54570         * modules/fnmatch (Depends-on): Add wctype.
54571         * modules/quotearg (Depends-on): Likewise.
54572         * modules/regex (Depends-on): Likewise.
54573
54574 2006-12-19  Bruno Haible  <bruno@clisp.org>
54575
54576         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54577         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54578
54579 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54580
54581         * modules/savewd (Depends-on): Fix dependency on fcntl.
54582
54583 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54584
54585         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54586         conforms to C99, rather than relying on the user's environment
54587         setting of STDINT_H.
54588
54589 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54590         and Eric Blake  <ebb9@byu.net>
54591
54592         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54593         This is more consistent with the other defines here.
54594         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54595         Port to z/OS.  Problem reported by Paul Gilmartin.
54596         Change local vars to use gl_ prefix rather than ac_.
54597         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54598         with other defines.
54599         * modules/double-slash-root: New module.
54600         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54601         (Depends-on): Add double-slash-root.
54602         * MODULES.html.sh (File system functions): Mention new module.
54603
54604 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54605
54606         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54607         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54608         This is for the benefit of gzip, which doesn't do i18n.
54609
54610 2006-12-12  Jim Meyering  <jim@meyering.net>
54611
54612         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54613         Reported by Andreas Schwab <schwab@suse.de>.
54614
54615 2006-12-12  Bruno Haible  <bruno@clisp.org>
54616
54617         Merge these changes.
54618         2006-09-05  Bruno Haible  <bruno@clisp.org>
54619         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54620         iconv_alloc succeeded.
54621         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54622         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54623         test for " && dest " at the end - dest is always != NULL there. Call
54624         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54625         with 2xNULL arguments, also to flush the state storage. Handle the
54626         IRIX iconv behaviour. Realloc the final result, to throw away unused
54627         memory.
54628
54629 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54630
54631         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54632         and fchmodat unconditionally, since glibc 2.4 has them.
54633         Problem reported by Arkadiusz Miskiewicz.
54634
54635 2006-12-10  Bruno Haible  <bruno@clisp.org>
54636
54637         * gnulib-tool (func_import): Show the include files only for those
54638         modules that are copied and specified.
54639         Reported by Karl Berry.
54640
54641 2006-12-08  Jim Meyering  <jim@meyering.net>
54642
54643         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54644         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54645
54646         * build-aux/announce-gen: Add two new options, both optional:
54647         --bootstrap-tools=TOOL_LIST
54648               a comma-separated list of tools, e.g.,
54649               autoconf,automake,bison,gnulib
54650         --gnulib-snapshot-date=DATE
54651               if gnulib is in the bootstrap tool list,
54652               then report this as the snapshot date.
54653               If not specified, use the current date/time.
54654               If you specify a date here, be sure it's UTC.
54655
54656 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54657
54658         * tests/test-argp-2.sh: Fix test to match actual output.
54659         (func_compare): Fix sed script to be portable.
54660
54661 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54662
54663         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54664         workaround for this case.  It is not autoconfigured now; offhand
54665         it's hard to see how to autoconfigure it.
54666
54667 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54668
54669         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54670         a directory that is about to be chowned.  Such a directory's
54671         initial file permissions should permit the owner only and this
54672         should not be changed until after the chown, since the group and
54673         other bits would be incorrect if they granted permission before
54674         the chown.
54675
54676         Fix porting problem for iswctype reported by Georg Schwarz in:
54677         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54678         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54679         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54681         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54682
54683 2006-12-03  Jim Meyering  <jim@meyering.net>
54684
54685         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54686         p->fts_statp may not yet be defined.
54687         (fts_read): Instead, set it in the caller, once p->fts_statp is
54688         sure to be defined, and corresponds to a top-level directory.
54689         This bug made du -x fail.  Here's the coreutils test case:
54690         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54691         Reported by Mike Frysinger.
54692
54693 2006-12-01  Jim Meyering  <jim@meyering.net>
54694
54695         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54696         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54697         Reported by Simon Josefsson.
54698
54699 2006-11-30  Jim Meyering  <jim@meyering.net>
54700
54701         * m4/warning.m4: Use the all-permissive copyright notice
54702         recommended by RMS (rather than LGPL).
54703         * m4/vararrays.m4: Likewise.
54704         * m4/flexmember.m4: Likewise.
54705
54706 2006-11-29  Bruno Haible  <bruno@clisp.org>
54707
54708         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54709         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54710         using +=.
54711         Reported by Simon Josefsson <simon@josefsson.org>.
54712
54713 2006-11-28  James Youngman <jay@gnu.org>
54714
54715         * README: Advise users that they might find the bug-gnulib@gnu.org
54716         and autotools-announce@gnu.org mailing lists useful.
54717
54718 2006-11-28  Bruno Haible  <bruno@clisp.org>
54719
54720         * m4/ptrdiff_max.m4: Remove file.
54721
54722 2006-11-21  Bruno Haible  <bruno@clisp.org>
54723
54724         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54725         _AC_COMPUTE_INT.
54726         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54727         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54728         _AC_COMPUTE_INT.
54729         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54730         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54731         _AC_COMPUTE_INT.
54732         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54733
54734 2006-11-28  Jim Meyering  <jim@meyering.net>
54735
54736         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54737         warning from "gcc -Wshadow" about shadowing the builtin.
54738
54739 2006-11-27  Bruno Haible  <bruno@clisp.org>
54740
54741         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54742         _AC_COMPUTE_INT.
54743         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54744
54745 2006-11-27  Bruno Haible  <bruno@clisp.org>
54746             Paul Eggert  <eggert@cs.ucla.edu>
54747
54748         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54749
54750 2006-11-26  Bruno Haible  <bruno@clisp.org>
54751
54752         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54753         noinst_LTLIBRARIES.
54754
54755 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54756             Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54759         if compiling with "gcc -ansi".
54760
54761 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54762
54763         Fix some incompatibilities with gcc -ansi -pedantic.
54764         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54765         if compiling pedantically with GCC, unless it's C99 or later.
54766         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54767         it mishandles gcc -ansi -pedantic as well.
54768         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54769         if gcc -pedantic.
54770         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54771         initializers for struct if -pedantic, unless it's C99 or later.
54772
54773 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54774
54775         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54776         Don't close an fd more than once. Identical atimes indicate
54777         success, not failure.
54778
54779 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54780
54781         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54782
54783 2006-11-23  Jim Meyering  <jim@meyering.net>
54784
54785         * build-aux/announce-gen: New file.  From coreutils.
54786
54787 2006-11-22  Jim Meyering  <jim@meyering.net>
54788
54789         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54790         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54791         (fts_read): Use a temporary to narrow the overused st_size member
54792         before using it in a switch statement.  Reported by Matthew Woehlke.
54793
54794         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54795         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54796
54797 2006-11-20  Bruno Haible  <bruno@clisp.org>
54798
54799         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54800         changequote instead of pairs of brackets.
54801         Reported by Andreas Schwab <schwab@suse.de>.
54802
54803 2006-11-21  Jim Meyering  <jim@meyering.net>
54804
54805         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54806         so as to remain compatible with older compilers.
54807         Patch from Michael Deutschmann.
54808
54809 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54810
54811         * MODULES.html.sh (File system functions): Add openat.
54812
54813         * lib/openat.h (rpl_fstatat): New macro, if
54814         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54815         (fstatat): Define to rpl_fstatat under the same conditions,
54816         unless COMPILING_FSTATAT.
54817         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54818         seems to have the bug.
54819         * lib/fstatat.c: New file.
54820         * modules/openat (Files): Add it.
54821
54822 2006-11-20  Bruno Haible  <bruno@clisp.org>
54823
54824         * Makefile: New file.
54825
54826 2006-11-20  Jim Meyering  <jim@meyering.net>
54827
54828         The beginnings of syntax-related checks for gnulib.
54829         * lib/Makefile: New file.
54830         * lib/t-idcache: New script.  Ensure that the two halves of
54831         idcache.c stay in sync.
54832
54833         * lib/idcache.c: Adjust comments in user- and group- portions to
54834         be more accurate, and to be consistent with one another.
54835
54836 2006-11-20  Jim Meyering  <jim@meyering.net>
54837
54838         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54839         continue using the flexible array member (thus, this module performs
54840         half as many malloc calls), with the addition that...
54841         (getgroup, getuser): Consistently record a non-match via an empty
54842         "name" string, and map an empty string match to a NULL return value.
54843         * modules/idcache (Depends-on): Re-add flexmember.
54844
54845         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54846         (getuidbyname, getgroup, getgidbyname): Likewise.
54847
54848         Use cleaner syntax: NULL rather than 0.
54849         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54850
54851 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54852
54853         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54854         It mishandled the case where the group was missing.
54855         Problem reported by Greg Schafer.
54856         * modules/idcache: Likewise.
54857
54858 2006-11-18  Jim Meyering  <jim@meyering.net>
54859
54860         * check-module (%exempt_header): Add exception for some
54861         conditionally-included headers.
54862
54863         * modules/i-ring (Depends-on): Add verify.
54864         (License): Change to LGPL.
54865
54866 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54867
54868         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54869         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54870         and inttostr.h.  Use snprintf rather than uinttostr, so that
54871         LGPLed code doesn't depend on GPLed.
54872
54873 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54874
54875         * modules/inline (License): Change from GPL to LGPL.
54876
54877 2006-11-17  Jim Meyering  <jim@meyering.net>
54878
54879         * modules/d-type (License): Switch to LGPL.
54880
54881 2006-11-15  Bruno Haible  <bruno@clisp.org>
54882
54883         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54884
54885 2006-11-15  Eric Blake  <ebb9@byu.net>
54886
54887         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54888         the module dependency.
54889
54890 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54891             Bruno Haible  <bruno@clisp.org>
54892
54893         * gnulib-tool (func_create_testdir): Add license consistency check.
54894
54895 2006-11-15  Eric Blake  <ebb9@byu.net>
54896
54897         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54898         random "(cached)" in configure output.
54899
54900 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54901
54902         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54903         test for conforming inttypes.h is both announced and cached.
54904
54905         * MODULES.html.sh (seen_modules, seen_files): New variables.
54906         (func_module): Rewrite to use a few less gnulib-tool and sed
54907         invocations.  Avoid a couple of quadratic algorithms for ...
54908         (missed_modules, missed_files): ... these, with ...
54909         (func_append, func_tmpdir): ... these new functions, from
54910         gnulib-tool.  Analogously, install traps for cleanup.
54911
54912         * tests/test-gc.c (main): Remove unused variables.
54913         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54914
54915 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54916
54917         * modules/inttostr (License): Change to LGPL.
54918
54919 2006-11-14  Eric Blake  <ebb9@byu.net>
54920
54921         * modules/tempname (License): Change to LGPL.
54922
54923 2006-11-14  Eric Blake  <ebb9@byu.net>
54924
54925         * doc/functions.texi (Function Portability): *printf functions on
54926         Cygwin now understand all POSIX size specifiers.
54927
54928 2006-11-14  Bruno Haible  <bruno@clisp.org>
54929
54930         * modules/c-ctype (License): Change to LGPL.
54931
54932 2006-11-12  Bruno Haible  <bruno@clisp.org>
54933
54934         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54935         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
54936         for GNOME libraries, for which the include files are installed in
54937         subdirectories of $prefix/include.
54938
54939 2006-11-12  Bruno Haible  <bruno@clisp.org>
54940
54941         * m4/lib-link.m4: Require at least autoconf-2.54.
54942         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54943         name to underscores for the --with option.
54944
54945 2006-11-13  Bruno Haible  <bruno@clisp.org>
54946
54947         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54948         the tests directory.
54949         Reported by Ralf Wildenhues.
54950
54951 2006-11-13  Bruno Haible  <bruno@clisp.org>
54952
54953         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54954         (func_emit_initmacro_end): Undo the override here.
54955         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54956         Works around the famous automake error in coreutils.
54957
54958 2006-11-13  Eric Blake  <ebb9@byu.net>
54959
54960         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54961         element, not its node.
54962
54963 2006-11-12  Bruno Haible  <bruno@clisp.org>
54964
54965         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54966         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54967
54968 2006-11-12  Bruno Haible  <bruno@clisp.org>
54969
54970         * gnulib-tool: New option --local-symlink.
54971         (func_usage): Document it.
54972         (lsymbolic): New variable.
54973         (func_import, func_create_testdir): If --symlink was not specified,
54974         test whether --local-symlink was specified and the file comes from
54975         the local_gnulib_dir.
54976
54977 2006-11-12  Bruno Haible  <bruno@clisp.org>
54978
54979         * gnulib-tool (func_ln): New function.
54980         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54981
54982 2006-11-12  Bruno Haible  <bruno@clisp.org>
54983
54984         Finish support for source files in subdirectories.
54985         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54986         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54987         AUTOMAKE_OPTIONS.
54988         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54989
54990 2006-11-12  Bruno Haible  <bruno@clisp.org>
54991
54992         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54993         EXTRA_lib_SOURCES augmentation.
54994         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54995
54996 2006-11-12  Jim Meyering  <jim@meyering.net>
54997
54998         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54999         file descriptors.  This also averts a failure on systems with
55000         native openat support when a traversed directory lacks "x" access.
55001         * lib/fts_.h: Include "i-ring.h"
55002         (struct FTS) [fts_fd_ring]: New member.
55003         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55004         (FCHDIR): Add parentheses.
55005         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55006         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55007         When descending, rather than simply closing the previous
55008         fts_cwd_fd value, push that file descriptor onto the ring.
55009         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55010         (fts_open): Initialize the new fd_ring member.
55011         (fts_close): Clear the ring.
55012         (fts_safe_changedir): When possible, use our new fd_ring to skip
55013         the diropen and fstat and dev/ino comparison that would normally
55014         accompany a virtual `chdir ("..")'.
55015
55016         * modules/fts (Depends-on): Add i-ring.
55017         * modules/i-ring: New module.
55018         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55019         * m4/i-ring.m4: New file.
55020
55021 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55022
55023         * gnulib-tool (func_create_testdir): Fix replacement of
55024         `build-aux' in configure.ac.  Run autotools in gltests
55025         subdirectory.
55026         (func_create_testdir, func_create_megatestdir, test): There is
55027         no need for '--force' in most autotool invocations in a new
55028         tree.  Actually fail the whole test if any of the tools, or the
55029         configure or make stages fail.
55030
55031         Sync from Automake.
55032         * build-aux/gnupload: Revert last change.  Add pointer to upload
55033         instructions of the GNU Maintenance Instructions.
55034         Suggestion by Karl Berry.
55035
55036 2006-11-10  Jim Meyering  <jim@meyering.net>
55037
55038         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55039
55040 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55041
55042         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55043         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55044         (bind_textdomain_codeset) [! ENABLE_NLS]:
55045         Evaluate all the arguments.  That way, callers get compatible behavior
55046         if the arguments have side effects.  Also, it avoids some GCC
55047         diagnostics in some cases; Joel E. Denny reported problems when Bison
55048         was configured with --enable-gcc-warnigs.
55049
55050 2006-11-10  Jim Meyering  <jim@meyering.net>
55051
55052         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55053         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55054         account.
55055
55056 2006-11-10  Jim Meyering  <jim@meyering.net>
55057
55058         * modules/inline: New file/module.
55059         * modules/xalloc (Files): Remove m4/inline.m4.
55060         (Depends-on): Add inline, instead.
55061         * modules/oset: Likewise.
55062         * modules/list: Likewise.
55063
55064 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55065
55066         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55067         Problem reported by Matthew Woehlke.
55068
55069 2006-11-09  Bruno Haible  <bruno@clisp.org>
55070
55071         * lib/tempname.c (gen_tempname): Remove variant that invokes
55072         __gen_tempname.
55073         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55074         __gen_tempname.
55075
55076 2006-11-08  Bruno Haible  <bruno@clisp.org>
55077
55078         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55079         to 'yes' instead of 'cross-compiling'.
55080
55081 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55082
55083         * lib/quotearg.h (quotearg_free): New decl.
55084         * lib/quotearg.c (quotearg_free): New function.
55085         (slot0, nslots, slotvec0, slotvec):
55086         Now file-scope so that quotearg_free can get at them.
55087
55088 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55089
55090         Sync from Automake.
55091         * build-aux/gnupload: Add missing 'gnu' to example URL.
55092         Report by Karl Berry.
55093
55094 2006-11-08  Bruno Haible  <bruno@clisp.org>
55095
55096         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55097         Suggested by Paul Eggert.
55098
55099 2006-11-08  Jim Meyering  <jim@meyering.net>
55100
55101         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55102         It's already included if !_LIBC.
55103         (fts_safe_changedir): Add a comment.
55104
55105 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55106
55107         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55108         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55109         Matthew Woehlke.
55110
55111         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55112         definitions up, to avoid colliding with change below.
55113         (static_inline) [HAVE_INLINE]: New macro.
55114         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55115         Provide extern decls when !HAVE_INLINE.  Do not define unless
55116         static_inline is defined, either by us or by xmalloc.c.  Use
55117         static_inline rather than static inline.
55118         (XCALLOC): Optimize sizeof(T) = 1 case.
55119         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55120
55121 2006-11-07  Bruno Haible  <bruno@clisp.org>
55122
55123         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55124         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55125         AC_C_INLINE.
55126         * modules/xalloc (Files): Add m4/inline.m4.
55127
55128 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55129
55130         * README: Fix typo.
55131         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55132         (Miscellanous Notes): ...from this.
55133
55134 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55135
55136         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55137         Mention that offsetof should be used instead of sizeof.
55138         From Bruno Haible.
55139
55140 2006-11-07  Bruno Haible  <bruno@clisp.org>
55141
55142         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55143
55144 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55145
55146         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55147         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55148         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55149         (gl_tree_add_before, gl_tree_add_after):
55150         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55151         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55152         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55153         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55154         (gl_linked_add_after, gl_linked_add_at): Likewise.
55155         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55156         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55157         (gl_tree_add_before, gl_tree_add_after): Likewise.
55158         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55159         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55160         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55161
55162 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55163
55164         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55165
55166 2006-11-06  Bruno Haible  <bruno@clisp.org>
55167
55168         * m4/inline.m4: New file.
55169         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55170         * modules/list (Files): Add m4/inline.m4.
55171         * modules/oset (Files): Likewise.
55172
55173 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55174
55175         * lib/idcache.c: Include <stddef.h>, for offsetof.
55176         (struct userid.name): Change from char * to a flexible array member.
55177         All uses changed.
55178         * modules/idcache (Depends-on): Add flexmember.
55179
55180         * MODULES.html.sh (Core language properties): New module flexmember.
55181         * modules/flexmember, m4/flexmember.m4: New files.
55182
55183         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55184         inline functions that are identical with the old xnmalloc_inline,
55185         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55186         that we can avoid some unnecessary integer multiplications and
55187         divisions in the common case where the element size is known at
55188         compile time.
55189         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55190         needed.
55191         (xnboundedmalloc): Remove.
55192         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55193         arguments, for consistency with rest of this header.
55194         (xcharalloc): Rewrite using XNMALLOC.
55195         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55196         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55197         versions have been moved to lib/xalloc.h and renamed to be the
55198         non-*_inline versions.
55199         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55200         and xnrealloc functions, since those functions are now inline and
55201         now call us.
55202         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55203         renaming described above.
55204         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55205         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55206         captures the dependency in AC_C_INLINE.
55207
55208         New module canonicalize-lgpl, proposed by Charles Wilson in
55209         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55210         with a few small changes afterwards.
55211         * MODULES.html.sh (File system functions): New module
55212         canonicalize-lgpl.
55213         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55214         and canonicalize_file_name.
55215         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55216         * modules/canonicalize-lgpl: New files.
55217
55218 2006-11-05  Bruno Haible  <bruno@clisp.org>
55219
55220         * gnulib-tool (func_import, func_create_testdir): Create directories
55221         also for files in subdirectories of lib/.
55222
55223 2006-11-05  Bruno Haible  <bruno@clisp.org>
55224
55225         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
55226         ANSI C compliant.
55227
55228 2006-11-03  Bruno Haible  <bruno@clisp.org>
55229
55230         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55231         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
55232         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
55233         (xnboundedmalloc): New inline function.
55234         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
55235         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
55236         xmalloc.
55237         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
55238         xmalloc.
55239         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
55240         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
55241         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
55242         xmalloc.
55243         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55244         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
55245         xmalloc.
55246         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
55247         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55248         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
55249         xmalloc.
55250         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55251         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
55252         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55253         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
55254         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
55255         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
55256         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
55257
55258 2006-11-03  Bruno Haible  <bruno@clisp.org>
55259
55260         * lib/c-ctype.h [C++]: Define functions without name mangling.
55261         * lib/fwriteerror.h [C++]: Likewise.
55262         * lib/gcd.h [C++]: Likewise.
55263         * lib/linebreak.h [C++]: Likewise.
55264
55265 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55266
55267         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
55268         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
55269         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
55270         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55271         Check for functions and headers just once.
55272         Check for declaration of canonicalize_file_name.
55273         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
55274
55275 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55276
55277         * gnulib-tool (func_import): Fix typo in actioncmd.
55278
55279 2006-11-02  Bruno Haible  <bruno@clisp.org>
55280
55281         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
55282         newline sequence in the Makefile.am snippet as a space, like "make"
55283         does.
55284         Reported by Roger Persson <perrog@gmail.com>.
55285
55286 2006-11-01  Bruno Haible  <bruno@clisp.org>
55287
55288         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
55289         already declared in <string.h>.
55290         * lib/strcase.h (strncasecmp): Don't declare it if yes.
55291
55292 2006-11-01  Bruno Haible  <bruno@clisp.org>
55293
55294         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
55295         * lib/strcase.h: Include <string.h>.
55296         (strcasecmp): Define to rpl_strcasecmp here.
55297
55298 2006-11-01  Bruno Haible  <bruno@clisp.org>
55299
55300         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
55301
55302 2006-11-01  Eric Blake  <ebb9@byu.net>
55303
55304         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
55305
55306         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
55307
55308 2006-10-29  Bruno Haible  <bruno@clisp.org>
55309
55310         Make it compile in C++ mode.
55311         * lib/full-write.c (full_rw): Add a cast.
55312
55313 2006-11-01  Bruno Haible  <bruno@clisp.org>
55314
55315         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
55316         be POSIX compliant.
55317         Reported by Roger Persson <perrog@gmail.com>.
55318
55319 2006-11-01  Eric Blake  <ebb9@byu.net>
55320
55321         * lib/getopt_.h: Fix comments.
55322
55323 2006-10-31  Eric Blake  <ebb9@byu.net>
55324
55325         * modules/tmpdir (Depends-on): Add sys_stat.
55326         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
55327         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
55328         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
55329         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
55330         tempname.
55331
55332 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
55333
55334         Avoid some C++ diagnostics reported by Bruno Haible.
55335         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
55336         xmalloc.
55337         (quotearg_alloc): Use xcharalloc rather than xmalloc.
55338         (struct slotvec): Move to top level.
55339         (quotearg_n_options): Rewrite to avoid xmalloc.
55340         * lib/xalloc.h (xcharalloc): New function.
55341         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
55342         [defined __cplusplus]: Add function template that provides result
55343         type propagation.  This part of the change is from Bruno Haible.
55344
55345 2006-10-29  Bruno Haible  <bruno@clisp.org>
55346
55347         Make it compile in C++ mode.
55348         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
55349         * lib/strnlen1.c (strnlen1): Cast memchr result.
55350         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
55351         * lib/clean-temp.c (string_equals, string_hash): Add casts.
55352         (create_temp_dir): Rename local variable 'template'.
55353         (compile_csharp_using_sscli): Add cast.
55354         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
55355         * lib/findprog.c (find_in_path): Likewise.
55356         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
55357         * lib/wait-process.c (register_slave_subprocess): Likewise.
55358
55359 2006-10-22  Bruno Haible  <bruno@clisp.org>
55360
55361         * modules/tsearch: New file.
55362         * lib/tsearch.h: New file.
55363         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
55364         * m4/tsearch.m4: New file.
55365         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
55366
55367 2006-10-29  Eric Blake  <ebb9@byu.net>
55368
55369         * lib/arcfour.c: Assume config.h.
55370         * lib/arctwo.c: Likewise.
55371         * lib/base64.c: Likewise.
55372         * lib/check-version.c: Likewise.
55373         * lib/crc.c: Likewise.
55374         * lib/des.c: Likewise.
55375         * lib/gc-gnulib.c: Likewise.
55376         * lib/gc-libgcrypt.c: Likewise.
55377         * lib/gc-pbkdf2-sha1.c: Likewise.
55378         * lib/getaddrinfo.c: Likewise.
55379         * lib/getdelim.c: Likewise.
55380         * lib/getline.c: Likewise.
55381         * lib/hmac-md5.c: Likewise.
55382         * lib/hmac-sha1.c: Likewise.
55383         * lib/iconvme.c: Likewise.
55384         * lib/md2.c: Likewise.
55385         * lib/md4.c: Likewise.
55386         * lib/memxor.c: Likewise.
55387         * lib/read-file.c: Likewise.
55388         * lib/readline.c: Likewise.
55389         * lib/rijndael-alg-fst.c: Likewise.
55390         * lib/rijndael-api-fst.c: Likewise.
55391         * lib/xgetdomainname.c: Likewise.
55392
55393 2006-10-28  Eric Blake  <ebb9@byu.net>
55394
55395         * lib/xstrndup.c: Assume config.h.
55396
55397 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55398
55399         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
55400         stat-macros.h is now for our own macros, whereas stat_h is for
55401         macros in the <sys/stat.h> name space.
55402         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
55403         (STAT_MACROS_H): Remove.
55404         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
55405         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
55406         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
55407         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
55408         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
55409         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
55410         Move these macros to ...
55411         * lib/stat_.h: here.  Don't include stat-macros.h.
55412         * lib/canonicalize.c: Don't include stat-macros.h.
55413         * lib/chown.c: Likewise.
55414         * lib/euidaccess.c: Likewise.
55415         * lib/file-type.c: Likewise.
55416         * lib/filemode.c: Likewise.
55417         * lib/glob.c: Likewise.
55418         * lib/isapipe.c: Likewise.
55419         * lib/lchown.c: Likewise.
55420         * lib/lstat.c: Likewise.
55421         * lib/mkdir-p.c: Likewise.
55422         * lib/rmdir.c: Likewise.
55423         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
55424         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
55425         unless mkdir isn't declared, to speed up 'configure'.
55426         Always create sys/stat.h, since it's unlikely any real sys/stat.h
55427         would define all the S_* symbols.
55428         * modules/canonicalize (Depends-on):
55429         Depend on sys_stat, not stat-macros.
55430         * modules/chown: Likewise.
55431         * modules/euidaccess: Likewise.
55432         * modules/filemode: Likewise.
55433         * modules/file-type: Likewise.
55434         * modules/glob: Likewise.
55435         * modules/isapipe: Likewise.
55436         * modules/lchown: Likewise.
55437         * modules/lstat: Likewise.
55438         * modules/mkancesdirs: Likewise.
55439         * modules/rmdir: Likewise.
55440         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
55441         * modules/modechange: Likewise.
55442         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
55443         (configure.ac): Remove gl_STAT_MACROS.
55444         * modules/sys_stat (Depends-on): Remove stat-macros.
55445
55446 2006-10-27  Bruno Haible  <bruno@clisp.org>
55447
55448         * m4/signed.m4: Remove file.
55449         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
55450         invocation.
55451         * modules/vasnprintf (Files): Remove m4/signed.m4.
55452
55453 2006-10-27  Bruno Haible  <bruno@clisp.org>
55454
55455         Update to GNU gettext 0.16.
55456         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
55457         m4/inttypes-h.m4, m4/signed.m4.
55458         * m4/gettext.m4: Update to GNU gettext 0.16.
55459         * m4/intl.m4: New file, from GNU gettext.
55460         * m4/intldir.m4: New file, from GNU gettext.
55461         * config/srclist.txt: Update
55462
55463 2006-10-27  Eric Blake  <ebb9@byu.net>
55464
55465         * MODULES.html.sh: Document tempname.
55466         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
55467         dependencies.
55468         (Files): Move lib/tempname.c...
55469         * modules/tempname: ...to this new module.
55470         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
55471         (gl_PREREQ_TEMPNAME): Move...
55472         * m4/tempname.m4: ...to this new file.
55473         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
55474         * modules/sys_stat (Depends-on): Add stat-macros.
55475         * lib/stat_.h (includes): Pick up stat macros.
55476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
55477         if stat macros are broken.
55478         * lib/tempname.c (includes): No need to include "stat-macros.h".
55479         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
55480         (direxists, __path_search) [!_LIBC]: Don't compile these in
55481         gnulib; the tmpdir module covers that.
55482         * lib/tempname.h: New file.
55483
55484 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55485
55486         * COPYING: Explain how gnulib-tool converts licence headers.
55487         Almost all wording by Eric Blake.
55488
55489 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
55490
55491         * lib/mbchar.h (is_basic_table): Make read-only.
55492         * lib/mbchar.c (is_basic_table): Likewise.
55493         Reported by John Darrington.
55494
55495 2006-10-25  Bruno Haible  <bruno@clisp.org>
55496
55497         * lib/progname.h (set_program_name): Undefine before defining.
55498
55499 2006-10-25  Bruno Haible  <bruno@clisp.org>
55500
55501         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
55502         false for non-gcc C++ compilers.
55503         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55504
55505 2006-10-24  Bruno Haible  <bruno@clisp.org>
55506
55507         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
55508         iconv implementations like Irix iconv.
55509
55510 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55511
55512         * modules/vararrays: New file.
55513         * m4/vararrays.m4: New file, taken from diffutils.
55514         * MODULES.html.sh: New module vararrays.
55515
55516 2006-10-24  Karl Berry  <karl@gnu.org>
55517
55518         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
55519         Don't call GNU Unix.
55520
55521 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55522
55523         * users.txt: Add Libtool.
55524
55525         Sync from Libtool:
55526
55527         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55528
55529         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
55530         to gnulib's policy of including config.h unconditionally.
55531
55532 2006-10-24  Bruno Haible  <bruno@clisp.org>
55533
55534         * modules/wcwidth (Files): Add m4/wint_t.m4.
55535         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
55536         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
55537
55538 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55539
55540         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
55541         to pacify GCC with some -W flags enabled.  Problem reported by
55542         Bruno Haible.
55543
55544 2006-10-24  Jim Meyering  <jim@meyering.net>
55545
55546         * MODULES.html.sh: Remove uinttostr.  It's not a module.
55547         Reported by Karl Berry.
55548
55549 2006-10-23  Bruno Haible  <bruno@clisp.org>
55550
55551         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
55552
55553 2006-10-24  Bruno Haible  <bruno@clisp.org>
55554
55555         * lib/gl_list.h: Use C comment style, not C++ comment style.
55556
55557 2006-10-23  Eric Blake  <ebb9@byu.net>
55558
55559         * lib/getaddrinfo.c (includes): Add missing include.
55560
55561 2006-10-23  Bruno Haible  <bruno@clisp.org>
55562             Paul Eggert  <eggert@cs.ucla.edu>
55563
55564         Ability to rename obstack_free.
55565         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55566         obstack_free.
55567         (obstack_free): Invoke the __obstack_free macro.
55568         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55569
55570 2006-10-23  Bruno Haible  <bruno@clisp.org>
55571             Paul Eggert  <eggert@cs.ucla.edu>
55572
55573         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55574         __argc, __argv from the declaration. (They are defined as macros on
55575         mingw.)
55576
55577 2006-10-22  Bruno Haible  <bruno@clisp.org>
55578
55579         * doc/gnulib-intro.texi: New file.
55580         * doc/gnulib.texi: Include it.
55581
55582 2006-10-21  Bruno Haible  <bruno@clisp.org>
55583
55584         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55585         "Introduction", "Miscellanous Notes", "Particular Modules".
55586
55587 2006-10-21  Bruno Haible  <bruno@clisp.org>
55588
55589         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55590         Change mostlyclean-local rule to avoid sh syntax error from bash
55591         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55592
55593 2006-10-23  Jim Meyering  <jim@meyering.net>
55594
55595         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55596         in place of snprintf.
55597
55598         * modules/inttostr (Files): Add lib/uinttostr.c.
55599         * lib/uinttostr.c (inttostr): New file/function.
55600         * lib/inttostr.h (uinttostr): Declare.
55601         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55602         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55603         Add uinttostr.
55604         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55605
55606 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55607
55608         * lib/canonicalize.c (ELOOP): Define if not already defined.
55609         Problem reported by Bruno Haible in
55610         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55611
55612 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55613
55614         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55615         Problem reported by Perry Smith and Ville Laurikari.
55616
55617         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55618         uses.
55619
55620 2006-10-19  Bruno Haible  <bruno@clisp.org>
55621
55622         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55623         for mingw.
55624
55625 2006-10-19  Bruno Haible  <bruno@clisp.org>
55626
55627         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55628         Needed for mingw.
55629
55630 2006-10-19  Bruno Haible  <bruno@clisp.org>
55631
55632         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55633
55634 2006-10-19  Bruno Haible  <bruno@clisp.org>
55635
55636         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55637         it.
55638
55639 2006-10-19  Bruno Haible  <bruno@clisp.org>
55640
55641         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55642         invocation.
55643
55644 2006-10-19  Bruno Haible  <bruno@clisp.org>
55645
55646         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55647         mountlist by default.
55648
55649 2006-10-16  Bruno Haible  <bruno@clisp.org>
55650
55651         * lib/c-strstr.c: Include c-strstr.h.
55652
55653 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55654
55655         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55656         in a slash.
55657
55658 2006-10-18  Bruno Haible  <bruno@clisp.org>
55659
55660         * lib/lock.h [C++]: Wrap definitions in extern "C".
55661
55662 2006-10-18  Bruno Haible  <bruno@clisp.org>
55663
55664         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55665         gl_LIBOBJS list.
55666
55667 2006-10-18  Bruno Haible  <bruno@clisp.org>
55668
55669         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55670
55671 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55672
55673         * lib/xstrtol.h: Include gettext.h.
55674         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55675         Problem reported by Eric Blake.
55676         * modules/xstrtol (Depends-on): Add gettext-h.
55677
55678 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55679
55680         * lib/strftime.c (advance): New macro.
55681         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55682         incomplete type, so you can't add 0 to it.  Problem and patch
55683         reported by Eelco Dolstra for dietlibc.
55684
55685 2006-10-18  Jim Meyering  <jim@meyering.net>
55686
55687         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55688         type for a local, and rename it: s/up/user_proc/.
55689
55690 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55691
55692         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55693         READ_UTMP_USER_PROCESS.
55694         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55695
55696 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55697
55698         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55699         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55700
55701 2006-10-17  Eric Blake  <ebb9@byu.net>
55702
55703         * lib/sigprocmask.c (sigprocmask): Fix typo.
55704
55705         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55706
55707         * modules/clean-temp (Makefile.am): Don't add to make output...
55708         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55709         config.h.
55710
55711 2006-10-17  Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55714         differently if DEFAULT_TEXT_DOMAIN is set.
55715
55716 2006-10-16  Bruno Haible  <bruno@clisp.org>
55717
55718         * lib/clean-temp.c: Include fwriteerror.h.
55719
55720 2006-10-16  Bruno Haible  <bruno@clisp.org>
55721
55722         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55723
55724 2006-10-16  Bruno Haible  <bruno@clisp.org>
55725
55726         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55727         * lib/sigprocmask.h: Include <sys/types.h>.
55728         (sigset_t): Use the system's definition if present.
55729
55730 2006-10-17  Eric Blake  <ebb9@byu.net>
55731
55732         * lib/xvasprintf.c (includes): Assume config.h.
55733         * lib/xasprintf.c (includes): Likewise.
55734
55735 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55736
55737         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55738         at least as wide as intmax_t.
55739
55740 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55741
55742         (Imported from Automake.)
55743         * build-aux/gnupload: Update to version 1.1 of directive file.
55744
55745 2006-10-16  Eric Blake  <ebb9@byu.net>
55746
55747         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55748         match Automake 1.10a.
55749
55750 2006-10-14  Bruno Haible  <bruno@clisp.org>
55751
55752         * modules/sigprocmask: New file.
55753         * lib/sigprocmask.h: New file.
55754         * lib/sigprocmask.c: New file.
55755         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55756         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55757         request sigprocmask.o.
55758         (gl_PREREQ_SIGPROCMASK): New macro.
55759         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55760         (Depends-on): Add sigprocmask.
55761         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55762         gt_SIGNALBLOCKING. Test for 'raise' only once.
55763         * lib/fatal-signal.c: Include sigprocmask.h.
55764         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55765         unblock_fatal_signals): Define always.
55766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55767         sigprocmask.
55768
55769 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55770
55771         Sync from Automake.
55772         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55773         which incorrectly sets the mode of an existing destination
55774         directory.  In some cases the unpatched install-sh could do the
55775         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55776         system.  We hope this is rare in practice, but it's clearly worth
55777         fixing.  Problem reported by Alex Unleashed in
55778         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55779         Also, don't bother to check for -m bugs unless we're using -m;
55780         suggested by Stepan Kasal.
55781
55782 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55783
55784         Sync from Automake.
55785         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55786         `-c' flag, so they appear at the same position as in %FASTDEP%
55787         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55788         which ignores unknown options only after the first non-option.
55789         Bug report against M4 by Nelson H. F. Beebe.
55790
55791 2006-10-13  Jim Meyering  <jim@meyering.net>
55792
55793         Fix a bug in yesterday's change.
55794         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55795         p->fts_statp->st_dev would be used uninitialized.
55796         Ensures that we always call fts_stat on the very first entry.
55797         Miklos Szeredi reported that find -xdev stopped working.
55798
55799 2006-10-12  Bruno Haible  <bruno@clisp.org>
55800
55801         * gnulib-tool (func_get_automake_snippet): Append an automatically
55802         computed EXTRA_DIST augmentation.
55803         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55804         * modules/alloca-opt (Makefile.am): Likewise.
55805         * modules/allocsa (Makefile.am): Likewise.
55806         * modules/arcfour (Makefile.am): Likewise.
55807         * modules/arctwo (Makefile.am): Likewise.
55808         * modules/argmatch (Makefile.am): Likewise.
55809         * modules/argz (Makefile.am): Likewise.
55810         * modules/atexit (Makefile.am): Likewise.
55811         * modules/backupfile (Makefile.am): Likewise.
55812         * modules/byteswap (Makefile.am): Likewise.
55813         * modules/c-strtod (Makefile.am): Likewise.
55814         * modules/c-strtold (Makefile.am): Likewise.
55815         * modules/calloc (Makefile.am): Likewise.
55816         * modules/canon-host (Makefile.am): Likewise.
55817         * modules/canonicalize (Makefile.am): Likewise.
55818         * modules/chdir-long (Makefile.am): Likewise.
55819         * modules/chdir-safer (Makefile.am): Likewise.
55820         * modules/check-version (Makefile.am): Likewise.
55821         * modules/chown (Makefile.am): Likewise.
55822         * modules/cloexec (Makefile.am): Likewise.
55823         * modules/close-stream (Makefile.am): Likewise.
55824         * modules/closeout (Makefile.am): Likewise.
55825         * modules/crc (Makefile.am): Likewise.
55826         * modules/csharpexec (Makefile.am): Likewise.
55827         * modules/cycle-check (Makefile.am): Likewise.
55828         * modules/des (Makefile.am): Likewise.
55829         * modules/dev-ino (Makefile.am): Likewise.
55830         * modules/dirfd (Makefile.am): Likewise.
55831         * modules/dirname (Makefile.am): Likewise.
55832         * modules/dup2 (Makefile.am): Likewise.
55833         * modules/eealloc (Makefile.am): Likewise.
55834         * modules/error (Makefile.am): Likewise.
55835         * modules/euidaccess (Makefile.am): Likewise.
55836         * modules/exclude (Makefile.am): Likewise.
55837         * modules/exitfail (Makefile.am): Likewise.
55838         * modules/fcntl-safer (Makefile.am): Likewise.
55839         * modules/fcntl (Makefile.am): Likewise.
55840         * modules/file-type (Makefile.am): Likewise.
55841         * modules/fileblocks (Makefile.am): Likewise.
55842         * modules/filemode (Makefile.am): Likewise.
55843         * modules/filenamecat (Makefile.am): Likewise.
55844         * modules/fnmatch (Makefile.am): Likewise.
55845         * modules/fopen-safer (Makefile.am): Likewise.
55846         * modules/fpending (Makefile.am): Likewise.
55847         * modules/fprintftime (Makefile.am): Likewise.
55848         * modules/free (Makefile.am): Likewise.
55849         * modules/fsusage (Makefile.am): Likewise.
55850         * modules/ftruncate (Makefile.am): Likewise.
55851         * modules/fts (Makefile.am): Likewise.
55852         * modules/gc-arcfour (Makefile.am): Likewise.
55853         * modules/gc-des (Makefile.am): Likewise.
55854         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55855         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55856         * modules/gc-md4 (Makefile.am): Likewise.
55857         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55858         * modules/gc-sha1 (Makefile.am): Likewise.
55859         * modules/gc (Makefile.am): Likewise.
55860         * modules/getaddrinfo (Makefile.am): Likewise.
55861         * modules/getcwd (Makefile.am): Likewise.
55862         * modules/getdelim (Makefile.am): Likewise.
55863         * modules/getdomainname (Makefile.am): Likewise.
55864         * modules/getgroups (Makefile.am): Likewise.
55865         * modules/gethostname (Makefile.am): Likewise.
55866         * modules/gethrxtime (Makefile.am): Likewise.
55867         * modules/getline (Makefile.am): Likewise.
55868         * modules/getloadavg (Makefile.am): Likewise.
55869         * modules/getlogin_r (Makefile.am): Likewise.
55870         * modules/getndelim2 (Makefile.am): Likewise.
55871         * modules/getopt (Makefile.am): Likewise.
55872         * modules/getpagesize (Makefile.am): Likewise.
55873         * modules/getpass-gnu (Makefile.am): Likewise.
55874         * modules/getpass (Makefile.am): Likewise.
55875         * modules/getsubopt (Makefile.am): Likewise.
55876         * modules/gettime (Makefile.am): Likewise.
55877         * modules/gettimeofday (Makefile.am): Likewise.
55878         * modules/getugroups (Makefile.am): Likewise.
55879         * modules/getusershell (Makefile.am): Likewise.
55880         * modules/glob (Makefile.am): Likewise.
55881         * modules/group-member (Makefile.am): Likewise.
55882         * modules/hard-locale (Makefile.am): Likewise.
55883         * modules/hash (Makefile.am): Likewise.
55884         * modules/hmac-md5 (Makefile.am): Likewise.
55885         * modules/hmac-sha1 (Makefile.am): Likewise.
55886         * modules/human (Makefile.am): Likewise.
55887         * modules/idcache (Makefile.am): Likewise.
55888         * modules/imaxabs (Makefile.am): Likewise.
55889         * modules/imaxdiv (Makefile.am): Likewise.
55890         * modules/inet_ntop (Makefile.am): Likewise.
55891         * modules/inet_pton (Makefile.am): Likewise.
55892         * modules/intprops (Makefile.am): Likewise.
55893         * modules/inttostr (Makefile.am): Likewise.
55894         * modules/inttypes (Makefile.am): Likewise.
55895         * modules/isapipe (Makefile.am): Likewise.
55896         * modules/javaversion (Makefile.am): Likewise.
55897         * modules/lchmod (Makefile.am): Likewise.
55898         * modules/lchown (Makefile.am): Likewise.
55899         * modules/localcharset (Makefile.am): Likewise.
55900         * modules/long-options (Makefile.am): Likewise.
55901         * modules/lstat (Makefile.am): Likewise.
55902         * modules/malloc (Makefile.am): Likewise.
55903         * modules/mathl (Makefile.am): Likewise.
55904         * modules/mbchar (Makefile.am): Likewise.
55905         * modules/md2 (Makefile.am): Likewise.
55906         * modules/md4 (Makefile.am): Likewise.
55907         * modules/md5 (Makefile.am): Likewise.
55908         * modules/memcasecmp (Makefile.am): Likewise.
55909         * modules/memchr (Makefile.am): Likewise.
55910         * modules/memcmp (Makefile.am): Likewise.
55911         * modules/memcoll (Makefile.am): Likewise.
55912         * modules/memcpy (Makefile.am): Likewise.
55913         * modules/memmem (Makefile.am): Likewise.
55914         * modules/memmove (Makefile.am): Likewise.
55915         * modules/mempcpy (Makefile.am): Likewise.
55916         * modules/memrchr (Makefile.am): Likewise.
55917         * modules/memset (Makefile.am): Likewise.
55918         * modules/memxor (Makefile.am): Likewise.
55919         * modules/mkancesdirs (Makefile.am): Likewise.
55920         * modules/mkdir-p (Makefile.am): Likewise.
55921         * modules/mkdir (Makefile.am): Likewise.
55922         * modules/mkdtemp (Makefile.am): Likewise.
55923         * modules/mkstemp (Makefile.am): Likewise.
55924         * modules/mktime (Makefile.am): Likewise.
55925         * modules/modechange (Makefile.am): Likewise.
55926         * modules/mountlist (Makefile.am): Likewise.
55927         * modules/nanosleep (Makefile.am): Likewise.
55928         * modules/obstack (Makefile.am): Likewise.
55929         * modules/openat (Makefile.am): Likewise.
55930         * modules/pagealign_alloc (Makefile.am): Likewise.
55931         * modules/pathmax (Makefile.am): Likewise.
55932         * modules/physmem (Makefile.am): Likewise.
55933         * modules/poll (Makefile.am): Likewise.
55934         * modules/posixtm (Makefile.am): Likewise.
55935         * modules/posixver (Makefile.am): Likewise.
55936         * modules/putenv (Makefile.am): Likewise.
55937         * modules/quote (Makefile.am): Likewise.
55938         * modules/quotearg (Makefile.am): Likewise.
55939         * modules/raise (Makefile.am): Likewise.
55940         * modules/read-file (Makefile.am): Likewise.
55941         * modules/readline (Makefile.am): Likewise.
55942         * modules/readlink (Makefile.am): Likewise.
55943         * modules/readtokens (Makefile.am): Likewise.
55944         * modules/readutmp (Makefile.am): Likewise.
55945         * modules/realloc (Makefile.am): Likewise.
55946         * modules/regex (Makefile.am): Likewise.
55947         * modules/rename-dest-slash (Makefile.am): Likewise.
55948         * modules/rename (Makefile.am): Likewise.
55949         * modules/rijndael (Makefile.am): Likewise.
55950         * modules/rmdir (Makefile.am): Likewise.
55951         * modules/rpmatch (Makefile.am): Likewise.
55952         * modules/safe-read (Makefile.am): Likewise.
55953         * modules/safe-write (Makefile.am): Likewise.
55954         * modules/same-inode (Makefile.am): Likewise.
55955         * modules/same (Makefile.am): Likewise.
55956         * modules/save-cwd (Makefile.am): Likewise.
55957         * modules/savedir (Makefile.am): Likewise.
55958         * modules/setenv (Makefile.am): Likewise.
55959         * modules/settime (Makefile.am): Likewise.
55960         * modules/sha1 (Makefile.am): Likewise.
55961         * modules/sig2str (Makefile.am): Likewise.
55962         * modules/snprintf (Makefile.am): Likewise.
55963         * modules/stat-macros (Makefile.am): Likewise.
55964         * modules/stat-time (Makefile.am): Likewise.
55965         * modules/stdbool (Makefile.am): Likewise.
55966         * modules/stdint (Makefile.am): Likewise.
55967         * modules/stdlib-safer (Makefile.am): Likewise.
55968         * modules/stpcpy (Makefile.am): Likewise.
55969         * modules/stpncpy (Makefile.am): Likewise.
55970         * modules/strcase (Makefile.am): Likewise.
55971         * modules/strcasestr (Makefile.am): Likewise.
55972         * modules/strchrnul (Makefile.am): Likewise.
55973         * modules/strcspn (Makefile.am): Likewise.
55974         * modules/strdup (Makefile.am): Likewise.
55975         * modules/strerror (Makefile.am): Likewise.
55976         * modules/strftime (Makefile.am): Likewise.
55977         * modules/strndup (Makefile.am): Likewise.
55978         * modules/strnlen (Makefile.am): Likewise.
55979         * modules/strpbrk (Makefile.am): Likewise.
55980         * modules/strsep (Makefile.am): Likewise.
55981         * modules/strstr (Makefile.am): Likewise.
55982         * modules/strtod (Makefile.am): Likewise.
55983         * modules/strtoimax (Makefile.am): Likewise.
55984         * modules/strtok_r (Makefile.am): Likewise.
55985         * modules/strtol (Makefile.am): Likewise.
55986         * modules/strtoll (Makefile.am): Likewise.
55987         * modules/strtoul (Makefile.am): Likewise.
55988         * modules/strtoull (Makefile.am): Likewise.
55989         * modules/strtoumax (Makefile.am): Likewise.
55990         * modules/strverscmp (Makefile.am): Likewise.
55991         * modules/sys_socket (Makefile.am): Likewise.
55992         * modules/sys_stat (Makefile.am): Likewise.
55993         * modules/sysexits (Makefile.am): Likewise.
55994         * modules/time_r (Makefile.am): Likewise.
55995         * modules/timegm (Makefile.am): Likewise.
55996         * modules/timespec (Makefile.am): Likewise.
55997         * modules/tmpfile-safer (Makefile.am): Likewise.
55998         * modules/trim (Makefile.am): Likewise.
55999         * modules/unistd-safer (Makefile.am): Likewise.
56000         * modules/unlinkdir (Makefile.am): Likewise.
56001         * modules/unlocked-io (Makefile.am): Likewise.
56002         * modules/userspec (Makefile.am): Likewise.
56003         * modules/utime (Makefile.am): Likewise.
56004         * modules/utimecmp (Makefile.am): Likewise.
56005         * modules/utimens (Makefile.am): Likewise.
56006         * modules/vasnprintf (Makefile.am): Likewise.
56007         * modules/vasprintf (Makefile.am): Likewise.
56008         * modules/vsnprintf (Makefile.am): Likewise.
56009         * modules/xalloc (Makefile.am): Likewise.
56010         * modules/xgetcwd (Makefile.am): Likewise.
56011         * modules/xnanosleep (Makefile.am): Likewise.
56012         * modules/xreadlink (Makefile.am): Likewise.
56013         * modules/xstrtod (Makefile.am): Likewise.
56014         * modules/xstrtol (Makefile.am): Likewise.
56015         * modules/xstrtold (Makefile.am): Likewise.
56016         * modules/yesno (Makefile.am): Likewise.
56017         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56018
56019 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56020
56021         * modules/error (Makefile.am): Distribute files through
56022         EXTRA_DIST, not lib_SOURCES.
56023
56024 2006-10-12  Eric Blake  <ebb9@byu.net>
56025
56026         * modules/error (Makefile.am): Distribute files in /lib.
56027         * modules/obstack (Makefile.am): Likewise.
56028
56029 2006-10-12  Bruno Haible  <bruno@clisp.org>
56030
56031         * modules/acl (Makefile.am): Distribute all files in lib/ through
56032         EXTRA_DIST.
56033         * modules/arcfour (Makefile.am): Likewise.
56034         * modules/arctwo (Makefile.am): Likewise.
56035         * modules/argmatch (Makefile.am): Likewise.
56036         * modules/argz (Makefile.am): Likewise.
56037         * modules/atexit (Makefile.am): Likewise.
56038         * modules/backupfile (Makefile.am): Likewise.
56039         * modules/c-strtod (Makefile.am): Likewise.
56040         * modules/c-strtold (Makefile.am): Likewise.
56041         * modules/calloc (Makefile.am): Likewise.
56042         * modules/canon-host (Makefile.am): Likewise.
56043         * modules/canonicalize (Makefile.am): Likewise.
56044         * modules/chdir-long (Makefile.am): Likewise.
56045         * modules/chdir-safer (Makefile.am): Likewise.
56046         * modules/check-version (Makefile.am): Likewise.
56047         * modules/chown (Makefile.am): Likewise.
56048         * modules/cloexec (Makefile.am): Likewise.
56049         * modules/close-stream (Makefile.am): Likewise.
56050         * modules/closeout (Makefile.am): Likewise.
56051         * modules/crc (Makefile.am): Likewise.
56052         * modules/cycle-check (Makefile.am): Likewise.
56053         * modules/des (Makefile.am): Likewise.
56054         * modules/dirfd (Makefile.am): Likewise.
56055         * modules/dirname (Makefile.am): Likewise.
56056         * modules/dup2 (Makefile.am): Likewise.
56057         * modules/euidaccess (Makefile.am): Likewise.
56058         * modules/exclude (Makefile.am): Likewise.
56059         * modules/exitfail (Makefile.am): Likewise.
56060         * modules/fcntl-safer (Makefile.am): Likewise.
56061         * modules/file-type (Makefile.am): Likewise.
56062         * modules/fileblocks (Makefile.am): Likewise.
56063         * modules/filemode (Makefile.am): Likewise.
56064         * modules/filenamecat (Makefile.am): Likewise.
56065         * modules/fnmatch (Makefile.am): Likewise.
56066         * modules/fopen-safer (Makefile.am): Likewise.
56067         * modules/fpending (Makefile.am): Likewise.
56068         * modules/fprintftime (Makefile.am): Likewise.
56069         * modules/free (Makefile.am): Likewise.
56070         * modules/fsusage (Makefile.am): Likewise.
56071         * modules/ftruncate (Makefile.am): Likewise.
56072         * modules/fts (Makefile.am): Likewise.
56073         * modules/gc (Makefile.am): Likewise.
56074         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56075         * modules/getaddrinfo (Makefile.am): Likewise.
56076         * modules/getcwd (Makefile.am): Likewise.
56077         * modules/getdelim (Makefile.am): Likewise.
56078         * modules/getdomainname (Makefile.am): Likewise.
56079         * modules/getgroups (Makefile.am): Likewise.
56080         * modules/gethostname (Makefile.am): Likewise.
56081         * modules/gethrxtime (Makefile.am): Likewise.
56082         * modules/getline (Makefile.am): Likewise.
56083         * modules/getloadavg (Makefile.am): Likewise.
56084         * modules/getlogin_r (Makefile.am): Likewise.
56085         * modules/getopt (Makefile.am): Likewise.
56086         * modules/getpass (Makefile.am): Likewise.
56087         * modules/getpass-gnu (Makefile.am): Likewise.
56088         * modules/getsubopt (Makefile.am): Likewise.
56089         * modules/gettime (Makefile.am): Likewise.
56090         * modules/gettimeofday (Makefile.am): Likewise.
56091         * modules/getugroups (Makefile.am): Likewise.
56092         * modules/getusershell (Makefile.am): Likewise.
56093         * modules/glob (Makefile.am): Likewise.
56094         * modules/group-member (Makefile.am): Likewise.
56095         * modules/hard-locale (Makefile.am): Likewise.
56096         * modules/hash (Makefile.am): Likewise.
56097         * modules/hmac-md5 (Makefile.am): Likewise.
56098         * modules/hmac-sha1 (Makefile.am): Likewise.
56099         * modules/human (Makefile.am): Likewise.
56100         * modules/idcache (Makefile.am): Likewise.
56101         * modules/imaxabs (Makefile.am): Likewise.
56102         * modules/imaxdiv (Makefile.am): Likewise.
56103         * modules/inet_ntop (Makefile.am): Likewise.
56104         * modules/inet_pton (Makefile.am): Likewise.
56105         * modules/inttostr (Makefile.am): Likewise.
56106         * modules/isapipe (Makefile.am): Likewise.
56107         * modules/lchown (Makefile.am): Likewise.
56108         * modules/long-options (Makefile.am): Likewise.
56109         * modules/lstat (Makefile.am): Likewise.
56110         * modules/malloc (Makefile.am): Likewise.
56111         * modules/mathl (Makefile.am): Likewise.
56112         * modules/mbchar (Makefile.am): Likewise.
56113         * modules/md2 (Makefile.am): Likewise.
56114         * modules/md4 (Makefile.am): Likewise.
56115         * modules/md5 (Makefile.am): Likewise.
56116         * modules/memcasecmp (Makefile.am): Likewise.
56117         * modules/memchr (Makefile.am): Likewise.
56118         * modules/memcmp (Makefile.am): Likewise.
56119         * modules/memcoll (Makefile.am): Likewise.
56120         * modules/memcpy (Makefile.am): Likewise.
56121         * modules/memmem (Makefile.am): Likewise.
56122         * modules/memmove (Makefile.am): Likewise.
56123         * modules/mempcpy (Makefile.am): Likewise.
56124         * modules/memrchr (Makefile.am): Likewise.
56125         * modules/memset (Makefile.am): Likewise.
56126         * modules/memxor (Makefile.am): Likewise.
56127         * modules/mkancesdirs (Makefile.am): Likewise.
56128         * modules/mkdir (Makefile.am): Likewise.
56129         * modules/mkdir-p (Makefile.am): Likewise.
56130         * modules/mkdtemp (Makefile.am): Likewise.
56131         * modules/mkstemp (Makefile.am): Likewise.
56132         * modules/mktime (Makefile.am): Likewise.
56133         * modules/modechange (Makefile.am): Likewise.
56134         * modules/mountlist (Makefile.am): Likewise.
56135         * modules/nanosleep (Makefile.am): Likewise.
56136         * modules/openat (Makefile.am): Likewise.
56137         * modules/pagealign_alloc (Makefile.am): Likewise.
56138         * modules/physmem (Makefile.am): Likewise.
56139         * modules/poll (Makefile.am): Likewise.
56140         * modules/posixtm (Makefile.am): Likewise.
56141         * modules/posixver (Makefile.am): Likewise.
56142         * modules/putenv (Makefile.am): Likewise.
56143         * modules/quote (Makefile.am): Likewise.
56144         * modules/quotearg (Makefile.am): Likewise.
56145         * modules/raise (Makefile.am): Likewise.
56146         * modules/read-file (Makefile.am): Likewise.
56147         * modules/readline (Makefile.am): Likewise.
56148         * modules/readlink (Makefile.am): Likewise.
56149         * modules/readtokens (Makefile.am): Likewise.
56150         * modules/readutmp (Makefile.am): Likewise.
56151         * modules/realloc (Makefile.am): Likewise.
56152         * modules/regex (Makefile.am): Likewise.
56153         * modules/rename (Makefile.am): Likewise.
56154         * modules/rename-dest-slash (Makefile.am): Likewise.
56155         * modules/rijndael (Makefile.am): Likewise.
56156         * modules/rmdir (Makefile.am): Likewise.
56157         * modules/rpmatch (Makefile.am): Likewise.
56158         * modules/safe-read (Makefile.am): Likewise.
56159         * modules/safe-write (Makefile.am): Likewise.
56160         * modules/same (Makefile.am): Likewise.
56161         * modules/save-cwd (Makefile.am): Likewise.
56162         * modules/savedir (Makefile.am): Likewise.
56163         * modules/setenv (Makefile.am): Likewise.
56164         * modules/settime (Makefile.am): Likewise.
56165         * modules/sha1 (Makefile.am): Likewise.
56166         * modules/sig2str (Makefile.am): Likewise.
56167         * modules/snprintf (Makefile.am): Likewise.
56168         * modules/stdlib-safer (Makefile.am): Likewise.
56169         * modules/stpcpy (Makefile.am): Likewise.
56170         * modules/stpncpy (Makefile.am): Likewise.
56171         * modules/strcase (Makefile.am): Likewise.
56172         * modules/strcasestr (Makefile.am): Likewise.
56173         * modules/strchrnul (Makefile.am): Likewise.
56174         * modules/strcspn (Makefile.am): Likewise.
56175         * modules/strdup (Makefile.am): Likewise.
56176         * modules/strerror (Makefile.am): Likewise.
56177         * modules/strftime (Makefile.am): Likewise.
56178         * modules/strndup (Makefile.am): Likewise.
56179         * modules/strnlen (Makefile.am): Likewise.
56180         * modules/strpbrk (Makefile.am): Likewise.
56181         * modules/strsep (Makefile.am): Likewise.
56182         * modules/strstr (Makefile.am): Likewise.
56183         * modules/strtod (Makefile.am): Likewise.
56184         * modules/strtoimax (Makefile.am): Likewise.
56185         * modules/strtok_r (Makefile.am): Likewise.
56186         * modules/strtol (Makefile.am): Likewise.
56187         * modules/strtoll (Makefile.am): Likewise.
56188         * modules/strtoul (Makefile.am): Likewise.
56189         * modules/strtoull (Makefile.am): Likewise.
56190         * modules/strtoumax (Makefile.am): Likewise.
56191         * modules/strverscmp (Makefile.am): Likewise.
56192         * modules/time_r (Makefile.am): Likewise.
56193         * modules/timegm (Makefile.am): Likewise.
56194         * modules/tmpfile-safer (Makefile.am): Likewise.
56195         * modules/unistd-safer (Makefile.am): Likewise.
56196         * modules/unlinkdir (Makefile.am): Likewise.
56197         * modules/userspec (Makefile.am): Likewise.
56198         * modules/utime (Makefile.am): Likewise.
56199         * modules/utimecmp (Makefile.am): Likewise.
56200         * modules/utimens (Makefile.am): Likewise.
56201         * modules/vasnprintf (Makefile.am): Likewise.
56202         * modules/vasprintf (Makefile.am): Likewise.
56203         * modules/vsnprintf (Makefile.am): Likewise.
56204         * modules/xalloc (Makefile.am): Likewise.
56205         * modules/xgetcwd (Makefile.am): Likewise.
56206         * modules/xnanosleep (Makefile.am): Likewise.
56207         * modules/xreadlink (Makefile.am): Likewise.
56208         * modules/xstrtod (Makefile.am): Likewise.
56209         * modules/xstrtol (Makefile.am): Likewise.
56210         * modules/xstrtold (Makefile.am): Likewise.
56211         * modules/yesno (Makefile.am): Likewise.
56212
56213 2006-10-12  Jim Meyering  <jim@meyering.net>
56214
56215         * m4/getloadavg.m4: Revert the change below.
56216
56217         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56218         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56219         fail with a symlink, which is what coreutils' ./bootstrap now
56220         creates by default.
56221
56222 2006-10-12  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
56225         mingw.
56226         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
56227         MSVC and mingw explicitly.
56228
56229 2006-10-11  Simon Josefsson  <jas@extundo.com>
56230             Bruno Haible  <bruno@clisp.org>
56231
56232         Add support for multiple gnulib-tool invocations in the scope of a
56233         single configure.ac file.
56234         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
56235         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
56236         with the same contents as the _LIBADD variable.
56237         (func_emit_initmacro_start, func_emit_initmacro_end,
56238         func_emit_initmacro_done): New functions.
56239         (func_import, func_create_testdir): Invoke them. Allow the identifiers
56240         gl_LIBOBJS and gl_LTLIBOBJS.
56241
56242 2006-10-11  Bruno Haible  <bruno@clisp.org>
56243
56244         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
56245         (func_create_testdir): Don't create po/Makefile.am, don't invoke
56246         autoreconf. Instead, invoke autopoint explicitly but move back the
56247         *.m4 files from gnulib.
56248
56249 2006-10-11  Bruno Haible  <bruno@clisp.org>
56250
56251         * gnulib-tool (func_usage): Make module names after --create-testdir
56252         optional.
56253         (func_create_testdir): If no module was specified, use nearly all
56254         modules.
56255
56256 2006-10-12  Jim Meyering  <jim@meyering.net>
56257
56258         Big performance improvement for fts-based tools that use FTS_NOSTAT.
56259         Avoid spurious inode-mismatch problems on non-POSIX file systems.
56260         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
56261         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
56262         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
56263         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
56264         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
56265         (fts_set_stat_required): New function.
56266         (fts_open): Defer the calls to fts_stat, if possible or requested.
56267         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
56268         into fts_stat itself.
56269         (fts_read): Perform any required (deferred) fts_stat call.
56270         (fts_build): Likewise, for the directory we're about to open and read.
56271         In the readdir loop, carefully decide whether each entry will require
56272         an eventual call to fts_stat, using dirent.d_type info if available.
56273         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
56274         a command line argument into this function.  Update all callers.
56275         Map a return value of FTS_DOT to FTS_D for a command line argument.
56276         * modules/fts (Depends-on): Add d-type.  Alphabetize.
56277         Thanks to Miklos Szeredi for his tenacity and for the initial
56278         bug report about "find" failing on a FUSE-based file system.
56279
56280         * lib/fts.c (fts_open): Use consistent indentation.
56281
56282 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56283
56284         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
56285         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
56286         reported by Jim Meyering.  All uses of cache variables renamed
56287         to match Autoconf's.
56288         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
56289         the other one.
56290
56291         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56292         Fix misspelling in diagnostic.
56293
56294 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56295
56296         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
56297         defined.  Problem reported by Matthew Woehlke.
56298
56299         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
56300         Add support for Tandem NonStop R series.
56301         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
56302         Use new macro.
56303
56304         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
56305         (has_trailing_slash): Omit size arg; all callers changed.
56306         Omit 'inline', since it doesn't help performance and we'd
56307         need to configure it.
56308         Don't count //, ///, etc. as having a trailing slash.
56309         As a side effect, this removes a C99ism reported by Matthew Woehlke.
56310         (rpl_rename_dest_slash): On failure, use rename's errno rather
56311         than (in some cases) an incorrect or junk errno.
56312         Simplify code by removing need to compute length; this does
56313         cause it to make two passes instead of one over the file name,
56314         but it's worth it.
56315
56316         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
56317         change, since Autoconf's version may no longer be appropriate now
56318         that we are using CVS Autoconf's version.  Add support for Tandem.
56319
56320 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56321             Bruno Haible  <bruno@clisp.org>
56322
56323         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
56324         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
56325         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
56326         gl_AC_TYPE_LONG_LONG.
56327
56328         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
56329         instead of HAVE_LONG_LONG.
56330         * lib/printf-args.c (printf_fetchargs): Likewise.
56331         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
56332         * lib/vasnprintf.c (VASNPRINTF): Likewise.
56333         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
56334         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
56335         gl_AC_TYPE_LONG_LONG.
56336
56337 2006-10-11  Bruno Haible  <bruno@clisp.org>
56338
56339         * m4/longlong.m4: Add comments.
56340         * m4/ulonglong.m4: Likewise.
56341
56342 2006-10-10  Bruno Haible  <bruno@clisp.org>
56343
56344         Make it possible to #define stpcpy, strdup to aliases.
56345         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
56346         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
56347
56348 2006-10-10  Bruno Haible  <bruno@clisp.org>
56349
56350         Make it possible to #define gcd to an alias.
56351         * lib/gcd.c: Include config.h.
56352
56353 2006-10-10  Bruno Haible  <bruno@clisp.org>
56354
56355         Make it possible to #define c_isascii to an alias.
56356         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
56357         defined. Undefine the macros before defining them, to avoid gcc
56358         warnings.
56359         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
56360         define NO_C_CTYPE_MACROS early.
56361
56362 2006-10-10  Bruno Haible  <bruno@clisp.org>
56363
56364         Make it possible to #define set_program_name to an alias.
56365         * lib/progname.c: Don't undefine set_program_name; instead, undefine
56366         ENABLE_RELOCATABLE early.
56367
56368 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56369
56370         Port to Tandem NSK OSS, which has 64-bit signed int but at most
56371         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
56372         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
56373         More generally, don't assume that 64-bit signed int is available
56374         if unsigned int is, and vice versa.
56375         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
56376         unsigned symbols, not on their signed counterparts.
56377         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
56378         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
56379         (UINT64_C, UINTMAX_C):
56380         Likewise.
56381         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
56382         unsigned counterparts.
56383         (Have_long_long, Unsigned): New macros.
56384         (Int): Renamed from INT.
56385         (strtoimax): Use the new macros.
56386         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
56387         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
56388         * modules/inttypes (inttypes.h): Substitute
56389         HAVE_UNSIGNED_LONG_LONG_INT.
56390         * modules/stdint (stdint.h): Likewise.
56391         (Files): Add m4/ulonglong.m4.
56392
56393 2006-10-10  Bruno Haible  <bruno@clisp.org>
56394
56395         Fix a gcc -Wshadow warning.
56396         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
56397         to 'bucket'.
56398         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
56399         gl_linked_indexof_from_to): Likewise.
56400         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
56401         Likewise.
56402         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
56403         Likewise.
56404         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
56405         Reported by Eric Blake.
56406
56407 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
56408
56409         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
56410         for NetBSD.  Problem reported by Bruno Haible.
56411
56412 2006-10-09  Jim Meyering  <jim@meyering.net>
56413
56414         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
56415         Patch from Bruno Haible.
56416
56417 2006-10-09  Jim Meyering  <jim@meyering.net>
56418
56419         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
56420         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
56421         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
56422
56423 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56424
56425         Don't include <config.h> twice; this doesn't work in some cases,
56426         e.g., when config.h has "#define intmax_t long long int" and
56427         we include <config.h>, <inttypes.h>, <config.h> in that order.
56428         Problem reported by Matthew Woehlke in:
56429         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
56430         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
56431         * lib/fts-cycle.c: Don't include config.h.
56432         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
56433         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
56434         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
56435         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
56436         inttypes.h.
56437         * lib/xstrtoumax.c: Likewise.
56438         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
56439         __strtol and the like, so that this module is more like its siblings.
56440         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
56441         Remove; no longer needed now that we assume gnulib inttypes.h.
56442
56443 2006-10-08  Bruno Haible  <bruno@clisp.org>
56444
56445         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
56446         option.
56447
56448 2006-10-07  Jim Meyering  <jim@meyering.net>
56449
56450         * modules/inttypes (inttypes.h): Revert what seems to have been
56451         an inadvertent part of today's change: use "|", not "/" in the
56452         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
56453
56454 2006-10-07  Bruno Haible  <bruno@clisp.org>
56455
56456         * modules/sublist: New file.
56457
56458 2006-10-07  Bruno Haible  <bruno@clisp.org>
56459
56460         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
56461         * modules/argz (argz.h): Likewise.
56462         * modules/arpa_inet (arpa/inet.h): Likewise.
56463         * modules/byteswap (byteswap.h): Likewise.
56464         * modules/configmake (configmake.h): Likewise.
56465         * modules/fcntl (fcntl.h): Likewise.
56466         * modules/fnmatch (fnmatch.h): Likewise.
56467         * modules/getopt (getopt.h): Likewise.
56468         * modules/glob (glob.h): Likewise.
56469         * modules/inttypes (inttypes.h): Likewise.
56470         * modules/netinet_in (netinet/in.h): Likewise.
56471         * modules/poll (poll.h): Likewise.
56472         * modules/stdbool (stdbool.h): Likewise.
56473         * modules/stdint (stdint.h): Likewise.
56474         * modules/sys_select (sys/select.h): Likewise.
56475         * modules/sys_socket (sys/socket.h): Likewise.
56476         * modules/sys_stat (sys/stat.h): Likewise.
56477         * modules/sysexits (sysexits.h): Likewise.
56478         * modules/unistd (unistd.h): Likewise.
56479         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56480         Add a "DO NOT EDIT" comment to the generated file.
56481         (func_import): Likewise for gnulib-comp.m4.
56482
56483 2006-10-07  Bruno Haible  <bruno@clisp.org>
56484
56485         * lib/gl_sublist.h: New file.
56486         * lib/gl_sublist.c: New file.
56487
56488 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56489
56490         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
56491         name (relative to the original working directory) and the file
56492         name component (relative to the temporary working directory).  All
56493         callers changed.
56494         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
56495         * lib/mkdir-p.c (make_dir_parents): Likewise.
56496         * lib/mkdir-p.h (make_dir_parents): Likewise.
56497
56498 2006-10-06  Eric Blake  <ebb9@byu.net>
56499
56500         Define several macros for use by the clean-temp module.
56501         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
56502         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
56503         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
56504
56505         * lib/clean-temp.h (close_stream_temp): New declaration.
56506         * lib/clean-temp.c (includes): Pull in headers according to what
56507         other modules are in use.
56508         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
56509
56510 2006-10-06  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
56513         instead of fopen, fwriteerror.
56514
56515 2006-10-06  Bruno Haible  <bruno@clisp.org>
56516
56517         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
56518         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
56519         int.
56520         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
56521         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
56522         Return an error indicator.
56523         Suggested by Eric Blake.
56524
56525 2006-10-06  Bruno Haible  <bruno@clisp.org>
56526
56527         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
56528         Reported by Eric Blake.
56529
56530 2006-10-06  Bruno Haible  <bruno@clisp.org>
56531
56532         * modules/closeout (Description): Mention stderr too.
56533
56534 2006-10-06  Bruno Haible  <bruno@clisp.org>
56535         and Paul Eggert  <eggert@cs.ucla.edu>
56536
56537         * lib/closeout.c (close_stdout): Also close stderr.
56538         * lib/closeout.h: Update comment.
56539
56540 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56541
56542         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
56543         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
56544         * lib/dirchownmod.c: Include lchown.h.
56545         * lib/lchown.c: Don't include files that lchown.h now includes.
56546         Don't declare chown, since lchown.h now does that.
56547         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
56548         (lchown): Define to rpl_chown if lchown is declared but
56549         does not exist.  Declare using a prototype if lchown is not
56550         declared.  Add a copyright notice.
56551         * lib/mkstemp.h: Include <unistd.h>.
56552         * lib/openat.c: Include lchown.h.
56553
56554         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
56555         we now test for that separately.
56556         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56557         rather than O_NOFOLLOW, when testing whether it's possible to
56558         avoid a race condition reliably.
56559         * lib/savewd.c (savewd_chdir): Likewise.
56560
56561         Remove macros that are no longer needed now that stdint.h is
56562         reliable.
56563         * lib/fsusage.c (UINTMAX_MAX): Remove.
56564         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56565         * lib/utimecmp.c (SIZE_MAX): Remove.
56566
56567         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56568
56569         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56570         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56571         O_NOATIME works.
56572
56573 2006-10-05  Bruno Haible  <bruno@clisp.org>
56574
56575         * lib/gl_list.h (gl_sortedlist_search_from_to,
56576         gl_sortedlist_indexof_from_to): New declarations.
56577         (gl_list_implementation): New fields sortedlist_search_from_to,
56578         sortedlist_indexof_from_to.
56579         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56580         inline functions.
56581         * lib/gl_list.c (gl_sortedlist_search_from_to,
56582         gl_sortedlist_indexof_from_to): New functions.
56583         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56584         function.
56585         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56586         (gl_array_sortedlist_search_from_to): New function.
56587         (gl_array_list_implementation): Update.
56588         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56589         function.
56590         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56591         (gl_carray_sortedlist_search_from_to): New function.
56592         (gl_carray_list_implementation): Update.
56593         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56594         gl_linked_sortedlist_indexof_from_to): New functions.
56595         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56596         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56597         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56598         gl_tree_sortedlist_indexof_from_to): New functions.
56599         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56600         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56601         Update.
56602         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56603         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56604         Update.
56605
56606 2006-10-05  Bruno Haible  <bruno@clisp.org>
56607
56608         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56609         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56610         (struct gl_list_implementation): Add fields search_from_to,
56611         indexof_from_to. Remove fields search, indexof.
56612         (gl_list_search): Use the search_from_to method.
56613         (gl_list_search_from, gl_list_search_from_to): New functions.
56614         (gl_list_indexof): Use the indexof_from_to method.
56615         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56616         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56617         (gl_list_search_from, gl_list_search_from_to): New functions.
56618         (gl_list_indexof): Use the indexof_from_to method.
56619         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56620         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56621         gl_array_indexof. Add start_index, end_index arguments.
56622         (gl_array_search_from_to): Renamed from gl_array_search. Add
56623         start_index, end_index arguments.
56624         (gl_array_remove, gl_array_list_implementation): Update.
56625         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56626         gl_carray_indexof. Add start_index, end_index arguments.
56627         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56628         start_index, end_index arguments.
56629         (gl_carray_remove, gl_carray_list_implementation): Update.
56630         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56631         gl_linked_search. Add start_index, end_index arguments.
56632         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56633         start_index, end_index arguments.
56634         (gl_linked_remove): Update.
56635         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56636         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56637         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56638         field to 'size_t'.
56639         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56640         gl_tree_search. Add start_index, end_index arguments.
56641         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56642         start_index, end_index arguments.
56643         (gl_tree_remove): Update.
56644         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56645         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56646         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56647         function.
56648         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56649         gl_tree_search. Add start_index, end_index arguments.
56650         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56651         start_index, end_index arguments.
56652         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56653         Update.
56654         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56655
56656 2006-10-05  Bruno Haible  <bruno@clisp.org>
56657
56658         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56659
56660         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56661         fwriteerror_temp): New declarations.
56662         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56663         (descriptors): New variable.
56664         (cleanup): First, close the descriptors.
56665         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56666         fclose_temp, fwriteerror_temp): New functions.
56667
56668 2006-10-04  Jim Meyering  <jim@meyering.net>
56669
56670         * lib/fts.c (fts_open): Tiny comment change.
56671
56672 2006-10-04  Bruno Haible  <bruno@clisp.org>
56673
56674         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56675         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56676         gl_LOCK_BODY.
56677         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56678         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56679         gl_LOCK_EARLY_BODY.
56680         (gl_LOCK): Require gl_LOCK_BODY.
56681
56682 2006-10-04  Bruno Haible  <bruno@clisp.org>
56683
56684         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56685         (gl_oset_search_atleast): New declaration.
56686         (struct gl_oset_implementation): Add field 'search_atleast'.
56687         (gl_oset_search_atleast): New inline function.
56688         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56689         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56690         (gl_array_oset_implementation): Update.
56691         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56692         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56693         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56694
56695 2006-10-04  Bruno Haible  <bruno@clisp.org>
56696
56697         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56698
56699 2006-10-03  Bruno Haible  <bruno@clisp.org>
56700
56701         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56702         from gl_avltreehash_list_implementation.
56703
56704 2006-10-03  Bruno Haible  <bruno@clisp.org>
56705
56706         * lib/gl_oset.c (gl_oset_add): Fix return type.
56707
56708 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56709
56710         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56711
56712 2006-10-02  Eric Blake  <ebb9@byu.net>
56713
56714         * modules/strnlen (Depends-on): Add extensions.
56715
56716 2006-10-02  Eric Blake  <ebb9@byu.net>
56717
56718         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56719         definition in 2.60+.
56720
56721 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56722
56723         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56724         checks.
56725
56726 2006-10-02  Bruno Haible  <bruno@clisp.org>
56727
56728         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56729         to the AUTOMAKE_OPTIONS.
56730         Reported by Jim Meyering.
56731
56732 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56733
56734         Work around bug in Solaris 10 /proc file system:
56735         /proc/self/fd/NNN/.. isn't the parent directory of
56736         the directory whose file descriptor is NNN.  This needs to
56737         be worked around at run time, not compile time, since a
56738         program might be built on Solaris 8, where things work, and
56739         run on Solaris 10.
56740         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56741         to use the following interface instead:
56742         (OPENAT_BUFFER_SIZE): New macro.
56743         (openat_proc_name): New function.
56744         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56745         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56746         Likewise.
56747         * lib/openat-proc.c: New file.
56748         * modules/openat (Files): Add lib/openat-proc.c.
56749         (Depends-on): Add same-inode, stdbool.
56750         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56751
56752 2006-09-29  Bruno Haible  <bruno@clisp.org>
56753
56754         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56755         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56756         argument. Set stdout_closed before testing for ferror, not after.
56757         (fwriteerror, fwriteerror_no_ebadf): New functions.
56758
56759 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56760
56761         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56762
56763 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56764
56765         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56766         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56767
56768 2006-09-28  Jim Meyering  <jim@meyering.net>
56769
56770         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56771         Include <unistd.h>.
56772
56773 2006-09-28  Bruno Haible  <bruno@clisp.org>
56774
56775         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56776         * modules/linkedhash-list (Depends-on): Likewise.
56777         * modules/rbtreehash-list (Depends-on): Likewise.
56778
56779 2006-09-28  Bruno Haible  <bruno@clisp.org>
56780
56781         * lib/strndup.h: Simplify the redefinition of strndup.
56782         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56783         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56784
56785 2006-09-28  Bruno Haible  <bruno@clisp.org>
56786
56787         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56788         * lib/gl_linkedhash_list.c: Likewise.
56789         * lib/gl_rbtreehash_list.c: Likewise.
56790
56791 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56792
56793         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56794         getaddrinfo.
56795
56796         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56797         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56798         it causes <stdio_ext.h> to cause a compile-time error.
56799         Problem reported by Nelson H. F. Beebe.
56800         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56801         of HAVE_DECL___PENDING.
56802
56803         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56804         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56805         declaration.
56806
56807 2006-09-27  Jim Meyering  <jim@meyering.net>
56808
56809         This file could end up with a definition for a function
56810         named __strndup, rather than rpl_strndup on a system with
56811         incomplete weak_alias support.
56812         * lib/strndup.c (strndup): Rename from __strndup.
56813         Remove #defines that used to map __strndup to strndup.
56814         Don't use K&R prototypes.
56815         Remove LIBC-related code, since this file is not sync'd with glibc.
56816         * lib/strndup.h: Revamp, accordingly.
56817         * m4/strndup.m4: Modernize.
56818
56819 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56820
56821         * modules/savewd (Depends-on): Add 'raise'.
56822         * lib/savewd.c: Include <signal.h>, for 'raise'.
56823
56824 2006-09-26  Jim Meyering  <jim@meyering.net>
56825
56826         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56827         when we detect Darwin 8.7.0's acl_get_file bug.
56828         Rearrange to perform the new (below) run-test while $LIBS
56829         contains any acl-related library.  Set USE_ACL at the end.
56830         (gl_ACL_GET_FILE): New function.
56831
56832 2006-09-26  Eric Blake  <ebb9@byu.net>
56833
56834         * lib/verror.c: Include <config.h> unconditionally.
56835
56836 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56837
56838         * modules/clock-time (Maintainer): Add self.
56839         * modules/getlogin_r (Depends-on): Add extensions.
56840
56841 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56842
56843         * modules/clock-time: New module.
56844         * modules/nanosleep (Depends-on): Add clock-time.
56845         * modules/gethrxtime (Depends-on): Likewise.
56846         * modules/gettime (Depends-on): Likewise.
56847         * modules/settime (Depends-on): Likewise.
56848
56849         * modules/fts-lgpl: Depend on openat.
56850         * modules/mkancesdirs: Depend on savewd.
56851         * modules/mkdir-p: Likewise.
56852
56853 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56854
56855         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56856
56857         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56858         `gl_have_arbitrary_file_name_length_limit' to
56859         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56860         actually works between configure runs.
56861
56862 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56863             Bruno Haible  <bruno@clisp.org>
56864
56865         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56866
56867 2006-09-25  Jim Meyering  <jim@meyering.net>
56868
56869         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56870         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56871
56872 2006-09-25  Eric Blake  <ebb9@byu.net>
56873
56874         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56875         exec's in 2006-09-18 patch when shuffling fds.
56876
56877 2006-09-25  Bruno Haible  <bruno@clisp.org>
56878
56879         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56880         Reported by Jim Meyering.
56881
56882 2006-09-24  Jim Meyering  <jim@meyering.net>
56883
56884         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56885         compare a pointer against a literal "0".  That caused failures with
56886         at least HP-UX's hpcc.
56887
56888 2006-09-22  Simon Josefsson  <jas@extundo.com>
56889
56890         * modules/gc-sha1:
56891         * modules/gc-md4:
56892         * modules/gc-hmac-sha1:
56893         * modules/gc-hmac-md5:
56894         * modules/gc-des:
56895         * modules/gc-arcfour: Distribute more files.
56896
56897 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56898
56899         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56900         (gl_linked_iterator_from_to): Initialize struct completely.
56901         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56902         (gl_tree_iterator_from_to): Likewise
56903         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56904         * lib/gl_array_list.c [lint] (gl_array_iterator)
56905         (gl_array_iterator_from_to): Likewise.
56906         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56907         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56908         (gl_carray_iterator_from_to): Likewise.
56909
56910         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56911         * lib/md4.c (md4_process_block): Remove unused variable.
56912         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56913         parentheses for clarity.
56914
56915 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56916
56917         * modules/bison-i18n (Depends-on): Add gettext.
56918
56919 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56920
56921         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56922         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56923         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56924         also add missing comma that caused broken test.
56925         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56926         stdlib.h, for `abort'.
56927         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56928         variables.
56929         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56930         include unistd.h if present, for `rmdir'.
56931         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56932         variables.
56933         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
56934         in the process include standard headers for prototypes.
56935         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
56936         gets declared on GNU/Linux.
56937         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56938         unistd.h, for `rmdir'.
56939         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56940
56941         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56942         always true.
56943         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56944
56945         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56946
56947 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56948
56949         * gnulib-tool (func_version): Create output all at once.  This
56950         may help avoid triggering unnecessary SIGPIPEs, and at any
56951         rate it doesn't hurt.
56952
56953 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56954             Bruno Haible  <bruno@clisp.org>
56955
56956         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56957         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56958         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56959
56960         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56961         (gl_FUNC_VASPRINTF): Invoke it.
56962
56963 2006-09-22  Bruno Haible  <bruno@clisp.org>
56964
56965         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56966         getloadavg.c as first argument.
56967
56968 2006-09-22  Bruno Haible  <bruno@clisp.org>
56969
56970         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56971         at the beginning of the gl_INIT macro.
56972         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56973         gl_GETLOADAVG.
56974
56975 2006-09-22  Bruno Haible  <bruno@clisp.org>
56976
56977         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56978         module.
56979         Suggested by Ralf Wildenhues.
56980
56981 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56982
56983         Import this patch from libc:
56984
56985         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56986
56987         * lib/regex_internal.c (re_string_reconstruct): Handle
56988         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56989         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56990         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56991         re_string_context_at.
56992
56993         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56994         now requires it.
56995         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56996         gl_REGEX now does it for us.
56997         (gl_REGEX): Add test taken from
56998         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56999
57000         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57001         Check that large offsets work.  Modernize Autoconf usages.
57002         Prefer "yes" to mean a good thing rather than a bad.
57003         Don't put "#define mkstemp" in config.h, as this might interfere
57004         with standard system headers that "#define mkstemp mkstemp64".
57005
57006         * modules/mkstemp (Depends-on): Add extensions, so that
57007         mkstemp is visible on some platforms.
57008         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57009         (Include): Change to "mkstemp.h" from <stdlib.h>.
57010         (Files): Add mkstemp.h.
57011
57012         * lib/mkstemp.h: New file, since some standard headers
57013         #define mkstemp.
57014         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57015         Include "mkstemp.h".
57016         Make the _LIBC code resemble glibc original more,
57017         e.g., use K&R style.
57018         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57019         (mkstemp): Remove, since mkstemp.h does this for us.
57020         * lib/stdlib--.h: Include mkstemp.h.
57021
57022         Import this patch from libc:
57023
57024         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57025
57026         * lib/tempname.c (__gen_tempname): Change attempts_min
57027         into a macro.  Use preprocessor to decide how to initialize
57028         attempts [Coverity CID 67].
57029
57030 2006-09-20  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/mkdtemp.c: Import from libc.
57033         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57034                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57035                 attempts_min into a macro.  Use preprocessor to decide how to
57036                 initialize attempts [Coverity CID 67].
57037         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57038                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57039                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57040
57041 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57042
57043         * gnulib-tool (func_exit): New function, to allow to pass the
57044         exit status portably through the trap.  Use everywhere.
57045         (--help, --version): Signal a write error.
57046         (trap): catch SIGPIPE, for write errors.
57047         Exit at the end of the trap, with the correct exit status.
57048
57049 2006-09-19  Karl Berry  <karl@gnu.org>
57050
57051         * doc/gnulib.texi: note about the license texinfo files.
57052
57053 2006-09-19  Eric Blake  <ebb9@byu.net>
57054
57055         * gnulib-tool: Avoid space-tab.
57056
57057 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57058
57059         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57060         that prevented coreutils 6.1 from building.  Problem reported
57061         by Petter Reinholdtsen.
57062
57063 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57064
57065         * gnulib-tool (avoidlist): Fix typo that broke options like
57066         --avoid=lock that are used by coreutils bootstrap.
57067
57068 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57069
57070         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57071         more systematically.
57072
57073 2006-09-18  Jim Meyering  <jim@meyering.net>
57074
57075         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57076
57077 2006-09-18  Bruno Haible  <bruno@clisp.org>
57078
57079         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57080
57081 2006-09-18  Bruno Haible  <bruno@clisp.org>
57082
57083         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57084         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57085         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57086         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57087         * m4/gettext.m4: Require autoconf >= 2.52.
57088         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57089         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57090         of gl_cv_header_inttypes_h.
57091
57092 2006-09-18  Bruno Haible  <bruno@clisp.org>
57093
57094         * lib/javaversion.c: Include configmake.h.
57095
57096 2006-09-18  Bruno Haible  <bruno@clisp.org>
57097
57098         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57099         avoid that the while loops be executed in a subshell.
57100
57101 2006-09-18  Bruno Haible  <bruno@clisp.org>
57102
57103         * MODULES.html.sh (func_module): Break long lines.
57104         Suggested by Bruce Korb <bkorb@gnu.org>.
57105
57106 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57107
57108         Speed up by a factor of 1.12.
57109         * gnulib-tool (nl): New variable.
57110         (func_import): Rewrite include directive extraction to only read each
57111         directive once.
57112
57113 2006-09-17  Bruno Haible  <bruno@clisp.org>
57114
57115         * modules/javaversion (Makefile.am): Remove DEFS setting.
57116         (Depends-on): Add configmake, for PKGDATADIR definition.
57117
57118 2006-09-17  Bruno Haible  <bruno@clisp.org>
57119
57120         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57121
57122 2006-09-17  Bruno Haible  <bruno@clisp.org>
57123
57124         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57125         (func_modules_transitive_closure, func_modules_add_dummy,
57126         func_modules_to_filelist, func_import, func_create_testdir,
57127         func_create_megatestdir, ...): Use it wherever possible.
57128         Suggested by Ralf Wildenhues.
57129
57130 2006-09-16  Karl Berry  <karl@gnu.org>
57131
57132         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57133         to avoid sectioning errors.
57134         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57135         [ifinfo]: blank line after @center-ed titles.
57136         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57137         Spell FSF address consistently with others.
57138         (These changes approved by rms.)
57139
57140 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57141
57142         Speed up by a factor of 1.61.
57143         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57144         already checked module names again.
57145
57146 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57147
57148         Speed up by a factor of 1.13.
57149         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57150         for new_files, and the input to func_add_or_update.
57151
57152 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57153
57154         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57155         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57156
57157 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57158
57159         * modules/mkancesdirs (Depends-on): Add fcntl.
57160         * modules/savewd: New file.
57161         * MODULES.html.sh (File system functions): Add savewd.
57162
57163         * modules/configmake (Makefile.am): Add support for the
57164         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57165
57166 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57167
57168         * m4/savewd.m4: New file.
57169
57170 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57171
57172         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57173         (dirchownmod): New arg FD.  All callers changed.
57174         Use FD rather than opening the directory ourself, as opening is
57175         now the caller's responsibility.
57176         * lib/dirchownmod.h: Likewise.
57177         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57178         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57179         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57180         (test_dir): Remove.
57181         (mkancesdirs): Return length of prefix of FILE that has already
57182         been made, or -2 if there is a child doing the work.  Redo
57183         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57184         ".", and treat ".." specially since it might stray back into
57185         already-created areas.  Use a subprocess if necessary.  New arg
57186         WD; all users changed.  MAKE_DIR function should now return 1
57187         if it creates a directory that is not readable.  Return -2 if
57188         a child process is spun off.
57189         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57190         Adjust signature to match code.
57191         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57192         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57193         all users changed.
57194         * lib/savewd.c, lib/savewd.h: New files.
57195
57196 2006-09-15  Jim Meyering  <jim@meyering.net>
57197
57198         * modules/rename-dest-slash: New module.
57199         * MODULES.html.sh (posix_compat): Add it here.
57200
57201         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57202
57203 2006-09-15  Jim Meyering  <jim@meyering.net>
57204
57205         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57206         file.
57207
57208         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57209
57210 2006-09-15  Jim Meyering  <jim@meyering.net>
57211
57212         * lib/rename-dest-slash.c (has_trailing_slash): Use
57213         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57214         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57215         test before testing whether SRC is a directory.
57216         Suggestions from Bruno Haible.
57217
57218         Avoid a warning about an unused variable.
57219         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57220         into the #ifdef block where it's used.
57221
57222         * lib/rename-dest-slash.c: New file.
57223
57224 2006-09-14  Bruno Haible  <bruno@clisp.org>
57225
57226         * lib/allocsa.c: Include <config.h> unconditionally.
57227         * lib/asnprintf.c: Likewise.
57228         * lib/asprintf.c: Likewise.
57229         * lib/c-strcasecmp.c: Likewise.
57230         * lib/c-strcasestr.c: Likewise.
57231         * lib/c-strncasecmp.c: Likewise.
57232         * lib/c-strstr.c: Likewise.
57233         * lib/classpath.c: Likewise.
57234         * lib/clean-temp.c: Likewise.
57235         * lib/concatpath.c: Likewise.
57236         * lib/copy-file.c: Likewise.
57237         * lib/csharpcomp.c: Likewise.
57238         * lib/csharpexec.c: Likewise.
57239         * lib/execute.c: Likewise.
57240         * lib/fatal-signal.c: Likewise.
57241         * lib/findprog.c: Likewise.
57242         * lib/fwriteerror.c: Likewise.
57243         * lib/gl_array_list.c: Likewise.
57244         * lib/gl_array_oset.c: Likewise.
57245         * lib/gl_avltree_list.c: Likewise.
57246         * lib/gl_avltree_oset.c: Likewise.
57247         * lib/gl_avltreehash_list.c: Likewise.
57248         * lib/gl_carray_list.c: Likewise.
57249         * lib/gl_linked_list.c: Likewise.
57250         * lib/gl_linkedhash_list.c: Likewise.
57251         * lib/gl_list.c: Likewise.
57252         * lib/gl_oset.c: Likewise.
57253         * lib/gl_rbtree_list.c: Likewise.
57254         * lib/gl_rbtree_oset.c: Likewise.
57255         * lib/gl_rbtreehash_list.c: Likewise.
57256         * lib/imaxabs.c: Likewise.
57257         * lib/imaxdiv.c: Likewise.
57258         * lib/javacomp.c: Likewise.
57259         * lib/javaexec.c: Likewise.
57260         * lib/javaversion.c: Likewise.
57261         * lib/linebreak.c: Likewise.
57262         * lib/localcharset.c: Likewise.
57263         * lib/lock.c: Likewise.
57264         * lib/mbchar.c: Likewise.
57265         * lib/mbswidth.c: Likewise.
57266         * lib/mkdtemp.c: Likewise.
57267         * lib/pipe.c: Likewise.
57268         * lib/printf-args.c: Likewise.
57269         * lib/printf-parse.c: Likewise.
57270         * lib/progname.c: Likewise.
57271         * lib/progreloc.c: Likewise.
57272         * lib/readlink.c: Likewise.
57273         * lib/sh-quote.c: Likewise.
57274         * lib/stpcpy.c: Likewise.
57275         * lib/stpncpy.c: Likewise.
57276         * lib/strcasecmp.c: Likewise.
57277         * lib/strcasestr.c: Likewise.
57278         * lib/strcspn.c: Likewise.
57279         * lib/striconv.c: Likewise.
57280         * lib/strncasecmp.c: Likewise.
57281         * lib/strnlen1.c: Likewise.
57282         * lib/strstr.c: Likewise.
57283         * lib/strtok_r.c: Likewise.
57284         * lib/tls.c: Likewise.
57285         * lib/tmpdir.c: Likewise.
57286         * lib/unicodeio.c: Likewise.
57287         * lib/unsetenv.c: Likewise.
57288         * lib/vasnprintf.c: Likewise.
57289         * lib/vasprintf.c: Likewise.
57290         * lib/wait-process.c: Likewise.
57291         * lib/xallocsa.c: Likewise.
57292         * lib/xsetenv.c: Likewise.
57293         * lib/xstriconv.c: Likewise.
57294
57295 2006-09-13  Simon Josefsson  <jas@extundo.com>
57296
57297         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
57298         that internally, suggested by Ralf Wildenhues
57299         <Ralf.Wildenhues@gmx.de>.
57300
57301 2006-09-13  Simon Josefsson  <jas@extundo.com>
57302
57303         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
57304         @LIBOBJS@.
57305         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57306
57307 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57308
57309         * lib/_fpending.c: Include <config.h> unconditionally, since we no
57310         longer worry about uses that don't define HAVE_CONFIG_H.
57311         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
57312         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
57313         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
57314         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
57315         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
57316         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
57317         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
57318         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
57319         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
57320         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
57321         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
57322         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
57323         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
57324         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
57325         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
57326         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
57327         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
57328         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
57329         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
57330         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
57331         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
57332         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
57333         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
57334         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
57335         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
57336         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
57337         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
57338         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
57339         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
57340         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
57341         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
57342         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
57343         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
57344         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
57345         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
57346         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
57347         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
57348         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
57349         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
57350         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
57351         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
57352         Likewise.
57353
57354 2006-09-13  Eric Blake  <ebb9@byu.net>
57355
57356         * lib/getopt.c: Fix typo in last commit.
57357
57358 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57359
57360         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
57361         dgettext.
57362
57363 2006-09-12  Jim Meyering  <jim@meyering.net>
57364
57365         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
57366         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
57367         Reported by Nelson H. F. Beebe.
57368
57369 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57370
57371         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
57372         program_invocation_name and program_invocation_short_name are
57373         initialized.
57374         * lib/argp-namefrob.h: Move declarations of program_invocation_name
57375         and program_invocation_short_name to argp.h, so they are visible
57376         to user programs.
57377         * lib/argp.h: Likewise
57378
57379 2006-09-10  Bruno Haible  <bruno@clisp.org>
57380
57381         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57382         m4/inttypes_h.m4, m4/uintmax_t.m4.
57383
57384 2006-09-10  Bruno Haible  <bruno@clisp.org>
57385
57386         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
57387         gl_AC_TYPE_UINTMAX_T.
57388
57389 2006-09-10  Bruno Haible  <bruno@clisp.org>
57390
57391         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
57392
57393 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57394
57395         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
57396         convention.  Text proposed by Bruno Haible.
57397         (struct argp_option): Document the use of N_() wrappers.
57398
57399         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
57400         '\v', and translate the two parts separately, instead of feeding
57401         the whole string to gettext.  This allows to exclude
57402         '\v' from the strings visible to the translator by writing doc
57403         strings as N_("..") "\v" N_("..").
57404
57405 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
57406
57407         * config/srclist.txt: Undo latest change; the bug was fixed.
57408
57409 2006-09-09  Bruno Haible  <bruno@clisp.org>
57410
57411         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
57412         assignments if building a library without libtool.
57413         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
57414         in func_emit_lib_Makefile_am.
57415         (func_import): When building a static library libfoo.a, arrange to
57416         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
57417         (func_create_testdir): Likewise.
57418         * modules/gc (configure.ac, Makefile.am): If building statically,
57419         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
57420         * modules/iconvme (configure.ac, Makefile.am): Likewise.
57421         * modules/striconv (configure.ac, Makefile.am): Likewise.
57422         Based on a suggestion by Ralf Wildenhues.
57423
57424 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57425
57426         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57427         Check for unistd.h too, since Autoconf doesn't assume POSIX.
57428         Also:
57429
57430         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57431         Add year_2050_test to catch glibc bug 2821
57432         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57433
57434         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57435         Prefer #ifdef to #if.
57436
57437         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
57438         Return from 'main' instead of calling 'exit'.
57439
57440 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57441
57442         * lib/mktime.c (guess_time_tm): Fix bug where mktime
57443         returned the maximum time_t value rather than (time_t) -1.
57444         Problem originally reported by William Bardwell
57445         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57446
57447         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57448         Moved to here ...
57449         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57450         ... from here.
57451
57452 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57453
57454         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
57455         2821 is fixed.
57456
57457 2006-09-08  Jim Meyering  <jim@meyering.net>
57458
57459         Don't make generated files read-only.  That would bother too many
57460         people.  However, do retain the ability to work when targets are
57461         read-only: remove the destination and temporary files before writing
57462         them (when generated via sed or echo), or by using the -f option for
57463         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
57464         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57465         * modules/byteswap, modules/configmake, modules/fcntl:
57466         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57467         * modules/localcharset, modules/netinet_in, modules/poll:
57468         * modules/stdbool, modules/stdint, modules/sys_select:
57469         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57470
57471 2006-09-08  Jim Meyering  <jim@meyering.net>
57472
57473         Avoid new build failure on FreeBSD 6.0.
57474         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
57475         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
57476         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
57477
57478 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57479
57480         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
57481
57482 2006-09-07  Jim Meyering  <jim@meyering.net>
57483
57484         Fix global typo in last change: use chmod u-w, not chmod u-x.
57485         Spotted by Paul Eggert and Bruce Korb.
57486         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57487         * modules/byteswap, modules/configmake, modules/fcntl:
57488         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57489         * modules/localcharset, modules/netinet_in, modules/poll:
57490         * modules/stdbool, modules/stdint, modules/sys_select:
57491         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57492
57493 2006-09-06  Jim Meyering  <jim@meyering.net>
57494
57495         Make generated files be read-only.
57496         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
57497         Ensure that each generated file is now read-only.
57498         * modules/argz: Likewise.
57499         * modules/arpa_inet: Likewise.
57500         * modules/byteswap: Likewise.
57501         * modules/configmake: Likewise.
57502         * modules/fcntl: Likewise.
57503         * modules/fnmatch: Likewise.
57504         * modules/getopt: Likewise.
57505         * modules/glob: Likewise.
57506         * modules/inttypes: Likewise.
57507         * modules/netinet_in: Likewise.
57508         * modules/poll: Likewise.
57509         * modules/stdbool: Likewise.
57510         * modules/stdint: Likewise.
57511         * modules/sys_select: Likewise.
57512         * modules/sys_socket: Likewise.
57513         * modules/sys_stat: Likewise.
57514         * modules/sysexits: Likewise.
57515         * modules/localcharset: Same as above, but continue using temporary
57516         file named "t-$@" (why different?) rather than the "$@-t" used
57517         everywhere else.
57518
57519         * modules/sysexits (Makefile.am): Replace literal occurrences
57520         of "sysexit.h" more readable, and more consistent, "$@".
57521
57522 2006-09-06  Bruno Haible  <bruno@clisp.org>
57523
57524         * modules/striconv: New file.
57525         * modules/xstriconv: New file.
57526         * MODULES.html.sh (Internationalization functions): Add striconv,
57527         xstriconv.
57528
57529 2006-09-06  Bruno Haible  <bruno@clisp.org>
57530
57531         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
57532         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
57533         not using libtool correctly.
57534
57535 2006-09-06  Bruno Haible  <bruno@clisp.org>
57536
57537         * lib/striconv.h: New file.
57538         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
57539         iconvstring.c.
57540         * lib/xstriconv.h: New file.
57541         * lib/xstriconv.c: New file.
57542
57543 2006-09-06  Bruno Haible  <bruno@clisp.org>
57544
57545         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57546         lib_..._LDFLAGS.
57547
57548 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57549
57550         * lib/argz_.h: Sync from Libtool.
57551
57552         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
57553                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57554
57555         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
57556
57557 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57558
57559         * modules/trim: New file.
57560
57561 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57562
57563         * lib/trim.h: New file.
57564         * lib/trim.c: New file.
57565
57566 2006-09-05  Bruno Haible  <bruno@clisp.org>
57567
57568         * MODULES.html.sh (String handling): Add trim.
57569
57570 2006-09-04  Karl Berry  <karl@gnu.org>
57571
57572         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57573         until next release.
57574
57575 2006-09-03  Bruno Haible  <bruno@clisp.org>
57576
57577         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57578         correctly.
57579
57580 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57581
57582         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57583         not gl_GETLOADAVG.  Omit unneeded semicolons.
57584         Problems reported by Ralf Wildenhues in
57585         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57586         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57587         at the end, which is the usual gnulib style.
57588
57589         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57590         of doing all the work ourselves.
57591         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57592         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57593
57594 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57595
57596         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57597         Problem reported by Ralf Wildenhues in
57598         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57599
57600         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57601         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57602
57603 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57604
57605         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57606         yesterday's patch by changing test -n to test -z.
57607
57608 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57609
57610         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57611         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57612         the former is now obsolescent.
57613
57614         * modules/chdir-long (Depends-on): Add fcntl.
57615
57616 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57617
57618         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57619         obsolescent, and programs should use gnulib instead.
57620         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57621         but with prefixes changed.
57622
57623 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57624
57625         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57626         or stdbool.h, because they might not exist while configuring.
57627
57628         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57629         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57630         does that for us.
57631         (O_DIRECTORY): Remove.
57632
57633 2006-08-31  Eric Blake  <ebb9@byu.net>
57634
57635         * gnulib-tool: Don't let emacs change spaces to TAB.
57636
57637 2006-08-31  Bruno Haible  <bruno@clisp.org>
57638
57639         * gnulib-tool: When calling func_import more than once, do it in a
57640         subshell.
57641         Reported by Eric Blake <ebb9@byu.net>.
57642
57643 2006-08-31  Bruno Haible  <bruno@clisp.org>
57644
57645         * gnulib-tool (nl): Remove variable.
57646         (sed_transform_lib_file): Use more robust test for config-h module.
57647         (func_import): Fix typo in 2006-08-25 patch.
57648
57649 2006-08-31  Bruno Haible  <bruno@clisp.org>
57650
57651         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57652         specified, augment Makefile.am variables instead of assigning them.
57653
57654 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57655
57656         Work around a bug in both the Linux and SunOS 64-bit kernels:
57657         nanosleep mishandles sleeps for longer than 2**31 seconds.
57658         Problem reported by Frank v Waveren in
57659         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57661         Check for nanosleep bug.
57662         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57663
57664 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57665
57666         Work around a bug in both the Linux and SunOS 64-bit kernels:
57667         nanosleep mishandles sleeps for longer than 2**31 seconds.
57668         Problem reported by Frank v Waveren in
57669         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57670         * lib/nanosleep.c (BILLION): New constant.
57671         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57672         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57673         implementation.
57674
57675 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57676
57677         * modules/nanosleep (Depends-on): Add gettime.
57678
57679 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57680         and Simon Josefsson  <jas@extundo.com>
57681         and Oskar Liljeblad  <oskar@osk.mine.nu>
57682
57683         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57684         * gnulib-tool (func_import): New license type 'unmodifiable license
57685         text'.
57686         * modules/fdl: Use it.  Longer description.
57687         * module/gpl, module/lgpl: New files.
57688
57689 2006-08-30  Jim Meyering  <jim@meyering.net>
57690
57691         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57692         shadowing the parameter.
57693
57694 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57695
57696         Sync from Libtool:
57697
57698         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57699
57700         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57701         sharing with gnulib.  Report by Eric Blake.
57702
57703 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57704
57705         * modules/isapipe: New file.
57706         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57707
57708 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57709
57710         * modules/configmake (Makefile.am): Add a comment, and omit
57711         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57712         by Bruno Haible.
57713
57714 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57715
57716         * m4/isapipe.m4: New file.
57717
57718 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57719
57720         * lib/isapipe.c, lib/isapipe.h: New files.
57721
57722 2006-08-29  Jim Meyering  <jim@meyering.net>
57723
57724         * modules/configmake (Makefile.am): Make configmake.h depend on
57725         Makefile.  Otherwise, a stale configmake.h could hang around.
57726
57727 2006-08-29  Eric Blake  <ebb9@byu.net>
57728
57729         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57730         resolution of upstream bug 3044.
57731
57732 2006-08-29  Bruno Haible  <bruno@clisp.org>
57733
57734         * modules/localcharset (Depends-on): Add configmake.
57735         (Makefile.am): Remove setting of LIBDIR through DEFS.
57736
57737 2006-08-29  Bruno Haible  <bruno@clisp.org>
57738
57739         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57740         defined.
57741
57742 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57743
57744         * modules/fcntl: New file.
57745         * modules/chdir-safer (Depends-on): Add fcntl.
57746         * modules/fts: Likewise.
57747         * modules/mkdir-p: Likewise.
57748
57749         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57750         This undoes the most recent change, since we're now addressing the
57751         problem in a different way.
57752
57753         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57754         into output, since the output might be called Makefile.am even
57755         if $makefile_name is something different.
57756         (func_import): Use $makefile_am rather than
57757         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57758         empty.
57759
57760         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57761
57762 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57763
57764         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57765         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57766         recent change to stdint.m4, since we're now addressing the problem in a
57767         different way.
57768
57769 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57770
57771         * m4/fcntl_h.m4: New file.
57772
57773 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57774
57775         * lib/fcntl_.h: New file.
57776         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57777         the fcntl module.
57778         * lib/dirchownmod.c: Likewise.
57779         * lib/fts.c: Likewise.
57780
57781         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57782         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57783         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57784         just before including <inttypes.h>, to avoid circular inclusion.
57785
57786 2006-08-28  Jim Meyering  <jim@meyering.net>
57787
57788         * doc/visibility.texi: Actually read and correct the grammar of the
57789         sentence affected by yesterday's change.
57790
57791 2006-08-28  Eric Blake  <ebb9@byu.net>
57792
57793         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57794         needs wrapper.
57795
57796 2006-08-28  Eric Blake  <ebb9@byu.net>
57797
57798         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57799
57800 2006-08-28  Eric Blake  <ebb9@byu.net>
57801
57802         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57803
57804 2006-08-28  Bruno Haible  <bruno@clisp.org>
57805
57806         * modules/c-strstr: New file, from GNU gettext.
57807         * MODULES.html.sh (String handling): Add c-strstr.
57808
57809 2006-08-28  Bruno Haible  <bruno@clisp.org>
57810
57811         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57812         macros.
57813         Reported by Eric Blake.
57814
57815 2006-08-28  Bruno Haible  <bruno@clisp.org>
57816
57817         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57818         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57819         * lib/vasprintf.c: Include errno.h, limits.h.
57820         (EOVERFLOW): New fallback definition.
57821         (vasprintf): Test here whether the string length is > INT_MAX.
57822         * lib/vsnprintf.c: Include errno.h, limits.h.
57823         (EOVERFLOW): New fallback definition.
57824         (vsnprintf): Fix bug when generated string was too long for the buffer.
57825         Test here whether the string length is > INT_MAX.
57826
57827 2006-08-28  Bruno Haible  <bruno@clisp.org>
57828
57829         * lib/inttypes_.h (SCNX*): Remove definitions.
57830         Reported by Eric Blake.
57831
57832 2006-08-28  Bruno Haible  <bruno@clisp.org>
57833
57834         * lib/c-strstr.h: New file, from GNU gettext.
57835         * lib/c-strstr.c: New file, from GNU gettext.
57836
57837 2006-08-28  Bruno Haible  <bruno@clisp.org>
57838
57839         * gnulib-tool: Reorder some statements.
57840
57841 2006-08-28  Bruno Haible  <bruno@clisp.org>
57842
57843         * gnulib-tool: New option --makefile-name.
57844         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57845         $makefile_name.
57846         (func_import): Write $makefile_name to the cache file, and read it from
57847         there unless explicitly specified. Use $makefile_name as file name
57848         instead of Makefile.am. Adjust the recommendations accordingly.
57849
57850 2006-08-28  Bruno Haible  <bruno@clisp.org>
57851
57852         * gnulib-tool (func_verify_module): Check against misapplying patch.
57853
57854 2006-08-28  Bruno Haible  <bruno@clisp.org>
57855
57856         * gnulib-tool (func_relativize, func_relconcat): New functions.
57857         Give an error if --local-dir is given with --update.
57858         Remove trailing slashes from $local_gnulib_dir.
57859         (func_import): Store the relativized $local_gnulib_dir in
57860         gnulib-cache.m4, and read it from there if not specified explicitly.
57861
57862 2006-08-28  Bruno Haible  <bruno@clisp.org>
57863
57864         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57865         is the current directory. Respect also $local_gnulib_dir.
57866
57867 2006-08-28  Bruno Haible  <bruno@clisp.org>
57868             Simon Josefsson  <jas@extundo.com>
57869
57870         BeOS portability.
57871         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57872
57873 2006-08-27  Jim Meyering  <jim@meyering.net>
57874
57875         * doc/visibility.texi: Remove duplicate word: "pointer".
57876
57877 2006-08-26  Bruno Haible  <bruno@clisp.org>
57878
57879         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57880         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57881         (Makefile.am): Create inttypes.h from inttypes_.h.
57882         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57883
57884         * modules/imaxabs: New file.
57885
57886         * modules/imaxdiv: New file.
57887
57888 2006-08-26  Bruno Haible  <bruno@clisp.org>
57889
57890         * m4/inttypes.m4: New file.
57891         * m4/_inttypes_h.m4: Remove file.
57892         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57893         PRI_MACROS_BROKEN.
57894         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57895
57896         * m4/imaxabs.m4: New file.
57897
57898         * m4/imaxdiv.m4: New file.
57899
57900 2006-08-26  Bruno Haible  <bruno@clisp.org>
57901
57902         * lib/inttypes_.h: New file.
57903         * lib/inttypes.h: Remove file.
57904         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57905
57906         * lib/imaxabs.c: New file.
57907
57908         * lib/imaxdiv.c: New file.
57909
57910 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57911
57912         New config-h module, so that "make" output needn't be cluttered
57913         by -DHAVE_CONFIG_H.
57914         * MODULES.html.sh (Support for building libraries and executables):
57915         Add config-h.
57916         * modules/config-h: New file.
57917         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57918         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57919         the config-h module is used.
57920
57921         New configmake module, so that "make" output needn't be cluttered
57922         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57923         * MODULES.html.sh (Support for building libraries and executables):
57924         Add configmake.
57925         * modules/configmake: New file.
57926
57927 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57928
57929         * m4/config-h.m4: New file.
57930
57931 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57932
57933         * config/srclist.txt: Add elisp-comp.
57934
57935 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57936
57937         * MODULES.html.sh (Support for building libraries and executables):
57938         Add elisp-comp.
57939         * build-aux/elisp-comp: New file.
57940         * modules/elisp-comp: New file.
57941
57942 2006-08-24  Bruno Haible  <bruno@clisp.org>
57943
57944         * gnulib-tool (func_create_testdir): Use non-default values of
57945         sourcebase and m4base.
57946
57947 2006-08-24  Bruno Haible  <bruno@clisp.org>
57948
57949         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57950         HTML structure.
57951
57952 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         * modules/openat (Depends-on): Add lchown.
57955
57956 2006-08-23  Bruno Haible  <bruno@clisp.org>
57957
57958         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57959         of gl_LOCK_EARLY instead of gl_LOCK.
57960
57961 2006-08-23  Bruno Haible  <bruno@clisp.org>
57962
57963         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57964         on OSF/1 to no.
57965         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57966
57967 2006-08-23  Bruno Haible  <bruno@clisp.org>
57968
57969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57970         as unusable.
57971
57972         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57973         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57974         (gl_LOCK): New macro.
57975
57976 2006-08-22  Simon Josefsson  <jas@extundo.com>
57977
57978         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57979         to md5 module.
57980
57981 2006-08-22  Simon Josefsson  <jas@extundo.com>
57982
57983         * MODULES.html.sh: Add "Support for maintaining and release
57984         projects".
57985
57986         * build-aux/gnupload: New file, from coreutils.
57987
57988 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57989
57990         Avoid the need for AC_LIBSOURCES in m4 macros.
57991         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57992         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57993         * modules/check-version (EXTRA_DIST): Add check-version.h.
57994         * modules/crc (EXTRA_DIST): Add crc.h.
57995         * modules/des (EXTRA_DIST): Add des.h.
57996         * modules/gc (EXTRA_DIST): Add gc.h.
57997         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57998         * modules/getline (EXTRA_DIST): Add getline.h.
57999         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58000         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58001         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58002         * modules/md2 (EXTRA_DIST): Add md2.h.
58003         * modules/md4 (EXTRA_DIST): Add md4.h.
58004         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58005         * modules/read-file (EXTRA_DIST): Add read-file.h.
58006         * modules/readline (EXTRA_DIST): Add readline.h.
58007         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58008         rijndael-api-fst.h.
58009
58010 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58011
58012         * m4/rijndael.m4 (gl_ARCFOUR):
58013         * m4/arctwo.m4 (gl_ARCTWO):
58014         * m4/check-version.m4 (gl_CHECK_VERSION):
58015         * m4/crc.m4 (gl_CRC):
58016         * m4/des.m4 (gl_DES):
58017         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58018         * m4/gc.m4 (gl_GC):
58019         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58020         * m4/getline.m4 (gl_FUNC_GETLINE):
58021         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58022         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58023         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58024         * m4/md2.m4 (gl_MD2):
58025         * m4/md4.m4 (gl_MD4):
58026         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58027         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58028         * m4/readline.m4 (gl_FUNC_READLINE):
58029         * m4/rijndael.m4 (gl_RIJNDAEL):
58030         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58031         to get the necessary .h files and whatnot.
58032
58033 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58034
58035         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58036         gnulib rather than the other way around.
58037         * config/srclistvars.sh (COREUTILS): Remove.
58038
58039 2006-08-22  Jim Meyering  <jim@meyering.net>
58040
58041         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58042
58043         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58044
58045 2006-08-22  Eric Blake  <ebb9@byu.net>
58046
58047         * modules/regexprops-generic: New file.
58048         * MODULES.html.sh (Support for building documentation): List it.
58049
58050 2006-08-22  Eric Blake  <ebb9@byu.net>
58051
58052         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58053         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58054         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58055         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58056
58057 2006-08-22  Bruno Haible  <bruno@clisp.org>
58058
58059         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58060         and lib_LTLIBRARIES like the other lib_* variables.
58061
58062 2006-08-22  Bruno Haible  <bruno@clisp.org>
58063
58064         * build-aux/x-to-1.in: New file, from GNU gettext.
58065
58066 2006-08-22  Bruno Haible  <bruno@clisp.org>
58067
58068         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58069         <utmpx.h> exists.
58070
58071 2006-08-22  Bruno Haible  <bruno@clisp.org>
58072
58073         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58074         <utmpx.h> exists.
58075
58076 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         BeOS portability.
58079         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58080         exist.
58081         Problem reported by Bruno Haible.
58082
58083 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58084
58085         Avoid the need for AC_LIBSOURCES in m4 macros.
58086         * modules/acl (EXTRA_DIST): Add acl.h.
58087         * modules/argmatch (Files): Add m4/argmatch.m4.
58088         (configure.ac): Add gl_ARGMATCH.
58089         (EXTRA_DIST): Renamed from lib_SOURCES, for
58090         consistency with the other modules.  Remove argmatch.c.
58091         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58092         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58093         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58094         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58095         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58096         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58097         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58098         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58099         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58100         * modules/closeout (EXTRA_DIST): Add closeout.h.
58101         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58102         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58103         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58104         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58105         dirname.h; remove basename.c and stripslash.c.
58106         * modules/exclude (EXTRA_DIST): Add exclude.h.
58107         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58108         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58109         * modules/file-type (EXTRA_DIST): Add file-type.h.
58110         * modules/filemode (EXTRA_DIST): Add filemode.h.
58111         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58112         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58113         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58114         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58115         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58116         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58117         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58118         * modules/getdate (EXTRA_DIST): Add getdate.c.
58119         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58120         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58121         * modules/getpass (EXTRA_DIST): Add getpass.h.
58122         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58123         * modules/group-member (EXTRA_DIST): Add group-member.h.
58124         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58125         * modules/hash (EXTRA_DIST): Add hash.h.
58126         * modules/human (EXTRA_DIST): Add human.h.
58127         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58128         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58129         * modules/lchown (EXTRA_DIST): Add lchown.h.
58130         * modules/long-options (EXTRA_DIST): Add long-options.h.
58131         * modules/lstat (EXTRA_DIST): Add lstat.h.
58132         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58133         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58134         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58135         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58136         * modules/memxor (EXTRA_DIST): Add memxor.h.
58137         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58138         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58139         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58140         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58141         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58142         * modules/physmem (EXTRA_DIST): Add physmem.h.
58143         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58144         * modules/posixver (EXTRA_DIST): Add posixver.h.
58145         * modules/quote (EXTRA_DIST): Add quote.h.
58146         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58147         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58148         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58149         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58150         regex_internal.h regexec.c.
58151         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58152         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58153         * modules/same (EXTRA_DIST): Add same.h.
58154         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58155         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58156         * modules/savedir (EXTRA_DIST): Add savedir.h.
58157         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58158         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58159         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58160         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58161         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58162         * modules/strdup (EXTRA_DIST): Add strdup.h.
58163         * modules/strftime (EXTRA_DIST): Add strftime.h.
58164         * modules/strndup (EXTRA_DIST): Add strndup.h.
58165         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58166         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58167         * modules/time_r (EXTRA_DIST): Add time_r.h.
58168         * modules/timespec (EXTRA_DIST): Add timespec.h.
58169         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58170         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58171         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58172         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58173         * modules/userspec (EXTRA_DIST): Add userspec.h.
58174         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58175         * modules/utimens (EXTRA_DIST): Add utimens.h.
58176         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58177         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58178         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58179         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58180         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58181         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58182         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58183         * modules/yesno (EXTRA_DIST): Add yesno.h.
58184
58185 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58186
58187         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58188
58189         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58190         * m4/dev-ino.m4, same-inode.m4: Remove.
58191
58192         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58193         * m4/acl.m4 (AC_FUNC_ACL):
58194         * m4/backupfile.m4 (gl_BACKUPFILE):
58195         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58196         * m4/canon-host.m4 (gl_CANON_HOST):
58197         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58198         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58199         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58200         * m4/cloexec.m4 (gl_CLOEXEC):
58201         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58202         * m4/closeout.m4 (gl_CLOSEOUT):
58203         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58204         * m4/dirname.m4 (gl_DIRNAME):
58205         * m4/exclude.m4 (gl_EXCLUDE):
58206         * m4/exitfail.m4 (gl_EXITFAIL):
58207         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58208         * m4/file-type.m4 (gl_FILE_TYPE):
58209         * m4/filemode.m4 (gl_FILEMODE):
58210         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58211         * m4/fpending.m4 (gl_FUNC_FPENDING):
58212         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58213         * m4/fts.m4 (gl_FUNC_FTS):
58214         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58215         * m4/getdate.m4 (gl_GETDATE):
58216         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58217         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58218         * m4/getpass.m4 (gl_FUNC_GETPASS):
58219         * m4/gettime.m4 (gl_GETTIME):
58220         * m4/getugroups.m4 (gl_GETUGROUPS):
58221         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
58222         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
58223         * m4/hard-locale.m4 (gl_HARD_LOCALE):
58224         * m4/hash.m4 (gl_HASH):
58225         * m4/idcache.m4 (gl_IDCACHE):
58226         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
58227         * m4/lchown.m4 (gl_FUNC_LCHOWN):
58228         * m4/long-options.m4 (gl_LONG_OPTIONS):
58229         * m4/lstat.m4 (gl_FUNC_LSTAT):
58230         * m4/md5.m4 (gl_MD5):
58231         * m4/memcasecmp.m4 (gl_MEMCASECMP):
58232         * m4/memcoll.m4 (gl_MEMCOLL):
58233         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
58234         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
58235         * m4/memxor.m4 (gl_MEMXOR):
58236         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
58237         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
58238         * m4/modechange.m4 (gl_MODECHANGE):
58239         * m4/mountlist.m4 (gl_MOUNTLIST):
58240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58241         * m4/openat.m4 (gl_FUNC_OPENAT):
58242         * m4/pathmax.m4 (gl_PATHMAX):
58243         * m4/physmem.m4 (gl_PHYSMEM):
58244         * m4/posixtm.m4 (gl_POSIXTM):
58245         * m4/posixver.m4 (gl_POSIXVER):
58246         * m4/quote.m4 (gl_QUOTE):
58247         * m4/quotearg.m4 (gl_QUOTEARG):
58248         * m4/readtokens.m4 (gl_READTOKENS):
58249         * m4/readutmp.m4 (gl_READUTMP):
58250         * m4/regex.m4 (gl_REGEX):
58251         * m4/safe-read.m4 (gl_SAFE_READ):
58252         * m4/safe-write.m4 (gl_SAFE_WRITE):
58253         * m4/same.m4 (gl_SAME):
58254         * m4/save-cwd.m4 (gl_SAVE_CWD):
58255         * m4/savedir.m4 (gl_SAVEDIR):
58256         * m4/settime.m4 (gl_SETTIME):
58257         * m4/sha1.m4 (gl_SHA1):
58258         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
58259         * m4/stat-macros.m4 (gl_STAT_MACROS):
58260         * m4/stat-time.m4 (gl_STAT_TIME):
58261         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
58262         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
58263         * m4/strdup.m4 (gl_FUNC_STRDUP):
58264         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
58265         * m4/strndup.m4 (gl_FUNC_STRNDUP):
58266         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
58267         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
58268         * m4/time_r.m4 (gl_TIME_R):
58269         * m4/timespec.m4 (gl_TIMESPEC):
58270         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
58271         * m4/unlinkdir.m4 (gl_UNLINKDIR):
58272         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
58273         * m4/userspec.m4 (gl_USERSPEC):
58274         * m4/utimecmp.m4 (gl_UTIMECMP):
58275         * m4/utimens.m4 (gl_UTIMENS):
58276         * m4/xalloc.m4 (gl_XALLOC):
58277         * m4/xgetcwd.m4 (gl_XGETCWD):
58278         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
58279         * m4/xreadlink.m4 (gl_XREADLINK):
58280         * m4/xstrtod.m4 (gl_XSTRTOD):
58281         * m4/yesno.m4 (gl_YESNO):
58282         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58283         to get the necessary .h files and whatnot.
58284
58285 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
58286             Bruno Haible  <bruno@clisp.org>
58287
58288         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
58289         /bin/sh understanding of '!' conditional negation.
58290
58291 2006-08-21  Jim Meyering  <jim@meyering.net>
58292
58293         * modules/openat (Depends-on): Really alphabetize.
58294
58295         * modules/acl (Depends-on): Add error and quote.
58296
58297         * check-module (find_included_lib_files): Add at-func.c to the
58298         ok-to-include-more-than-once white list.
58299
58300         * modules/openat (Depends-on): Add lstat.  Alphabetize.
58301
58302 2006-08-21  Bruno Haible  <bruno@clisp.org>
58303
58304         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58305         Emit a pkgdata_DATA variable only if some snippets add contents to it.
58306         Reported by Martin Lambers <marlam@marlam.de>.
58307
58308 2006-08-21  Bruno Haible  <bruno@clisp.org>
58309
58310         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
58311         specify an installation location, don't emit a noinst_LIBRARIES or
58312         noinst_LTLIBRARIES assignment.
58313
58314 2006-08-21  Bruno Haible  <bruno@clisp.org>
58315
58316         BeOS portability.
58317         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
58318         BeOS has mbrtowc() but no <wctype.h>.
58319
58320 2006-08-21  Bruno Haible  <bruno@clisp.org>
58321
58322         BeOS portability.
58323         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
58324         exist.
58325
58326 2006-08-21  Bruno Haible  <bruno@clisp.org>
58327
58328         BeOS portability.
58329         * lib/mbchar.h: Include <wctype.h> only if it exists.
58330
58331 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58332
58333         Remove files that are no longer needed by their respective modules.
58334         * m4/obstack.m4: Remove.
58335         * m4/strerror_r.m4: Remove.
58336         * m4/uint32_t.m4: Remove.
58337         * m4/uintptr_t.m4: Remove.
58338         * m4/ullong_max.m4: Remove.
58339         * m4/xstrtoimax.m4: Remove.
58340         * m4/xstrtoumax.m4: Remove.
58341
58342         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
58343         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
58344         dependencies now capture this.
58345
58346         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
58347         Do not use AC_LIBSOURCES, since gnulib modules now do this.
58348         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
58349         * m4/human.m4 (gl_HUMAN): Likewise.
58350         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
58351         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
58352
58353         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
58354
58355         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
58356         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
58357         stdint.
58358         * m4/human.m4 (gl_HUMAN): Likewise.
58359         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
58360         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
58361         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58362         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58363         * m4/xstrtol (gl_XSTRTOL): Likewise.
58364
58365         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
58366         AC_TYPE_LONG_LONG_INT.
58367         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58368         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
58369         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
58370         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58371
58372         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
58373         on stdbool.
58374
58375         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
58376         (gl_PREREQ_XSTRTOUL): Remove.
58377
58378         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
58379
58380         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
58381         mode.
58382
58383 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         Add and change modules to make it easier for coreutils to use
58386         gnulib-tool.
58387         * modules/backupfile (Files): Remove m4/d-ino.m4.
58388         (Depends-on): Add d-ino.
58389         * modules/cycle-check (Depends-on): Add stdint.
58390         (lib_SOURCES): Add cycle-check.h.
58391         * modules/d-ino: New module.
58392         * modules/d-type: New module.
58393         * modules/error (Files): Remove m4/strerror_r.m4.
58394         * modules/filemode (Files): Add m4/st_dm_mode.m4.
58395         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58396         m4/inttypes_h.m4, m4/uintmax_t.m4.
58397         (Depends-on): Add stdint.
58398         (lib_SOURCES): Add fsusage.h.
58399         * modules/getcwd (Files): Remove d-ino.m4.
58400         (Depends-on): Add d-ino.
58401         * modules/getndelim2 (Depends-on): Add stdint.
58402         * modules/glob (Files): Remove m4/d-type.m4.
58403         (Depends-on): Add d-type.
58404         * modules/host-os: New module.
58405         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
58406         m4/inttypes_h.m4, m4/uintmax_t.m4.
58407         * Depends-on: Add stdint.
58408         (lib_SOURCES): Add human.h.
58409         * modules/inttostr (Files): Remove m4/intmax_t.m4,
58410         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
58411         m4/uintmax_t.m4, m4/ulonglong.m4.
58412         (Depends-on): Add stdint.
58413         (EXTRA_DIST): Add inttostr.h.
58414         * modules/lchmod: New module.
58415         * modules/link-follow: New module.
58416         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
58417         (Depends-on): Add lchmod.
58418         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
58419         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
58420         (Depends-on): Add stdint.
58421         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
58422         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
58423         (Depends-on): Add stdint.
58424         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
58425         * modules/perl: New module.
58426         * modules/regex (Depends-on): Add stdint.
58427         * modules/rmdir-errno: New module.
58428         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58429         m4/intmax_t.m4.
58430         (Depends-on): Add stdint.
58431         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58432         m4/uintmax_t.m4.
58433         (Depends-on): Add stdint.
58434         * modules/unlink-busy: New module.
58435         * modules/utimecmp (Depends-on): Add stdint.
58436         * modules/uptime: New module.
58437         * modules/winsz-ioctl: New module.
58438         * modules/winsz-termios: New module.
58439         * modules/xnanosleep (Depends-on): Add nanosleep.
58440         * modules/ullong_max: Remove.
58441         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
58442         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
58443         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
58444         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
58445         (Depends-on): Add inttypes.
58446         (lib_SOURCES): Add xstrtol.h.
58447         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
58448         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
58449         * MODULES.html.sh: Move 'assert' into the assert section.
58450         Move 'dummy' into the linking section.
58451         Remove ullong_max.
58452         Add section for compatibility checks for POSIX:2001 functions,
58453         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
58454         winsz-ioctl, and winsz-termios into it.
58455         Add lchmod.
58456         Add top-level Misc section and put host-os, perl, and uptime
58457         into it.
58458
58459 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58460
58461         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
58462         now assume the stdint module.  Do not include inttypes.h.
58463         * lib/fsusage.h: Likewise.
58464         * lib/getndelim2.c: Likewise.
58465         * lib/human.h: Likewise.
58466         * lib/inttostr.h: Likewise.
58467         * lib/obstack.c: Likewise.
58468         * lib/regex_internal.h: Likewise.
58469         * lib/tempname.c: Likewise.
58470         * lib/utimecmp.c: Likewise.
58471         * lib/xstrtol.h: Likewise.
58472
58473         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
58474
58475         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
58476         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
58477         * lib/xtime.h: Likewise.
58478
58479 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58480
58481         * modules/openat (Files): Add lib/fchmodat.c.
58482         Fixes problem reported by Jay Youngman.
58483
58484 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58485
58486         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
58487         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
58488
58489 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
58490             Bruno Haible  <bruno@clisp.org>
58491
58492         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
58493         and is a script that invokes bison. Tighten the code. Add comments.
58494
58495 2006-08-18  Jim Meyering  <jim@meyering.net>
58496
58497         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
58498         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
58499         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
58500         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
58501
58502 2006-08-18  Bruno Haible  <bruno@clisp.org>
58503
58504         * modules/bison-i18n: New file.
58505         * MODULES.html.sh (Internationalization functions): Add it.
58506
58507 2006-08-18  Bruno Haible  <bruno@clisp.org>
58508
58509         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
58510         sys/statvfs.h. When getmntinfo was found, check its declaration and
58511         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
58512
58513 2006-08-18  Bruno Haible  <bruno@clisp.org>
58514
58515         * m4/bison-i18n.m4: New file, from bison.
58516
58517 2006-08-18  Bruno Haible  <bruno@clisp.org>
58518
58519         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
58520         (ME_DUMMY): Treat "kernfs" as a dummy.
58521         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
58522
58523 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58524
58525         Update from coreutils.
58526
58527         2006-08-15  Jim Meyering  <jim@meyering.net>
58528
58529         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
58530
58531         2006-01-17  Jim Meyering  <jim@meyering.net>
58532
58533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
58534
58535         2006-01-11  Jim Meyering  <jim@meyering.net>
58536
58537         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
58538         Check for the lchmod function.
58539
58540 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58541
58542         Update from coreutils.
58543
58544         * lib/__fpending.h: Add copyright notice.
58545         * lib/fprintftime.h: Likewise.
58546         * lib/savedir.c: Use (C) in copyright notice.
58547         * lib/savedir.h: Likewise.
58548
58549         2006-08-15  Jim Meyering  <jim@meyering.net>
58550
58551         * lib/at-func.c: New file, with the logic of all emulated at-functions.
58552         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
58553         in support of the EXPECTED_ERRNO macro.
58554         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
58555         definitions.  Instead, define the appropriate symbols and include
58556         "at-func.c".
58557         * lib/mkdirat.c (mkdirat): Likewise.
58558         * lib/fchmodat.c (fchmodat): Likewise.
58559         (ENOSYS): Remove definition.
58560         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58561         it.  Don't include "unistd--.h" -- it wasn't ever used.
58562
58563         2006-01-17  Jim Meyering  <jim@meyering.net>
58564
58565         Rewrite fts.c not to change the current working directory,
58566         by using openat, fstatat, fdopendir, etc..
58567
58568         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58569         (HAVE_OPENAT_SUPPORT): Define.
58570         [_LIBC] (fchdir): Don't undef or define; no longer used.
58571         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58572         Now, this `function' always succeeds, and consumes its file descriptor
58573         parameter -- so callers must not close such FDs.  Update callers.
58574         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58575         (diropen): Add parameter, SP.  Adjust all callers.
58576         Implement using diropen_fd, rather than open.
58577         (fts_open): Initialize new member, fts_cwd_fd.
58578         Remove fts_rft-setting code.
58579         (fts_close): Close fts_cwd_fd, if necessary.
58580         (__opendir2): Define in terms of opendir or opendirat,
58581         depending on whether the FST_NOCHDIR flag is set.
58582         (fts_build): Since fts_safe_changedir consumes its FD, and since
58583         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58584         and close the dup'd file descriptor upon failure.
58585         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58586         (fts_safe_changedir): Tweak semantics to reflect that this function
58587         now calls cwd_advance_fd and hence consumes its FD argument.
58588         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58589         [struct FTS] (fts_rft): Remove now-unused member.
58590         [struct FTS] (fts_cycle.state): Improve comment.
58591
58592         * lib/openat.c (openat_needs_fchdir): New function.
58593         * lib/openat.h (openat_needs_fchdir): Declare it.
58594
58595 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58596
58597         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58598         Problem and fix reported by Pádraig Brady in
58599         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58600
58601 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58604
58605 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         * lib/memcoll.c (memcoll): Optimize for the common case where the
58608         arguments are bytewise equal.
58609
58610 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58611
58612         * doc/regexprops-generic.texi: Add a copyright notice.
58613
58614 2006-08-15  Bruno Haible  <bruno@clisp.org>
58615
58616         * modules/tmpdir (License): Change to LGPL.
58617
58618 2006-08-15  Bruno Haible  <bruno@clisp.org>
58619
58620         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58621         module.
58622
58623 2006-08-14  Simon Josefsson  <jas@extundo.com>
58624
58625         * config/srclist.txt: Add gnupload.
58626
58627 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58628
58629         Change copyright notice from LGPL 2 to GPL 2, since that's the
58630         standard form used in the gnulib repository.
58631         * tests/test-lock.c: Likewise.
58632         * tests/test-stdint.c: Likewise.
58633         * tests/test-tls.c: Likewise.
58634
58635         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58636         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58637         Add copyright notice.
58638
58639         * check-module: Add copyright notice.  Output a copyright
58640         notice if "--version" is specified.
58641         * modules/COPYING: New file.
58642         * tests/test-getaddrinfo.c: Add copyright notice.
58643         * tests/test-verify.c: Likewise.
58644
58645 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58646
58647         Change copyright notice from LGPL 2 to GPL 2, since that's the
58648         standard form used in the gnulib repository.
58649         * lib/lock.c: LGPL -> GPL.
58650         * lib/lock.h: Likewise.
58651         * lib/strnlen1.c: Likewise.
58652         * lib/strnlen1.h: Likewise.
58653         * lib/tls.c: Likewise.
58654         * lib/tls.h: Likewise.
58655         * lib/tmpdir.c: Likewise.
58656
58657         * lib/TODO: Remove; this belongs only in coreutils.
58658
58659 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58660
58661         Add copyright notices to long-enough files that lack them, since
58662         otherwise the files aren't clearly free.  Use the same notice that
58663         getdate.texi already uses.
58664         * doc/alloca-opt.texi: Add copyright notice.
58665         * doc/alloca.texi: Likewise.
58666         * doc/ctime.texi: Likewise.
58667         * doc/functions.texi: Likewise.
58668         * doc/gcd.texi: Likewise.
58669         * doc/gnulib-tool.texi: Likewise.
58670         * doc/inet_ntoa.texi: Likewise.
58671         * doc/visibility.texi: Likewise.
58672
58673         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58674         * doc/quote.texi: Add copyright notice.
58675
58676         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58677         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58678         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58679         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58680         is now obsolete, and give a pointer to the Sun list.
58681         Add copyright notice.
58682
58683 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58684
58685         * config/srclistvars.sh: Add copyright notice.
58686
58687 2006-08-14  Eric Blake  <ebb9@byu.net>
58688
58689         Import the following change from libc:
58690
58691         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58692
58693         Upstream bug 2997.
58694         * lib/misc/error.c: Add space between program name and message if file
58695         name is missing.
58696
58697 2006-08-12  Karl Berry  <karl@gnu.org>
58698
58699         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58700         remove, these originate in gnulib now.
58701
58702 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58703
58704         * doc/Makefile (standards.info standards.html standards.dvi):
58705         Also depend on make-stds.texi.
58706
58707 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58708
58709         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58710         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58711
58712         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58713         in wchar_t.  Problem reported by Eric Blake.
58714
58715         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58716         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58717         Also, help the compiler to keep LEN in a register.
58718
58719 2006-08-11  Eric Blake  <ebb9@byu.net>
58720
58721         * users.txt: Sort.  Add tar.
58722
58723 2006-08-11  Bruno Haible  <bruno@clisp.org>
58724
58725         * users.txt: New file.
58726
58727 2006-08-11  Bruno Haible  <bruno@clisp.org>
58728
58729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58730         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58731
58732 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58733
58734         * modules/snprintf (Depends-on): Remove minmax.
58735         (Maintainer): Add self and Bruno.
58736
58737 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58738
58739         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58740         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58741         (EOVERFLOW): Define if the system does not.
58742         Do not include "minmax.h"; it wasn't used.
58743         (snprintf): Don't assume size_t promotes to an unsigned type.
58744         Fix bug when generated string was too long for the buffer: the
58745         buffer's contents are supposed to be the initial prefix of the
58746         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58747         exceeds INT_MAX; do the check ourselves.
58748
58749         Import the following changes from libc:
58750
58751         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58752
58753         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58754         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58755         set wc to the byte which couldn't be converted.
58756         (re_string_reconstruct): Don't clear valid_raw_len before calling
58757         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58758         tip_context using re_string_context_at.
58759
58760         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58761
58762         * lib/posix/regex.h: g++ still cannot handled [restrict].
58763
58764         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58765
58766         * lib/posix/regex.h: Remove special handling for VMS.
58767
58768 2006-08-10  Jim Meyering  <jim@meyering.net>
58769
58770         * modules/same-inode: New module.
58771         * modules/dev-ino: New module.
58772         * modules/cycle-check: Depend on these modules, rather than simply
58773         including their .h files.
58774         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58775         required via m4/cycle-check.m4.
58776         * modules/same: Depend on new same-inode module, rather than
58777         including same-inode.h.
58778         * modules/chdir-safer: New file.
58779
58780         * modules/chown (Depends-on): Add stat-macros.
58781
58782 2006-08-10  Jim Meyering  <jim@meyering.net>
58783
58784         * m4/cycle-check.m4: New file.
58785         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58786         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58787
58788 2006-08-10  Eric Blake  <ebb9@byu.net>
58789
58790         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58791         in from original proposal.
58792
58793 2006-08-10  Eric Blake  <ebb9@byu.net>
58794         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58795
58796         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58797         namespace.
58798
58799 2006-08-10  Bruno Haible  <bruno@clisp.org>
58800
58801         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58802         as well.
58803
58804 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58805
58806         Sync from coreutils.
58807
58808         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58809
58810         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58811         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58812
58813 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58814
58815         * modules/restrict: Remove; no longer needed now that we assume
58816         Autoconf 2.59 or later.
58817         * MODULES.html.sh: Remove 'restrict'.
58818         * modules/argp (Depends-on): Remove 'restrict'.
58819         * modules/base64 (Depends-on): Likewise.
58820         * modules/gc (Depends-on): Likewise.
58821         * modules/getaddrinfo (Depends-on): Likewise.
58822         * modules/glob (Depends-on): Likewise.
58823         * modules/inet_ntop (Depends-on): Likewise.
58824         * modules/inet_pton (Depends-on): Likewise.
58825         * modules/memxor (Depends-on): Likewise.
58826         * modules/regex (Depends-on): Likewise.
58827         * modules/strtok_r (Depends-on): Likewise.
58828         * modules/time_r (Depends-on): Likewise.
58829
58830 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58831
58832         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58833         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58834         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58835         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58836         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58837         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58838         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58839         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58840
58841         Merge from coreutils.
58842         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58843         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58844         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58845         * m4/time_r.m4 (gl_TIME_R): Likewise.
58846
58847 2006-08-09  Karl Berry  <karl@gnu.org>
58848
58849         * config/srclist.txt: no more gettext-tools, per Bruno.
58850
58851 2006-08-08  Eric Blake  <ebb9@byu.net>
58852
58853         * modules/verror: New module.
58854         * MODULES.html.sh: Document it.
58855
58856 2006-08-08  Eric Blake  <ebb9@byu.net>
58857
58858         * lib/verror.h, lib/verror.c: New files.
58859
58860 2006-08-08  Eric Blake  <ebb9@byu.net>
58861
58862         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58863         verror_at_line output complies with GNU Coding Standards even when
58864         file is NULL.
58865
58866 2006-08-07  Bruno Haible  <bruno@clisp.org>
58867
58868         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58869         versions of AIX.
58870         Reported by Ralf Wildenhues.
58871
58872 2006-08-07  Bruno Haible  <bruno@clisp.org>
58873
58874         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58875         in an AC_DEFUN. Needed so that the autoconf snippets can use
58876         AC_REQUIRE.
58877
58878 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58879
58880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58881         Initialize pkgdata_DATA.
58882         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58883         overriding it.
58884
58885 2006-08-06  Eric Blake  <ebb9@byu.net>
58886
58887         * lib/error.h: Fold in some upstream changes from glibc.
58888         * lib/error.c: Likewise.
58889
58890 2006-08-04  Bruno Haible  <bruno@clisp.org>
58891
58892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58893         Make the mostlyclean-local rule depend on mostlyclean-generic.
58894         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58895
58896 2006-07-31  Bruno Haible  <bruno@clisp.org>
58897
58898         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58899         <stdlib.h>, <string.h>.
58900
58901 2006-07-30  Bruno Haible  <bruno@clisp.org>
58902
58903         * modules/readlink (License): Change to LGPL.
58904
58905 2006-07-30  Bruno Haible  <bruno@clisp.org>
58906
58907         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58908         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58909         set PKGDATADIR to point to it.
58910
58911 2006-07-30  Bruno Haible  <bruno@clisp.org>
58912
58913         * modules/csharpexec (configure.ac): Comment out macro invocation.
58914         * modules/javaexec (configure.ac): Likewise.
58915         * modules/javacomp-script (configure.ac): Likewise.
58916
58917         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58918
58919 2006-07-30  Bruno Haible  <bruno@clisp.org>
58920
58921         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58922         linked-list.
58923
58924 2006-07-30  Bruno Haible  <bruno@clisp.org>
58925
58926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58927
58928 2006-07-30  Bruno Haible  <bruno@clisp.org>
58929
58930         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58931         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58932         get removed.
58933
58934 2006-07-29  Bruno Haible  <bruno@clisp.org>
58935
58936         Make it possible for gnulib-tool to work with locally modified or
58937         augmented gnulib repositories.
58938         * gnulib-tool (func_usage): Document --local-dir option.
58939         (local_gnulib_dir): New variable.
58940         Handle --local-dir option.
58941         (func_lookup_file): New function.
58942         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58943         (func_get_description, func_get_filelist, func_get_description,
58944         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58945         func_get_automake_snippet, func_get_include_directive,
58946         func_get_license, func_get_maintainer): Use func_lookup_file.
58947         (func_import, func_create_testdir): Use func_lookup_file.
58948
58949 2006-07-29  Bruno Haible  <bruno@clisp.org>
58950
58951         * modules/setenv (Depends-on): Add unistd.
58952
58953 2006-07-29  Bruno Haible  <bruno@clisp.org>
58954
58955         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58956
58957 2006-07-29  Bruno Haible  <bruno@clisp.org>
58958
58959         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58960
58961 2006-07-29  Bruno Haible  <bruno@clisp.org>
58962
58963         * gnulib-tool (import, update): If there is no Makefile.am, look at
58964         aclocal.m4, instead of bailing out.
58965
58966 2006-07-29  Bruno Haible  <bruno@clisp.org>
58967
58968         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58969         Categorize the options by when they are useful.
58970
58971 2006-07-29  Bruno Haible  <bruno@clisp.org>
58972
58973         * gnulib-tool (func_usage): Document option --no-libtool.
58974         Handle option --no-libtool.
58975         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58976         for changed semantics of $libtool variable.
58977         (func_import): Likewise. If libtool is not used, show this through
58978         an option --no-libtool.
58979         (func_create_testdir): Update.
58980
58981 2006-07-29  Bruno Haible  <bruno@clisp.org>
58982
58983         * gnulib-tool (func_import): Extend error message about missing
58984         --doc-base.
58985
58986 2006-07-29  Bruno Haible  <bruno@clisp.org>
58987
58988         * gnulib-tool (func_import): Don't create the $docbase directory if
58989         there is no file to store there.
58990
58991 2006-07-29  Bruno Haible  <bruno@clisp.org>
58992
58993         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58994         relevant, look for configure.ac there, not in the current directory.
58995         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58996
58997 2006-07-29  Bruno Haible  <bruno@clisp.org>
58998
58999         * gnulib-tool (SORT): New variable.
59000         (func_usage): Undocument --assume-autoconf option.
59001         Remove --assume-autoconf option handling.
59002         (autoconf_minversion): Determine from the contents of configure.ac.
59003         (func_import): Remove autoconf_minversion handling.
59004         Suggested by Eric Blake.
59005
59006 2006-07-29  Bruno Haible  <bruno@clisp.org>
59007
59008         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59009
59010 2006-07-29  Bruno Haible  <bruno@clisp.org>
59011
59012         * config/srclist.txt (*setenv.[ch]): Remove rules.
59013
59014 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59015
59016         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59017
59018 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59019
59020         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59021         arpa/inet.h.
59022
59023 2006-07-28  Simon Josefsson  <jas@extundo.com>
59024
59025         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59026         * modules/inet_pton (Depends-on): Likewise.
59027
59028 2006-07-28  Simon Josefsson  <jas@extundo.com>
59029
59030         * m4/netinet_in_h.m4: New file.
59031
59032 2006-07-28  Simon Josefsson  <jas@extundo.com>
59033
59034         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59035         #include's.
59036
59037 2006-07-28  Simon Josefsson  <jas@extundo.com>
59038
59039         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59040         #include's.
59041
59042 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59043
59044         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59045         setgid on directories only if they set these bits.
59046         * lib/modechange.h: Remove obsolete comment about masks.
59047
59048 2006-07-28  Eric Blake  <ebb9@byu.net>
59049
59050         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59051         macro expansion.
59052
59053 2006-07-28  Bruno Haible  <bruno@clisp.org>
59054
59055         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59056
59057 2006-07-28  Bruno Haible  <bruno@clisp.org>
59058
59059         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59060
59061 2006-07-28  Bruno Haible  <bruno@clisp.org>
59062
59063         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59064         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59065         Define fallbacks.
59066         Avoids link error on FreeBSD 4.x.
59067         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59068
59069         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59070         encoding.
59071         * lib/mbswidth.c (iswcntrl): Likewise.
59072
59073 2006-07-27  Bruno Haible  <bruno@clisp.org>
59074
59075         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59076         test.
59077
59078 2006-07-27  Bruno Haible  <bruno@clisp.org>
59079
59080         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59081         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59082         defined.
59083
59084 2006-07-26  Eric Blake  <ebb9@byu.net>
59085
59086         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59087
59088 2006-07-26  Eric Blake  <ebb9@byu.net>
59089
59090         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59091         like mingw that lack mkstemp.
59092         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59093         avoid compilation warning on mingw.
59094
59095 2006-07-26  Bruno Haible  <bruno@clisp.org>
59096
59097         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59098         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59099         INT_FAST*_MIN, INTPTR_MIN.
59100
59101 2006-07-25  Bruno Haible  <bruno@clisp.org>
59102
59103         * modules/version-etc (Depends-on): Add stdarg.
59104
59105 2006-07-25  Bruno Haible  <bruno@clisp.org>
59106
59107         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59108         complex commands.
59109
59110 2006-07-25  Bruno Haible  <bruno@clisp.org>
59111
59112         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59113         defined in <stdarg.h> or config.h.
59114
59115 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59116
59117         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59118         (gl_STDIO_SAFER): Remove.
59119
59120 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59121
59122         * MODULES.html.sh (File stream based Input/Output):
59123         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59124         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59125         * modules/fopen-safer, modules/tmpfile-safer: New files.
59126         * modules/stdio-safer: Remove.
59127
59128 2006-07-24  Bruno Haible  <bruno@clisp.org>
59129
59130         * modules/tmpdir: New file.
59131         * MODULES.html.sh (File system functions): Add it.
59132
59133 2006-07-24  Bruno Haible  <bruno@clisp.org>
59134
59135         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59136         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59137
59138 2006-07-24  Bruno Haible  <bruno@clisp.org>
59139
59140         * modules/clean-temp: New file.
59141
59142 2006-07-24  Bruno Haible  <bruno@clisp.org>
59143
59144         * m4/tmpdir.m4: New file, from GNU gettext.
59145
59146 2006-07-24  Bruno Haible  <bruno@clisp.org>
59147
59148         * lib/tmpdir.h: New file, from GNU gettext.
59149         * lib/tmpdir.c: New file, from GNU gettext.
59150
59151 2006-07-24  Bruno Haible  <bruno@clisp.org>
59152
59153         * lib/clean-temp.h: New file, from GNU gettext.
59154         * lib/clean-temp.c: New file, from GNU gettext.
59155
59156 2006-07-23  Eric Blake  <ebb9@byu.net>
59157
59158         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59159         (Depends-on): Add binary-io.
59160
59161 2006-07-23  Eric Blake  <ebb9@byu.net>
59162
59163         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59164
59165 2006-07-23  Eric Blake  <ebb9@byu.net>
59166
59167         * lib/tmpfile-safer.c: New file.
59168         * lib/stdio-safer.h (fopen_safer): Add prototype.
59169         * lib/stdio--.h (tmpfile): Make safer.
59170
59171 2006-07-23  Bruno Haible  <bruno@clisp.org>
59172
59173         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59174         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59175         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59176         gl_linked_remove_at): Use it.
59177
59178 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59179         and Simon Josefsson <jas@extundo.com>
59180
59181         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59182
59183         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59184
59185 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59186
59187         * modules/close-stream: New file.
59188         * modules/closeout (Description): Make it clear that it exits
59189         with a diagnostic on error.
59190         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59191         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59192
59193 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59194
59195         * m4/close-stream.m4: New file.
59196
59197 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59198
59199         * lib/close-stream.c, lib/close-stream.h: New files.
59200
59201 2006-07-22  Bruno Haible  <bruno@clisp.org>
59202
59203         Merge from GNU gettext 0.15.
59204
59205         2006-05-01  Bruno Haible  <bruno@clisp.org>
59206
59207                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59208
59209         2006-07-22  Bruno Haible  <bruno@clisp.org>
59210
59211                 * modules/javaversion: New file.
59212                 * MODULES.html.sh (Java): Add javaversion.
59213
59214         2006-03-12  Bruno Haible  <bruno@clisp.org>
59215
59216                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59217
59218         2005-12-04  Bruno Haible  <bruno@clisp.org>
59219
59220                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
59221                 (untested).
59222
59223         2006-06-21  Bruno Haible  <bruno@clisp.org>
59224
59225                 Avoid warnings from recent versions of mcs.
59226                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
59227                 -o, -L, -r any more. Use options documented since mcs-1.0
59228                 instead. Similarly for -g.
59229
59230         2005-12-04  Bruno Haible  <bruno@clisp.org>
59231
59232                 * build-aux/csharpcomp.sh.in: Suffix for resources is
59233                 .resources, not .resource.
59234
59235         2005-07-09  Bruno Haible  <bruno@clisp.org>
59236
59237                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
59238                 add a .dll suffix.
59239                 Reported by Mark Junker <mjscod@gmx.de>.
59240
59241         2006-07-22  Bruno Haible  <bruno@clisp.org>
59242
59243                 * modules/gettext: Upgrade to gettext-0.15.
59244                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
59245                 m4/visibility.m4.
59246                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
59247
59248 2006-07-22  Bruno Haible  <bruno@clisp.org>
59249
59250         Merge from GNU gettext 0.15.
59251
59252         2006-03-25  Bruno Haible  <bruno@clisp.org>
59253
59254                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
59255
59256         2006-07-21  Bruno Haible  <bruno@clisp.org>
59257
59258                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
59259                 "1.1".
59260
59261         2006-05-09  Bruno Haible  <bruno@clisp.org>
59262
59263                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
59264                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
59265                 for the conftestver execution.
59266
59267         2006-05-01  Bruno Haible  <bruno@clisp.org>
59268
59269                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
59270                 optional target-version argument. Verify that the compiler
59271                 groks source of the specified source-version, or add -source
59272                 option as necessary. Verify that the compiler produces
59273                 bytecode in the specified target-version, or add -target and
59274                 -source options as necessary. Make the result of the test
59275                 available as variable CONF_JAVAC. Also log error output in
59276                 config.log.
59277
59278         2006-03-11  Bruno Haible  <bruno@clisp.org>
59279
59280                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
59281
59282         2006-05-09  Bruno Haible  <bruno@clisp.org>
59283
59284                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
59285                 CLASSPATH_SEPARATOR to a semicolon.
59286
59287         2006-03-12  Bruno Haible  <bruno@clisp.org>
59288
59289                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
59290                 available as variable CONF_JAVA, for subsequent autoconf
59291                 tests. Also log error output in config.log.
59292
59293         2006-07-19  Bruno Haible  <bruno@clisp.org>
59294
59295                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
59296                 that getline works on glibc2 systems. Needed to avoid trouble
59297                 in relocatable.c.
59298                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
59299
59300         2005-12-04  Bruno Haible  <bruno@clisp.org>
59301
59302                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
59303                 launcher (untested).
59304
59305         2005-12-04  Bruno Haible  <bruno@clisp.org>
59306
59307                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
59308
59309         2006-07-22  Bruno Haible  <bruno@clisp.org>
59310
59311                 * gettext.m4: Update from GNU gettext-0.15.
59312                 * nls.m4: Likewise.
59313                 * po.m4: Likewise.
59314                 * inttypes-pri.m4: Likewise.
59315                 * inttypes-h.m4: Renamed from inttypes.m4.
59316                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
59317
59318 2006-07-22  Bruno Haible  <bruno@clisp.org>
59319
59320         Merge from GNU gettext 0.15.
59321
59322         2005-07-05  Bruno Haible  <bruno@clisp.org>
59323
59324                 * printf-args.c (printf_fetchargs): Work around broken
59325                 definition of wint_t on mingw.
59326
59327         2005-02-12  Bruno Haible  <bruno@clisp.org>
59328
59329                 * xallocsa.h: Add extern "C" for C++.
59330
59331         2006-05-17  Bruno Haible  <bruno@clisp.org>
59332
59333                 Cygwin portability.
59334                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
59335
59336         2006-04-30  Bruno Haible  <bruno@clisp.org>
59337
59338                 * progreloc.c: Include <mach-o/dyld.h> if available.
59339                 (find_executable): Use _NSGetExecutablePath when possible.
59340
59341         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59342
59343                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
59344                 function.
59345
59346         2005-12-29  Bruno Haible  <bruno@clisp.org>
59347
59348                 * progreloc.c (set_program_name_and_installdir): Fix
59349                 compilation error.
59350
59351         2005-12-04  Bruno Haible  <bruno@clisp.org>
59352
59353                 Cygwin portability.
59354                 * progreloc.c: Include <windows.h> also on Cygwin.
59355                 (find_executable): Add support for Cygwin.
59356                 (set_program_name_and_installdir): Handle also platforms with
59357                 nonempty EXEEXT.
59358
59359         2006-07-11  Bruno Haible  <bruno@clisp.org>
59360
59361                 * javacomp.c: Fix a comment.
59362                 Reported by Jim Meyering.
59363
59364         2006-04-30  Bruno Haible  <bruno@clisp.org>
59365
59366                 * javacomp.h (compile_java_class): Add source_version,
59367                 target_version arguments.
59368                 * javacomp.c: Rewritten to choose only a compiler that
59369                 respects the specified source_version and target_version.
59370
59371         2006-06-27  Bruno Haible  <bruno@clisp.org>
59372
59373                 Assume correct S_ISDIR macro.
59374                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
59375
59376         2006-07-22  Bruno Haible  <bruno@clisp.org>
59377
59378                 * javaversion.h: New file, from GNU gettext.
59379                 * javaversion.c: New file, from GNU gettext.
59380                 * javaversion.java: New file, from GNU gettext.
59381                 * javaversion.class: New file, from GNU gettext.
59382
59383         2006-05-17  Bruno Haible  <bruno@clisp.org>
59384
59385                 Cygwin portability.
59386                 * javaexec.c (execute_java_class): Test for jview program
59387                 also on Cygwin.
59388
59389         2006-04-09  Bruno Haible  <bruno@clisp.org>
59390
59391                 * fatal-signal.c: Don't include string.h.
59392                 (at_fatal_signal): Use a copying loop instead of memcpy.
59393
59394         2005-12-04  Bruno Haible  <bruno@clisp.org>
59395
59396                 * csharpexec.c: Add support for 'clix' launcher (untested).
59397                 (execute_csharp_using_sscli): New function.
59398                 (execute_csharp_program): Call it.
59399
59400         2006-06-21  Bruno Haible  <bruno@clisp.org>
59401
59402                 Avoid warnings from recent versions of mcs.
59403                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
59404                 -o, -L, -r any more. Use options documented since mcs-1.0
59405                 instead. Similarly for -g.
59406
59407         2005-07-09  Bruno Haible  <bruno@clisp.org>
59408
59409                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
59410                 add a .dll suffix.
59411                 Reported by Mark Junker <mjscod@gmx.de>.
59412
59413         2006-06-17  Bruno Haible  <bruno@clisp.org>
59414
59415                 * config.charset: Update for NetBSD 3.0.
59416
59417         2006-05-17  Bruno Haible  <bruno@clisp.org>
59418
59419                 Cygwin portability.
59420                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
59421
59422         2006-05-16  Bruno Haible  <bruno@clisp.org>
59423
59424                 * localcharset.c [CYGWIN]: Include <windows.h>.
59425                 (get_charset_aliases): For Cygwin, return the same CPxxx
59426                 aliases list as under WIN32.
59427                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
59428                 the environment variables. Fall back to GetACP().
59429
59430         2006-04-05  Bruno Haible  <bruno@clisp.org>
59431
59432                 * config.charset: Update Juan Manuel Guerrero's address.
59433
59434         2005-02-12  Bruno Haible  <bruno@clisp.org>
59435
59436                 * allocsa.h: Add extern "C" for C++.
59437
59438         2005-02-10  Bruno Haible  <bruno@clisp.org>
59439
59440                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
59441                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
59442
59443         2006-07-22  Bruno Haible  <bruno@clisp.org>
59444
59445                 * gettext.h: Update to GNU gettext-0.15.
59446
59447 2006-07-22  Bruno Haible  <bruno@clisp.org>
59448
59449         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
59450         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
59451         lib-prefix.m4, longdouble.m4, ssize_t.m4.
59452
59453 2006-07-21  Eric Blake  <ebb9@byu.net>
59454
59455         * modules/stdlib-safer: New file.
59456         * MODULES.html.sh (File stream based Input/Output): Add
59457         stdlib-safer.
59458
59459 2006-07-21  Eric Blake  <ebb9@byu.net>
59460
59461         * lib/stdlib-safer.h: New file from coreutils, required by
59462         stdlib--.h.
59463
59464 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
59465
59466         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
59467
59468 2006-07-20  Bruno Haible  <bruno@clisp.org>
59469
59470         * gnulib-tool: Recognize new option --assume-autoconf.
59471         (autoconf_minversion): New variable.
59472         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
59473
59474 2006-07-20  Bruno Haible  <bruno@clisp.org>
59475
59476         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
59477
59478 2006-07-19  Derek R. Price  <derek@ximbiot.com>
59479
59480         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
59481         Reindent and repaginate.
59482
59483 2006-07-19  Derek Price  <derek@ximbiot.com>
59484
59485         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
59486         Correct grammar.
59487
59488 2006-07-17  Bruno Haible  <bruno@clisp.org>
59489
59490         * modules/list: New file.
59491         * modules/array-list: New file.
59492         * modules/carray-list, modules/carray-list-tests: New files.
59493         * modules/linked-list, modules/linked-list-tests: New files.
59494         * modules/avltree-list, modules/avltree-list-tests: New files.
59495         * modules/rbtree-list, modules/rbtree-list-tests: New files.
59496         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
59497         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
59498         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
59499         * modules/oset: New file.
59500         * modules/array-oset: New file.
59501         * modules/avltree-oset, modules/avltree-oset-tests: New files.
59502         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
59503         * tests/test-carray_list.c: New file.
59504         * tests/test-linked_list.c: New file.
59505         * tests/test-avltree_list.c: New file.
59506         * tests/test-rbtree_list.c: New file.
59507         * tests/test-linkedhash_list.c: New file.
59508         * tests/test-avltreehash_list.c: New file.
59509         * tests/test-rbtreehash_list.c: New file.
59510         * tests/test-avltree_oset.c: New file.
59511         * tests/test-rbtree_oset.c: New file.
59512         * MODULES.html.sh (Container data structures): New section.
59513
59514 2006-07-17  Bruno Haible  <bruno@clisp.org>
59515
59516         * m4/gl_list.m4: New file.
59517
59518 2006-07-17  Bruno Haible  <bruno@clisp.org>
59519
59520         * lib/gl_list.h: New file.
59521         * lib/gl_list.c: New file.
59522         * lib/gl_array_list.h: New file.
59523         * lib/gl_array_list.c: New file.
59524         * lib/gl_carray_list.h: New file.
59525         * lib/gl_carray_list.c: New file.
59526         * lib/gl_linked_list.h: New file.
59527         * lib/gl_linked_list.c: New file.
59528         * lib/gl_anylinked_list1.h: New file.
59529         * lib/gl_anylinked_list2.h: New file.
59530         * lib/gl_avltree_list.h: New file.
59531         * lib/gl_avltree_list.c: New file.
59532         * lib/gl_anyavltree_list1.h: New file.
59533         * lib/gl_anyavltree_list2.h: New file.
59534         * lib/gl_rbtree_list.h: New file.
59535         * lib/gl_rbtree_list.c: New file.
59536         * lib/gl_anyrbtree_list1.h: New file.
59537         * lib/gl_anyrbtree_list2.h: New file.
59538         * lib/gl_anytree_list1.h: New file.
59539         * lib/gl_anytree_list2.h: New file.
59540         * lib/gl_linkedhash_list.h: New file.
59541         * lib/gl_linkedhash_list.c: New file.
59542         * lib/gl_anyhash_list1.h: New file.
59543         * lib/gl_anyhash_list2.h: New file.
59544         * lib/gl_avltreehash_list.h: New file.
59545         * lib/gl_avltreehash_list.c: New file.
59546         * lib/gl_rbtreehash_list.h: New file.
59547         * lib/gl_rbtreehash_list.c: New file.
59548         * lib/gl_anytreehash_list1.h: New file.
59549         * lib/gl_anytreehash_list2.h: New file.
59550
59551         * lib/gl_oset.h: New file.
59552         * lib/gl_oset.c: New file.
59553         * lib/gl_array_oset.h: New file.
59554         * lib/gl_array_oset.c: New file.
59555         * lib/gl_avltree_oset.h: New file.
59556         * lib/gl_avltree_oset.c: New file.
59557         * lib/gl_rbtree_oset.h: New file.
59558         * lib/gl_rbtree_oset.c: New file.
59559         * lib/gl_anytree_oset.h: New file.
59560
59561 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59562
59563         * m4/mkancesdirs.m4: New file.
59564         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59565         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59566         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59567         it.
59568
59569 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59572         * lib/mkancesdirs.h: New files.
59573         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59574         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59575         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59576         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59577         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59578         callers changed.  Revamp internals significantly, by not
59579         attempting to create directories that are temporarily more
59580         permissive than the final results.  Do not attempt to use
59581         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59582         This removes some race conditions, fixes some bugs, and simplifies
59583         things.  Use new dirchownmod function to do owner and mode changes.
59584         * lib/mkdir-p.h: Likewise.
59585         * lib/modechange.c (octal_to_mode): New function.
59586         (struct mode_change): New member mentioned.
59587         (make_node_op_equals): New arg mentioned.  All callers changed.
59588         (mode_compile): Keep track of which mode bits the user has explicitly
59589         mentioned.
59590         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59591         New arg PMODE_BITS, to keep track of which mode bits the user
59592         mentioned; it treats S_ISUID and S_ISGID speciall.
59593         All callers changed.
59594         * lib/modechange.h: Likewise.
59595
59596 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59597
59598         * MODULES.html.sh: Add mkancestors.
59599         * modules/mkancesdirs: New module.
59600         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59601         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59602         The chdir-safer and afs files are now orphans; I'll remove them
59603         unless someone speaks up.
59604         Add lib/dirchownmod.c, lib/dirchownmod.h.
59605         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59606         Add lchown, mkancesdirs.
59607         (Maintainer): Add self.
59608
59609 2006-07-15  Karl Berry  <karl@gnu.org>
59610
59611         * gnulib-tool: help message wording/arrangement.
59612
59613 2006-07-14  Simon Josefsson  <jas@extundo.com>
59614
59615         * doc/gnulib.texi (Libtool and Windows): New section.
59616
59617 2006-07-12  Simon Josefsson  <jas@extundo.com>
59618
59619         * modules/gendocs (License): Fix license, approved by Karl.
59620
59621 2006-07-12  Eric Blake  <ebb9@byu.net>
59622
59623         * MODULES.html.sh: Add gendocs.
59624
59625 2006-07-11  Eric Blake  <ebb9@byu.net>
59626
59627         * modules/fdl: New module, to install doc/fdl.texi.
59628         * MODULES.html.sh: Add new section for documentation modules.
59629         * gnulib-tool: Avoid space-tab.
59630         (--doc-base): New option, to manage files from doc.
59631
59632 2006-07-11  Eric Blake  <ebb9@byu.net>
59633
59634         * m4/absolute-header.m4: Fix comments to match recent change.
59635
59636 2006-07-11  Eric Blake  <ebb9@byu.net>
59637
59638         * gnulib-tool: List --doc-base before --tests-base.
59639
59640 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59641
59642         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59643
59644 2006-07-11  Bruno Haible  <bruno@clisp.org>
59645
59646         * README: Mention where to put documentation.
59647
59648 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59649
59650         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59651
59652 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59653
59654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59655         to stdint.m4.
59656
59657 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59658
59659         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59660         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59661         "no/such/file/stdint.h" when there is no such file, so that
59662         the resulting C code can be parsed by dodgy compilers.
59663         Problems reported by Bob Proulx.
59664
59665 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59666
59667         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59668         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59669         macros into the GNU _D_EXACT_NAMLEN.
59670         * lib/savedir.c:  Likewise.
59671         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59672
59673 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59674         and Paul Eggert  <eggert@cs.ucla.edu>
59675
59676         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59677         * m4/savedir.m4:
59678         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59679         macros into the GNU _D_EXACT_NAMLEN.
59680
59681 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59682
59683         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59684         around the absolute name, to work around a problem with the HP-UX
59685         11.23 native C compiler, reported by Bob Proulx.
59686
59687 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59688
59689         * doc/maintain.texi, make-stds.texi: Sync from
59690         <http://savannah.gnu.org/projects/gnustandards>.
59691
59692 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59693
59694         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59695
59696 2006-07-09  Jim Meyering  <jim@meyering.net>
59697
59698         * m4/glob.m4: Remove a doubled word in a comment.
59699
59700 2006-07-09  Jim Meyering  <jim@meyering.net>
59701
59702         * lib/argp-pv.c: Remove a doubled word in a comment.
59703         * lib/check-version.c (check_version): Likewise.
59704         * lib/javacomp.c (compile_java_class): Likewise.
59705
59706 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59707
59708         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59709         for the benefit of people using Autoconf 2.60.  If you want to
59710         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59711         (or m4/onceonly.m4, if pre-2.57) manually.
59712
59713 2006-07-08  Jim Meyering  <jim@meyering.net>
59714
59715         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59716         comment.
59717         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59718         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59719         comment.
59720
59721 2006-07-08  Jim Meyering  <jim@meyering.net>
59722
59723         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59724
59725 2006-07-07  Simon Josefsson  <jas@extundo.com>
59726
59727         * tests/test-crc.c: Change expected crc value, the test vector
59728         were probably computed using the old broken crc.c?
59729
59730 2006-07-06  Simon Josefsson  <jas@extundo.com>
59731
59732         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59733         now the canonical place for the M4 file).
59734
59735         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59736         from the sys_socket dependency now.
59737
59738         * modules/inet_pton (Files): Ditto.
59739
59740         * modules/inet_ntop (Files): Ditto.
59741
59742 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59743
59744         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59745         not gl_PREREQ_GETUSERSHELL.
59746
59747 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59748
59749         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59750         with only one argument, for Autoconf 2.60.
59751         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59752         expand to nothing, so add a shell command to avoid syntax error.
59753         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59754
59755 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59756
59757         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59758
59759 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59760
59761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59762         no longer needed.  Check for isblank decl.
59763         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59764         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59765         of existence.
59766
59767 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         * lib/getloadavg.c: Use __VMS, not VMS.
59770         * lib/getopt.c: Likewise.
59771         * lib/getpagesize.h: Likewise.
59772         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59773         and probably does not work.
59774
59775 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59776
59777         * lib/.cppi-disable: Add wcwidth.
59778         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59779         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59780         (ISGRAPH): Remove.  All uses changed to isgraph.
59781         (FOLD) [!defined _LIBC]: Remove special case.
59782         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59783         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59784         HAVE_ISBLANK.
59785         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59786         case.
59787
59788 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59789
59790         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59791         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59792         brackets.  Other minor changes to suppress some compiler
59793         warnings.
59794
59795 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59796         and Paul Eggert  <eggert@cs.ucla.edu>
59797
59798         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59799         of invoking obsolescent AC_HEADER_DIRENT macro.
59800         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59801         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59802         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59803         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59804         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59805         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59806         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59807         * m4/readdir.m4: Remove; no longer needed.
59808
59809 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59810         and Paul Eggert  <eggert@cs.ucla.edu>
59811
59812         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59813         Don't worry about this obsolete case any more.
59814         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59815         directories.
59816         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59817         worry about this obsolete case any more.
59818         * lib/fts.c: Likewise.
59819         * lib/getcwd.c: Likewise.
59820         * lib/glob.h: Likewise.
59821         * lib/savedir.c: Likewise.
59822
59823 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59824
59825         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59826         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59827         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59828         needed.
59829         All uses removed.
59830         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59831         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59832         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59833         needed.
59834         * m4/getdate.m4 (gl_GETDATE): Likewise.
59835         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59836         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59837         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59838         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59839         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59840         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59841         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59842         needed.
59843
59844 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59845
59846         * lib/memcasecmp.c: Include <limits.h>.
59847         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59848         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59849         Don't assume isdigit succeeds only on '0' through '9'.
59850
59851 2006-07-05  Eric Blake  <ebb9@byu.net>
59852
59853         * modules/getaddrinfo (Depends-on): Add snprintf.
59854
59855 2006-07-05  Eric Blake  <ebb9@byu.net>
59856
59857         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59858         to avoid 'header present but could not be compiled' on cygwin.
59859
59860 2006-07-05  Eric Blake  <ebb9@byu.net>
59861
59862         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59863         missing from netdb.h.
59864         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59865
59866 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59867
59868         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59869         no longer needed.
59870         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59871         * m4/getdate.m4 (gl_GETDATE): Likewise.
59872         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59873         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59874         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59875         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59876         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59877
59878 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59879
59880         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59881         All uses of is_space replaced by isspace.
59882         * lib/exit.h: Don't talk about STDC_HEADERS.
59883         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59884         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59885         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59886         replaced by isprint etc.
59887         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59888         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59889         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59890         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59891         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59892         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59893
59894 2006-07-05  Bruno Haible  <bruno@clisp.org>
59895
59896         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59897         the function exists, before testing against AIX.
59898         Reported by Martin Lambers <marlam@marlam.de>.
59899
59900 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59901
59902         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59903         From Mark D. Baushke.
59904
59905 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59906
59907         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59908         to the absolute name, not just one, to bypass Sun C 5.8's
59909         "warning: #include of /usr/include/... may be non-portable".
59910
59911 2006-07-04  Eric Blake  <ebb9@byu.net>
59912
59913         * modules/dirname-tests: New test module.
59914         * tests/test-dirname.c: New file, replacing dirname.c
59915         TEST_DIRNAME section that was recently deleted.
59916
59917 2006-07-04  Bruno Haible  <bruno@clisp.org>
59918
59919         Assume ANSI C header files and <ctype.h> functions.
59920         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59921         (mbsnwidth): Use isprint, iscntrl instead.
59922
59923 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59924
59925         Merge from coreutils.
59926         * MODULES.html.sh: Add xstrtold.
59927         * modules/xstrtold: New file.
59928         * modules/cycle-check (Files): Add lib/same-inode.h.
59929         * modules/dirname (Files): Add m4/double-slash-root.m4.
59930         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59931         * modules/mkdir-p (Files): Add lib/same-inode.h.
59932         * modules/same (Files): Add lib/same-inode.h.
59933
59934 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59935
59936         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59937         This is to keep the terminology clean; POSIX talks about
59938         "absolute pathnames", not "full pathnames", but the GNU
59939         Coding Standards say to use "path" for something else;
59940         so use "absolute" to keep both sides happy.
59941         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59942         Set gl_absolute_header, not gl_full_header_path.
59943         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59944         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59945         All uses changed.
59946
59947         Merge from coreutils.
59948
59949         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59950
59951         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59952         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59953         want to require the building of c-strtod.o.
59954         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59955         needs -lm directly.
59956         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59957
59958         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59959
59960         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59961         --as-needed option if available.  Problem reported by Albert Chin in
59962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59963         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59964         cc merely issues a bunch of annoying warnings for --as-needed
59965         (this problem was reported by Bob Proulx).  Also, try linking with
59966         -lm to detect a bug in binutils 2.16 (this problem was reported
59967         by Ralf Wildenhues).
59968
59969         2006-06-18  Jim Meyering  <jim@meyering.net>
59970
59971         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59972         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59973         macro.
59974         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59975         also check for glibc-2.4's abort-inducing bug.
59976
59977         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59978         Low-probability clean-up should be to use rmdir to get rid of
59979         the just-created directory, not unlink.
59980
59981         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59982         configure fail, and request a bug report to inform us about it.
59983         Add a comment that, barring reports to the contrary, in 2007 we'll
59984         assume ftruncate is universally available.
59985
59986         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59987
59988         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59989
59990         2006-03-12  Jim Meyering  <jim@meyering.net>
59991
59992         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59993         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59994         * m4/same.m4 (gl_SAME): Likewise.
59995         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59996
59997         2006-03-11  Eric Blake  <ebb9@byu.net>
59998
59999         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60000         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60001         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60002         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60003
60004 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60005
60006         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60007         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60008         reported by Mark D. Baushke, one in
60009         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60010
60011         Merge from coreutils.
60012
60013         * lib/.cppi-disable: Add stdint_.h.
60014         * lib/.cvsignore: Add stdint.h.
60015
60016         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60017
60018         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60019         both double and long double versions.
60020         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60021         * lib/xstrtold.c: New file.
60022         * lib/xstrtod.h (xstrtold): New decl.
60023
60024         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60025
60026         * lib/filemode.c (setst): Remove.
60027         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60028         (arguably) clearer, and the generated code is a bit smaller on my
60029         Debian GNU/Linux stable x86 host.
60030
60031         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60032
60033         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60034         Assume that filemode.h includes sys/types.h and sys/stat.h.
60035         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60036         (ftypelet): Reorder to put common cases first, for efficiency.
60037         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60038         to do 'M'.
60039         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60040         of 10, for compatibility with FreeBSD.  All callers changed.
60041         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60042         types that can't be deduced solely from st_mode.  First arg is now a
60043         const pointer.
60044         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60045         (strmode): Renamed from mode_string.
60046         (filemodestring): New decl.
60047         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60048         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60049         needed.
60050         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60051
60052         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60053
60054         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60055         fsusage.h now does that.  Include fsusage.h first, to test interface.
60056         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60057         at most one method (the old code could have generated decls that
60058         didn't conform to C89, not that this was ever exercised).
60059         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60060
60061         2006-03-19  Jim Meyering  <jim@meyering.net>
60062
60063         Work even in a chroot where d_ino values for entries in "/"
60064         don't match the stat.st_ino values for the same names.
60065         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60066         number, iterate through all entries again, using lstat instead.
60067         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60068         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60069
60070         * lib/getcwd.c (__getcwd): Clarify a comment.
60071         Use memcpy in place of a call to strcpy.
60072
60073         2006-03-12  Jim Meyering  <jim@meyering.net>
60074
60075         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60076         matches that of the current directory (which we're about to chdir ".."
60077         out of), then save the dev-ino of the parent, instead.
60078
60079         * lib/same-inode.h (SAME_INODE): New file/macro.
60080         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60081         Include "same-inode.h", instead.
60082         * lib/same.c: Likewise.
60083         * lib/cycle-check.h: Include "same-inode.h".
60084         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60085         * lib/cycle-check.c (SAME_INODE): Remove definition.
60086         * lib/root-dev-ino.h: Include "same-inode.h".
60087
60088         2006-03-11  Eric Blake  <ebb9@byu.net>
60089
60090         * lib/same.c (same_name): s/base_name/last_component/
60091         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60092         * lib/filenamecat.c (file_name_concat): Likewise.
60093
60094         2006-03-11  Eric Blake  <ebb9@byu.net>,
60095                     Paul Eggert  <eggert@cs.ucla.edu>
60096
60097         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60098         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60099         drive prefix.
60100         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60101         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60102         (last_component): New method.
60103         * lib/dirname.c (dir_len): Determine when drive letters need a
60104         subsequent slash.  Preserve // when it is special.
60105         (dir_name): Don't append dot when drive letter is absolute.
60106         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60107         * lib/basename.c (base_name): New semantics - malloc the result.
60108         Preserve // when it is special.  Preserve relative files that look
60109         like drive letters.
60110         (base_len): Preserve // when it is special.
60111         (last_component): New method, similar to old base_name semantics.
60112         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60113         base_name.  Strip redundant slashes from ///.
60114
60115 2006-07-03  Jim Meyering  <jim@meyering.net>
60116
60117         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60118         macro is used before the first cycle_check call.
60119
60120 2006-07-03  Eric Blake  <ebb9@byu.net>
60121
60122         * modules/dirname (Depends-on): Add xstrndup.
60123
60124 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60125
60126         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60127         test cases, so that config.log is a bit easier to follow.
60128
60129 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60130
60131         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60132         both are 64 bits, since this seems to be the tradition, and this
60133         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60134         we ever run into a host that prefers long long to long in this
60135         case, we'll need another configure-time test.  Problem reported by
60136         Jim Meyering.
60137
60138 2006-07-02  Eric Blake  <ebb9@byu.net>
60139
60140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60141
60142 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60143
60144         * modules/inttypes (Depends-on): No longer depends on stdint.
60145         * modules/stdint (Description): Say more about assumptions.
60146         Say that the fast types might differ.  Say macros are used.
60147         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60148         (Makefile.am): Revise list of substituted symbols to match
60149         new stdint.m4.
60150         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60151         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60152         * tests/test-stdint.c (verify_same_types)
60153         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60154         the code conforms to C99/C89.
60155         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60156         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60157
60158 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60159
60160         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60161         but fix a bug, by requiring at least 64 bits.
60162         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60163         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60164         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60165         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60166
60167         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60168         changes.  Make 2.59 a prerequisite.  Check and substitute for
60169         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60170         inttypes.h.  Do not use special include files; just use the
60171         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60172         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60173         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60174         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60175         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60176         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60177         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60178         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60179         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60180         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60181         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60182         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60183         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60184         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60185         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60186         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60187         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60188         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60189         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60190         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60191         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60192         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60193         not check for things that C99 does not require, e.g., int8_t.  If
60194         a test isn't needed unless <stdint.h> isn't working, and is
60195         unlikely to be needed for any other reason, then don't do it
60196         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60197         size_t, since we assume C89 freestanding at least.  Do not check
60198         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60199         the right thing even if the types are not defined.  Instead use:
60200         (gl_STDINT_TYPE_PROPERTIES): New macro.
60201         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60202         testing whether <sys/types.h> clashes, as Autoconf does this for
60203         us now.  All uses removed.
60204         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60205         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60206         (gl_CHECK_TYPE_SAME):
60207         Remove; no longer needed.
60208         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60209         exists, since we'll return 0 anyway in that case.
60210         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60211
60212 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60213
60214         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60215         possible collision with system files.
60216         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60217         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60218         WCHAR_MIN and WCHAR_MAX in this case.
60219         (<stddef.h>): Do not include; no longer needed.
60220         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
60221         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
60222         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
60223         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
60224         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
60225         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
60226         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
60227         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
60228         !defined(__c99))]: Include in this case too, since it's harmless
60229         now.
60230         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
60231         dangerous to do so.
60232         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
60233         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
60234         (_STDINT_MIN, _STDINT_MAX): New macros.
60235         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
60236         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
60237         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
60238         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
60239         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
60240         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
60241         macros, not typedefs; this simplifies things quite a bit.
60242         Use long int for all types narrower than int64_t.
60243         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
60244         Define in terms of long long int or int64_t or long int,
60245         not int64_t or int32_t.  This saves some compile-time testing.
60246         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
60247         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
60248         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
60249         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
60250         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
60251         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
60252         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
60253         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
60254         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
60255         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
60256         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60257         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60258         undef any previous version and define our own version, for
60259         simplicity and consistency with the new macros for types.
60260         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60261         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60262         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
60263         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
60264         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
60265         @WINT_T_SUFFIX@ to keep things simple here.
60266         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
60267         Simplify by assuming typical 8/16/32/64 host, since we're
60268         already doing that elsewhere anyway.
60269         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
60270         and assume long long int is 64 bits if available.  This
60271         speeds up 'configure'.
60272
60273 2006-07-01  Eric Blake  <ebb9@byu.net>
60274
60275         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
60276         Reported by Andreas Buening.
60277
60278 2006-07-01  Eric Blake  <ebb9@byu.net>
60279
60280         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
60281
60282 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60283
60284         * lib/getaddrinfo.c: fixed typo
60285
60286 2006-06-29  Jim Meyering  <jim@meyering.net>
60287
60288         * modules/strftime (Maintainer): Add my name, since with the
60289         FPRINTFTIME changes strftime.c has forked from glibc.
60290
60291 2006-06-29  Eric Blake  <ebb9@byu.net>
60292
60293         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
60294
60295 2006-06-29  Eric Blake  <ebb9@byu.net>
60296
60297         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
60298
60299 2006-06-29  Eric Blake  <ebb9@byu.net>
60300
60301         * lib/stat_.h: New file.
60302
60303 2006-06-29  Eric Blake  <ebb9@byu.net>
60304
60305         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
60306         unused static function.
60307
60308 2006-06-29  Eric Blake  <ebb9@byu.net>
60309
60310         * doc/functions.texi (Function Portability): Document missing lstat
60311         on mingw.
60312
60313 2006-06-29  Eric Blake  <ebb9@byu.net>
60314
60315         * MODULES.html.sh: Add sys_stat.
60316         * modules/sys_stat: New module.
60317         * modules/mkstemp (Depends-on): Add sys_stat.
60318
60319 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60320
60321         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
60322
60323 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60324
60325         * m4/c-bs-a.m4: Removed.
60326
60327 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60328
60329         * lib/strftime.c: Assume strftime() exists.
60330
60331 2006-06-29  Derek Price  <derek@ximbiot.com>
60332
60333         * modules/c-bs-a: Removed - \a is C89.
60334         * MODULES.html.sh: Remove c-bs-a.
60335
60336 2006-06-29  Bruno Haible  <bruno@clisp.org>
60337
60338         * modules/wcwidth (License): Change to LGPL.
60339
60340 2006-06-28  Simon Josefsson  <jas@extundo.com>
60341
60342         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
60343         on _WIN32.
60344
60345         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
60346         getnameinfo.
60347
60348 2006-06-28  Simon Josefsson  <jas@extundo.com>
60349
60350         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
60351
60352 2006-06-28  Simon Josefsson  <jas@extundo.com>
60353
60354         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
60355         functions there.  It will succeed on Windows XP, but on Windows
60356         2000 and (presumably) earlier, it will fail, and use the internal
60357         re-implementation.
60358         (use_win32_p): New function.
60359         (getaddrinfo): Use strtoul on servname, to support numeric ports.
60360         Support AI_NUMERICSERV to disable getservbyname.
60361         (getnameinfo): New function, only supports
60362         NI_NUMERICHOST|NI_NUMERICSERV for now.
60363
60364         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
60365         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
60366         getnameinfo.
60367
60368 2006-06-28  Eric Blake  <ebb9@byu.net>
60369
60370         * modules/wcwidth: New file.
60371         * modules/mbchar (Depends-on): Add wcwidth.
60372         * modules/mbswidth (Depends-on): Add wcwidth.
60373         * MODULES.html.sh: Add wcwidth.
60374
60375 2006-06-28  Eric Blake  <ebb9@byu.net>
60376
60377         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
60378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
60379
60380 2006-06-28  Eric Blake  <ebb9@byu.net>
60381
60382         * lib/xvasprintf.h: Fix comments.
60383
60384 2006-06-28  Eric Blake  <ebb9@byu.net>
60385
60386         * lib/mbchar.h (wcwidth): Include wcwidth.h.
60387         * lib/mbswidth.c (wcwidth): Move from here...
60388         * lib/wcwidth.h: ...to this new file.
60389
60390 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60391
60392         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
60393
60394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
60395         it's obsolete.
60396         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
60397
60398 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60399
60400         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
60401         Autoconf 2.60 says this stuff was obsolete.
60402
60403 2006-06-28  Bruno Haible  <bruno@clisp.org>
60404
60405         * modules/wcwidth (Files): Add m4/wchar_t.m4.
60406
60407 2006-06-28  Bruno Haible  <bruno@clisp.org>
60408
60409         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
60410         gt_TYPE_WCHAR_T.
60411
60412 2006-06-28  Bruno Haible  <bruno@clisp.org>
60413
60414         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
60415         declaration for wcwidth.
60416         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
60417
60418 2006-06-28  Bruno Haible  <bruno@clisp.org>
60419
60420         * lib/mkdtemp.c [MINGW]: Include <io.h>.
60421         (mkdir): Define using _mkdir.
60422
60423 2006-06-28  Bruno Haible  <bruno@clisp.org>
60424
60425         * lib/getaddrinfo.h: Fix POSIX URL.
60426         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
60427         _WIN32.
60428         (use_win32_p): Make static.
60429         (getaddrinfo): Reject service name if it is empty or does not consist
60430         solely of decimal digits, or if its value is > 65535.
60431         (getnameinfo): Remove useless casts.
60432
60433 2006-06-27  Simon Josefsson  <jas@extundo.com>
60434
60435         * modules/sys_select: New file, suggested by Bruno Haible, Paul
60436         Eggert and Martin Lambers.
60437
60438 2006-06-27  Simon Josefsson  <jas@extundo.com>
60439
60440         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
60441         Eggert and Martin Lambers.
60442
60443 2006-06-27  Bruno Haible  <bruno@clisp.org>
60444
60445         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
60446         result to 0, not to empty.
60447         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
60448
60449 2006-06-27  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
60452
60453 2006-06-26  Simon Josefsson  <jas@extundo.com>
60454
60455         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
60456         present.
60457
60458 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
60459
60460         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
60461         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
60462         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
60463
60464 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
60465
60466         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
60467
60468 2006-06-26  Bruno Haible  <bruno@clisp.org>
60469
60470         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
60471
60472 2006-06-26  Bruno Haible  <bruno@clisp.org>
60473
60474         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
60475
60476 2006-06-26  Bruno Haible  <bruno@clisp.org>
60477
60478         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
60479         SGI C compiler in pre-C99 mode.
60480         Suggested by Mark D. Baushke and Larry Jones.
60481
60482 2006-06-26  Bruno Haible  <bruno@clisp.org>
60483
60484         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
60485         WCHAR_MAX.
60486         Reported by Mark D. Baushke and Larry Jones.
60487
60488 2006-06-26  Bruno Haible  <bruno@clisp.org>
60489
60490         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
60491         in pre-C99 mode.
60492         Suggested by Mark D. Baushke and Larry Jones.
60493
60494 2006-06-23  Simon Josefsson  <jas@extundo.com>
60495             Bruno Haible  <bruno@clisp.org>
60496
60497         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
60498         Emit mostlyclean-local rule.
60499         (func_emit_tests_Makefile_am): Likewise.
60500         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
60501
60502 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
60503
60504         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
60505
60506 2006-06-23  Bruno Haible  <bruno@clisp.org>
60507
60508         * tests/test-stdint.c: Update to match ISO C 99 Technical
60509         Corrigendum 1.
60510
60511 2006-06-23  Bruno Haible  <bruno@clisp.org>
60512
60513         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
60514
60515 2006-06-23  Bruno Haible  <bruno@clisp.org>
60516
60517         * lib/stdint_.h: Treat IRIX like OpenBSD.
60518
60519 2006-06-23  Bruno Haible  <bruno@clisp.org>
60520
60521         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
60522         ISO C 99 Technical Corrigendum 1.
60523
60524 2006-06-22  Simon Josefsson  <jas@extundo.com>
60525
60526         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
60527         MinGW.
60528
60529 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60530
60531         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
60532         needed.  Some compiler complained about some of them.  Problem reported
60533         by Larry Jones in
60534         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
60535
60536 2006-06-21  Simon Josefsson  <jas@extundo.com>
60537
60538         * tests/test-getaddrinfo.c: New file.
60539
60540         * modules/getaddrinfo-tests: New file.
60541
60542         * MODULES.html.sh: Add inet_pton.
60543
60544         * modules/inet_pton: New file.
60545
60546 2006-06-21  Simon Josefsson  <jas@extundo.com>
60547
60548         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
60549         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
60550         of using the (limited) gnulib implementation on Windows XP.
60551
60552         * m4/inet_pton.m4: New file.
60553
60554 2006-06-21  Simon Josefsson  <jas@extundo.com>
60555
60556         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60557         variable.
60558
60559         * lib/socket_.h: Don't define WINVER.
60560
60561         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60562         slightly modified to work in gnulib.
60563
60564 2006-06-21  Simon Josefsson  <jas@extundo.com>
60565
60566         * doc/gnulib.texi (Windows sockets): Add.
60567
60568 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60569
60570         * lib/read-file.c (fread_file): Start with buffer allocation of
60571         0 bytes rather than 1 byte; this simplifies the code.
60572         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60573         code to free buffer and save/restore errno.
60574         (internal_read_file): Remove unused local.
60575
60576 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60577
60578         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60579         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60580         Problem reported by Denis Excoffier in
60581         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60582
60583 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60584
60585         * modules/sys_socket, modules/socklen: Include sys/types since
60586         FreeBSD 4.x's sys/socket.h needs it.
60587
60588 2006-06-19  Simon Josefsson  <jas@extundo.com>
60589
60590         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60591
60592 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60593
60594         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60595
60596 2006-06-19  Bruno Haible  <bruno@clisp.org>
60597
60598         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60599         and FULL_PATH_INTTYPES_H in angle brackets.
60600         Reported by Mark D. Baushke <mdb@gnu.org>.
60601
60602 2006-06-17  Eric Blake  <ebb9@byu.net>
60603
60604         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60605         errno.
60606
60607 2006-06-17  Bruno Haible  <bruno@clisp.org>
60608
60609         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60610         <sys/inttypes.h>.
60611
60612 2006-06-17  Bruno Haible  <bruno@clisp.org>
60613
60614         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60615         whether errno is declared. Assume <errno.h> declares errno.
60616
60617 2006-06-17  Bruno Haible  <bruno@clisp.org>
60618
60619         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60620
60621 2006-06-17  Bruno Haible  <bruno@clisp.org>
60622
60623         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60624         problem on Solaris 2.5.1.
60625
60626 2006-06-16  Eric Blake  <ebb9@byu.net>
60627
60628         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60629         * lib/unicodeio.c [!defined errno]: Likewise.
60630         * lib/strtol.c [!defined errno]: Likewise.
60631         * lib/strtod.c [!defined errno]: Likewise.
60632
60633 2006-06-15  Eric Blake  <ebb9@byu.net>
60634
60635         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60636
60637 2006-06-15  Eric Blake  <ebb9@byu.net>
60638
60639         * config/srclist.txt (ssize_t.m4): Lose sync.
60640
60641 2006-06-15  Bruno Haible  <bruno@clisp.org>
60642
60643         * modules/stdint (Files): Include m4/full-header-path.m4,
60644         m4/size_max.m4, m4/wchar_t.m4.
60645         (Makefile.am): Many more substitutions.
60646         * modules/stdint-tests: New file.
60647         * tests/test-stdint.c: New file.
60648
60649 2006-06-15  Bruno Haible  <bruno@clisp.org>
60650
60651         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60652         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60653         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60654         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60655         gl_CHECK_TYPE_SAME): New macros.
60656
60657 2006-06-15  Bruno Haible  <bruno@clisp.org>
60658
60659         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60660
60661 2006-06-15  Bruno Haible  <bruno@clisp.org>
60662
60663         * lib/stdint_.h: Rewritten to be fully auto-configured.
60664         Fixes bug on HP-UX/IA64.
60665
60666 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60667
60668         * lib/getdate.y (__attribute__): Don't define if already defined.
60669         Problem reported by Larry Jones.
60670         * lib/utimens.c (__attribute__): Likewise.
60671
60672 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60673
60674         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60675         reported by Andreas Schwab.
60676
60677 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60678             Bruno Haible  <bruno@clisp.org>
60679
60680         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60681         check for the declaration of strnlen and a run test that exposes the
60682         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60683         rpl_strndup.
60684
60685 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60686             Bruno Haible  <bruno@clisp.org>
60687
60688         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60689
60690 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60691
60692         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60693         compile test, for Tru64 4.0D.
60694
60695 2006-05-28  Karl Berry  <karl@gnu.org>
60696
60697         * config/srclist.txt (printf-args.c): lose sync.
60698
60699 2006-05-26  Martin Lambers  <marlam@marlam.de>
60700
60701         * lib/getpass.c: Updates the test for the native W32 API, and adds
60702         missing includes, thus fixing compilation warnings.
60703
60704 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60705
60706         * lib/exclude.c (exclude_fnmatch): New function.
60707         (excluded_file_name): Call exclude_fnmatch.
60708         * lib/exclude.h (excluded_file_name): New prototype
60709
60710 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60711
60712         * lib/tempname.c (small_open, large_open): New macros.
60713         (__open, __open64) [!_LIBC]: Remove.
60714         (__gen_tempname): Use small_open and large_open instead of __open
60715         and __open64.  This fixes a portability bug on HP-UX 11.11i
60716         reported by Simon Wing-Tang in
60717         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60718
60719 2006-05-24  Bruno Haible  <bruno@clisp.org>
60720
60721         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60722         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60723         Reported by Thorsten Maerz <torte@netztorte.de> via
60724         Aaron Stone <aaron@serendipity.cx>.
60725
60726 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60727
60728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60729         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60730         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60731         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60732         not really conditional on the cache.
60733         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60734
60735 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60736
60737         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60738         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60739         (my_usleep): Don't mishandle maximum value.
60740
60741 2006-05-19  Jim Meyering  <jim@meyering.net>
60742
60743         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60744
60745 2006-05-17  Bruno Haible  <bruno@clisp.org>
60746
60747         Cygwin portability.
60748         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60749
60750 2006-05-17  Bruno Haible  <bruno@clisp.org>
60751
60752         * lib/stdint_.h: Fix recognition of Cygwin.
60753
60754 2006-05-15  Bruno Haible  <bruno@clisp.org>
60755
60756         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60757         on libtool patch by Ralf Wildenhues.
60758
60759 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60760
60761         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60762         test for C99 conformance; (bool) 0.5 is an integer constant
60763         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60764         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60765
60766 2006-05-11  Simon Josefsson  <jas@extundo.com>
60767
60768         * m4/xvasprintf.m4: Fix obvious typo.
60769
60770 2006-05-11  Jim Meyering  <jim@meyering.net>
60771
60772         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60773         James Lemley.
60774
60775 2006-05-10  Simon Josefsson  <jas@extundo.com>
60776
60777         * lib/md4.c: Typo fix, update copyright years.
60778         (K1, K2): Don't use L because it turn computations into 64-bit on
60779         64-bit platforms.
60780
60781 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60782
60783         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60784         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60785         unwanted sign propagation, e.g., on hosts with 64-bit int.
60786         There still are some problems with reeelly weird theoretical hosts
60787         (e.g., 33-bit int) but it's not worth worrying about now.
60788         * lib/sha1.c (rol): Likewise.
60789         (K1, K2, K3, K4): Remove unnecessary L suffix.
60790
60791 2006-05-10  Bruno Haible  <bruno@clisp.org>
60792
60793         * lib/des.c: Cast to avoid warnings.
60794
60795 2006-05-09  Bruno Haible  <bruno@clisp.org>
60796
60797         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60798         (Depends-on): Depend also on xsize, stdarg.
60799         (configure.ac): Add gl_XVASPRINTF.
60800
60801 2006-05-09  Bruno Haible  <bruno@clisp.org>
60802
60803         * m4/xvasprintf.m4: New file.
60804
60805 2006-05-09  Bruno Haible  <bruno@clisp.org>
60806
60807         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60808         (EOVERFLOW): Define fallback value.
60809         (xstrcat): New function.
60810         (xvasprintf): Recognize the special case of a string concatenation.
60811
60812 2006-05-08  Eric Blake  <ebb9@byu.net>
60813
60814         * gnulib-tool (func_version): Base copyright year on CVS date.
60815         (func_emit_copyright_notice): New function.
60816         (func_emit_lib_Makefile_am): Use it.
60817         (func_emit_tests_Makefile_am): Likewise.
60818         (func_import): Likewise.
60819
60820 2006-05-08  Bruno Haible  <bruno@clisp.org>
60821
60822         * modules/stdarg: New file.
60823         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60824
60825 2006-05-08  Bruno Haible  <bruno@clisp.org>
60826
60827         * m4/stdarg.m4: New file, from GNU gettext.
60828
60829 2006-05-08  Bruno Haible  <bruno@clisp.org>
60830
60831         * config/srclist.txt (build-aux/config.rpath): different from latest
60832         release.
60833
60834 2006-05-08  Bruno Haible  <bruno@clisp.org>
60835
60836         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60837
60838 2006-05-05  Jim Meyering  <jim@meyering.net>
60839
60840         * m4/warning.m4: New file, derived from bison's file by the same name.
60841
60842 2006-05-03  Bruno Haible  <bruno@clisp.org>
60843
60844         * lib/stdint_.h: Shorter URL.
60845         * lib/inttypes.h: Likewise.
60846
60847 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60848
60849         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60850
60851 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60852
60853         * lib/verify.h: Document the internals better.  Most of this change
60854         was written by Bruno Haible.
60855
60856 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60857
60858         * doc/verify.texi: New file, partly based on a proposal by
60859         Bruno Haible.
60860
60861 2006-05-02  Bruno Haible  <bruno@clisp.org>
60862
60863         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60864         test from here...
60865         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60866
60867 2006-04-29  Bruno Haible  <bruno@clisp.org>
60868
60869         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60870         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60871
60872 2006-04-29  Bruno Haible  <bruno@clisp.org>
60873
60874         * gnulib-tool: Make --update option actually work.
60875
60876 2006-04-29  Bruno Haible  <bruno@clisp.org>
60877
60878         * doc/gcd.texi: New file.
60879         * doc/gnulib.texi: Include it.
60880
60881 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60882
60883         * lib/getdate.y (get_date): When adding relative date, start with the
60884         initial time, not with the result of the first mktime call.
60885
60886 2006-04-25  Bruno Haible  <bruno@clisp.org>
60887
60888         * gnulib-tool (func_import): Output the include directives in three
60889         blocks, sorted separately.
60890         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60891
60892 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60893
60894         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60895         to define main with arguments, for C++.  Reported by Eric Blake.
60896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60897         Prefer 'int main ()' to 'int main (void)', for C++.
60898         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60899         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60900         for 'main', for C99 and C++.
60901
60902 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60905         Don't assume that exit status -1 is valid.
60906         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60907         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60908         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60909         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60910         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60911         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60912         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60913         functions can be used without declaring them, or that you can
60914         exit with status -1.
60915         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60916
60917 2006-04-24  Karl Berry  <karl@gnu.org>
60918
60919         * config/srclist.txt (longdouble.m4): sync lost.
60920
60921 2006-04-24  Eric Blake  <ebb9@byu.net>
60922
60923         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60924
60925 2006-04-24  Bruno Haible  <bruno@clisp.org>
60926
60927         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60928         poll() implementation in AIX.
60929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60930
60931 2006-04-24  Bruno Haible  <bruno@clisp.org>
60932
60933         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
60934         assigned exactly once.
60935
60936 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60937             Bruno Haible  <bruno@clisp.org>
60938
60939         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60940         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60941         for AM_CPPFLAGS.
60942
60943 2006-04-23  Bruno Haible  <bruno@clisp.org>
60944
60945         * modules/copy-file: Depend on unistd.
60946         * modules/execute: Likewise.
60947         * modules/fatal-signal: Likewise.
60948         * modules/findprog: Likewise.
60949         * modules/mkdtemp : Likewise.
60950         * modules/pipe: Likewise.
60951         * modules/wait-process: Likewise.
60952
60953 2006-04-23  Bruno Haible  <bruno@clisp.org>
60954
60955         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60956         condition was already detected.
60957         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60958
60959 2006-04-23  Bruno Haible  <bruno@clisp.org>
60960
60961         * lib/copy-file.c: Include <unistd.h> unconditionally.
60962         * lib/execute.c: Likewise.
60963         * lib/fatal-signal.c: Likewise.
60964         * lib/findprog.c: Likewise.
60965         * lib/mkdtemp.c: Likewise.
60966         * lib/pipe.h: Likewise.
60967         * lib/pipe.c: Likewise.
60968         * lib/wait-process.h: Likewise.
60969
60970 2006-04-23  Bruno Haible  <bruno@clisp.org>
60971
60972         * gnulib-tool (func_usage): Fix --import description. Document
60973         --update.
60974         (func_import): Create temporary file in a temporary directory, if
60975         --dry-run is specified. Silence errors from 'grep' when there are no
60976         m4 files in $m4dir.
60977         (func_create_testdir): Silence errors from 'grep' when there are no
60978         m4 files in $m4dir.
60979         Reported by Karl Berry <karl@freefriends.org>.
60980
60981 2006-04-20  Bruno Haible  <bruno@clisp.org>
60982
60983         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60984         one argument, so that the code will be portable to Autoconf 2.60.
60985         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60986         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60987         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60988
60989 2006-04-19  Derek Price  <derek@ximbiot.com>
60990             Eric Blake  <ebb9@byu.net>
60991
60992         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60993         rather than "/full/path.h".  Update comment to match.  Shorten &
60994         generalize m4_translit call via AS_TR_CPP.
60995
60996 2006-04-19  Derek Price  <derek@ximbiot.com>
60997             Eric Blake  <ebb9@byu.net>
60998
60999         * lib/inttypes.h: Correct grammar in comment.
61000
61001 2006-04-18  Derek Price  <derek@ximbiot.com>
61002             Paul Eggert  <eggert@cs.ucla.edu>
61003
61004         * modules/inttypes: New file.
61005         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61006
61007 2006-04-18  Derek Price  <derek@ximbiot.com>
61008             Paul Eggert  <eggert@cs.ucla.edu>
61009
61010         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61011         New files.
61012
61013 2006-04-18  Derek Price  <derek@ximbiot.com>
61014             Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * lib/inttypes.h: New file.
61017         * lib/strtoimax.c: Assume <inttypes.h>.
61018
61019 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61020
61021         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61022         isn't mounted.  Problem reported by Kir Kolyshkin.
61023
61024 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61025
61026         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61027         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61028         Derek R. Price.
61029         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61030         implementation.
61031
61032 2006-04-12  Eric Blake  <ebb9@byu.net>
61033
61034         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61035         is now done automatically by the corresponding Autoconf macro.
61036
61037 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61038
61039         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61040         time_r.h.
61041
61042 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61043
61044         Merge regex changes from libc, removing some of our
61045         POSIX-conformance changes that were rejected and redoing them in a
61046         less-intrusive way.
61047
61048         * lib/regcomp.c (re_compile_internal, init_dfa):
61049         Length arg is now size_t, not Idx.  All uses changed.
61050         (peek_token): Forward decl now says internal_function.
61051         (__re_error_msgid, __re_error_msgid_idx):
61052         Now static rather than extern with attribute_hidden.
61053         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61054         For some reason libc prefers K&R style defns for external functions.
61055         (regerror) [!defined _LIBC]: Likewise.
61056         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61057         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61058         (build_range_exp, build_collating_symbol):
61059         Use K&R-style defn.
61060         (re_compile_fastmap): Use '\0' to memset, not 0.
61061         (utf8_sb_map): Make the calculations more obvious.
61062         (init_dfa, parse_bracket_exp, build_charclass_op):
61063         Call calloc and cast result, as glibc does.
61064         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61065         (build_range_exp, build_collating_symbol):
61066         Now internal functions.
61067
61068         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61069
61070         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61071         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61072         Don't depend on VMS; depend on __VMS instead, for POSIX
61073         namespace cleanness.
61074         (regoff_t): Define to ssize_t, not long int.
61075
61076         Remove the REG_ macros named below.  Instead, make the old names
61077         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61078         __USE_GNU_REGEX.
61079         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61080         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61081         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61082         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61083         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61084         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61085         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61086         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61087         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61088         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61089         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61090         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61091         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61092         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61093         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61094         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61095         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61096         (REG_NREGS):
61097         Remove.  All uses replaced by the old RE_* names.
61098         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61099         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61100         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61101         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61102         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61103         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61104         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61105         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61106         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61107         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61108         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61109         Don't bother having these macros be independent of each others'
61110         values, since they no longer exist in the POSIX name space.
61111
61112         Rename the following member names back to their old names,
61113         unless !__USE_GNU_REGEX.  All uses changed back.
61114         (buffer): Renamed from re_buffer.
61115         (allocated): Renamed from re_allocated.
61116         (used): Renamed from re_used.
61117         (syntax): Renamed from re_syntax.
61118         (fastmap): Renamed from re_fastmap.
61119         (translate): Renamed from re_translate.
61120         (can_be_null): Renamed from re_can_be_null.
61121         (regs_allocated): Renamed from re_regs_allocated.
61122         (fastmap_accurate): Renamed from re_fastmap_accurate.
61123         (no_sub): Renamed from re_no_sub.
61124         (not_bol): Renamed from re_not_bol.
61125         (not_eol): Renamed from re_not_eol.
61126         (newline_anchor): Renamed from re_newline_anchor.
61127         (num_regs): Renamed from rm_num_regs.
61128         (start): Renamed from rm_start.
61129         (end): Renamed from rm_end.
61130
61131         (free_state): Move up a bit.
61132
61133         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61134         #define to be empty.
61135         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61136         when that is what is intended.
61137         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61138         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61139         (MAX): New macro.
61140         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61141         All uses changed back to re_malloc, etc.  It's now the caller's
61142         responsibility to check for overflow; all callers changed.
61143         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61144         (re_x2nrealloc): Remove.
61145         (free_state): Remove decl.
61146
61147         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61148         (re_set_registers, re_exec):
61149         Use K&R-style defn.
61150
61151         2006-01-31  Roland McGrath  <roland@redhat.com>
61152
61153         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61154         Reported by Mike Frysinger <vapier@gentoo.org>.
61155
61156         2006-01-15  Andreas Jaeger  <aj@suse.de>
61157
61158         [BZ #1950]
61159         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61160         build_wcs_upper_buffer change.
61161         (build_wcs_upper_buffer): Change return type.
61162
61163         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61164
61165         * lib/regex_internal.h: Include <stdint.h> if available.
61166
61167         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61168
61169         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61170
61171         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61172
61173         * lib/regcomp.c: Adjust for changed secondary hash function.
61174
61175         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61176
61177         * lib/regex.h: Pretty printing.
61178         Clean up namespace a bit.
61179
61180         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61181
61182         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61183         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61184
61185         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61186                     Ulrich Drepper  <drepper@redhat.com>
61187
61188         [BZ #1302]
61189         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61190         changed.
61191         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61192
61193         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61194
61195         [BZ #281]
61196         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61197         * lib/regcomp.c: Remove unnecessary uses of
61198         unsigned RE_TRANSLATE_TYPE.
61199         * lib/regex_internal.h: Likewise.
61200         * lib/regex_internal.c: Likewise.
61201         * lib/regexec.c: Likewise.
61202         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61203
61204         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61205
61206         * lib/regexec.c (find_recover_state): Remove unnecessary
61207         initialization.
61208         (transit_state_bkref): Make DFA a const pointer.
61209         (get_subexp): Likewise.
61210         (check_arrival): Likewise.
61211         (update_cur_sifted_state): Likewise.
61212         (re_search_internal): Likewise.
61213         (prune_impossible_nodes): Likewise.
61214         (acquire_init_state_context): Likewise.
61215         (proceed_next_node): Likewise.
61216         (set_regs): Likewise.
61217         (free_fail_stack_return): Likewise.
61218         (check_arrival_expand_ecl): Mark DFA parameter as const.
61219         (check_arrival_expand_ecl_sub): Likewise.
61220         (check_subexp_limits): Likewise.
61221         (sub_epsilon_src_nodes):  Likewise.
61222         (add_epsilon_src_nodes):  Likewise.
61223         (merge_state_array): Likewise.
61224         (update_regs): Likewise.
61225         (build_trtable): Likewise.
61226         (sift_states_backward): Mark MCTX parameter as const.
61227         (build_sifted_states): Likewise.
61228         (update_cur_sifted_state): Likewise.
61229         (sift_states_mkref): Likewise.
61230         (check_arrival_expand_ecl): Mark eclosure as const.
61231         (check_dst_limits_calc_pos_1): Likewise.
61232         * lib/regex_internal.h (re_match_context_t): Make dfa a const
61233         pointer.
61234
61235         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
61236
61237         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
61238         (transit_state_sb): Likewise.
61239         (transit_state_mb): Likewise.
61240         (sift_states_iter_mb): Likewise.
61241         (check_arrival_add_next_nodes): Likewise.
61242         (check_node_accept_bytes): Change first parameter to pointer-to-const.
61243         [_LIBC] (re_search_2_stub): Use mempcpy.
61244
61245         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
61246         mbrtowc for very simple UTF-8 case.
61247
61248         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
61249         a pointer-to-const.
61250         (re_acquire_state_context): Likewise.
61251         * lib/regex_internal.h: Adjust prototypes.
61252
61253         * lib/regex.c: Prevent using C++ compilers.
61254
61255         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
61256         (re_acquire_state_context): Likewise.
61257
61258 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61259
61260         * modules/regex (Depends-on): Add ssize_t.
61261
61262 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61263
61264         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
61265         translation table.
61266
61267 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61268
61269         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
61270
61271 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
61272             Bruno Haible  <bruno@clisp.org>
61273
61274         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
61275         <sys/types.h> and <inttypes.h>.
61276
61277 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61278
61279         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
61280         `__error_t_defined', so argp.h will not typedef the former.
61281
61282 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61283
61284         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
61285         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
61286         glibc names.  Even if glibc is changed to conform to POSIX, the
61287         traditional names will be available anyway, since regex depends on
61288         the extensions module.  Also, fix a longstanding typo in the
61289         implementation of Spencer ERE test #75 from grep 2.3.  Problems
61290         reported by Emanuele Giaquinta.  Also, change sense of cached
61291         variable, so that the message makes sense.
61292
61293 2006-03-24  Simon Josefsson  <jas@extundo.com>
61294
61295         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
61296         including some doc fixes.
61297         (base64_encode_alloc): Fix +1 bug on allocation failures.
61298
61299 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61300
61301         * lib/base64.c (base64_encode): Do not read past end of array with
61302         unsanitized input on systems with CHAR_BIT > 8.
61303
61304 2006-03-24  Eric Blake  <ebb9@byu.net>
61305
61306         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
61307
61308 2006-03-22  Karl Berry  <karl@gnu.org>
61309
61310         * config/srclist.txt (*setenv.[ch]): get from coreutils.
61311         * config/srclistvars.sh (COREUTILS): new var.
61312
61313 2006-03-17  Jim Meyering  <jim@meyering.net>
61314
61315         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
61316         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
61317
61318 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61319
61320         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
61321         no longer needs it.  Instead, check that regoff_t is as least
61322         as wide as ptrdiff_t.
61323
61324         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
61325         so that our regex.h stays compatible with the installed regex.
61326         This is helpful for installers who configure --without-included-regex.
61327         Problem reported by Emanuele Giaquinta.
61328
61329 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61330
61331         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
61332         Typedef to long int, not to off_, as POSIX will likely change
61333         in that direction.
61334
61335 2006-03-15  Eric Blake  <ebb9@byu.net>
61336
61337         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
61338
61339 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61340
61341         * lib/argp-help.c (validate_uparams): Fix typo
61342         * lib/argp-parse.c (argp_default_options): Consistently begin help
61343         messages with a lowercase letter.
61344
61345 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
61346
61347         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
61348         overrun buffers and shouldn't be used (much as gets shouldn't be
61349         used).
61350         * lib/time_r.c (asctime_r, ctime_r): Likewise.
61351
61352 2006-03-08  Simon Josefsson  <jas@extundo.com>
61353
61354         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
61355         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61356
61357 2006-03-08  Simon Josefsson  <jas@extundo.com>
61358
61359         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
61360         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61361
61362 2006-03-08  Simon Josefsson  <jas@extundo.com>
61363
61364         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
61365         signal that configure disabled the device.
61366
61367 2006-03-08  Simon Josefsson  <jas@extundo.com>
61368
61369         * build-aux/maint.mk: Fix refresh-po, to handle no translated
61370         languages.
61371
61372 2006-03-07  Simon Josefsson  <jas@extundo.com>
61373
61374         * modules/getopt (Depends-on): Add unistd.
61375
61376         * modules/unistd: New file.
61377
61378 2006-03-07  Simon Josefsson  <jas@extundo.com>
61379
61380         * modules/gc-random: New file.
61381
61382 2006-03-07  Simon Josefsson  <jas@extundo.com>
61383
61384         * m4/unistd_h.m4: New file.
61385
61386 2006-03-07  Simon Josefsson  <jas@extundo.com>
61387
61388         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
61389         test to be side-effect free by storing the result in the cache
61390         variable gl_cv_lib_readline, and moving the assignment of
61391         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
61392         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61393
61394 2006-03-07  Simon Josefsson  <jas@extundo.com>
61395
61396         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
61397         error on missing devices (the functions will return an error).
61398
61399         * m4/gc.m4: Move random stuff to gc-random.m4
61400
61401 2006-03-07  Simon Josefsson  <jas@extundo.com>
61402
61403         * lib/unistd_.h: New file.
61404
61405 2006-03-07  Simon Josefsson  <jas@extundo.com>
61406
61407         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
61408
61409 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61410
61411         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
61412         Problem reported by Juan Manuel Guerrero.
61413
61414 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61415
61416         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
61417         the unistd module.
61418         * lib/getlogin_r.c: Likewise.
61419         * lib/getlogin_r.h: Likewise.
61420         * lib/glob.c: Likewise.
61421         * lib/pagealign_alloc.c: Likewise.
61422         * lib/unistd_.h: Remove; no longer needed.
61423
61424 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         * MODULES.html.sh (Support for systems lacking POSIX:2001):
61427         Add unistd.
61428         * modules/c-stack (Depends-on): Add unistd.
61429         * modules/getlogin_r: Likewise.
61430         * modules/glob: Likewise.
61431         * modules/pagealign_alloc: Likewise.
61432         * modules/unistd (Files): Remove lib/unistd_.h.
61433         (EXTRA_DIST): Remove.
61434         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
61435         need unistd_.h.
61436         (MOSTLYCLEANFILES): Remove unistd.h-t.
61437
61438 2006-03-03  Simon Josefsson  <jas@extundo.com>
61439
61440         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
61441
61442 2006-03-03  Simon Josefsson  <jas@extundo.com>
61443
61444         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
61445         libidn and bison.
61446
61447 2006-03-03  Simon Josefsson  <jas@extundo.com>
61448
61449         * build-aux/maint.mk: Add indent target.
61450
61451 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
61452
61453         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
61454         our replacement poll.h in any case, to avoid a differing
61455         declaration from a system header.  Seen on AIX.
61456
61457 2006-03-01  Simon Josefsson  <jas@extundo.com>
61458
61459         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
61460         <kasal@ucw.cz>.
61461
61462 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61463
61464         * modules/gettime (Depends-on): Add extensions module.
61465         * modules/nanosleep (Depends-on): Likewise.
61466         * modules/settime (Depends-on): Likewise.
61467
61468 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
61471         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
61472         pedantically.
61473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61474         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
61475
61476         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
61477         not "==".  Reported by Ralf Wildenhues.
61478
61479 2006-03-01  Karl Berry  <karl@gnu.org>
61480
61481         * doc/Copyright/request-*: new files, synced from gnuorg.
61482
61483 2006-03-01  Karl Berry  <karl@gnu.org>
61484
61485         * config/srclist.txt (Copyright/*): new entries.
61486
61487 2006-02-28  Simon Josefsson  <jas@extundo.com>
61488
61489         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
61490
61491 2006-02-27  Simon Josefsson  <jas@extundo.com>
61492
61493         * lib/base64.h: Indent #define's.  From Jim Meyering
61494         <jim@meyering.net>.
61495
61496 2006-02-27  Jim Meyering  <jim@meyering.net>
61497
61498         Revert the change of 2006-02-24, so these files can continue
61499         to be sync'd from gettext.
61500         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
61501         of `config.h'.
61502
61503 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61504
61505         * modules/intprops: New file.
61506         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61507         Add intprops.
61508         * modules/getloadavg (Files): Remove lib/intprops.h.
61509         (Depends-on): Add intprops.
61510         * modules/human: Likewise.
61511         * modules/inttostr: Likewise.
61512         * modules/openat: Likewise.
61513         * modules/sig2str: Likewise.
61514         * modules/userspec: Likewise.
61515         * modules/utimecmp: Likewise.
61516         * modules/xnanosleep: Likewise.
61517         * modules/xstrtol: Likewise.
61518
61519 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
61520
61521         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
61522         * modules/lock-tests (TESTS): Use $(EXEEXT).
61523         * modules/tls-tests: Likewise.
61524         * modules/argp-tests: Likewise.
61525         (check_PROGRAMS): New var, replacing...
61526         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
61527
61528 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61529
61530         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
61531         `config.h'.
61532
61533 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61534
61535         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
61536
61537 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61538
61539         Sync from coreutils.
61540         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
61541         gl_CHDIR_SAFER.
61542
61543 2006-02-22  Jim Meyering  <jim@meyering.net>
61544
61545         Sync from coreutils.
61546         * m4/chdir-safer.m4: New file.
61547
61548 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61549
61550         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
61551         AT_FDCWD exceeds INT_MAX.
61552         * lib/openat.h (AT_FDCWD): Likewise.
61553
61554 2006-02-17  Eric Blake  <address@hidden>
61555
61556         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61557
61558 2006-02-16  Simon Josefsson  <jas@extundo.com>
61559
61560         * modules/getaddrinfo (Depends-on): Add sys_socket.
61561
61562 2006-02-15  Simon Josefsson  <jas@extundo.com>
61563
61564         * build-aux/maint.mk: Add dsyntax-check rule.
61565
61566 2006-02-15  Eric Blake  <ebb9@byu.net>
61567
61568         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61569         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61570         'present but cannot compile' warnings on cygwin.
61571         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61572         use ws2tcpip.h if sys/socket.h works.
61573         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61574         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61575
61576 2006-02-14  Simon Josefsson  <jas@extundo.com>
61577
61578         * modules/maintainer-makefile (Files): Rename.
61579
61580         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61581         and (the local) Makefile.cfg to maint-cfg.mk.
61582
61583         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61584         to the latter.
61585
61586         * modules/maintainer-makefile: New module.
61587
61588         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61589         severaly stripped to make it possible to build it up from scratch
61590         with reliable tests.
61591
61592         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61593         fixes to permit overriding the default actions when configure and
61594         makefile are not available.
61595
61596 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61597
61598         Sync from coreutils.
61599         * modules/lstat (Depends-on): Don't depend on xalloc.
61600         (License): Change from GPL to LGPL, since this is now simply a
61601         replacement for a libc function.
61602
61603 2006-02-14  Jim Meyering  <jim@meyering.net>
61604
61605         Sync from coreutils.
61606
61607         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61608         failure on deficient systems, and simplify gnulib lgpl dependencies.
61609         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61610         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61611
61612         * lib/xalloc-die.c: Remove unused definition of N_.
61613
61614 2006-02-14  Jim Meyering  <jim@meyering.net>
61615
61616         Sync from coreutils.
61617         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61618         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61619         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61620         double-quote uses of that variable, to accommodate the rare case in
61621         which getmntent is available in none of the libraries checked.  This
61622         happens at least on FreeBSD 5.0.
61623
61624 2006-02-13  Simon Josefsson  <jas@extundo.com>
61625
61626         * gnulib-tool (Usage): Fix --import, from
61627         karl@freefriends.org (Karl Berry).
61628
61629 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61630
61631         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61632
61633 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61634
61635         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61636         "autoupdate" on 2005-12-12.
61637
61638 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61639
61640         * modules/closeout (Depends-on): Remove atexit.
61641
61642 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61643
61644         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61645         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61646
61647 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61648
61649         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61650         __EXTENSIONS__ if this causes compilation to fail.  Problem
61651         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61652         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61653
61654 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61657         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61659         All uses changed.
61660
61661 2006-01-26  Simon Josefsson  <jas@extundo.com>
61662
61663         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61664         prototype is visible on mingw32.
61665
61666         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61667         for mingw32.
61668
61669         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61670         mingw32).
61671
61672 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61673
61674         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61675         attempt to open for write; this always fails, at least on POSIX
61676         hosts.  This reinstates the 2006-01-09 change, which was
61677         inadvertently removed.
61678
61679 2006-01-26  Bruno Haible  <bruno@clisp.org>
61680
61681         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61682         Reported by Paul Eggert.
61683
61684 2006-01-26  Bruno Haible  <bruno@clisp.org>
61685             Paul Eggert  <eggert@cs.ucla.edu>
61686
61687         * lib/stdbool_.h (_Bool)
61688         [(! (defined __cplusplus || defined __BEOS__)
61689           && !defined __GNUC__
61690           && !(defined __HP_cc || defined __xlc__
61691                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61692                || defined __sgi))]:
61693         #define to signed char in these cases too; this simplifies
61694         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61695         etc., separately) and makes it more conservative.
61696
61697 2006-01-25  Simon Josefsson  <jas@extundo.com>
61698
61699         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61700         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61701         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61702
61703 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61704
61705         * lib/argp-namefrob.h: Bugfix. Remove stray #
61706
61707 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61708
61709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61710         so that we test the test.
61711         Check for yet another HP-UX cc bug involving *bool |= bool.
61712
61713 2006-01-25  Karl Berry  <karl@gnu.org>
61714
61715         * config/srclist.txt (vasnprintf.c): sync lost.
61716
61717 2006-01-25  Jim Meyering  <jim@meyering.net>
61718
61719         Sync from the stable (b5) branch of coreutils:
61720
61721         * lib/fts.c (fts_children): Don't let close() clobber errno from
61722         failed fchdir().
61723
61724         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61725         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61726         a dangling symlink.  That can also happen at least for ELOOP.
61727         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61728         FYI, this bug predates the inclusion of fts.c in coreutils.
61729
61730         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61731         in their own block, so pre-c99 compilers don't object.
61732
61733         Avoid the double-free (first in fts_read, second in fts_close) that
61734         would occur when an `active' directory is made inaccessible (e.g.,
61735         via chmod a-x) during a traversal.
61736         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61737         before returning.  Reproduce this failure by
61738         mkdir -p a/b; cd a; chmod a-x . b
61739         Reported by Stavros Passas.
61740
61741 2006-01-25  Jim Meyering  <jim@meyering.net>
61742
61743         * lib/fileblocks.c: Remove more useless parentheses.
61744         * lib/readutmp.h: Likewise.
61745
61746 2006-01-25  Bruno Haible  <bruno@clisp.org>
61747
61748         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61749         warnings.
61750         Reported by Paul Eggert.
61751
61752 2006-01-25  Bruno Haible  <bruno@clisp.org>
61753
61754         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61755         rid of a trap command. For Solaris sh.
61756         Reported by Mark D. Baushke <mdb@gnu.org>.
61757
61758 2006-01-24  Simon Josefsson  <jas@extundo.com>
61759
61760         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61761         Bruno.
61762
61763 2006-01-24  Karl Berry  <karl@gnu.org>
61764
61765         * config/srclist.txt (argp-namefrob.h): sync lost.
61766
61767 2006-01-24  Jim Meyering  <jim@meyering.net>
61768
61769         * modules/openat (Files): Add lib/intprops.h.
61770         From Mark D. Baushke.
61771
61772 2006-01-24  Jim Meyering  <jim@meyering.net>
61773
61774         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61775         Reported by Mark D. Baushke.
61776
61777 2006-01-24  Jim Meyering  <jim@meyering.net>
61778
61779         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61780
61781 2006-01-24  Bruno Haible  <bruno@clisp.org>
61782
61783         * modules/strnlen (Maintainer): Change from glibc to all.
61784
61785 2006-01-24  Bruno Haible  <bruno@clisp.org>
61786
61787         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61788         Patch by Paul Eggert.
61789
61790 2006-01-24  Bruno Haible  <bruno@clisp.org>
61791
61792         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61793         already has it.
61794         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61795         2005-11-26.
61796
61797         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61798         'signed char' to avoid problems with the built-in _Bool type.
61799         Reported by Paul Eggert on 2005-11-26.
61800
61801 2006-01-24  Bruno Haible  <bruno@clisp.org>
61802
61803         * gnulib-tool (func_import): Avoid constructing complicated sed
61804         expressions inside backquote.
61805         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61806
61807 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61808
61809         These changes imported from libc.
61810         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61811         test and two separate function calls.
61812         * lib/strndup.c (__strndup): Add libc_hidden_def.
61813
61814 2006-01-23  Simon Josefsson  <jas@extundo.com>
61815
61816         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61817         Remove the test_*_SOURCES variable: automake infers it by default.
61818         * modules/tls-tests: Likewise.
61819
61820 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61821
61822         Work around porting bugs reported by Dieter in
61823         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61824         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61825         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61826         Include "getopt.h" first, to check interface.
61827         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61828         !HAVE_DECL_GETENV.
61829         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61830         (__strndup): Revert to K&R-style function dfns, the glibc style.
61831         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61832         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61833         Include strnlen.h first, to get prototype properly.
61834         (strnlen): Renamed from __strnlen.
61835         Remove weak alias.
61836
61837 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61838
61839         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61840
61841 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61842
61843         * config/srclist.txt: Adjust to reflect glibc reorganization.
61844         This affects only comments.
61845
61846 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61847
61848          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61849          Reported by Bruce Korb <bkorb@gnu.org>.
61850
61851 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61852
61853         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61854         to pacify gcc -Wswitch-default.
61855
61856 2006-01-22  Bruno Haible  <bruno@clisp.org>
61857
61858         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61859         temporary buffer for sprintf, take into account the precision also
61860         for 'd', 'i', 'u', 'o', 'x', 'X'.
61861
61862 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61863
61864         * modules/argp-tests: New module
61865         * tests/test-argp.c: New file
61866         * tests/test-argp-2.sh: New file
61867
61868 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61869
61870         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61871         (__argp_base_name): Removed
61872         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61873         typo.
61874         (__argp_base_name): Provide macro definition or extern declaration
61875         depending on the configuration
61876
61877 2006-01-20  Simon Josefsson  <jas@extundo.com>
61878
61879         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61880
61881 2006-01-20  Simon Josefsson  <jas@extundo.com>
61882
61883         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61884
61885 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61886
61887         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61888         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61889         Suggested by Bruno Haible.
61890
61891 2006-01-20  Karl Berry  <karl@gnu.org>
61892
61893         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61894         until changes propagate, I guess.
61895
61896 2006-01-19  Simon Josefsson  <jas@extundo.com>
61897
61898         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61899
61900 2006-01-19  Simon Josefsson  <jas@extundo.com>
61901
61902         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61903
61904 2006-01-19  Simon Josefsson  <jas@extundo.com>
61905
61906         * gnulib-tool: Set check_PROGRAMS.
61907
61908         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61909         modules/des-tests, modules/gc-arcfour-tests,
61910         modules/gc-arctwo-tests, modules/gc-des-tests,
61911         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61912         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61913         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61914         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61915         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61916         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61917         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61918         test_*_SOURCES.
61919
61920 2006-01-18  Simon Josefsson  <jas@extundo.com>
61921
61922         * modules/socklen (Depends-on): Depend on sys_socket.
61923
61924 2006-01-18  Simon Josefsson  <jas@extundo.com>
61925
61926         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61927         modules/des-tests, modules/gc-arcfour-tests,
61928         modules/gc-arctwo-tests, modules/gc-des-tests,
61929         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61930         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61931         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61932         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61933         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61934         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
61935         $(EXEEXT) to automake TESTS variable, for mingw32.
61936
61937 2006-01-17  Simon Josefsson  <jas@extundo.com>
61938
61939         * modules/socklen (Include): Need sys/socket.h.
61940
61941 2006-01-17  Bruno Haible  <bruno@clisp.org>
61942
61943         * modules/ssize_t (Include): Add <sys/types.h>.
61944
61945 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61946
61947         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61948         it's not portable and it doesn't work with cross-compiles.
61949         Problem reported by Bruno Haible.  Fix missing-$ typo in
61950         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61951         -zignore from being used with Sun's C compiler.
61952
61953 2006-01-12  Simon Josefsson  <jas@extundo.com>
61954
61955         * lib/base64.c: Fix warning, reported by Bruno Haible
61956         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61957
61958 2006-01-12  Bruno Haible  <bruno@clisp.org>
61959
61960         * modules/ldd: New file.
61961         * build-aux/ldd.sh.in: New file.
61962         * MODULES.html.sh (Support for building libraries and executables): Add
61963         ldd.
61964
61965 2006-01-12  Bruno Haible  <bruno@clisp.org>
61966
61967         * m4/ldd.m4: New file.
61968
61969 2006-01-12  Bruno Haible  <bruno@clisp.org>
61970
61971         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61972         endless loop while replacing $auxdir with build-aux.
61973
61974 2006-01-11  Simon Josefsson  <jas@extundo.com>
61975
61976         * lib/stdint_.h (SIZE_MAX): Add missing (.
61977
61978 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61979
61980         Sync from coreutils.
61981         * lib/md5.c: Fix commentary typos.
61982         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61983         * lib/md5.h (__attribute__): Remove; unused.
61984         * lib/sha1.c: Fix commentary to match md5 better.
61985         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61986         so that we don't need to worry about alignment.  All uses changed.
61987         This merges the 2005-10-28 md5 change into sha1.
61988
61989 2006-01-11  Jim Meyering  <jim@meyering.net>
61990
61991         Sync from coreutils.
61992         * lib/md5.c (OP): Fix spacing.
61993
61994 2006-01-11  Bruno Haible  <bruno@clisp.org>
61995
61996         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61997         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61998         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61999
62000 2006-01-11  Bruno Haible  <bruno@clisp.org>
62001
62002         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62003         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62004         the "early" section as well.
62005
62006 2006-01-11  Bruno Haible  <bruno@clisp.org>
62007
62008         Avoid "ar: no archive members specified" error on MacOS X.
62009         * gnulib-tool (func_modules_add_dummy): New function.
62010         (func_import, func_create_testdir): Invoke it.
62011
62012 2006-01-11  Bruno Haible  <bruno@clisp.org>
62013
62014         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62015         with $auxdir in AC_CONFIG_FILES statements.
62016
62017 2006-01-11  Bruno Haible  <bruno@clisp.org>
62018
62019         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62020         Initialize also noinst_HEADERS to empty.
62021
62022 2006-01-11  Bruno Haible  <bruno@clisp.org>
62023
62024         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62025         variables.
62026         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62027         autoreconf.
62028
62029 2006-01-11  Bruno Haible  <bruno@clisp.org>
62030
62031         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62032         overridable by the user.
62033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62034
62035 2006-01-10  Simon Josefsson  <jas@extundo.com>
62036
62037         * modules/sys_socket: New file.
62038
62039 2006-01-10  Simon Josefsson  <jas@extundo.com>
62040
62041         * m4/sys_socket_h.m4: New file.
62042
62043 2006-01-10  Simon Josefsson  <jas@extundo.com>
62044
62045         * lib/socket_.h: New file.
62046
62047 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62048
62049         * modules/readutmp (Maintainer): Add myself.
62050
62051 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62052
62053         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62054         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62055         People who are still concerned with buggy memcmp implementations
62056         can invoke gl_FUNC_MEMCMP themselves.
62057
62058 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62059
62060         * lib/regex_internal.h (BITSET_WORD_BITS):
62061         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62062         preprocessor mishandles large unsigned values as if they were signed.
62063         Problem reported by Claudio Fontana in
62064         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62065
62066 2006-01-10  Jim Meyering  <jim@meyering.net>
62067
62068         Avoid the double-free (first in fts_read, second in fts_close) that
62069         would occur when an `active' directory is made inaccessible (e.g.,
62070         via chmod a-x) during a traversal.
62071         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62072         before returning.  Reproduce this failure by
62073         mkdir -p a/b; cd a; chmod a-x . b
62074         Reported by Stavros Passas.
62075
62076         Sync from coreutils.
62077         * lib/sha1.c: Tweak grammar in a comment.
62078
62079 2006-01-10  Jim Meyering  <jim@meyering.net>
62080
62081         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62082         Patch by Joerg Sonnenberger.
62083
62084 2006-01-10  Bruno Haible  <bruno@clisp.org>
62085
62086         * modules/readutmp: Depend on module free.
62087         * modules/strtok_r: Depend on module restrict.
62088
62089 2006-01-10  Bruno Haible  <bruno@clisp.org>
62090
62091         * modules/gettext (configure.ac): Add an invocation of
62092         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62093
62094 2006-01-10  Bruno Haible  <bruno@clisp.org>
62095
62096         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62097         Reported by Werner Lemberg <wl@gnu.org>.
62098
62099 2006-01-10  Bruno Haible  <bruno@clisp.org>
62100
62101         * lib/localcharset.c: Update from GNU gettext.
62102
62103 2006-01-10  Bruno Haible  <bruno@clisp.org>
62104
62105         * lib/argp.h (__const): Remove macro. Use const instead.
62106         * lib/argp-fmtstream.h (__const): Likewise.
62107         * lib/glob_.h (__const): Remove macro.
62108         * lib/glob-libc.h: Use const instead of __const.
62109
62110 2006-01-10  Bruno Haible  <bruno@clisp.org>
62111
62112         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62113         variable.
62114         Needed to avoid an automake error regarding the 'gettext' module.
62115
62116 2006-01-09  Simon Josefsson  <jas@extundo.com>
62117
62118         * modules/inet_ntop (Depends-on): Add restrict.
62119
62120 2006-01-09  Simon Josefsson  <jas@extundo.com>
62121
62122         * modules/gc-rijndael-tests (License): Put under LGPL.
62123
62124         * modules/gc-des-tests (License): Likewise.
62125
62126         * modules/gc-arcfour-tests (License): Likewise.
62127
62128         * modules/gc-arctwo-tests (License): Likewise.
62129
62130         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62131
62132         * modules/gc-hmac-sha1-tests (Files): Likewise.
62133
62134         * modules/gc-hmac-md5-tests (License): Likewise.
62135
62136         * modules/gc-sha1-tests (License): Likewise.
62137
62138         * modules/gc-md5-tests (License): Likewise.
62139
62140         * modules/gc-md4-tests (License): Likewise.
62141
62142         * modules/gc-md2-tests (License): Likewise.
62143
62144         * modules/gc-tests (License): Likewise.
62145
62146         * modules/des-tests (License): Likewise.
62147
62148         * modules/md4-tests (License): Likewise.
62149
62150         * modules/md2-tests (License): Likewise.
62151
62152 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62153
62154         Sync from coreutils:
62155
62156         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62157         * modules/lib-ignore: New file.
62158         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62159         chdir-safer.m4, lchmod.m4.
62160         * modules/openat: Add mkdirat.c, openat-priv.h.
62161
62162 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62163
62164         Sync from coreutils.
62165         * m4/lib-ignore.m4: New file.
62166         * m4/lchmod.m4: New file.
62167
62168 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         Sync from coreutils.
62171         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62172         for write access: POSIX says that must fail.
62173         * lib/fts.c (diropen): Likewise.
62174         * lib/save-cwd.c (save_cwd): Likewise.
62175         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62176         well, for minor improvements on hosts that lack O_DIRECTORY.
62177         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62178         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62179         Fall back on chown if open failed with EACCES.
62180
62181         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62182         Report an error at compile-time if only a 1-second nominal clock
62183         resolution is found.
62184
62185         * lib/lchmod.h: New file.
62186         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62187         (make_dir_parents): Use lchown rather than chown, and
62188         lchmod rather than chmod.
62189
62190         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62191         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62192         "proc" reported by n0dalus.
62193
62194         * lib/mountlist.c: Include <limits.h>.
62195         (dev_from_mount_options)
62196         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62197         New function.  It no longer assumes "dev=" has the System V meaning
62198         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62199         (read_file_system_list)
62200         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62201         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62202         dev= in that case.
62203
62204         * lib/posixtm.h (PDS_PRE_2000): New macro.
62205         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62206         allow_century.  All usages changed.  Reject dates outside the range
62207         1969-1999 if PDS_PRE_2000 is used.
62208
62209 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62210
62211         Sync from coreutils.
62212         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62213         (Time of day items): Mention the possibility of leap seconds.
62214         Problem reported by Dr. David Alan Gilbert.
62215
62216 2006-01-09  Jim Meyering  <jim@meyering.net>
62217
62218         Sync from coreutils.
62219
62220         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
62221
62222         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
62223
62224         * lib/modechange.c (mode_compile): Reject an invalid mode string
62225         that starts with an octal digit.  From Andreas Gruenbacher.
62226
62227         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
62228         and dup to open_safer and dup_safer, respectively.
62229         (openat_permissive): Fix typo in comment.
62230
62231         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
62232         "gettext.h"; either no longer needed or are guaranteed by openat.h.
62233         (_): Remove; no longer needed.
62234         (openat): Renamed from rpl_openat; no need for rpl_openat
62235         since openat.h renames openat for us.
62236         Replace most of the body with a call to openat_permissive,
62237         to avoid duplicate code.
62238         Port to (probably hypothetical) environments were mode_t is
62239         wider than int.
62240         (openat_permissive): Require mode arg, so that we can check
62241         types better.  Put it just after flags.  Change cwd failure
62242         indicator from pointer-to-bool to pointer-to-errno-value.
62243         All callers changed.
62244         Invoke openat_save_fail and/or openat_restore_fail if
62245         cwd_errno is null, so that openat can call us.
62246         (openat_permissive, fdopendir, fstatat, unlinkat):
62247         Simplify errno handling to avoid some duplicate code,
62248         as it's OK to set errno on success.
62249         * lib/openat.h: Revamp code so that function macros depend on
62250         __OPENAT_PREFIX only, not also on AT_FDCWD.
62251         (openat_ro): Remove.  Caller changed to use openat_permissive.
62252         (openat_permissive): Now a macro, if not a function.
62253         (openat_restore_fail, openat_save_fail): Now always functions,
62254         since mkdirat needs them even if __OPENAT_PREFIX is defined.
62255
62256         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
62257         and openat.c.
62258         * lib/mkdirat.c: Include openat-priv.h.
62259         Remove definitions of macros defined therein.
62260         * lib/openat.c: Likewise.
62261
62262         * lib/mkdirat.c (mkdirat): New file and function.
62263         * lib/openat.h (mkdirat): Declare.
62264
62265         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
62266
62267         * lib/openat.h (openat_permissive): Declare.
62268         (openat_ro): Define.
62269
62270         * lib/openat.c (EXPECTED_ERRNO): New macro.
62271         (openat_permissive): New function -- used in remove.c rewrite.
62272         (all functions): Set errno just before returning, only if there
62273         was an actual failure.
62274         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
62275
62276         Emulate openat-family functions using Linux's procfs, if possible.
62277         Idea and some code based on Ulrich Drepper's glibc changes.
62278
62279         * lib/openat.c: (BUILD_PROC_NAME): New macro.
62280         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
62281         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
62282         before falling back on save_cwd and restore_cwd.
62283         (fdopendir, fstatat, unlinkat): Likewise.
62284
62285         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
62286         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
62287
62288         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
62289         as second argument to va_arg.  Otherwise, some versions of gcc
62290         warn that `if this code is reached, the program will abort'.
62291
62292 2006-01-09  Jim Meyering  <jim@meyering.net>
62293
62294         Sync from coreutils.
62295         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
62296         Require openat-priv.h.
62297
62298 2006-01-09  Bruno Haible  <bruno@clisp.org>
62299
62300         * modules/strnlen (Include): Use strnlen.h.
62301
62302 2006-01-09  Bruno Haible  <bruno@clisp.org>
62303
62304         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
62305
62306 2006-01-09  Bruno Haible  <bruno@clisp.org>
62307
62308         * lib/sysexit_.h (EX_OK): New macro.
62309         Suggested by Martin Lambers <marlam@marlam.de>.
62310
62311 2006-01-09  Bruno Haible  <bruno@clisp.org>
62312
62313         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
62314         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
62315
62316 2006-01-09  Bruno Haible  <bruno@clisp.org>
62317
62318         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
62319         numbers.
62320
62321 2006-01-09  Bruno Haible  <bruno@clisp.org>
62322
62323         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
62324         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
62325         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
62326         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
62327
62328 2006-01-09  Bruno Haible  <bruno@clisp.org>
62329
62330         * build-aux/javacomp.sh.in: New file, moved from lib/.
62331         * modules/javacomp-script (Files): Update.
62332         (configure.ac): Add AC_CONFIG_FILES invocation.
62333         (EXTRA_DIST): Remove variable.
62334
62335         * build-aux/javaexec.sh.in: New file, moved from lib/.
62336         * modules/javaexec (Files): Update.
62337         (configure.ac): Add AC_CONFIG_FILES invocation.
62338         (EXTRA_DIST): Remove javaexec.sh.in.
62339
62340         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
62341         * modules/csharpcomp-script (Files): Update.
62342         (configure.ac): Add AC_CONFIG_FILES invocation.
62343         (EXTRA_DIST): Remove variable.
62344
62345         * build-aux/csharpexec.sh.in: New file, moved from lib/.
62346         * modules/csharpexec (Files): Update.
62347         (configure.ac): Add AC_CONFIG_FILES invocation.
62348         (EXTRA_DIST): Remove csharpexec.sh.in.
62349
62350 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62351
62352         Sync from coreutils.
62353
62354         Add POSIX ACL support
62355         * lib/acl.h (copy_acl, set_acl): Add declarations.
62356         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
62357         systems other than Linux.
62358         (chmod_or_fchmod): New function: use fchmod when possible,
62359         and chmod otherwise.
62360         (file_has_acl): Add a POSIX ACL implementation, with a
62361         Linux-specific subcase.
62362         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
62363         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
62364         acls are unsupported.
62365         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
62366         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
62367         are unsupported.
62368
62369 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62370
62371         Sync from coreutils.
62372         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
62373
62374 2006-01-07  Bruno Haible  <bruno@clisp.org>
62375
62376         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
62377         gl_EARLY.
62378
62379 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62380
62381         * lib/strftime.c (tzname): Don't declare if it is already #defined.
62382         Problem reported for Mingw by Mark Junker.
62383
62384 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62385
62386         * README: Gnulib normally doesn't generate a tarball.
62387
62388 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
62389
62390         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
62391         long int, not int, for nanosecond counts, so that people who are
62392         used to POSIX struct timespec won't be surprised.  Reported by Jim
62393         Meyering.
62394
62395 2005-12-28  Bruno Haible  <bruno@clisp.org>
62396
62397         * build-aux/config.rpath: Update from GNU gettext.
62398
62399 2005-12-16  Jim Meyering  <jim@meyering.net>
62400
62401         * modules/fprintftime: New module.
62402         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
62403
62404 2005-12-16  Jim Meyering  <jim@meyering.net>
62405
62406         * m4/fprintftime.m4: New file.
62407
62408 2005-12-16  Jim Meyering  <jim@meyering.net>
62409
62410         * lib/fprintftime.c, lib/fprintftime.h: New files.
62411
62412 2005-12-15  Simon Josefsson  <jas@extundo.com>
62413
62414         * modules/socklen (configure.ac): Fix M4 macro name, to align with
62415         new m4/socklen.m4.
62416
62417 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62418
62419         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
62420         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
62421
62422 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62423
62424         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
62425         * lib/argp-help.c (fill_in_uparams): Check if the constructed
62426         struct uparams is valid. Fall back to the default values if it is
62427         not.
62428
62429 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62430
62431         * modules/argp (Files): Add argp-pin.c
62432         (Depends-on): dirname
62433         (lib_SOURCES): Add argp-pin.c
62434
62435 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62436
62437         * m4/argp.m4:  Check if program_invocation_name and
62438         program_invocation_short_name are declared and define appropriate
62439         macros if they are not.
62440
62441 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62442
62443         * lib/argp-help.c (__argp_base_name): New function
62444         (__argp_short_program_name): Rewrite using __argp_base_name
62445         * lib/argp-namefrob.h: Define program_invocation_name and
62446         program_invocation_short_name if requested
62447         (__argp_base_name): Add prototype
62448         * lib/argp-parse.c (argp_def): Use gettext wrappers
62449         (argp_default_parser): Use __argp_base_name
62450         * lib/argp-pin.c: New file. Defines program_invocation_name and
62451         program_invocation_short_name on systems that lack them.
62452
62453 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62454
62455         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
62456         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62457         porting problem reported by Georg Schwarz in
62458         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62459
62460 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62461
62462         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
62463         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62464         porting problem reported by Georg Schwarz in
62465         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62466
62467 2005-12-05  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
62470         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
62471         Reported by Mark Junker <mjscod@gmx.de>.
62472
62473 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
62474
62475         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
62476         Use implementation from Albert Chin, with some
62477         comments/corrections by Stepan Kasal and myself.
62478
62479 2005-12-02  Bruno Haible  <bruno@clisp.org>
62480
62481         * gnulib-tool (func_import): Accept GPLed build tool modules when
62482         --lgpl is given.
62483         * modules/csharpcomp-script: New file.
62484         * modules/csharpcomp: Depend on it.
62485         * modules/javacomp-script: New file.
62486         * modules/javacomp: Depend on it.
62487         Suggested by Simon Josefsson.
62488
62489 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62490
62491         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
62492         statement, to work around an HP-UX 10.20 compiler bug reported by
62493         Peter O'Gorman.
62494
62495 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62496
62497         * modules/savedir (Depends-on): Add openat.
62498
62499 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62500
62501         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
62502         (uintmax_t) [defined uintmax_t]: Do not declare.
62503         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
62504         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
62505         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
62506         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
62507         sake of portability to weird hosts that C allows (though we don't
62508         know of any practical examples).
62509
62510         * lib/savedir.h (fdsavedir): New decl.
62511         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
62512         contains most of the former guts of savedir.
62513         (savedir): Use savedirstream.
62514         Include "openat.h".
62515
62516 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62517
62518         * modules/obstack (Files): Add m4/ulonglong.m4.
62519         Problem reported by Davide Angelocola.
62520
62521 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62522
62523         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
62524         coreutils no longer futzes with rounding modes.
62525
62526 2005-11-14  Jim Meyering  <jim@meyering.net>
62527
62528         * lib/mkstemp-safer.c: Include <config.h>, required for possible
62529         replacement of mkstemp.
62530
62531 2005-11-10  Simon Josefsson  <jas@extundo.com>
62532
62533         * lib/readline.c: Remove EOL.
62534
62535 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * modules/gethrxtime (Depends-on): Add gettime.
62538
62539 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62540
62541         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
62542         or gettimeofday; no longer needed.
62543
62544 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62545
62546         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
62547         time business.
62548         (gethrxtime) [! (HAVE_NANOUPTIME
62549         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
62550         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
62551         our own approximation.
62552
62553 2005-11-08  Eric Blake  <ebb9@byu.net>
62554
62555         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62556
62557 2005-11-08  Eric Blake  <ebb9@byu.net>
62558
62559         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62560
62561 2005-11-04  Bruno Haible  <bruno@clisp.org>
62562
62563         * gnulib-tool: Implement --update mode.
62564
62565 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62566
62567         Fix porting problem reported by Theodoros V. Kalamatianos.
62568         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62569         Don't assume that futimes failing means we must fail.
62570
62571 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62572
62573         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62574         variables to suggest the intended function of the PATH_MAX check.
62575
62576 2005-10-30  Kean Johnston  <jkj@sco.com>
62577
62578         Trivial changes to support SCO systems.
62579         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62580         as PATH_MAX.
62581         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62582         where __ptr is null when no I/O is pending.
62583
62584 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62585
62586         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62587         leave errno alone.  Problem reported by Dmitry V. Levin.
62588
62589 2005-10-28  Simon Josefsson  <jas@extundo.com>
62590
62591         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62592         Test more.
62593
62594         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62595
62596         * modules/md2, modules/md2-tests: New files.
62597
62598 2005-10-28  Simon Josefsson  <jas@extundo.com>
62599
62600         * m4/inet_ntop.m4: More tests.
62601
62602         * m4/gc-md2.m4, md2.m4: New file.
62603
62604 2005-10-28  Simon Josefsson  <jas@extundo.com>
62605
62606         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62607         "restrict" keywords, as per POSIX.  Protect the function
62608         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62609         Don't use K&R prototypes.  Check the sprintf return values.
62610         Re-define EAFNOSUPPORT if not present.  Indent.
62611
62612         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62613         suggested by Bruno Haible <bruno@clisp.org>.
62614
62615         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62616
62617         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62618
62619         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62620         libgcrypt).
62621
62622         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62623
62624         * lib/md2.h, lib/md2.c: New files.
62625
62626 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62629         errno alone.  Problem reported by Frederic Jolliton.
62630
62631 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         * modules/verify (License): Change from GPL to LGPL.  This is a
62634         tiny module and there are apparently near-equivalents that are
62635         under the BSD license.
62636
62637 2005-10-24  Simon Josefsson  <jas@extundo.com>
62638
62639         * modules/sha1: Relicense to LGPL.
62640
62641 2005-10-24  Simon Josefsson  <jas@extundo.com>
62642
62643         * lib/md4.h: Shrink buffer size, now that we changed the type.
62644
62645 2005-10-23  Simon Josefsson  <jas@extundo.com>
62646
62647         * gnulib-tool (func_import): Fix --tests-base.
62648
62649 2005-10-22  Simon Josefsson  <jas@extundo.com>
62650
62651         * modules/arcfour (Depends-on): Need stdint.
62652
62653 2005-10-22  Simon Josefsson  <jas@extundo.com>
62654
62655         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62656         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62657
62658 2005-10-22  Simon Josefsson  <jas@extundo.com>
62659
62660         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62661         suggested by Bruno Haible <bruno@clisp.org>.
62662
62663 2005-10-22  Simon Josefsson  <jas@extundo.com>
62664
62665         * lib/crc.h: Include stddef.h, for size_t.
62666
62667 2005-10-22  Simon Josefsson  <jas@extundo.com>
62668
62669         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62670         arcfour_context struct (simplify test vector testing in GNU
62671         Shishi).
62672
62673 2005-10-21  Simon Josefsson  <jas@extundo.com>
62674
62675         * modules/des, modules/des-tests: New files.
62676
62677         * modules/gc-des, modules/gc-des-tests: New files.
62678
62679         * tests/test-des.c, tests/test-gc-des.c: New file.
62680
62681 2005-10-21  Simon Josefsson  <jas@extundo.com>
62682
62683         * modules/arctwo, modules/arctwo-tests: New files.
62684
62685         * tests/test-arctwo.c: New file.
62686
62687         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62688
62689         * tests/test-gc-arctwo.c: New file.
62690
62691 2005-10-21  Simon Josefsson  <jas@extundo.com>
62692
62693         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62694         Bruno Haible <bruno@clisp.org>.
62695
62696         * m4/gc-des.m4: New file.
62697
62698 2005-10-21  Simon Josefsson  <jas@extundo.com>
62699
62700         * m4/arctwo.m4: New file.
62701
62702         * m4/gc-arctwo.m4: New file.
62703
62704 2005-10-21  Simon Josefsson  <jas@extundo.com>
62705
62706         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62707         block.
62708
62709 2005-10-21  Simon Josefsson  <jas@extundo.com>
62710
62711         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62712         <bruno@clisp.org>.
62713
62714         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62715
62716         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62717         Bruno Haible <bruno@clisp.org>.
62718
62719         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62720         <bruno@clisp.org>.
62721
62722 2005-10-21  Simon Josefsson  <jas@extundo.com>
62723
62724         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62725
62726 2005-10-21  Simon Josefsson  <jas@extundo.com>
62727
62728         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62729
62730 2005-10-21  Simon Josefsson  <jas@extundo.com>
62731
62732         * lib/des.h, lib/des.c: New files.
62733
62734         * lib/gc-gnulib.c: Support DES.c
62735
62736 2005-10-21  Simon Josefsson  <jas@extundo.com>
62737
62738         * lib/arctwo.h, lib/arctwo.c: New files.
62739
62740         * lib/gc-gnulib.c: Support ARCTWO.
62741
62742 2005-10-21  Simon Josefsson  <jas@extundo.com>
62743
62744         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62745         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62746
62747 2005-10-21  Simon Josefsson  <jas@extundo.com>
62748
62749         * gnulib-tool (func_import, func_create_testdir): Define automake
62750         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62751         Makefile.am snippet),
62752         suggested by Bruno Haible <bruno@clisp.org>.
62753
62754         * modules/gc (Makefile.am): Use it.
62755
62756 2005-10-21  Bruno Haible  <bruno@clisp.org>
62757
62758         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62759         patch.
62760
62761 2005-10-19  Simon Josefsson  <jas@extundo.com>
62762
62763         * tests/test-gc-rijndael.c: New file.
62764
62765         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62766
62767 2005-10-19  Simon Josefsson  <jas@extundo.com>
62768
62769         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62770         interface too.
62771
62772 2005-10-19  Simon Josefsson  <jas@extundo.com>
62773
62774         * tests/test-gc-arcfour.c: New file.
62775
62776         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62777
62778 2005-10-19  Simon Josefsson  <jas@extundo.com>
62779
62780         * modules/gc-md4, modules/gc-md4-tests: New file.
62781
62782         * tests/test-gc-md4.c: New file.
62783
62784 2005-10-19  Simon Josefsson  <jas@extundo.com>
62785
62786         * m4/gc-md4.m4: New file.
62787
62788 2005-10-19  Simon Josefsson  <jas@extundo.com>
62789
62790         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62791         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62792         <kasal@ucw.cz>.
62793
62794 2005-10-19  Simon Josefsson  <jas@extundo.com>
62795
62796         * m4/gc-arcfour.m4: New file.
62797
62798         * m4/gc-rijndael.m4: New file.
62799
62800 2005-10-19  Simon Josefsson  <jas@extundo.com>
62801
62802         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62803
62804 2005-10-19  Simon Josefsson  <jas@extundo.com>
62805
62806         * lib/gc-gnulib.c: Support ARCFOUR.
62807
62808 2005-10-19  Simon Josefsson  <jas@extundo.com>
62809
62810         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62811         support.
62812
62813         * lib/gc.h: Add ECB enum type.
62814
62815         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62816
62817 2005-10-18  Simon Josefsson  <jas@extundo.com>
62818
62819         * tests/test-md5.c: New file.
62820
62821         * modules/md5-tests: New file.
62822
62823 2005-10-18  Simon Josefsson  <jas@extundo.com>
62824
62825         * tests/test-md4.c: New file.
62826
62827         * modules/md4, modules/md4-tests: New files.
62828
62829 2005-10-18  Simon Josefsson  <jas@extundo.com>
62830
62831         * m4/md4.m4: New file.
62832
62833 2005-10-18  Simon Josefsson  <jas@extundo.com>
62834
62835         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62836
62837 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62838
62839         * gnulib-tool (func_create_testdir): Omit the second check whether
62840         BUILT_SOURCES in nonempty.
62841
62842 2005-10-17  Simon Josefsson  <jas@extundo.com>
62843
62844         * tests/test-rijndael.c: New file.
62845
62846 2005-10-17  Simon Josefsson  <jas@extundo.com>
62847
62848         * modules/sha1: Depend on stdint instead of md5.
62849
62850         * modules/md5: Depend on stdint, remove uint32_t.
62851
62852 2005-10-17  Simon Josefsson  <jas@extundo.com>
62853
62854         * modules/gc-sha1-tests: New file.
62855
62856         * tests/test-gc-sha1.c: New file.
62857
62858 2005-10-17  Simon Josefsson  <jas@extundo.com>
62859
62860         * m4/md5.m4: Remove call to uint32_t.m4.
62861
62862 2005-10-17  Simon Josefsson  <jas@extundo.com>
62863
62864         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62865
62866         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62867         md5.h.
62868
62869         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62870
62871         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62872
62873 2005-10-17  Simon Josefsson  <jas@extundo.com>
62874
62875         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62876
62877 2005-10-17  Simon Josefsson  <jas@extundo.com>
62878
62879         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62880
62881 2005-10-17  Simon Josefsson  <jas@extundo.com>
62882
62883         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62884
62885         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62886
62887 2005-10-17  Bruno Haible  <bruno@clisp.org>
62888
62889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62890         that it can also be used in a test.
62891
62892 2005-10-16  Bruno Haible  <bruno@clisp.org>
62893
62894         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62895         TESTS_ENVIRONMENT, so that individual tests can augment it.
62896
62897         * gnulib-tool (func_create_testdir): Use an intermediate target for
62898         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62899         macros, like $(ALLOCA_H), which cannot be passed through the command
62900         line.
62901
62902 2005-10-15  Simon Josefsson  <jas@extundo.com>
62903
62904         * modules/rijndael-tests: New file.
62905
62906         * modules/rijndael: New file.
62907
62908 2005-10-15  Simon Josefsson  <jas@extundo.com>
62909
62910         * m4/rijndael.m4: New file.
62911
62912 2005-10-15  Simon Josefsson  <jas@extundo.com>
62913
62914         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62915
62916         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62917
62918 2005-10-14  Simon Josefsson  <jas@extundo.com>
62919
62920         * tests/test-arcfour.c: New file.
62921
62922         * modules/arcfour, modules/arcfour-tests: New files.
62923
62924 2005-10-14  Simon Josefsson  <jas@extundo.com>
62925
62926         * m4/arcfour.m4: New file.
62927
62928 2005-10-14  Simon Josefsson  <jas@extundo.com>
62929
62930         * lib/arcfour.h, lib/arcfour.c: New files.
62931
62932 2005-10-14  Roland McGrath  <roland@redhat.com>
62933
62934         Import from libc.  [BZ #1331]
62935         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
62936         macro argument.
62937         Reported by Matej Vela <vela@debian.org>.
62938
62939 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62940
62941         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62942         include <wchar.h>; no longer needed.
62943
62944 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62945
62946         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62947
62948 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62949         and  Ulrich Drepper  <drepper@redhat.com>
62950
62951         Import from libc.
62952         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62953         instead of inline stream orientation test and two separate
62954         function calls.  Pay no attention to USE_IN_LIBIO.
62955
62956 2005-10-13  Simon Josefsson  <jas@extundo.com>
62957
62958         * modules/gc-hmac-md5-tests: New file.
62959
62960         * tests/test-gc-hmac-sha1.c: New file.
62961
62962         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62963
62964         * modules/gc-hmac-md5-tests: New file.
62965
62966         * tests/test-gc-md5.c: New file.
62967
62968         * modules/gc-md5-tests: New file.
62969
62970 2005-10-13  Simon Josefsson  <jas@extundo.com>
62971
62972         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62973         Move memory allocation outside of loop.
62974
62975 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62976
62977         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62978         intermediate directory is in a read-only file system.  Problem
62979         reported by Eric Blake.
62980
62981 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62982
62983         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62984
62985 2005-10-12  Simon Josefsson  <jas@extundo.com>
62986
62987         * tests/test-hmac-sha1.c: New file.
62988
62989         * modules/hmac-sha1-tests: New file.
62990
62991         * modules/hmac-sha1: New file.
62992
62993 2005-10-12  Simon Josefsson  <jas@extundo.com>
62994
62995         * modules/gc-sha1: New file.
62996
62997 2005-10-12  Simon Josefsson  <jas@extundo.com>
62998
62999         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63000
63001         * tests/test-gc-pbkdf2-sha1.c: New file.
63002
63003 2005-10-12  Simon Josefsson  <jas@extundo.com>
63004
63005         * modules/gc-md5, modules/gc-hmac-md5: New files.
63006
63007         * modules/gc (Files): Remove md5, memxor and hmac files.
63008
63009 2005-10-12  Simon Josefsson  <jas@extundo.com>
63010
63011         * m4/gc-pbkdf2-sha1.m4: New file.
63012
63013         * m4/gc-hmac-sha1.m4: New file.
63014
63015         * m4/gc-sha1: New file.
63016
63017         * m4/hmac-sha1.m4: New file.
63018
63019 2005-10-12  Simon Josefsson  <jas@extundo.com>
63020
63021         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63022
63023         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63024
63025 2005-10-12  Simon Josefsson  <jas@extundo.com>
63026
63027         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63028         suggested by Bruno Haible <bruno@clisp.org>.
63029
63030 2005-10-12  Simon Josefsson  <jas@extundo.com>
63031
63032         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63033
63034 2005-10-12  Simon Josefsson  <jas@extundo.com>
63035
63036         * lib/gc-pbkdf2-sha1.c: New file.
63037
63038         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63039
63040 2005-10-12  Simon Josefsson  <jas@extundo.com>
63041
63042         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63043
63044         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63045
63046 2005-10-12  Simon Josefsson  <jas@extundo.com>
63047
63048         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63049         GC_USE_HMAC_MD5, respectively.
63050
63051         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63052         (gc_md5): Fix typo.
63053
63054         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63055
63056         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63057
63058         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63059
63060 2005-10-12  Bruno Haible  <bruno@clisp.org>
63061
63062         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63063         Reported by Stepan Kasal <kasal@ucw.cz>.
63064
63065 2005-10-11  Simon Josefsson  <jas@extundo.com>
63066
63067         * tests/test-crc.c: New file.
63068
63069         * modules/crc, modules/crc-tests: New files.
63070
63071 2005-10-11  Simon Josefsson  <jas@extundo.com>
63072
63073         * m4/crc.m4: New file.
63074
63075 2005-10-11  Simon Josefsson  <jas@extundo.com>
63076
63077         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63078
63079         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63080
63081         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63082
63083 2005-10-11  Simon Josefsson  <jas@extundo.com>
63084
63085         * lib/crc.h, lib/crc.c: New files.
63086
63087         * lib/gc.h (gc_hash_buffer): Add doc.
63088
63089 2005-10-11  Bruno Haible  <bruno@clisp.org>
63090
63091         * modules/c-strcasestr: New file.
63092         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63093
63094 2005-10-11  Bruno Haible  <bruno@clisp.org>
63095
63096         * modules/c-strcase: New file.
63097         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63098
63099 2005-10-11  Bruno Haible  <bruno@clisp.org>
63100
63101         * lib/strcasecmp.c: Include limits.h.
63102         (strcasecmp): Avoid integer overflow on exotic platforms.
63103         * lib/strncasecmp.c: Include limits.h.
63104         (strncasecmp): Avoid integer overflow on exotic platforms.
63105         Reported by Paul Eggert.
63106
63107 2005-10-11  Bruno Haible  <bruno@clisp.org>
63108
63109         * lib/c-strcasestr.h: New file, from GNU gettext.
63110         * lib/c-strcasestr.c: New file, from GNU gettext.
63111
63112 2005-10-11  Bruno Haible  <bruno@clisp.org>
63113
63114         * lib/c-strcase.h: New file, from GNU gettext.
63115         * lib/c-strcasecmp.c: New file, from GNU gettext.
63116         * lib/c-strncasecmp.c: New file, from GNU gettext.
63117
63118 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63119
63120         * modules/mempcpy (License): GPL -> LGPL.
63121         * modules/strchrnul (License): Likewise.
63122         * modules/sysexits (License): Likewise.
63123
63124 2005-10-08  Simon Josefsson  <jas@extundo.com>
63125
63126         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63127
63128 2005-10-07  Simon Josefsson  <jas@extundo.com>
63129
63130         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63131
63132 2005-10-06  Simon Josefsson  <jas@extundo.com>
63133
63134         * tests/test-hmac-md5.c: New file.
63135
63136         * modules/hmac-md5-tests: New file.
63137
63138         * modules/hmac-md5: New file.
63139
63140 2005-10-06  Simon Josefsson  <jas@extundo.com>
63141
63142         * m4/hmac-md5.m4: New file.
63143
63144         * m4/memxor.m4: Require gl_C_RESTRICT.
63145
63146 2005-10-06  Simon Josefsson  <jas@extundo.com>
63147
63148         * lib/memxor.c (memxor): Avoid casts and warnings.
63149
63150 2005-10-06  Simon Josefsson  <jas@extundo.com>
63151
63152         * lib/hmac-md5.c: New file.
63153
63154         * lib/hmac.h: New file.
63155
63156 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63157
63158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63159         promotes to int, not unsigned int, to catch the AIX 5.3
63160         compiler bug.
63161
63162 2005-10-05  Simon Josefsson  <jas@extundo.com>
63163
63164         * modules/memxor: New file.
63165
63166         * modules/iconv (Files): Move config.rpath to havelib, it is used
63167         there.
63168
63169         * modules/havelib (Files): Add config.rpath.
63170
63171 2005-10-05  Simon Josefsson  <jas@extundo.com>
63172
63173         * m4/memxor.m4: New file.
63174
63175 2005-10-05  Simon Josefsson  <jas@extundo.com>
63176
63177         * lib/memxor.c (memxor): Fix compiler error.
63178
63179         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63180         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63181
63182         * lib/memxor.h, lib/memxor.c: New files.
63183
63184         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63185         we assume all systems have it, suggested by Jim Meyering
63186         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63187         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63188         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63189         same reasons.
63190
63191 2005-10-05  Simon Josefsson  <jas@extundo.com>
63192
63193         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63194
63195 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63198         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63199         needed, since the source code now assumes these .h files.
63200
63201 2005-10-05  Derek Price  <derek@ximbiot.com>
63202
63203         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63204
63205 2005-10-05  Bruno Haible  <bruno@clisp.org>
63206
63207         * modules/stdint (License): Change to LGPL.
63208
63209 2005-10-04  Simon Josefsson  <jas@extundo.com>
63210
63211         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63212         D. Baushke" <mdb@gnu.org>.
63213
63214 2005-10-04  Bruno Haible  <bruno@clisp.org>
63215
63216         * lib/verify.h (verify_true): Provide alternative definition for C++.
63217
63218 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63219
63220         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
63221         (SSIZE_MAX): New macro, if not already defined.
63222         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
63223         than 2 GiB.
63224
63225 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63226
63227         Sync from coreutils.
63228         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
63229         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
63230         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
63231         ULLONG_MAX doesn't work with 2.7.2.1.
63232
63233 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63234
63235         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
63236         From Ben Pfaff.
63237
63238         * modules/exclude (Depends-on): Depend on verify.
63239         * modules/strtoimax (Depends-on): Likewise.
63240         * modules/utimecmp (Depends-on): Likewise.
63241
63242 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         * lib/exclude.c: Include verify.h.
63245         (verify): Remove.  All callers changed to use verify.h's version.
63246         * lib/strtoimax.c: Likewise.
63247         * lib/utimecmp.c: Likewis.e
63248
63249         Sync from coreutils.
63250         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
63251         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
63252         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
63253         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
63254         bother returning ENOSYS if settimeofday or stime fails; just let
63255         them return whatever errno they want to return.
63256         * lib/utimens.c: Include unistd.h, for dup2.
63257         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
63258         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
63259
63260 2005-10-02  Jim Meyering  <jim@meyering.net>
63261
63262         Sync from coreutils.
63263         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
63264         from glibc-2.2.5 that fails for read-only files.
63265
63266 2005-10-02  Jim Meyering  <jim@meyering.net>
63267
63268         Sync from coreutils.
63269         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
63270         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
63271         `#if HAVE_CONFIG_H'.
63272         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
63273         Remove AT_FDCWD test.
63274         Do not consume the fd unless successful.
63275         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
63276         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
63277         block, so that we don't even try to compile it if settimeofday is
63278         available.  This works around a compilation failure on OSF1 V5.1,
63279         due to stime requiring a `long int*' while tv_sec is `int'.
63280
63281 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
63282
63283         Sync from coreutils.
63284         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
63285         against `yes', rather than just testing for nonempty.
63286
63287 2005-10-01  Simon Josefsson  <jas@extundo.com>
63288
63289         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
63290         and Darwin.
63291
63292         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
63293         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
63294         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
63295         freeaddrinfo and gai_strerror are declared by the POSIX headers.
63296         Check if struct addrinfo is declared.
63297
63298 2005-10-01  Simon Josefsson  <jas@extundo.com>
63299
63300         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
63301         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
63302         AI_* and EAI_* definitions.  Protect function declarations.
63303
63304 2005-10-01  Jim Meyering  <jim@meyering.net>
63305
63306         Sync from coreutils.
63307
63308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
63309         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
63310         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
63311         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63312         in the inet and nsl libraries.  Required on Solaris 5.7.
63313
63314 2005-10-01  Jim Meyering  <jim@meyering.net>
63315
63316         Sync from coreutils.
63317         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63318         in the inet and nsl libraries.  Required on Solaris 5.7.
63319
63320 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
63321
63322         * lib/getdelim.c (getdelim): Remove unused variables.
63323
63324 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63325
63326         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
63327         so that the code works even with ancient cpp.  Portability problem
63328         with GCC 2.7.2.1 reported by Thomas M.Ott.
63329
63330 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63331
63332         * modules/regex (Depends-on): Add strcase.
63333
63334         * modules/gethostname (Licence): Change from GPL to LGPL, since
63335         gethostname.c is a trivial implementation of a standard library
63336         function.
63337         * modules/poll (License): Change from GPL to LGPL, since it's
63338         derived from LGPL code.
63339
63340 2005-09-27  Jim Meyering  <jim@meyering.net>
63341
63342         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
63343         HAVE_CONFIG_H.
63344
63345         * lib/intprops.h (signed_type_or_expr__): Define.
63346         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
63347         for unsigned types.
63348
63349 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63350
63351         * lib/verify.h (verify_expr): Remove, replacing with:
63352         (verify_true): New macro that returns true instead of void.
63353         (verify_type__): Remove.
63354         (verify): Use verify_true rather than verify_type__.
63355
63356 2005-09-26  Bruno Haible  <bruno@clisp.org>
63357
63358         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
63359         is necessary.
63360         (lib_SOURCES): Remove mbchar.c.
63361         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
63362         (Files): Add m4/mbrtowc.m4.
63363         * modules/mbiter: Likewise.
63364         * modules/mbuiter: Likewise.
63365
63366 2005-09-26  Bruno Haible  <bruno@clisp.org>
63367
63368         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
63369         compile mbchar.c if they are not both present.
63370         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
63371         * m4/mbiter.m4 (gl_MBITER): Likewise.
63372         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
63373         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
63374         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
63375
63376 2005-09-25  Jim Meyering  <jim@meyering.net>
63377
63378         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
63379         also uses socklen_t.
63380
63381 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         * lib/utimens.c (ENOSYS): Define if not already defined.
63384         (futimens): Support having a null PATH if the file descriptor
63385         is nonnegative.
63386
63387         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
63388         Remove.
63389         (__attribute): Define to empty unless GCC 3.1 or later.
63390         This works around a core dump on OpenBSD 3.4, which has GCC
63391         2.95.3, which dumps core when given __attribute__(()).  It also
63392         simplifies other tests, since we really don't want to bother with
63393         worrying about which ancient version of GCC supported what.
63394         Original problem reported by Yoann Vandoorselaere, with part of
63395         the fix suggested by Derek Price.
63396
63397 2005-09-24  Jim Meyering  <jim@meyering.net>
63398
63399         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
63400         so we can once again use a positive bitfield width of 1 -- now we
63401         don't have to explain why we were using a bitfield width of 2.
63402
63403 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63404
63405         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
63406         and similarly for the other external symbols.  Problem reported
63407         by James Gallager.
63408
63409         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
63410         bug reported by Jim Meyering.
63411
63412         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
63413         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
63414         not needed, since socklen is a prerequisite module.
63415
63416 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63417
63418         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
63419         Problem reported by Eric Blake.
63420         (getaddrinfo): Initialize se so that it's not garbage.
63421         Redo internal storage allocation so that it doesn't make unportable
63422         assumptions about alignment.
63423         Fix a memory leak.
63424
63425         * lib/utimens.c (futimens): Use futimesat if available.
63426         Prefer it to futimes since it doesn't have the futimes bug.
63427
63428         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
63429         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
63430         Instead, declare a function that returns a pointer to an array,
63431         and use verify_type__ to declare the size of the array.
63432         Problem and germ of a solution reported by Bruno Haible.
63433         (verify_type__): Use 2, not 1, for bitfield size, to avoid
63434         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
63435
63436 2005-09-23  Jim Meyering  <jim@meyering.net>
63437
63438         Sync from coreutils.
63439         Correct build failure (socklen_t not defined) on at least
63440         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
63441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
63442
63443 2005-09-23  Jim Meyering  <jim@meyering.net>
63444
63445         * modules/getaddrinfo (Depends-on): Add socklen.
63446
63447 2005-09-23  Bruno Haible  <bruno@clisp.org>
63448
63449         * tests/test-verify.c: New file.
63450
63451 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         Sync from coreutils.
63454
63455         * modules/argmatch (Depends-on): Add verify.
63456         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
63457         unistd-safer.
63458         * modules/save-cwd (Depends-on): Likewise.
63459
63460         * modules/openat (Files): Add lib/openat-die.c.
63461         (Depends-on): Remove error, exitfail.
63462         Add dirname.
63463
63464         * modules/verify: New file.
63465         * MODULES.html.sh (Diagnostics <assert.h>): New section,
63466         with "verify" module.
63467
63468 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63469
63470         Sync from coreutils.
63471
63472         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
63473         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
63474         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
63475         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
63476         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
63477         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
63478         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
63479         Don't bother checking for string.h, stdlib.h, unistd.h.
63480         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
63481         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
63482         module's job.
63483         * m4/jm-macros.m4 (gl_MACROS): Likewise.
63484         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
63485
63486         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
63487         (gl_GETDATE): Use it.
63488
63489         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
63490
63491 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63492
63493         Sync from coreutils.
63494
63495         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
63496         stat-time.h.
63497         * lib/argmatch.h: Include verify.h
63498         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
63499         (ARGMATCH_ASSERT): Remove; unused.
63500         * lib/canonicalize.c: Assume STDC_HEADERS.
63501         * lib/exclude.c: Include "strcase.h".
63502         * lib/regex_internal.h [!defined _LIBC]: Likewise.
63503         * lib/getusershell.c: Include stdio--.h rather than stdio.h
63504         and stdio-safer.h.
63505         (getusershell): Call fopen, not fopen_safer.
63506         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
63507         Do not include unistd-safer.h.
63508         (save_cwd): Don't call fd_safer; no longer needed
63509         now that we include fcntl--.h.
63510
63511         * lib/getdate.y (relative_time): New type.
63512         (RELATIVE_TIME_0): New constant.
63513         (parser_control): Use relative_time instead of doing it ourselves.
63514         (%union): Add new relative_time rel member.
63515         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
63516         Now typeless.
63517         (relunit, relunit_snumber): Now of type rel.
63518         (zone, rel, relunit, get_date): Adjust to above changes.
63519
63520         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
63521         Do not include unistd-safer.h.
63522         (getloadavg): Don't call fd_safer; no longer needed
63523         now that we include fcntl--.h.
63524
63525         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
63526         (make_dir_parents): Treat ENOSYS like EEXIST.
63527
63528         Improve quality of diagnostics on restore_cwd failure.
63529         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
63530         (make_dir_parents): Last arg is now int * (for errno), not bool *.
63531         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
63532         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
63533         each time through the loop.  Do not diagnose restore_cwd failure;
63534         that is the caller's job (and perhaps the caller does not care).
63535
63536         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
63537         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
63538         If the file already exists but is not a directory, don't bother
63539         to try to make its parents.
63540         Close potential file descriptor leak if we can't chdir("/") (!).
63541         Don't always return true if chdir($PWD) fails; return true only
63542         if the requested action was done successfully (except for the
63543         chdir($PWD)).
63544         Don't log final directory unless we actually made it.
63545         Refactor to avoid duplicate code to fix up permissions.
63546         Don't attempt to fix up parent permissions if chdir($PWD) fails.
63547
63548         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
63549         to make it a bit faster and (I hope) clearer.
63550         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
63551         Fix bug in formats like %2N.
63552
63553         * lib/verify.h: New file.
63554
63555 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63556
63557         Sync from coreutils.
63558         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63559
63560 2005-09-22  Jim Meyering  <jim@meyering.net>
63561
63562         Sync from coreutils.
63563
63564         * m4/lstat.m4 (gl_FUNC_LSTAT):
63565         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63566         Remove obsolete comment.
63567         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63568         * m4/xstrtod.m4: Likewise.
63569
63570         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63571
63572 2005-09-22  Jim Meyering  <jim@meyering.net>
63573
63574         Sync from coreutils.
63575
63576         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63577
63578         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63579         the .tm_year member, since otherwise gcc-4.0 would now warn about
63580         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63581
63582         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63583         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63584
63585         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63586         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63587         when run in a time zone for which daylight savings time is in effect
63588         for the starting date.
63589
63590         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63591         stop us from restricting permissions of just-created absolute-named
63592         directories.
63593         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63594         to restore initial working directory.
63595         * lib/mkdir-p.c (make_dir_parents): New parameter:
63596         different_working_dir, to tell caller if/when we change the working
63597         directory and are unable to return to the initial one.
63598         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63599         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63600         `return false'.  This fixes a bug introduced on 2004-07-30.
63601
63602         * lib/openat.c (fdopendir): Be sure to close the supplied
63603         file descriptor before returning.  This makes our replacement
63604         implementation a little closer to Solaris's, where fdopendir
63605         ties the file descriptor to the returned DIR* pointer.
63606         * lib/openat.c (unlinkat): New function.
63607         * lib/openat.h (unlinkat): Add prototype.
63608         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63609         (openat_restore_fail): Rename from openat_restore_die.
63610         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63611
63612         Provide an alternative to exiting immediately upon save_cwd or
63613         restore_cwd failure.  Now, an application can arrange e.g.,
63614         to perform a longjump in that case.
63615         * lib/openat.c: Include dirname.h.
63616         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63617         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63618         and openat_restore_die rather than calling error directly.
63619         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63620
63621         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63622         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63623         define.
63624
63625         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63626         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63627                             int utc, int nanoseconds);
63628         Background:
63629         date should not have to allocate a megabyte of virtual memory to
63630         handle a format argument like +%1048575T.  When implemented with
63631         strftime, it must allocate such a buffer, use strftime to fill it
63632         in, print it, then free it.
63633         With fprintftime, it simply prints everything and exits.
63634         With no need for memory allocation, that's one fewer way to fail.
63635         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63636         optional field width, not before, so we accept %9:z, not %:9z.
63637         (my_strftime): Be sure to use L_('x') for literals.
63638
63639         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63640         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63641         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63642         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63643         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63644         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63645         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63646         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63647         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63648         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63649         * lib/xgethostname.c, lib/xreadlink.c:
63650         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63651
63652         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63653         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63654         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63655         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63656         and don't include <sys/file.h>).
63657
63658 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63659
63660         Sync from coreutils.
63661
63662         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63663         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63664         [!LDAV_DONE]: Avoid unused variable warning.
63665
63666 2005-09-21  Bruno Haible  <bruno@clisp.org>
63667
63668         * lib/unicodeio.h (unicode_to_mb): New declaration.
63669
63670 2005-09-20  Derek Price  <derek@ximbiot.com>
63671
63672         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63673         getaddrinfo.h.
63674
63675 2005-09-20  Bruno Haible  <bruno@clisp.org>
63676
63677         * gnulib-tool: Remove trailing slashes from the values specified for
63678         --source-base, --m4-base, --tests-base, --aux-dir.
63679         Suggested by Simon Josefsson <jas@extundo.com>.
63680
63681 2005-09-20  Bruno Haible  <bruno@clisp.org>
63682
63683         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63684         func_modules_to_filelist, func_import, func_create_testdir): Make all
63685         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63686         change when gnulib-tool is invoked in a different locale.
63687
63688 2005-09-19  Simon Josefsson  <jas@extundo.com>
63689
63690         * m4/socklen.m4: Fix typo.
63691
63692 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63693
63694         Use a consistent style for including <config.h>.
63695         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63696         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63697         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63698         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63699         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63700         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63701         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63702         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63703         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63704         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63705         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63706         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63707         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63708         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63709         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63710         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63711         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63712         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63713         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63714         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63715         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63716         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63717         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63718         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63719         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63720         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63721         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63722         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63723         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63724         lib/xstrtoumax.c, lib/yesno.c:
63725         Standardize inclusion of config.h.
63726         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63727         lib/inttostr.h:  Removed inclusion of config.h from header files.
63728         * lib/inttostr.c:  Adjusted in-tree users.
63729         * lib/timespec.h: Remove superfluous warning to include config.h.
63730         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63731         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63732         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63733         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63734         config.h with HAVE_CONFIG_H.
63735
63736 2005-09-19  Jim Meyering  <jim@meyering.net>
63737
63738         * modules/pathmax (License): Change to LGPL.
63739
63740 2005-09-19  Derek Price  <derek@ximbiot.com>
63741
63742         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63743
63744 2005-09-19  Bruno Haible  <bruno@clisp.org>
63745
63746         * gnulib-tool (import): Provide default for --tests-base.
63747
63748 2005-09-19  Bruno Haible  <bruno@clisp.org>
63749
63750         * doc/quote.texi: New file, extracted from gnulib.texi.
63751         * doc/ctime.texi: New file, extracted from gnulib.texi.
63752         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63753         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63754         * doc/gnulib.texi: Include them.
63755
63756 2005-09-18  Bruno Haible  <bruno@clisp.org>
63757
63758         Portability fix.
63759         * gnulib-tool (func_readlink): New function.
63760         (func_ln_if_changed): Use it.
63761
63762 2005-09-18  Bruno Haible  <bruno@clisp.org>
63763
63764         * gnulib-tool: Support --with-tests also with --import.
63765         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63766         (func_import): Use variables $testsbase and $inctests. Emit a
63767         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63768         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63769         SUBDIRS += $testsdir.
63770         (func_create_testdir): Update.
63771
63772 2005-09-18  Bruno Haible  <bruno@clisp.org>
63773
63774         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63775         instead of $dry_run.
63776         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63777         (func_ln_if_changed): Don't handle dry-run here.
63778         (func_import): In dry-run mode, detect more precisely which actions
63779         would be performed, and don't use "...ing" verbs.
63780
63781 2005-09-18  Bruno Haible  <bruno@clisp.org>
63782
63783         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63784         (func_import): Use join on two temporary files instead of three nested
63785         loops, in order to determine which files are new or old.
63786
63787 2005-09-18  Bruno Haible  <bruno@clisp.org>
63788
63789         * gnulib-tool (func_import): Comment out code that spits out the
63790         new files with --dry-run.
63791
63792 2005-09-18  Bruno Haible  <bruno@clisp.org>
63793
63794         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63795
63796 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63797
63798         * lib/stat-time.h: New file.
63799         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63800         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63801         in a different way.
63802         (timespec_cmp): New function.
63803         * lib/utimecmp.c: Include stat-time.h.
63804         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63805         members exist, not on the obsolescent ST_MTIM_NSEC.
63806         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63807
63808 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63809
63810         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63811
63812 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63813
63814         * MODULES.html.sh (File system functions): Add stat-time.
63815         * modules/stat-time: New file.
63816         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63817         is now done in a different way, by the stat-time module.
63818         * modules/utimecmp (Depends-on): Add stat-time.
63819
63820 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63821
63822         * m4/st_mtim.m4: Remove.  Superseded by...
63823         * m4/stat-time.m4: New file.
63824         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63825         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63826
63827 2005-09-15  Derek Price  <derek@ximbiot.com>
63828
63829         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63830
63831 2005-09-15  Derek Price  <derek@ximbiot.com>
63832
63833         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63834         * lib/regex_internal.c: Ditto, using this...
63835         (__GNUC_PREREQ): ...new macro.
63836         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63837         using...
63838         (__GNUC_PREREQ): ...this new macro.
63839
63840         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63841
63842 2005-09-15  Derek Price  <derek@ximbiot.com>
63843             Paul Eggert  <eggert@cs.ucla.edu>
63844
63845         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63846         changes, consolidating in...
63847         * lib/regex_internal.h: ...this file.
63848
63849 2005-09-13  Jim Meyering  <jim@meyering.net>
63850
63851         * lib/canon-host.c: Filter through gnu indent and reword comments
63852         slightly.
63853         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63854
63855 2005-09-13  Derek Price  <derek@ximbiot.com>
63856
63857         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63858         failure.
63859         Reported by Jim Meyering  <jim@meyering.net>.
63860
63861 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63862
63863         * lib/base64.c: Typo.
63864         (base64_encode): Put b64str in initialized data section.
63865
63866 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63867
63868         Merge glibc and coreutils changes into gnulib, plus a few
63869         extra fixes.
63870         * lib/md5.c: Use #error rather than a string.
63871         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63872         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63873         (__attribute__): Define to empty for non recent-GCC.
63874         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63875         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63876         Renamed from their non-__ counterparts, with new macros replacing
63877         them if not _LIBC.  Add __THROW attribute.
63878         (rol): Remove.
63879         (struct md5_ctx): Align buffer if using GCC.
63880         * lib/sha1.h (struct sha1_ctx): Likewise.
63881         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63882         The old name was backwards.
63883         (NOTSWAP): Remove; not used.
63884         (rol): New macro, moved here from md5.h.
63885         (sha1_process_block): Remove a FIXME that doesn't make sense.
63886
63887 2005-09-12  Derek Price  <derek@ximbiot.com>
63888
63889         Return usable errors from canon-host.
63890         * lib/canon-host.h: New file.
63891         * lib/canon-host.c (canon_host): Wrap...
63892         (canon_host_r): ...this new function, which now relies exclusively on
63893         getaddrinfo.
63894         (ch_strerror): New function.
63895         (last_cherror): New global.
63896         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63897         interface.
63898         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63899         void *.
63900         (freeaddrinfo): Free ai->ai_canonname when set.
63901
63902 2005-09-12  Derek Price  <derek@ximbiot.com>
63903
63904         Make canon-host require getaddrinfo.
63905         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63906         AC_LIBSOURCE canon-host.h.  Call...
63907         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63908         gl_GETADDRINFO.
63909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63910
63911 2005-09-12  Derek Price  <derek@ximbiot.com>
63912
63913         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63914         LGPL.
63915         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63916
63917 2005-09-12  Derek Price  <derek@ximbiot.com>
63918
63919         * lib/gai_strerror.c: Include config.h when available.  Include
63920         getaddrinfo.h before other headers to test interface.
63921         Reported by Larry Jones <lawrence.jones@ugs.com>.
63922
63923 2005-09-12  Derek Price  <derek@ximbiot.com>
63924             Paul Eggert  <eggert@cs.ucla.edu>
63925
63926         * modules/glob (Files): Add glob-libc.h.
63927
63928 2005-09-12  Derek Price  <derek@ximbiot.com>
63929             Paul Eggert  <eggert@cs.ucla.edu>
63930
63931         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63932         glob_.h, glob-libc.h.
63933         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
63934
63935 2005-09-12  Derek Price  <derek@ximbiot.com>
63936             Paul Eggert  <eggert@cs.ucla.edu>
63937
63938         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63939         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63940         protecting things that should be done only in gnulib contexts.
63941         * lib/glob_.h: New file, containing only the glob things needed for
63942         gnulib.
63943         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63944         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63945         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63946         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63947         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63948         and to respect the namespace rules better.
63949
63950 2005-09-08  Simon Josefsson  <jas@extundo.com>
63951
63952         * modules/socklen: New file.
63953
63954 2005-09-08  Simon Josefsson  <jas@extundo.com>
63955
63956         * m4/socklen.m4: New file.
63957
63958 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63959
63960         * modules/utimens (Files): Add m4/utimbuf.m4, since
63961         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63962         Reported by Sergey Poznyakoff.
63963
63964 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63965
63966         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63967         definitions, since that's the preferred style in glibc.
63968         Fix a minor spacing issue, and update copyright notice to match
63969         glibc's.
63970
63971 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63972
63973         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63974
63975 2005-09-06  Simon Josefsson  <jas@extundo.com>
63976
63977         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63978         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63979
63980 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63981
63982         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63983         warning.
63984
63985 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * config/srclist.txt: Add glibc bug 1302.
63988
63989 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63990
63991         Change bitset word type from unsigned int to unsigned long int,
63992         as this has better performance on typical 64-bit hosts.
63993         Port bitset code to hosts with unusual word sizes.
63994         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63995         (build_collating_symbol):
63996         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63997         argument is a bitset.  This is merely a style issue, but it makes
63998         it clearer that an entire array is expected.
63999         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64000         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64001         Port to the case where bitset_word is not the same as unsigned int.
64002         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64003         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64004         Likewise.
64005         * lib/regexec.c (check_dst_limits_calc_pos_1,
64006         check_subexp_matching_top):
64007         (build_trtable, group_nodes_into_DFAstates):
64008         Likewise.
64009         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64010         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64011         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64012         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64013         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64014         * lib/regcomp.c (optimize_subexps, lower_subexp):
64015         Work even if bitset_word has holes in its bitwise representation.
64016         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64017         * lib/regexec.c (check_dst_limits_calc_pos_1,
64018         check_subexp_matching_top):
64019         Likewise.
64020         * lib/regex_internal.c (re_string_reconstruct):
64021         Don't assume UCHAR_MAX == 255.
64022         * lib/regex_internal.h (bitset_set_all): Likewise.
64023         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64024         All uses changed.
64025         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64026         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64027         All uses changed.
64028         (BITSET_WORD_MAX): New macro.
64029         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64030         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64031         (bitset_empty, bitset_copy):
64032         Prefer sizeof (bitset) to multiplying it out ourselves.
64033         (bitset_not_merge): Remove; unused.
64034         (bitset_contain): Return bool, not unsigned int with one bit on.
64035         All callers changed.
64036         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64037         alignment than re_node_set; do this by defining a new internal
64038         type struct dests_alloc and using it to allocate memory.
64039
64040 2005-09-05  Bruno Haible  <bruno@clisp.org>
64041
64042         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64043         links.
64044
64045 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64046
64047         * modules/size_max (Makefile.am): Add size_max.h
64048
64049 2005-09-04  Derek Price  <derek@ximbiot.com>
64050
64051         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64052
64053 2005-09-03  Simon Josefsson  <jas@extundo.com>
64054
64055         * gnulib-tool: Fix typo.
64056
64057 2005-09-03  Simon Josefsson  <jas@extundo.com>
64058
64059         * config/srclist.txt: Add glibc bug 1293.
64060
64061 2005-09-03  Derek Price  <derek@ximbiot.com>
64062
64063         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64064         From Larry Jones <lawrence.jones@ugs.com>.
64065
64066 2005-09-02  Simon Josefsson  <jas@extundo.com>
64067
64068         * modules/socklen: New file.
64069
64070 2005-09-02  Simon Josefsson  <jas@extundo.com>
64071
64072         * modules/havelib: New module.
64073
64074         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64075         Use havelib.
64076
64077 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64078
64079         Check for arithmetic overflow when calculating sizes, to prevent
64080         some buffer-overflow issues.  These patches are conservative, in the
64081         sense that when I couldn't determine whether an overflow was possible,
64082         I inserted a run-time check.
64083         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64084         macros.
64085         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64086         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64087         (re_xnrealloc, re_x2nrealloc): New inline functions.
64088         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64089         parse_bracket_exp):
64090         (build_equiv_class, build_charclass): Check for arithmetic overflow
64091         in size expression calculations.
64092         * lib/regex_internal.c (re_string_realloc_buffers):
64093         (build_wcs_upper_buffer, re_node_set_add_intersect):
64094         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64095         (re_dfa_add_node, register_state): Likewise.
64096         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64097         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64098         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64099         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64100
64101 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64102
64103         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64104         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64105
64106 2005-09-02  Bruno Haible  <bruno@clisp.org>
64107
64108         Support for lib vs. lib64 distinction on biarch platforms.
64109         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64110         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64111         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64112
64113 2005-09-02  Bruno Haible  <bruno@clisp.org>
64114
64115         * gnulib-tool (import): In the other first-use case, provide defaults
64116         as well.
64117
64118 2005-09-02  Bruno Haible  <bruno@clisp.org>
64119
64120         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64121         patches not yet found in the latest gettext release.
64122
64123 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64124
64125         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64126         to avoid a collision with bits/local_lim.h in glibc.
64127         All uses changed.  Problem reported by Dmitry V. Levin in
64128         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64129
64130         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64131         bugs in int versus size_t comparisons.
64132         (re_string_context_at): Fix bug where the code assumed that
64133         Idx is signed.
64134
64135         Use bool where appropriate.
64136         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64137         All callers changed.
64138         (calc_eclosure_iter): Likewise, for ROOT arg.
64139         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64140         (build_charclass_op): Likewise, for NON_MATCH arg.
64141         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64142         (re_string_construct_common): Likewise, for ICASE arg.
64143         * lib/regexec.c (re_search_2_stub, re_search_stub):
64144         Likewise, for RET_LEN arg.
64145         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64146         (set_regs): Likewise, for FL_BACKTRACK arg.
64147         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64148         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64149         (calc_eclosure_iter, parse_bracket_exp):
64150         Use bool for internal variables that are booleans.
64151         * lib/regexec.c (re_search_internal, check_matching,
64152         proceed_next_node):
64153         (set_regs, build_sifted_states, sift_states_bkref):
64154         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64155         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64156         (find_collation_sequence_value):
64157         Likewise.
64158         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64159         (re_node_set_compare):
64160         Return bool, not int. All callers changed.
64161         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64162         (build_trtable, check_node_accept): Likewise.
64163         * lib/regex_internal.h: Include stdbool.h.
64164
64165         Fix bugs uncovered when converting to bool.
64166         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64167         failure instead of charging ahead blindly.
64168         * lib/regex_internal.c (register_state): Likewise.
64169         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64170         for freeing internal storage.
64171         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64172         bitset pieces used as boolean, to avoid undefined behavior
64173         on hosts that do int overflow checking.
64174
64175 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64176
64177         * config/srclist.txt: Add glibc bugs 1285-1287.
64178
64179 2005-09-01  Jim Meyering  <jim@meyering.net>
64180
64181         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64182         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64183         Require gl_STAT_MACROS, too.
64184
64185 2005-09-01  Bruno Haible  <bruno@clisp.org>
64186
64187         * gnulib-tool (import): In the first-use case, provide defaults.
64188
64189 2005-09-01  Bruno Haible  <bruno@clisp.org>
64190
64191         * gnulib-tool (func_import): Remove the .tmp files.
64192
64193 2005-09-01  Bruno Haible  <bruno@clisp.org>
64194
64195         * gnulib-tool (func_import): Fix handling of symbolic links.
64196
64197 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64198
64199         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64200         old glibc regex code mishandles strings longer than 2**31 bytes.
64201         This patch fixes this when the regex code is used in gnulib
64202         (i.e., outside glibc).
64203
64204         This patch should not affect the use of the regex code inside
64205         glibc.  No doubt this problem also needs to be handled for glibc
64206         as well, but the result will be an incompatible change to the
64207         glibc ABI, and the old ABI will have to be supported too.  That
64208         can be the the subject for another patch.
64209
64210         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64211         governing whether the rest of this patch is active.  By default,
64212         the macro is disabled and the patch has no effect.
64213         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64214         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64215         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64216         (re_match_2, re_set_registers): Use the new types.
64217         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64218         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64219         New macros.
64220         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
64221         (re_string_context_at, bin_tree_t, re_dfastate_t):
64222         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
64223         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
64224         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
64225         (re_string_char_size_at, re_string_wchar_at):
64226         (re_string_elem_size_at):
64227         Use the new types and macros to port to 64-bit hosts.
64228         Use unsigned types for internal values, so that the code
64229         mostly works even for arrays larger than SSIZE_MAX.
64230         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
64231         (search_duplicated_node, calc_eclosure_iter, fetch_number):
64232         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
64233         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
64234         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
64235         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
64236         (calc_inveclosure, parse_dup_op, build_range_exp):
64237         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
64238         (fetch_number, create_token_tree, mark_opt_subexp):
64239         Likewise.
64240         * lib/regex_internal.c (re_string_construct_common,
64241         create_ci_newstate):
64242         (create_cd_newstate, re_string_allocate, re_string_construct):
64243         (re_string_realloc_buffers, build_wcs_upper_buffer):
64244         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64245         (re_string_reconstruct, re_string_peek_byte_case):
64246         (re_string_fetch_byte_case, re_string_context_at):
64247         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64248         (re_node_set_init_copy, re_node_set_add_intersect):
64249         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64250         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64251         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64252         (re_acquire_state, re_acquire_state_context, register_state):
64253         Likewise.
64254         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
64255         search_cur_bkref_entry):
64256         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
64257         (re_search_internal, re_search_2_stub, re_search_stub)
64258         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
64259         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
64260         (update_cur_sifted_state, check_dst_limits):
64261         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64262         (check_subexp_limits, sift_states_bkref, merge_state_array):
64263         (check_subexp_matching_top, get_subexp, get_subexp_sub):
64264         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
64265         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64266         (expand_bkref_cache, check_node_accept_bytes):
64267         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
64268         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
64269         (acquire_init_state_context, check_halt_node_context):
64270         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
64271         (sift_states_backward, clean_state_log_if_needed):
64272         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
64273         (find_recover_state, transit_state_sb, transit_state_mb):
64274         (transit_state_bkref, build_trtable, match_ctx_clean):
64275         Likewise.
64276         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
64277         to work around an assumption that REG_MISSING is negative.
64278
64279         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
64280         (seek_collating_symbol_entry) [defined _LIBC]:
64281         (lookup_collation_sequence_value) [defined _LIBC]:
64282         (build_range_exp, build_collating_symbol) [defined _LIBC]:
64283         Use prototypes rather than old-style function definitions.
64284         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
64285         (transit_state_sb) [0]:
64286         (find_collation_sequence_value) [defined _LIBC]: Likewise.
64287
64288         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
64289         rm_eo.
64290
64291         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
64292         (optimize_subexps, lower_subexp):
64293         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
64294         since the signed shift might overflow.  Use 1u<<31 instead.
64295         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64296         Likewise.
64297         * lib/regexec.c (check_dst_limits_calc_pos_1,
64298         check_subexp_matching_top): Likewise.
64299
64300         * lib/regcomp.c (optimize_subexps, lower_subexp):
64301         Use CHAR_BIT rather than 8, for clarity.
64302         * lib/regexec.c (check_dst_limits_calc_pos_1):
64303         (check_subexp_matching_top): Likewise.
64304         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
64305         have to worry about portability issues when shifting it left.
64306         Remove no-longer-needed test for table_size > 0.
64307         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
64308         in a word, as the resulting behavior is undefined.
64309         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
64310         in one case, a <= should have been an <, and in another case the
64311         whole test was missing.
64312         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
64313         the standard name CHAR_BIT.
64314         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
64315         this is not true on one's complement and signed-magnitude hosts.
64316
64317         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
64318         next_last_offset.
64319         (struct re_dfa_t): Remove unused member states_alloc.
64320         * lib/regcomp.c (init_dfa): Don't initialize unused members.
64321
64322 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64323
64324         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
64325         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
64326         and large-file glibc and in 32-bit large-file Solaris.
64327
64328 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64329
64330         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
64331         lengths fit in regoff_t; this isn't true if regoff_t is the same
64332         width as size_t.
64333         * lib/regex.c (re_search_internal): 5th arg is LAST_START
64334         (= START + RANGE) instead of RANGE.  This avoids overflow
64335         problems when regoff_t is the same width as size_t.
64336         All callers changed.
64337         (re_search_2_stub): Check for overflow when adding the
64338         sizes of the two strings.
64339         (re_search_stub): Check for overflow when adding START
64340         to RANGE; if it occurs, substitute the extreme value.
64341
64342 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64343
64344         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
64345
64346 2005-08-31  Jim Meyering  <jim@meyering.net>
64347
64348         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
64349         a pointer-to-const.
64350         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
64351         (register_state): Likewise.
64352         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
64353         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64354         (group_nodes_into_DFAstates): Likewise.
64355
64356 2005-08-31  Jim Meyering  <jim@meyering.net>
64357
64358         * check-module: Add a FIXME comment.
64359
64360 2005-08-31  Eric Blake  <ebb9@byu.net>
64361
64362         * modules/unistd-safer (Files): Add unistd--.h.
64363         * modules/stdio-safer (Files): Add stdio--.h.
64364
64365 2005-08-31  Derek Price  <derek@ximbiot.com>
64366
64367         * lib/getdelim.c (getdelim): Return EOF on EOF.
64368         Reported by Larry Jones <lawrence.jones@ugs.com>.
64369
64370 2005-08-31  Bruno Haible  <bruno@clisp.org>
64371
64372         Avoid unnecessary diffs in the generated lib/Makefile.am.
64373         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
64374         the generated files.
64375         (func_import): Don't set cmd.
64376
64377 2005-08-31  Bruno Haible  <bruno@clisp.org>
64378
64379         * lib/strstr.c: Include <stddef.h>, for NULL.
64380         * lib/strcasestr.c: Likewise.
64381         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64382
64383 2005-08-31  Bruno Haible  <bruno@clisp.org>
64384
64385         * gnulib-tool: New option --macro-prefix.
64386         (func_import): Use macro_prefix.
64387         (import): Handle option --macro-prefix.
64388
64389 2005-08-31  Bruno Haible  <bruno@clisp.org>
64390
64391         * gnulib-tool (import): Rename most ac_* variables to cached_*.
64392         Also use new variables cached_lgpl, cached_libtool.
64393
64394 2005-08-31  Bruno Haible  <bruno@clisp.org>
64395
64396         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
64397         always instantiating them.
64398
64399 2005-08-31  Bruno Haible  <bruno@clisp.org>
64400
64401         * gnulib-tool (func_import): Read the previous cached settings
64402         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
64403         earlier added by gnulib but are now dropped. Warn when a gnulib file
64404         overwrites a non-gnulib file.
64405
64406 2005-08-31  Bruno Haible  <bruno@clisp.org>
64407
64408         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
64409         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
64410         projects that don't keep autogenerated files in CVS. Put into
64411         actioncmd only the specified modules, not the transitive closure.
64412
64413 2005-08-31  Bruno Haible  <bruno@clisp.org>
64414
64415         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
64416         Create directories that shall be filled.
64417         (import): Don't look for gl_* macros in configure.ac. Recurse across
64418         all directories containing a gnulib-cache.m4 files, if meaningful.
64419
64420 2005-08-31  Bruno Haible  <bruno@clisp.org>
64421
64422         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
64423         (import): Set seen_libtool when we see gl_LIBTOOL.
64424
64425 2005-08-31  Bruno Haible  <bruno@clisp.org>
64426
64427         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
64428         declaration macro definitions from generated gnulib.m4.
64429
64430 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
64431
64432         * lib/iconvme.h: Add prototype for iconv_alloc.
64433
64434 2005-08-29  Simon Josefsson  <jas@extundo.com>
64435
64436         * lib/iconvme.c: Fix errno.
64437
64438 2005-08-29  Bruno Haible  <bruno@clisp.org>
64439
64440         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
64441         that it works when the directory contains spaces.
64442
64443 2005-08-29  Bruno Haible  <bruno@clisp.org>
64444
64445         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
64446
64447 2005-08-29  Bruno Haible  <bruno@clisp.org>
64448
64449         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
64450         Emit more advice.
64451
64452 2005-08-29  Bruno Haible  <bruno@clisp.org>
64453         and Stepan Kasal  <kasal@ucw.cz>
64454
64455         * check-module: If more parameters are given, check each of them
64456         separately; add more exceptions, as noted by Jim Meyering.
64457         (check_module): New procedure.
64458         (%exempt_header): Now contains all exceptions.
64459
64460 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
64461
64462         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
64463
64464 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64465
64466         * lib/iconvme.c: Split iconv_string into iconv_alloc.
64467
64468 2005-08-28  Bruno Haible  <bruno@clisp.org>
64469
64470         * m4/gnulib-tool.m4: New file.
64471
64472 2005-08-27  Jim Meyering  <jim@meyering.net>
64473
64474         * modules/unistd-safer (Files): Add pipe-safer.c.
64475         * modules/fcntl-safer (Files): Add creat-safer.c.
64476
64477 2005-08-27  Jim Meyering  <jim@meyering.net>
64478
64479         * m4/stdlib-safer.m4: New file.  From coreutils.
64480         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
64481         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
64482         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
64483         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
64484         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
64485
64486 2005-08-27  Jim Meyering  <jim@meyering.net>
64487
64488         * lib/fopen-safer.c: Merge minor changes from coreutils.
64489         * lib/dup-safer.c: Likewise.
64490         * lib/fd-safer.c: Likewise.
64491
64492         Merge from coreutils.
64493         * lib/stdio--.h: New file.
64494         * lib/stdlib--.h: New file.
64495         * lib/mkstemp-safer.c: New file.
64496
64497         GNU tar needs these.
64498         * lib/pipe-safer.c: New file.
64499         * lib/creat-safer.c: New file.
64500         * lib/fcntl--.h (creat): Define to creat_safer.
64501         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
64502         * lib/unistd--.h (pipe): Define to pipe_safer.
64503         * lib/unistd-safer.h: Declare pipe_safer.
64504
64505 2005-08-26  Simon Josefsson  <jas@extundo.com>
64506
64507         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
64508         Haible <bruno@clisp.org>.
64509
64510 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
64511
64512         * lib/regex_internal.h: Remove all references to
64513         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
64514         or better.
64515         (bitset_not, bitset_merge, bitset_not_merge):
64516         (bitset_mask, re_string_allocate, re_string_construct):
64517         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
64518         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
64519         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
64520         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
64521         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64522         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64523         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
64524         (re_acquire_state_context):
64525         Remove unnecessary forward decls.
64526         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
64527         Put __attribute at function definition,
64528         now that the function decl has been removed.
64529         * lib/regex_internal.c (re_string_peek_byte_case):
64530         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
64531         Likewise.
64532
64533 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
64534
64535         * m4/regex.m4: Add AC_PREREQ(2.50).
64536         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
64537
64538 2005-08-25  Simon Josefsson  <jas@extundo.com>
64539
64540         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
64541         __fsetlocking.
64542
64543 2005-08-25  Simon Josefsson  <jas@extundo.com>
64544
64545         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
64546         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
64547         GLIBC specific code.
64548
64549 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64550
64551         Make regex safe for g++.  This fixes one real bug (an "err"
64552         that should have been "*err").  g++ problem reported by
64553         Sam Steingold.
64554         * lib/regex_internal.h (re_calloc): New macro, consistent with
64555         re_malloc etc.  All callers of calloc changed to use re_calloc.
64556         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64557         not int.  All callers changed.
64558         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64559         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64560         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64561         (find_recover_state): Change "err" to "*err"; this fixes what
64562         appears to be a real bug.
64563         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64564         versus int.
64565
64566 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64567
64568         * modules/regex (Depends-on): Add malloc, since the code
64569         assumes that !malloc(0) means failure.
64570
64571 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64572
64573         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64574
64575         alloca modernization/simplification for regex.
64576         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64577         needs to be at the start of the file, and can be moved into
64578         regex_internal.h and simplified.
64579         * lib/regex_internal.h: Include <alloca.h>.
64580         (__libc_use_alloca) [!defined _LIBC]: New macro.
64581         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64582         now works outside glibc.
64583
64584 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64585
64586         * config/srclist.txt: Add glibc bugs 1241, 1245.
64587
64588 2005-08-25  Jim Meyering  <jim@meyering.net>
64589
64590         * lib/open-safer.c: Include <config.h>.
64591         Otherwise, we'd lose LARGEFILE support in any file using
64592         e.g. "fcntl--.h"
64593
64594 2005-08-25  Bruno Haible  <bruno@clisp.org>
64595
64596         * m4/minmax.m4: Require autoconf 2.52.
64597         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64598         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64599         alternatives of translit over the alphabet.
64600         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64601
64602 2005-08-24  Simon Josefsson  <jas@extundo.com>
64603
64604         * tests/test-getpass.c: New file.
64605
64606 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64607
64608         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64609         for GNU regex features.
64610
64611 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64612
64613         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64614         * lib/regex.h (regerror): Likewise.
64615
64616         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64617         requires this.  (The code never needed it.)
64618
64619         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64620         All uses of recently-renamed identifiers changed to use the new,
64621         POSIX-compliant names.  The code will build and run just fine
64622         without these changes, but it's better to eat our own dog food
64623         and use the standard-conforming names.
64624
64625         * lib/regex.h: Fix a multitude of POSIX name space violations.
64626         These changes have an effect only for programs that define
64627         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64628         do not change anything for programs compiled in the normal way.
64629         Also, there is no effect on the ABI.
64630
64631         (_REGEX_SOURCE): New macro.
64632         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64633         defined and _GNU_SOURCE is not; this fixes a name space violation.
64634
64635         Rename the following macros to obey POSIX requirements.
64636         The old names are still visible as macros if _REGEX_SOURCE is defined.
64637         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64638         RE_BACKSLASH_ESCAPE_IN_LISTS.
64639         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64640         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64641         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64642         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64643         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64644         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64645         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64646         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64647         (REG_INTERVALS): renamed from RE_INTERVALS.
64648         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64649         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64650         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64651         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64652         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64653         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64654         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64655         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64656         RE_UNMATCHED_RIGHT_PAREN_ORD.
64657         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64658         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64659         (REG_DEBUG): renamed from RE_DEBUG.
64660         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64661         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64662         unusual, since we can't clash with the POSIX REG_ICASE.
64663         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64664         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64665         (REG_NO_SUB): renamed from RE_NO_SUB.
64666         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64667         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64668         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64669         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64670         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64671         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64672         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64673         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64674         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64675         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64676         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64677         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64678         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64679         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64680         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64681         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64682         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64683         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64684         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64685         (REG_FIXED): Renamed from REGS_FIXED.
64686         (REG_NREGS): Renamed from RE_NREGS.
64687
64688         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64689         of other REG_* macros, since POSIX says the user is allowed to
64690         #undef these macros selectively.
64691
64692         (reg_errcode_t): Update comment stating what other tables need
64693         to be consistent.
64694
64695         Rename the following enum values to obey POSIX requirements.
64696         The old names are still visible as macros.
64697         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64698         is not defined, since GNU is supposed to be a superset of POSIX as
64699         much as possible, and since we want reg_errcode_t to be a signed
64700         type for implementation consistency.
64701         (_REG_NOERROR): Renamed from REG_NOERROR.
64702         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64703         (_REG_BADPAT): Renamed from REG_BADPAT.
64704         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64705         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64706         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64707         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64708         (_REG_EBRACK): Renamed from REG_EBRACK.
64709         (_REG_EPAREN): Renamed from REG_EPAREN.
64710         (_REG_EBRACE): Renamed from REG_EBRACE.
64711         (_REG_BADBR): Renamed from REG_BADBR.
64712         (_REG_ERANGE): Renamed from REG_ERANGE.
64713         (_REG_ESPACE): Renamed from REG_ESPACE.
64714         (_REG_BADRPT): Renamed from REG_BADRPT.
64715         (_REG_EEND): Renamed from REG_EEND.
64716         (_REG_ESIZE): Renamed from REG_ESIZE.
64717         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64718         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64719         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64720         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64721         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64722
64723         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64724         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64725         changed.  But support the old name if the new one is not defined
64726         and if _REGEX_SOURCE.
64727
64728         Change the following member names in struct re_pattern_buffer.
64729         The old names are still supported if !_REGEX_SOURCE.
64730         The new names are always supported, regardless of _REGEX_SOURCE.
64731         (re_buffer): Renamed from buffer.
64732         (re_allocated): Renamed from allocated.
64733         (re_used): Renamed from used.
64734         (re_syntax): Renamed from syntax.
64735         (re_fastmap): Renamed from fastmap.
64736         (re_translate): Renamed from translate.
64737         (re_can_be_null): Renamed from can_be_null.
64738         (re_regs_allocated): Renamed from regs_allocated.
64739         (re_fastmap_accurate): Renamed from fastmap_accurate.
64740         (re_no_sub): Renamed from no_sub.
64741         (re_not_bol): Renamed from not_bol.
64742         (re_not_eol): Renamed from not_eol.
64743         (re_newline_anchor): Renamed from newline_anchor.
64744
64745         Change the following member names in struct re_registers.
64746         The old names are still supported if !_REGEX_SOURCE.
64747         The new names are always supported, regardless of _REGEX_SOURCE.
64748         (rm_num_regs): Renamed from num_regs.
64749         (rm_start): Renamed from start.
64750         (rm_end): Renamed from end.
64751
64752         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64753         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64754         Prepend __ to parameter names.
64755
64756         Undo yesterday's changes.
64757
64758 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64759
64760         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64761         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64762         lib/regex.c.
64763
64764 2005-08-24  Jim Meyering  <jim@meyering.net>
64765
64766         Sync from coreutils.
64767         * m4/fcntl-safer.m4: New file.
64768
64769         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64770         and object files for this module.
64771
64772 2005-08-24  Jim Meyering  <jim@meyering.net>
64773
64774         Sync from coreutils.
64775         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64776
64777 2005-08-24  Jim Meyering  <jim@meyering.net>
64778
64779         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64780         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64781
64782 2005-08-24  Jim Meyering  <jim@meyering.net>
64783
64784         * modules/fcntl-safer: New module.
64785         * modules/fts (Depends-on): Add fcntl-safer.
64786         * MODULES.html.sh (File descriptor based Input/Output):
64787         Add fcntl-safer.
64788
64789 2005-08-24  Bruno Haible  <bruno@clisp.org>
64790
64791         Support for unit test modules.
64792         * modules/README: Mention tests modules.
64793         * modules/TEMPLATE-TESTS: New file.
64794         * gnulib-tool: New options --extract-tests-module, --with-tests and
64795         --tests-base (unused for the moment).
64796         (testsbase, inctests): New variables.
64797         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64798         (func_verify_module): Exclude TEMPLATE-TESTS.
64799         (func_verify_nontests_module, func_verify_tests_module): New functions.
64800         (func_get_dependencies): Add implicit dependency for tests modules.
64801         (func_get_tests_module): New function.
64802         (func_modules_transitive_closure): When --with-tests was specified,
64803         include the unit tests as well, unless explicitly avoided.
64804         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64805         (func_emit_tests_Makefile_am): New function.
64806         (func_create_testdir): When --with-tests was specified, emit a
64807         tests/ directory.
64808         * MODULES.html.sh (Future developments): Update.
64809
64810 2005-08-24  Bruno Haible  <bruno@clisp.org>
64811
64812         * modules/tls-tests: New file.
64813         * tests/test-tls.c: New file, from GNU gettext.
64814
64815 2005-08-24  Bruno Haible  <bruno@clisp.org>
64816
64817         * modules/lock-tests: New file.
64818         * tests/test-lock.c: New file, from GNU gettext.
64819
64820 2005-08-24  Bruno Haible  <bruno@clisp.org>
64821
64822         * lib/lock.h: Add multiple inclusion guard.
64823         * lib/tls.h: Add multiple inclusion guard.
64824
64825 2005-08-24  Bruno Haible  <bruno@clisp.org>
64826
64827         * gnulib-tool: Add support for the --aux-dir option to
64828         --create-testdir, --create-megatestdir, --test, --megatest.
64829         (func_create_testdir, func_create_megatestdir): Optionally emit a
64830         AC_CONFIG_AUX_DIR directive.
64831         (create-testdir, create-megatestdir, test, megatest): Provide a
64832         default value for $auxdir.
64833
64834 2005-08-24  Bruno Haible  <bruno@clisp.org>
64835
64836         * gnulib-tool (import): Use compound statement instead of subshell
64837         where possible.
64838
64839 2005-08-24  Bruno Haible  <bruno@clisp.org>
64840
64841         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64842
64843 2005-08-24  Bruno Haible  <bruno@clisp.org>
64844
64845         * gnulib-tool (func_version): Update.
64846
64847 2005-08-24  Bruno Haible  <bruno@clisp.org>
64848
64849         * gnulib-tool (func_import, func_create_testdir,
64850         func_create_megatestdir): Quote all autoconf macro arguments.
64851
64852 2005-08-24  Bruno Haible  <bruno@clisp.org>
64853
64854         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64855         option --force, because --force causes the aclocal.m4 of each
64856         subdirectory to be newer than the corresponding config.h.in.
64857
64858 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64859
64860         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64861         All contents moved to gl_REGEX.
64862         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64863         assume that it does.
64864
64865 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         * lib/regex.h (REG_NOSYS)
64868         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64869         Define, since POSIX requires it as of 2001.
64870         (_REG_ENOSYS)
64871         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64872         New private symbol, used to keep the enum signed in all cases.
64873         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64874         Youngman in
64875         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64876
64877         * lib/regex_internal.c (re_string_skip_chars, register_state):
64878         (calc_state_hash):
64879         Remove forward decls; no longer needed now that we use prototypes.
64880         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64881         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64882         (clean_state_log_if_needed): Likewise.
64883
64884 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64885
64886         * config/srclist.txt: Add glibc bugs 1231-1233.
64887
64888 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64889
64890         Fix problems reported by Sam Steingold in
64891         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64892         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64893         assumed that reg_errcode_t is a signed type, which is not
64894         necessarily true if _XOPEN_SOURCE is not defined.
64895         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64896         since some compilers warn about it otherwise.
64897
64898 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64899
64900         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64901         (init_word_char, create_initial_state, duplicate_node_closure):
64902         (fetch_token, peek_token_bracket, build_range_exp):
64903         (build_collating_symbol): Remove forward decls; no longer needed
64904         now that we use prototypes.
64905
64906         * lib/regcomp.c:
64907         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64908         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64909         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64910         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64911         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64912         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64913         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64914         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64915         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64916         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64917         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64918         (build_charclass, build_charclass_op, fetch_number, create_tree):
64919         (create_token_tree, mark_opt_subexp, duplicate_tree):
64920         Use prototypes rather than old-style definitions.
64921
64922         * lib/regex_internal.c:
64923         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64924         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64925         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64926         (re_string_reconstruct, re_string_peek_byte_case):
64927         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64928         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64929         (re_node_set_init_copy, re_node_set_add_intersect):
64930         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64931         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64932         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64933         (re_acquire_state, re_acquire_state_context, register_state):
64934         (create_ci_newstate, create_cd_newstate, free_state):
64935         Likewise.
64936         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64937         re_search_2):
64938         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64939         (re_search_internal, prune_impossible_nodes):
64940         (acquire_init_state_context, check_matching, static):
64941         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64942         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64943         (update_regs, sift_states_backward, build_sifted_states):
64944         (clean_state_log_if_needed, merge_state_array):
64945         (update_cur_sifted_state, add_epsilon_src_nodes):
64946         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64947         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64948         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64949         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64950         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64951         (check_arrival, check_arrival_add_next_nodes):
64952         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64953         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64954         (check_node_accept_bytes, check_node_accept, extend_buffers):
64955         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64956         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64957         (sift_ctx_init):
64958         Likewise.
64959
64960         * lib/regex_internal.h:
64961         (re_string_allocate, re_string_construct, re_string_reconstruct):
64962         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64963         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64964         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64965         (re_string_context_at, re_string_peek_byte_case):
64966         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64967         is defined, since we now use prototypes always.
64968
64969         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64970         C89 or better.  All uses removed.
64971
64972 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64973
64974         * config/srclist.txt: Add glibc bugs 1220-1227.
64975
64976 2005-08-20  Jim Meyering  <jim@meyering.net>
64977
64978         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64979         of unused local, dfa.
64980
64981 2005-08-20  Bruno Haible  <bruno@clisp.org>
64982
64983         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64984
64985 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64986
64987         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64988         (re_node_set_insert_last, re_dfa_add_node):
64989         Rename local variables to avoid GCC shadowing warnings.
64990
64991 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64992
64993         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64994         [defined lint]: Suppress bogus uninitialized-variable warnings.
64995
64996         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64997         and let the caller return REG_ESPACE if out of space.  This
64998         removes an uninitialied-variable warning with GCC 4.0.1, and also
64999         avoids taking the address of a local variable.  All callers
65000         changed.
65001
65002 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65003
65004         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65005         $LIBCSRC/posix/regexec.c.
65006         Add glibc bug 1217 for regcomp.c.
65007
65008 2005-08-19  Jim Meyering  <jim@meyering.net>
65009
65010         * lib/regexec.c (proceed_next_node): Redo local variables to
65011         avoid GCC shadowing warnings.
65012
65013 2005-08-18  Bruno Haible  <bruno@clisp.org>
65014
65015         * lib/strstr.c (strstr): Fix return value in multibyte case.
65016         * lib/strcasestr.c (strcasestr): Likewise.
65017
65018 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65019
65020         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65021
65022 2005-08-17  Jim Meyering  <jim@meyering.net>
65023
65024         Make the %s format (seconds since the epoch) work for a negative
65025         number and when used with a zero-padded field width, e.g. %015s.
65026
65027         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65028         label so that it precedes the code to set `digits'.  Otherwise,
65029         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65030         print `00-22'.  Now, it prints `-0022', as it should.
65031
65032 2005-08-17  Bruno Haible  <bruno@clisp.org>
65033
65034         * modules/strstr (Files): Add m4/mbrtowc.m4.
65035         (Depends-on): Add mbuiter.
65036
65037 2005-08-17  Bruno Haible  <bruno@clisp.org>
65038
65039         * modules/strcasestr: New file.
65040         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65041         strcasestr.
65042
65043 2005-08-17  Bruno Haible  <bruno@clisp.org>
65044
65045         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65046
65047 2005-08-17  Bruno Haible  <bruno@clisp.org>
65048
65049         * modules/mbuiter: New file.
65050         * MODULES.html.sh (Extended multibyte and wide character utilities):
65051         Add mbuiter.
65052
65053 2005-08-17  Bruno Haible  <bruno@clisp.org>
65054
65055         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65056         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65057
65058 2005-08-17  Bruno Haible  <bruno@clisp.org>
65059
65060         * m4/strcasestr.m4: New file.
65061
65062 2005-08-17  Bruno Haible  <bruno@clisp.org>
65063
65064         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65065         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65066
65067 2005-08-17  Bruno Haible  <bruno@clisp.org>
65068
65069         * lib/strcasestr.h: New file.
65070         * lib/strcasestr.c: New file.
65071
65072 2005-08-17  Bruno Haible  <bruno@clisp.org>
65073
65074         * lib/strcasecmp.c: Use mbuiter.h.
65075
65076 2005-08-17  Bruno Haible  <bruno@clisp.org>
65077
65078         * lib/mbuiter.h: New file.
65079
65080 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65081
65082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65083         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65084         and gl_GETOPT are both invoked via different paths (as happens
65085         with GNU tar CVS because it uses both argp and getopt), the former
65086         wins.
65087
65088 2005-08-16  Bruno Haible  <bruno@clisp.org>
65089
65090         * modules/tls: New file.
65091         * MODULES.html.sh (Multithreading): Add tls.
65092
65093 2005-08-16  Bruno Haible  <bruno@clisp.org>
65094
65095         * modules/strnlen1: New file.
65096         * MODULES.html.sh (String handling): Add strnlen1.
65097
65098 2005-08-16  Bruno Haible  <bruno@clisp.org>
65099
65100         * modules/strcase (Files): Add m4/mbrtowc.m4.
65101         (Depends-on): Add strnlen1, mbchar.
65102
65103 2005-08-16  Bruno Haible  <bruno@clisp.org>
65104
65105         * modules/mbiter: New file.
65106         * MODULES.html.sh (Extended multibyte and wide character utilities):
65107         Add mbiter.
65108
65109 2005-08-16  Bruno Haible  <bruno@clisp.org>
65110
65111         * modules/mbfile: New file.
65112         * MODULES.html.sh (Extended multibyte and wide character utilities):
65113         Add mbfile.
65114
65115 2005-08-16  Bruno Haible  <bruno@clisp.org>
65116
65117         * modules/mbchar: New file.
65118         * MODULES.html.sh (Extended multibyte and wide character utilities):
65119         New section.
65120
65121 2005-08-16  Bruno Haible  <bruno@clisp.org>
65122
65123         * m4/tls.m4: New file, from GNU gettext.
65124
65125 2005-08-16  Bruno Haible  <bruno@clisp.org>
65126
65127         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65128         always.
65129         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65130
65131 2005-08-16  Bruno Haible  <bruno@clisp.org>
65132
65133         * m4/mbiter.m4: New file.
65134
65135 2005-08-16  Bruno Haible  <bruno@clisp.org>
65136
65137         * m4/mbfile.m4: New file.
65138
65139 2005-08-16  Bruno Haible  <bruno@clisp.org>
65140
65141         * m4/mbchar.m4: New file.
65142
65143 2005-08-16  Bruno Haible  <bruno@clisp.org>
65144
65145         * lib/tls.h: New file, from GNU gettext.
65146         * lib/tls.c: New file, from GNU gettext.
65147
65148 2005-08-16  Bruno Haible  <bruno@clisp.org>
65149
65150         * lib/strnlen1.h: New file.
65151         * lib/strnlen1.c: New file.
65152
65153 2005-08-16  Bruno Haible  <bruno@clisp.org>
65154
65155         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65156         (mbi_init): Update.
65157         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65158         NUL byte, not after it.
65159
65160 2005-08-16  Bruno Haible  <bruno@clisp.org>
65161
65162         * lib/strcase.h (strcasecmp): Add note in comments.
65163         * lib/strncasecmp.c: Use code from strcasecmp.c.
65164         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65165         (strcasecmp): Work correctly in multibyte locales.
65166
65167 2005-08-16  Bruno Haible  <bruno@clisp.org>
65168
65169         * lib/mbiter.h: New file.
65170
65171 2005-08-16  Bruno Haible  <bruno@clisp.org>
65172
65173         * lib/mbfile.h: New file.
65174
65175 2005-08-16  Bruno Haible  <bruno@clisp.org>
65176
65177         * lib/mbchar.h: New file.
65178         * lib/mbchar.c: New file.
65179
65180 2005-08-16  Bruno Haible  <bruno@clisp.org>
65181
65182         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65183         the valid ones. Makes the comparison operations transitive:
65184         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65185         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65186
65187 2005-08-15  Simon Josefsson  <jas@extundo.com>
65188
65189         * modules/ssize_t (License): Change to 'unlimited'.
65190
65191         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65192
65193 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65194
65195         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65196         Add comments for each pending glibc patch.
65197
65198 2005-08-15  Bruno Haible  <bruno@clisp.org>
65199
65200         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65201         __cplusplus is defined.
65202
65203 2005-08-14  Jim Meyering  <jim@meyering.net>
65204
65205         Sync from coreutils.
65206
65207         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65208         Use the hash-table-based cycle-detection code not just when
65209         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65210         Reported by James Youngman in
65211         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65212         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65213         FTS_TIGHT_CYCLE_CHECK.
65214         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65215         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65216         once again.
65217         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65218         * lib/fts.c (fd_safer): Remove decl.
65219         Include fcntl--.h rather than unistd-safer.h
65220         (fts_safe_changedir): Don't call fd_safer; no longer needed
65221         now that we include fcntl--.h.
65222
65223 2005-08-12  Simon Josefsson  <jas@extundo.com>
65224
65225         * modules/getndelim2: Use ssize_t module.
65226         * modules/getnline: Likewise.
65227         * modules/safe-read: Likewise.
65228         * modules/xreadlink: Likewise.
65229
65230         * modules/ssize_t: New file.
65231
65232 2005-08-12  Simon Josefsson  <jas@extundo.com>
65233
65234         * m4/readline.m4: Look for termcap, curses or ncurses if required.
65235
65236 2005-08-12  Simon Josefsson  <jas@extundo.com>
65237
65238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65239         ssize_t.
65240
65241 2005-08-12  Simon Josefsson  <jas@extundo.com>
65242
65243         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
65244         readline, getdelim and check_version.
65245         (Support for systems lacking ISO C 99: Sizes of integer types):
65246         Add size_max.
65247
65248 2005-08-12  Bruno Haible  <bruno@clisp.org>
65249
65250         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
65251
65252 2005-08-11  Simon Josefsson  <jas@extundo.com>
65253
65254         * modules/readline: New file.
65255
65256         * modules/strnlen (Files): Add strnlen.h.
65257
65258 2005-08-11  Simon Josefsson  <jas@extundo.com>
65259
65260         * m4/readline.m4: New file.
65261
65262 2005-08-11  Simon Josefsson  <jas@extundo.com>
65263
65264         * lib/readline.h, readline.c: New file.
65265
65266 2005-08-11  Simon Josefsson  <jas@extundo.com>
65267
65268         * doc/gnulib.texi (Initial import, Finishing touches): Mention
65269         gl_AVOID.
65270
65271 2005-08-11  Bruno Haible  <bruno@clisp.org>
65272
65273         * lib/strnlen.h (strnlen): Change parameter name to match comment.
65274
65275 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
65276
65277         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
65278
65279 2005-08-10  Simon Josefsson  <jas@extundo.com>
65280
65281         * tests/test-iconvme.c: New file.
65282
65283 2005-08-10  Simon Josefsson  <jas@extundo.com>
65284
65285         * m4/strnlen.m4: New file.
65286
65287         * m4/strndup.m4: Don't check for strnlen declaration, done in
65288         strnlen.m4.
65289
65290 2005-08-10  Simon Josefsson  <jas@extundo.com>
65291
65292         * lib/strndup.c: Use strnlen.h.
65293
65294         * lib/strnlen.h: New file.
65295
65296 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65297
65298         * README: Typos.
65299
65300 2005-08-02  Simon Josefsson  <jas@extundo.com>
65301
65302         * modules/readline: New file.
65303
65304 2005-08-02  Simon Josefsson  <jas@extundo.com>
65305
65306         * modules/getdelim: New file.
65307
65308         * modules/getline: Rewrite, don't use getndelim2.
65309
65310 2005-08-02  Simon Josefsson  <jas@extundo.com>
65311
65312         * m4/getline.m4: Separate out getdelim stuff into separate module.
65313
65314         * m4/getdelim.m4: New file.
65315
65316 2005-08-02  Simon Josefsson  <jas@extundo.com>
65317
65318         * lib/getline.h, getline.c: Rewrite.
65319
65320         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
65321
65322 2005-07-31  Bruno Haible  <bruno@clisp.org>
65323
65324         * lib/lock.h (gl_lock_initializer): New macro.
65325         (gl_lock_define_initialized): Use it.
65326         (gl_rwlock_initializer): New macro.
65327         (gl_rwlock_define_initialized): Use it.
65328         (gl_recursive_lock_initializer): New macro.
65329         (gl_recursive_lock_define_initialized): Use it.
65330
65331 2005-07-30  Karl Berry  <karl@gnu.org>
65332
65333         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
65334         Report from Ben Pfaff, regarding getopt.
65335
65336 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
65337
65338         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
65339         normal way.
65340         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
65341         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
65342         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
65343         (gl_GETOPT): Use the new macros.  Most of the implementation
65344         is moved to the new macros.  This is for programs like Emacs
65345         that don't want all the functionality of gl_GETOPT.
65346
65347 2005-07-26  Bruno Haible  <bruno@clisp.org>
65348
65349         * m4/lock.m4: Update from GNU gettext.
65350
65351 2005-07-26  Bruno Haible  <bruno@clisp.org>
65352
65353         * lib/lock.h: Update from GNU gettext.
65354         * lib/lock.c: Update from GNU gettext.
65355
65356 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
65357
65358         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
65359         obsolescent AC_TRY_RUN.  Include the default includes files, for
65360         'exit'.
65361
65362 2005-07-24  Bruno Haible  <bruno@clisp.org>
65363
65364         * modules/visibility: New file.
65365         * MODULES.html.sh (Misc): Add visibility.
65366
65367 2005-07-24  Bruno Haible  <bruno@clisp.org>
65368
65369         * m4/visibility.m4: New file.
65370
65371 2005-07-24  Bruno Haible  <bruno@clisp.org>
65372
65373         * doc/visibility.texi: New file.
65374
65375 2005-07-22  Bruno Haible  <bruno@clisp.org>
65376
65377         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
65378         $(ALLOCA_H), redundant through BUILT_SOURCES.
65379         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
65380         redundant through BUILT_SOURCES.
65381         * modules/byteswap (Makefile.am): Remove explicit dependency on
65382         $(BYTESWAP_H), redundant through BUILT_SOURCES.
65383         * modules/fnmatch (Makefile.am): Remove explicit dependency on
65384         $(FNMATCH_H), redundant through BUILT_SOURCES.
65385         * modules/getopt (Makefile.am): Remove explicit dependency on
65386         $(GETOPT_H), redundant through BUILT_SOURCES.
65387         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
65388         redundant through BUILT_SOURCES.
65389         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
65390         redundant through BUILT_SOURCES.
65391         * modules/stdbool (Makefile.am): Remove explicit dependency on
65392         $(STDBOOL_H), redundant through BUILT_SOURCES.
65393         * modules/stdint (Makefile.am): Remove explicit dependency on
65394         $(STDINT_H), redundant through BUILT_SOURCES.
65395         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
65396         Remove explicit dependency on $(SYSEXITS_H).
65397         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
65398
65399 2005-07-18  Simon Josefsson  <jas@extundo.com>
65400
65401         * lib/check-version.c (check_version): Accept identical versions too.
65402
65403 2005-07-18  Bruno Haible  <bruno@clisp.org>
65404
65405         * modules/lock: New file.
65406         * MODULES.html.sh (Multithreading): New section.
65407
65408 2005-07-18  Bruno Haible  <bruno@clisp.org>
65409
65410         * m4/lock.m4: New file, from GNU gettext.
65411
65412 2005-07-18  Bruno Haible  <bruno@clisp.org>
65413
65414         * lib/lock.h: New file, from GNU gettext.
65415         * lib/lock.c: New file, from GNU gettext.
65416
65417 2005-07-18  Bruno Haible  <bruno@clisp.org>
65418
65419         * lib/lock.h (gl_once_t): New type.
65420         (gl_once_define, gl_once): New macros.
65421         * lib/lock.c (fresh_once): New variable.
65422         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
65423         functions.
65424
65425 2005-07-16  Simon Josefsson  <jas@extundo.com>
65426
65427         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
65428         workaround, suggested by Bruno.
65429
65430 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65431
65432         * modules/xalloc (Depends-on): Add xalloc-die.
65433         * modules/xvasprintf (Depends-on): Add xalloc-die.
65434
65435 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65436
65437         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
65438         with a minor change.
65439
65440 2005-07-15  Bruno Haible  <bruno@clisp.org>
65441
65442         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
65443         When using lib/poll.c, define poll as rpl_poll.
65444
65445 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
65446
65447         * modules/argp (Depends-on): Remove unlocked-io.
65448
65449 2005-07-14  Derek Price  <derek@ximbiot.com>
65450
65451         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
65452         for glob symlink bug.
65453
65454 2005-07-14  Bruno Haible  <bruno@clisp.org>
65455
65456         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
65457         Instead, test for *_unlocked function declarations directly.
65458
65459 2005-07-11  Simon Josefsson  <jas@extundo.com>
65460
65461         * modules/size_max: New file.
65462
65463         * modules/xsize: Depend on size_max module for size_max.m4.
65464
65465 2005-07-11  Simon Josefsson  <jas@extundo.com>
65466
65467         * lib/size_max.h: New file.
65468
65469 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
65472         copyright symbol and the year.
65473         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
65474         (version_etc_va): Use parameterized copyright notice.
65475         Reword to conform to the current GNU coding standards.
65476
65477 2005-07-11  Karl Berry  <karl@gnu.org>
65478
65479         * doc/gnulib.texi (Quoting): new node.
65480         (Initial import): more info, from Patrice.
65481
65482 2005-07-11  Bruno Haible  <bruno@clisp.org>
65483
65484         * gnulib-tool (func_usage): Document option --avoid.
65485         (Command line options): Handle --avoid.
65486         (func_acceptable): New function.
65487         (func_modules_transitive_closure): Use it.
65488
65489 2005-07-11  Bruno Haible  <bruno@clisp.org>
65490
65491         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
65492         Reported by Jim Meyering.
65493
65494 2005-07-10  Bruno Haible  <bruno@clisp.org>
65495
65496         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
65497         Needed when size_t is smaller than 'unsigned int'.
65498         Reported by Paul Eggert.
65499
65500 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65501
65502         * modules/argp (Depends-on): Add unlocked-io
65503
65504 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65505
65506         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
65507         block of defines.
65508
65509 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * config/srclist.txt: Comment out regcomp.c, since we have a porting
65512         fix now.
65513
65514 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
65515         and Paul Eggert  <eggert@cs.ucla.edu>
65516
65517         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
65518         in wint_t, not wchar_t.  Remove now-unnecessary cast.
65519
65520 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65521
65522         * modules/regex (Files): Add lib/regex_internal.c,
65523         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
65524         (Depends-on): Add extensions.
65525         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
65526
65527 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65528
65529         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
65530         pathconf.
65531         * m4/same.m4 (gl_SAME): Likewise.
65532         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
65533
65534         * m4/regex.m4: Adjust to new libc regex implementation.
65535         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
65536         all the .c and .h parts of (the new) regex.
65537         Quote the m4 stuff better.
65538         Check for RE_ICASE bug of old gnulib.
65539         Check for REG_STARTEND of recent libc.
65540         Rename local variables from jm_* to gl_*.
65541         Quote operand of "test -f".
65542         Say "recent enough" version of libc, not "version 2".
65543         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
65544         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
65545         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
65546         Remove check for btowc, isascii.
65547         Require AM_LANGINFO_CODESET.
65548
65549 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65550
65551         * lib/regex.c, regex.h: Sync from libc.
65552         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
65553         * lib/regexec.c:
65554         New files, synced from libc, except that regex_internal.h
65555         currently has a small porting fix.
65556
65557 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65558
65559         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65560         regex_internal.c, regexec.c.
65561         Add regex_internal.h too, but as a comment, since the libc version
65562         is currently broken in gnulib mode.
65563
65564 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65565
65566         Support programs like Emacs that use gnulib but not gettext.
65567         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65568         * modules/gettext-h: New file.
65569         * modules/gettext (Files): Remove lib/gettext.h.
65570         (Depends-on): Add gettext-h.
65571         (Makefile.am): Remove lib_SOURCES.
65572         * modules/argmatch, modules/c-stack, modules/closeout:
65573         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65574         * modules/execute, modules/file-type, modules/getaddrinfo:
65575         * modules/getopt, modules/human, modules/javacomp:
65576         * modules/javaexec, modules/mkdir-p, modules/obstack:
65577         * modules/openat, modules/pagealign_alloc, modules/pipe:
65578         * modules/quotearg, modules/regex, modules/rpmatch:
65579         * modules/unicodeio, modules/userspec, modules/version-etc:
65580         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65581         * modules/xsetenv:
65582         Depend on gettext-h, not gettext.
65583
65584 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65585
65586         * gnulib-tool (func_import): Add support for 'public domain' license.
65587         * modules/alloca, modules/atexit, modules/memmove:
65588         Now public domain, not GPL.
65589         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65590         * modules/realloc, modules/strerror, modules/strtod:
65591         Now LGPL, not GPL.
65592
65593 2005-07-05  Bruno Haible  <bruno@clisp.org>
65594
65595         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65596         autoconf CVS. Needed for mingw.
65597
65598 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65599
65600         Remove the dependency of the strftime module on the tzset module.
65601         * modules/strftime (Depends-on): Remove dependency on tzset.
65602
65603 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65604
65605         Remove the dependency of the strftime module on the tzset module.
65606         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65607         gl_FUNC_TZSET_CLOBBER.
65608
65609 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65610
65611         Remove the dependency of the strftime module on the tzset module.
65612         * lib/strftime.c (my_strftime)
65613         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65614         Copy the input structure, to work around some of the bug with
65615         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65616         Solaris releases, you should also use the tzset module, but we won't
65617         require it as a dependency any more since we don't want LGPLed code
65618         to depend on GPLed code.
65619
65620 2005-07-02  Jim Meyering  <jim@meyering.net>
65621
65622         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65623         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65624         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65625         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65626
65627 2005-07-02  Jim Meyering  <jim@meyering.net>
65628
65629         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65630
65631 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65632
65633         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65634         declares only 'struct timespec;' (!).
65635
65636 2005-07-01  Jim Meyering  <jim@meyering.net>
65637
65638         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65639         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65640         * lib/save-cwd.c, tempname.c:
65641         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65642         and don't include <sys/file.h>).
65643
65644 2005-06-29  Jim Meyering  <jim@meyering.net>
65645
65646         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65647         type name.  Use the variable name instead.
65648         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65649         Likewise.
65650
65651 2005-06-28  Simon Josefsson  <jas@extundo.com>
65652
65653         * modules/check-version (Files): Add check-version.m4.
65654
65655 2005-06-28  Simon Josefsson  <jas@extundo.com>
65656
65657         * m4/check-version.m4: New file, suggested by Jim Meyering
65658         <jim@meyering.net>.
65659
65660 2005-06-28  Simon Josefsson  <jas@extundo.com>
65661
65662         * lib/check-version.h, lib/check-version.c: New files.
65663
65664 2005-06-28  Simon Josefsson  <jas@extundo.com>
65665
65666         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65667         collision with global variable.  Better indentation.  Don't
65668         increment buffer pointer beyond buffer end.  Based on comments
65669         from Paul Eggert <eggert@cs.ucla.edu>.
65670
65671         * lib/base64.h: Indent.
65672
65673 2005-06-28  Simon Josefsson  <jas@extundo.com>
65674
65675         * doc/gnulib.texi (Library version handling): New section.
65676
65677 2005-06-28  Jim Meyering  <jim@meyering.net>
65678
65679         * check-module (find_included_lib_files): Hard-code another
65680         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65681         but modules/fts-lgpl (correctly) does not list those files.
65682
65683         * modules/canonicalize (Files): Add lib/pathmax.h.
65684
65685 2005-06-25  Simon Josefsson  <jas@extundo.com>
65686
65687         * modules/check-version: New file.
65688
65689 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65692         initializer of struct addrinfo, as an indication that we don't
65693         care how many members the structure has.
65694
65695 2005-06-24  Derek Price  <derek@ximbiot.com>
65696         and Bruno Haible  <bruno@clisp.org>
65697
65698         Remove stat module & update lstat.
65699         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65700         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65701         * m4/stat.m4: Remove this file.
65702
65703 2005-06-24  Derek Price  <derek@ximbiot.com>
65704         and Bruno Haible  <bruno@clisp.org>
65705
65706         Remove stat module & update lstat.
65707         * lib/stat.c: Remove this file...
65708         (slash_aware_lstat): ...moving this content and its support...
65709         * lib/lstat.c (rpl_lstat): ...into here.
65710         * lib/lstat.h: New file.
65711
65712 2005-06-24  Derek Price  <derek@ximbiot.com>
65713         and Bruno Haible  <bruno@clisp.org>
65714
65715         Remove stat module & update lstat.
65716         * config/srclist.txt (libc sources): Remove stat.
65717
65718 2005-06-24  Derek Price  <derek@ximbiot.com>
65719         and Bruno Haible  <bruno@clisp.org>
65720
65721         Remove stat module & update lstat.
65722         * MODULES.html.sh (stat): Remove.
65723         * MODULES.html: Regenerated.
65724         * modules/lstat (Description): Correct function name.
65725         (Files): Add "lstat.h".
65726         (Depends-on): Remove stat, add xalloc, stat-macros.
65727         * modules/stat: Remove this file.
65728         (Include): Add "lstat.h", remove <sys/stat.h>.
65729
65730 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65731
65732         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65733         (ranged_convert): Don't save conversion in a temporary struct.
65734         This causes a warning with GCC 4.0.0, and anyway in the typical
65735         case it's not worth the extra 100 bytes or so of code.
65736         (ranged_convert, __mktime_internal): When calling a function via a
65737         pointer P, use P () rather than (*P) (), as we now assume C89 or
65738         better.
65739
65740 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65741
65742         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65743         "who -r" failed to give output.  Problem reported by Tim Waugh.
65744
65745         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65746         (xcalloc): Use it to avoid needless tests.
65747         Problem reported by Jim Meyering.
65748
65749 2005-06-20  Derek Price  <derek@ximbiot.com>
65750
65751         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65752         unnecessary for Autoconfs > 2.59c.
65753
65754 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65755
65756         * lib/argp.h (__option_is_short): Check upper limit of
65757         __key. Isprint() requires its argument to have the value
65758         of an unsigned char or EOF.
65759
65760 2005-06-16  Jim Meyering  <jim@meyering.net>
65761
65762         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65763         when either N or S is zero.
65764
65765 2005-06-16  Derek Price  <derek@ximbiot.com>
65766
65767         * m4/bison.m4: Declare YACC & YFLAGS precious.
65768
65769 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65770
65771         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65772         multibyte string or pattern, fall back on unibyte matching.
65773         Problem reported by James Youngman.
65774
65775 2005-06-08  Bruno Haible  <bruno@clisp.org>
65776
65777         * modules/csharpcomp: New file.
65778         * MODULES.html.sh (C#): Add csharpcomp.
65779
65780 2005-06-08  Bruno Haible  <bruno@clisp.org>
65781
65782         * m4/csharpcomp.m4: New file, from GNU gettext.
65783
65784 2005-06-08  Bruno Haible  <bruno@clisp.org>
65785
65786         * lib/csharpcomp.h: New file, from GNU gettext.
65787         * lib/csharpcomp.c: New file, from GNU gettext.
65788         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65789
65790 2005-06-08  Bruno Haible  <bruno@clisp.org>
65791
65792         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65793         warning on mingw.
65794
65795 2005-06-07  Derek Price  <derek@ximbiot.com>
65796
65797         Sync from CVS.
65798         * lib/glob_.h: Indent nested #ifdef.
65799
65800 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65801
65802         Sync from coreutils.
65803         Use "file name" when talking about file names, instead of "filename"
65804         or "path", as per the GNU coding standards.
65805         * lib/mkdir-p.c: Renamed from makepath.c.
65806         (make_dir_parents): Renamed from make_path.  All callers changed.
65807         * lib/mkdir-p.h: Likewise.  All includers changed.
65808         * lib/filenamecat.c: Renamed from path-concat.c.
65809         (file_name_concat): Renamed from path_concat.  All callers changed.
65810         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65811         * lib/filenamecat.h: Likewise.  All includers changed.
65812         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65813         in comments or local variable names.
65814         * lib/basename.c: Likewise.
65815         * lib/canonicalize.c, canonicalize.h: Likewise.
65816         * lib/dirname.c, dirname.h: Likewise.
65817         * lib/euidaccess.c: Likewise.
65818         * lib/exclude.c: Likewise
65819         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65820         * lib/fsusage.c, fsuage.h: Likewise.
65821         * lib/fts.c, fts_.h: Likewise.
65822         * lib/getcwd.c: Likewise.
65823         * lib/getloadavg.c: Likewise.
65824         * lib/mkstemp.c: Likewise.
65825         * lib/mountlist.c, mountlist.h: Likewise.
65826         * lib/openat.c, openat.h: Likewise.
65827         * lib/readlink-stub.c: Likewise.
65828         * lib/readutmp.c, readutmp.h: Likewise.
65829         * lib/rename.c: Likewise.
65830         * lib/rmdir.c: Likewise.
65831         * lib/same.c: Likewise.
65832         * lib/savedir.c: Likewise.
65833         * lib/stripslash.c: Likewise.
65834         * lib/tempname.c: Likewise.
65835         * lib/xreadlink.c: Likewise.
65836         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65837         All uses changed.
65838         * lib/exclude.h: Likewise.
65839
65840         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65841         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65842         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65843         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65844         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65845         files have been getting away with it for years (MORE/BSD 4.3
65846         is extinct now).
65847         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65848         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65849
65850         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65851         Define to 256, not 255, as per modern POSIX.
65852
65853 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         Sync from coreutils.
65856         Use "file name" when talking about file names, instead of "filename"
65857         or "path", as per the GNU coding standards.
65858         * MODULES.html.sh: mkdir-p renamed from makepath.
65859         filenamecat renamed from path-concat.
65860         * modules/filenamecat: Renamed from modules/path-concat.
65861         (Files): filenamecat.h and filenamecat.c renamed from
65862         path-concat.h and path-concat.c.
65863         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65864         (Include): filenamecat.h, not path-concat.h.
65865         * modules/mkdir-p: Renamed from modules/makepath.
65866         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65867         makepath.c.
65868         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65869         (Include): mkdir-p.h, not makepath.h.
65870
65871 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         Sync from coreutils.
65874         * m4/mkdir-p.m4: Renamed from makepath.m4.
65875         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65876         Rename files from makepath.c to mkdir-p.c, and from
65877         makepath.h to mkdir-p.h.
65878         * m4/filenamecat.m4: Renamed from path-concat.m4.
65879         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65880         Rename files from path-concat.c to filenamecat.c,
65881         and from path-concat.h to filenamecat.h.
65882         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65883         "file name" in local variables or comments.
65884         * m4/rename.m4: Likewise.
65885
65886 2005-06-01  Bruno Haible  <bruno@clisp.org>
65887
65888         * modules/csharpexec: New file.
65889         * MODULES.html.sh (C#): New section.
65890
65891 2005-06-01  Bruno Haible  <bruno@clisp.org>
65892
65893         * m4/csharp.m4: New file, from GNU gettext.
65894         * m4/csharpexec.m4: New file, from GNU gettext.
65895
65896 2005-06-01  Bruno Haible  <bruno@clisp.org>
65897
65898         * lib/csharpexec.h: New file, from GNU gettext.
65899         * lib/csharpexec.c: New file, from GNU gettext.
65900         * lib/csharpexec.sh.in: New file, from GNU gettext.
65901
65902 2005-05-31  Derek Price  <derek@ximbiot.com>
65903             Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         Sync from cvs.
65906         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65907
65908 2005-05-31  Derek Price  <derek@ximbiot.com>
65909             Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         Sync from cvs.
65912         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65913
65914 2005-05-29  Derek Price  <derek@ximbiot.com>
65915
65916         * config/srclist.txt (glob_.h, glob.c): Add these files.
65917
65918 2005-05-29  Derek Price  <derek@ximbiot.com>
65919
65920         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65921         * modules/glob: New file.
65922         * modules/getlogin_r: Add link to POSIX spec in description.
65923
65924 2005-05-29  Derek Price  <derek@ximbiot.com>
65925             Paul Eggert  <eggert@cs.ucla.edu>
65926
65927         * m4/glob.m4: New file.
65928
65929 2005-05-29  Derek Price  <derek@ximbiot.com>
65930             Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * lib/glob_.h, lib/glob.c: New files.
65933
65934 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65935
65936         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65937         * modules/fts-lgpl (Depends-on): Remove gettext.
65938
65939 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65940
65941         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65942         and don't require gt_INTTYPES_PRI.
65943
65944 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65945
65946         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65947
65948         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65949         the configuration hassle isn't worth it.
65950         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65951         (LONGEST_MODIFIER, PRIuMAX): Remove.
65952
65953 2005-05-27  Bruno Haible  <bruno@clisp.org>
65954
65955         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65956
65957 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65958
65959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65960         _POSIX_PTHREAD_SEMANTICS for Solaris.
65961
65962 2005-05-25  Derek Price  <derek@ximbiot.com>
65963
65964         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65965
65966 2005-05-25  Derek Price  <derek@ximbiot.com>
65967             Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65970         * lib/getlogin_r.c, getlogin_r.h: New files.
65971
65972 2005-05-25  Bruno Haible  <bruno@clisp.org>
65973             Derek Price  <derek@ximbiot.com>
65974
65975         * lib/getlogin_r.h: Simplify API documentation.
65976
65977 2005-05-23  Derek Price  <derek@ximbiot.com>
65978
65979         * modules/minmax (Files): Add m4/minmax.m4.
65980         (configure.ac): Add gl_MINMAX.
65981
65982 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65983
65984         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65985         so that unistd-safer.h (GPL'ed code) need not be included.
65986
65987 2005-05-22  Bruno Haible  <bruno@clisp.org>
65988
65989         * m4/minmax.m4: New file.
65990         Based on a patch by Derek Price <derek@ximbiot.com>.
65991
65992 2005-05-22  Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65995         (INT64_MIN): Fix definition.
65996         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65997
65998         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65999         NEED_SIGNED_INT_TYPES.
66000
66001         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66002         HAVE_SYSTEM_INTTYPES.
66003
66004 2005-05-22  Bruno Haible  <bruno@clisp.org>
66005
66006         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66007         Also include <sys/param.h> if it defines MIN, MAX.
66008         Based on a patch by Derek Price <derek@ximbiot.com>.
66009
66010 2005-05-21  Jim Meyering  <jim@meyering.net>
66011
66012         * modules/fts (Files): Add m4/inttypes-pri.m4.
66013         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66014
66015 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66016
66017         New fts module.
66018         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66019         (setup_dir, free_dir): New functions.
66020         (enter_dir, leave_dir): Define trivial
66021         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66022         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66023         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66024         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66025         Move to fts-cycle.c.
66026         (fts_open): Use setup_dir.
66027         (fts_close): Use free_dir.
66028         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66029         This adds a label and some gotos, but the alternatives were messier.
66030         Check for memory allocation failure when entering a dir.
66031         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66032         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66033         (FTS): New member fts_cycle, that is a union that contains the
66034         old active_dir_ht and cycle_state.  All uses changed to mention
66035         fts_cycle.ht and fts_cycle.state.
66036         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66037         fts.c, with the following changes:
66038         (setup_dir, free_dir): New functions.
66039         (enter_dir): Now returns bool.  Return true if successful, false
66040         if memory exhausted.  All callers changed.
66041         Do not bother partly cleaning up on
66042         memory allocation failure; that is free_dir's job.
66043         However, free ad if hash_insert fails, to avoid memory leak.
66044         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66045         fts->fts_options to see which union member to use.
66046
66047 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66048
66049         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66050         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66051
66052 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66053
66054         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66055
66056 2005-05-20  Jim Meyering  <jim@meyering.net>
66057
66058         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66059         Now a macro, to pacify GCC.
66060
66061 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66062
66063         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66064         of -1.
66065
66066 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66067
66068         * lib/chown.c (rpl_chown): Return -1 on failure.
66069
66070 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66071
66072         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66073         Don't check for stddef.h.
66074         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66075         don't use its results.
66076         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66077         since we include them unconditionally.  Don't require
66078         AM_STDBOOL_H, since stdbool is a prerequisite.
66079         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66080         since we assume C89 or better.
66081         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66082         as we don't use their results.
66083         Don't check for fchdir, memmove, memset, strrchr, as we use
66084         them unconditionally.
66085         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66086         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66087
66088 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66089
66090         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66091         Include <stddef.h> unconditionally, since we assume C89 now.
66092         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66093         * lib/fts.c: Include fts_.h first, to check interface.
66094         Do not include intprops.h; no longer needed.
66095         Include cycle-check.h and hash.h, since fts_.h no longer does.
66096         Remove unnecessary casts of closedir to void.
66097         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66098         decide whether to decrement nlinks.
66099         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66100         (FTS): Use struct hash_table * instead of Hash_table, so that
66101         we no longer need to include hash.h here.
66102
66103 2005-05-18  Jim Meyering  <jim@meyering.net>
66104
66105         * modules/dirfd (License): Change to LGPL.  Most of the code
66106         is already in the public domain.
66107
66108 2005-05-18  Jim Meyering  <jim@meyering.net>
66109
66110         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66111         Reported by Yoann Vandoorselaere.
66112
66113 2005-05-17  Jim Meyering  <jim@meyering.net>
66114
66115         * m4/fts.m4: New file, from coreutils.
66116
66117 2005-05-17  Jim Meyering  <jim@meyering.net>
66118
66119         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66120
66121 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66122
66123         Sync from coreutils.
66124         * m4/unlinkdir.m4: New file.
66125
66126 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         Sync from coreutils.
66129         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66130         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66131         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66132         White space changes only.
66133         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66134         special.
66135         * lib/yesno.c: Include getline.h, not ctype.h.
66136         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66137         Use getline to remove arbitrary restriction on response length.
66138
66139 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66140
66141         * config/srclist-update: Spell out "Street" in FSF postal
66142         mail address; this is the style the FSF seems to prefer.
66143
66144         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66145         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66146         this updates FSF postal mail address.
66147
66148         Sync from coreutils.
66149         * modules/unlinkdir: New file.
66150         * modules/yesno (Depends-on): Add getline.
66151         * MODULES.html.sh (File system functions): Add unlinkdir.
66152
66153 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66154
66155         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66156         lib/strsep.h:
66157         Change the initial comment to refer to GPL, not LGPL.
66158         gnulib-tool will change it to LGPL as needed.
66159
66160         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66161         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66162         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66163         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66164         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66165         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66166         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66167         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66168         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66169         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66170         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66171         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66172         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66173         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66174         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66175         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66176         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66177         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66178         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66179         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66180         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66181         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66182         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66183         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66184         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66185         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66186         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66187         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66188         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66189         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66190         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66191         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66192         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66193         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66194         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66195         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66196         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66197         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66198         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66199         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66200         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66201         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66202         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66203         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66204         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66205         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66206         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66207         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66208         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66209         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66210         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66211         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66212         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66213         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66214         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66215         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66216         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66217         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66218         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66219         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66220         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
66221         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
66222         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
66223         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
66224         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
66225         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
66226         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
66227         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
66228         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
66229         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
66230         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
66231         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
66232         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
66233         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
66234         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
66235         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
66236         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
66237         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
66238         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
66239         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
66240         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
66241         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
66242         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
66243         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
66244         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
66245         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
66246         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
66247         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
66248         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
66249         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
66250         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
66251         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
66252         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
66253         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
66254         lib/yesno.c, lib/yesno.h:
66255         Update FSF postal mail address.
66256
66257 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66258
66259         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
66260         tests/test-memmem.c, tests/test-stpncpy.c:
66261         Update FSF postal mail address.
66262
66263 2005-05-13  Bruno Haible  <bruno@clisp.org>
66264
66265         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
66266         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
66267         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
66268         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
66269         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
66270         Add support for 64-bit integers in the MSVC compiler.
66271
66272 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66273
66274         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
66275
66276 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
66277
66278         * gnulib-tool (func_import): Sort and uniquify recommended includes.
66279
66280 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         * doc/getdate.texi (General date syntax): Don't say that date
66283         date --iso-8601=ns generates acceptable dates; it doesn't yet.
66284         Problem reported by Nic Ferrier.
66285
66286 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66287
66288         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
66289         specified in ai_socktype. Fix invalid ai_protocol
66290         check. ai_protocol is usually set to 0 or depending on
66291         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
66292         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
66293         ai_socktype / ai_protocol in the returned addrinfo structure.
66294
66295 2005-05-10  Simon Josefsson  <jas@extundo.com>
66296
66297         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
66298         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66299
66300 2005-05-10  Karl Berry  <karl@gnu.org>
66301
66302         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
66303         (from http://www.gnu.org/licenses).
66304         * doc/COPYING.LIB: also rename to COPYING.LESSER.
66305         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
66306         fdl.texi suffices.
66307
66308 2005-05-10  Karl Berry  <karl@gnu.org>
66309
66310         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
66311         (COPYING.DOC): remove.
66312
66313         * config/srclist-update: new FSF address.
66314
66315 2005-05-10  Derek Price  <derek@ximbiot.com>
66316
66317         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
66318         possible.
66319
66320 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66321             Bruno Haible  <bruno@clisp.org>
66322
66323         * modules/inet_ntop: New file.
66324         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66325         inet_ntop.
66326
66327 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66328             Bruno Haible  <bruno@clisp.org>
66329
66330         * m4/inet_ntop.m4: New file.
66331
66332 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66333             Bruno Haible  <bruno@clisp.org>
66334
66335         * lib/inet_ntop.h: New file.
66336         * lib/inet_ntop.c: New file, from glibc with modifications.
66337
66338 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
66339
66340         * modules/time_r (License): Change to LGPL.
66341         * modules/extensions (License): Change to LGPL.  Actually,
66342         the license is more permissive than that, but currently gnulib-tool
66343         doesn't know how to handle more-permissive licenses.
66344
66345         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
66346         Problem reported by Dave Love.
66347
66348 2005-05-08  Jim Meyering  <jim@meyering.net>
66349
66350         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
66351         blank.
66352
66353 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66354
66355         * modules/argmatch (Depends-on): Add stdbool.
66356         * modules/backupfile (Depends-on): Likewise.
66357         * modules/chdir-long (Depends-on): Likewise.
66358         * modules/closeout (Depends-on): Likewise.
66359         * modules/cycle-check (Depends-on): Likewise.
66360         * modules/dirname (Depends-on): Likewise.
66361         * modules/fnmatch (Depends-on): Likewise.
66362         * modules/fsusage (Depends-on): Likewise.
66363         * modules/fwriteerror (Depends-on): Likewise.
66364         * modules/getcwd (Depends-on): Likewise.
66365         * modules/getloadavg (Depends-on): Likewise.
66366         * modules/hard-locale (Depends-on): Likewise.
66367         * modules/makepath (Depends-on): Likewise.
66368         * modules/mountlist (Depends-on): Likewise.
66369         * modules/nanosleep (Depends-on): Likewise.
66370         * modules/posixtm (Depends-on): Likewise.
66371         * modules/quotearg (Depends-on): Likewise.
66372         * modules/readtokens (Depends-on): Likewise.
66373         * modules/readtokens0 (Depends-on): Likewise.
66374         * modules/readutmp (Depends-on): Likewise.
66375         * modules/save-cwd (Depends-on): Likewise.
66376         * modules/strftime (Depends-on): Likewise.
66377         * modules/userspec (Depends-on): Likewise.
66378         * modules/utimecmp (Depends-on): Likewise.
66379         * modules/xgetcwd (Depends-on): Likewise.
66380         * modules/xnanosleep (Depends-on): Likewise.
66381         * modules/xstrtod (Depends-on): Likewise.
66382         * modules/yesno (Depends-on): Likewise.
66383
66384 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
66385
66386         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
66387         needless checks.
66388
66389 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66390
66391         Merge from coreutils.  Among other things,
66392         add bulletproofing for cases where stdin, stdout, or stderr are closed.
66393         * lib/fd-safer.c: New file.
66394         * lib/fcntl-safer.h, open-safer.c: Remove.
66395         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
66396         * lib/dup-safer.c: Include unistd-safer.h first.
66397         Don't include errno.h.
66398         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
66399         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
66400         * lib/file-type.c: Rely on file-type.h change.
66401         * lib/getloadavg.c: Include unistd-safer.h.
66402         (getloadavg): Use safer open.
66403         * lib/getusershell.c: Include "stdio-safer.h".
66404         (getusershell): Use safer fopen.
66405         * lib/long-options.c (long_options): Use NULL rather than 0.
66406         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
66407         'free'.
66408         * lib/modechange.c: Likewise.
66409         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
66410         (MODE_DONE): New constant.
66411         (struct mode_change): Remove 'next' member.
66412         (make_node_op_equals): New function; like the old one of the
66413         same name, except it allocates an array.
66414         (mode_compile, mode_create_from_ref): Use it.
66415         (mode_compile): Allocate result as an array, not a linked list.
66416         Parse octal string ourself, so that we catch mistakes like "+0".
66417         (mode_adjust): Arg is an array, not a linked list.
66418         * lib/modechange.c: Include stat-macros.h, xalloc.h.
66419         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
66420         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
66421         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
66422         Remove.  This is now stat-macros.h's job.
66423         (talloc): Remove.  All callers replaced by xalloc, so that
66424         our invokers don't have to worry about reporting memory failures.
66425         (make_node_op_equals): Remove.
66426         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66427         New constants.
66428         (struct mode_change): Moved here from modechange.h.
66429         (mode_append_entry): Remove.
66430         (mode_compile): Remove MASKED_OPS arg, since it encouraged
66431         apps to have incorrect behavior.  Use simpler algorithm for head
66432         and tail.  Don't futz with umask; that's now the job of mode_adjust.
66433         Detect more invalid usages rather than having somewhat-random behavior.
66434         Don't insert an "a=" action, as that leads to incorrect behavior.
66435         (mode_compile, mode_create_from_ref): Return NULL on error instead
66436         of an enum, since now there's only one way to have an error.  All
66437         callers changed.
66438         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
66439         at the correct time.  Simplify calculation of "+u" and its ilk.
66440         Don't mishandle "+X".
66441         (mode_free): Remove "register" and localize decls.
66442         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66443         (struct mode_change): Move to modechange.c; callers don't
66444         need to see this stuff.
66445         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
66446         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
66447         (mode_change, mode_adjust): Reflect the new signatures noted above.
66448         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
66449         that might redefine system include files.
66450         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
66451         (my_usleep): Use NULL rather than (void *) 0.
66452         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
66453         Use siginterrupt to specify that system calls should be interrupted.
66454         (rpl_nanosleep): Move initialization of suspended closer to call of
66455         my_usleep.
66456         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
66457         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
66458         (desirable_utmp_entry): New function.
66459         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
66460         using x2nrealloc, to simplify logic.
66461         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
66462         size calculation.  Do not assume utmp file is a regular file.
66463         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
66464         (READ_UTMP_CHECK_PIDS): New constant.
66465         * lib/save-cwd.c: Include unistd-safer.h.
66466         (save_cwd): Use fd_safer.
66467         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
66468         [!_LIBC] Include "stat-macros.h" instead.
66469         * lib/unistd-safer.h (fd_safer): New decl.
66470
66471 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66472
66473         * modules/getloadavg (Depends-on): Add unistd-safer.
66474         * modules/getusershell (Depends-on): Add stdio-safer.
66475         * modules/lstat (Depends-on): Remove xalloc.
66476         * modules/mkstemp (Depends-on): Add stat-macros.
66477         * modules/modechange (Depends-on): Remove xstrtol.
66478         Add stat-macros, xalloc.
66479         * modules/save-cwd (Depends-on): Add unistd-safer.
66480         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
66481         * modules/unistd-safer (Files): Add lib/fd-safer.c
66482         (Makefile.am): Remove lib_SOURCES.
66483
66484         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
66485         Remove fcntl-safer; unistd-safer supersedes it.
66486
66487 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66488
66489         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
66490         AC_HEADER_STAT.
66491         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
66492         (gl_PREREQ_CHOWN): Remove.
66493         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
66494         it.  Don't require AC_HEADER_STAT.
66495         (gl_PREREQ_LSTAT): Remove.
66496         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
66497         Don't require AC_HEADER_STAT.
66498         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
66499         (gl_PREREQ_RMDIR): Remove.
66500         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
66501         mention stat-macros.h or AC_HEADER_STAT, since we'll make
66502         the stat-macros module a prerequisite.
66503         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
66504         * m4/filemode.m4 (gl_FILEMODE): Likewise.
66505         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
66506         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
66507         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
66508         variable names.
66509         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
66510         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
66511         variable prefixes.
66512         * m4/fcntl-safer.m4: Remove.
66513         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
66514         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
66515         Invoke gl_PREREQ_FD_SAFER.
66516         (gl_PREREQ_FD_SAFER): New macro.
66517         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
66518         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
66519         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
66520         Remove duplicate call to AC_LIBOBJ(readutmp).
66521         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
66522
66523         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
66524         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
66525
66526 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66527
66528         * MODULES.html.sh (Misc): Add byteswap.
66529
66530 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66531
66532         * modules/getcwd (Depends-on): Add extensions.
66533         * modules/openat (Depends-on): Likewise.
66534
66535 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66536
66537         * modules/byteswap: New file.
66538
66539 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66540
66541         * m4/byteswap.m4: New file.
66542
66543 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66544
66545         * lib/byteswap_.h: New file.
66546
66547 2005-04-25  Karl Berry  <karl@gnu.org>
66548
66549         * m4/gettext.m4: Update from GNU gettext 0.14.4.
66550
66551 2005-04-25  Albert Chin  <china@thewrittenword.com>
66552
66553         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
66554         Toolkit C bug.
66555
66556 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66557
66558         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66559         (func_ln_if_changed) Remove forcibly for no error message
66560         in case file does not exist.
66561
66562 2005-04-19  Simon Josefsson  <jas@extundo.com>
66563
66564         * gnulib-tool (Options): Make --symlink mean --symbolic.
66565
66566 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66567
66568         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66569
66570 2005-04-16  Simon Josefsson  <jas@extundo.com>
66571
66572         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66573
66574 2005-04-15  Simon Josefsson  <jas@extundo.com>
66575
66576         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66577
66578 2005-04-15  Simon Josefsson  <jas@extundo.com>
66579
66580         * gnulib-tool: Rename --symlink to --symbolic.
66581
66582 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66583
66584         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66585         symbolic links to files instead of copying/moving.  Add --aux-dir,
66586         specifying directory relative --dir where auxiliary build tools
66587         are placed.
66588
66589 2005-04-14  Bruno Haible  <bruno@clisp.org>
66590
66591         * modules/allocsa (License): Change to LGPL.
66592         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66593
66594 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66595
66596         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66597         that "UTC +1 second" continues to work.  Problem reported
66598         by Dmitry V. Levin.
66599         (relunit_snumber): New rule.
66600         (relunit): Use it.
66601
66602 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66603
66604         * lib/getdate.y (universal_time_zone_table): New constant.
66605         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66606         universal_time_zone_table.
66607         (lookup_zone): Prefer universal_time_zone_table to
66608         local_time_zone_table, so that "GMT" time stamps are allowed in
66609         London during the summer.  Problem reported by Ian Abbott.
66610
66611 2005-04-12  Jim Meyering  <jim@meyering.net>
66612
66613         * lib/human.c (humblock): Set *options even when returning due to
66614         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66615         warning from gcc-4.
66616
66617 2005-04-09  Jim Meyering  <jim@meyering.net>
66618
66619         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66620         -Wuninitialized: initialize tm0.tm_year.
66621
66622 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66623
66624         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66625         count, since there's no maximum.  All uses changed.
66626         Add member dsts_seen.
66627         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66628         not being INT_MAX.
66629         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66630         Use pc_rels_seen to decide whther a date is absolute.
66631
66632         * lib/getdate.y (number): Don't overwrite year.
66633         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66634         check.
66635
66636 2005-04-02  Simon Josefsson  <jas@extundo.com>
66637
66638         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66639         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66640
66641 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66642
66643         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66644         where no absolute path name can be longer than PATH_MAX.
66645
66646 2005-03-27  Jim Meyering  <jim@meyering.net>
66647
66648         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66649
66650 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66651
66652         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66653         "one's complement" -> "ones' complement" in comment, as per Knuth.
66654         "value of type" -> "type or expression" in comment.
66655         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66656
66657 2005-03-26  Jim Meyering  <jim@meyering.net>
66658
66659         Comment nits.
66660         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66661         Correct typos: s/or/of/.
66662
66663 2005-03-26  Jim Meyering  <jim@meyering.net>
66664
66665         * modules/check-include-files: Move to ../ and rename to...
66666         * check-module: ...this.
66667
66668 2005-03-25  Jim Meyering  <jim@meyering.net>
66669
66670         * modules/xvasprintf (Files): Add xalloc.h.
66671
66672 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * modules/gettext (Files): config/config.rpath ->
66675         build-aux/config.rpath
66676         * modules/iconv (Files): Likewise.
66677         Problem reported by Oskar Liljeblad.
66678
66679 2005-03-23  Jim Meyering  <jim@meyering.net>
66680
66681         * modules/check-include-files: New script to check for
66682         missing dependencies, multiple includes, etc.
66683
66684         * modules/c-strtold (Depends-on): Add xalloc.
66685         * modules/c-strtod (Depends-on): Add xalloc.
66686         * modules/hash (Depends-on): Add xalloc.
66687         (Files): Remove lib/xalloc.h.
66688
66689         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66690         * modules/userspec (Files): Add lib/inttostr.h.
66691
66692 2005-03-23  Jim Meyering  <jim@meyering.net>
66693
66694         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66695
66696 2005-03-22  Jim Meyering  <jim@meyering.net>
66697
66698         * modules/stat-macros: New module.
66699         * modules/canonicalize, modules/euidaccess, modules/file-type,
66700         * modules/filemode, modules/lchown, modules/makepath,
66701         * modules/rmdir, modules/stat: Depend on new stat-macros module
66702         rather than listing lib/stat-macros.h manually.
66703         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66704
66705 2005-03-22  Jim Meyering  <jim@meyering.net>
66706
66707         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66708
66709 2005-03-22  Bruno Haible  <bruno@clisp.org>
66710
66711         * config/srclist.txt: Replace target directory 'config' with
66712         'build-aux'.
66713         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66714         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66715         ../build-aux/.
66716
66717 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66718
66719         * modules/chdir-long (Depends-on): Add mempcpy.
66720
66721         * modules/acl, modules/backupfile, modules/c-strtod,
66722         modules/c-strtold, modules/canon-host, modules/canonicalize,
66723         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66724         modules/exclude, modules/exitfail, modules/file-type,
66725         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66726         modules/getdate, modules/getline, modules/getpagesize,
66727         modules/getpass, modules/getugroups, modules/group-member,
66728         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66729         modules/inttostr, modules/long-options, modules/makepath,
66730         modules/md5, modules/memcasecmp, modules/memcoll,
66731         modules/modechange, modules/mountlist, modules/path-concat,
66732         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66733         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66734         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66735         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66736         modules/strftime, modules/strndup, modules/strverscmp,
66737         modules/timespec, modules/unlocked-io, modules/userspec,
66738         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66739         modules/yesno:
66740         Remove lib_SOURCES line from Makefile.am section, as this is now
66741         done automatically by the corresponding Autoconf macro.
66742
66743 2005-03-21  Jim Meyering  <jim@meyering.net>
66744
66745         Changes imported from coreutils.
66746
66747         * lib/cycle-check.c: Don't include xalloc.h.
66748
66749         * lib/path-concat.c: Don't include assert.h.
66750         (path_concat): Remove assertion that would have triggered
66751         for ABASE starting with more than one slash.
66752         Reported by Andreas Schwab.
66753
66754         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66755         properly when ABASE is an absolute file name.
66756         Correct the description of this function.
66757         Include <assert.h>.
66758         Add an assertion and a test driver.
66759         This fixes a bug introduced on 2004-07-02.
66760         Andreas Schwab reported the resulting failure of cp --parents:
66761         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66762
66763 2005-03-21  Jim Meyering  <jim@meyering.net>
66764
66765         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66766         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66767
66768 2005-03-21  Jim Meyering  <jim@meyering.net>
66769         and  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66772         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66773         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66774         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66775         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66776         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66777         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66778         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66779         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66780         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66781         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66782         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66783         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66784         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66785         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66786         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66787         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66788         for these modules.
66789
66790 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66791
66792         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66793         (which shouldn't happen), generate nothing instead of returning 0
66794         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66795
66796 2005-03-16  Bruno Haible  <bruno@clisp.org>
66797
66798         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66799         HAVE_LONGLONG_64BIT.
66800
66801 2005-03-16  Bruno Haible  <bruno@clisp.org>
66802
66803         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66804         HAVE_LONGLONG_64BIT.
66805
66806 2005-03-16  Bruno Haible  <bruno@clisp.org>
66807
66808         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66809         HAVE_LONGLONG_64BIT.
66810
66811 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66814         reliably distinguish strftime failure from empty output on POSIX
66815         hosts.
66816
66817 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66818
66819         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66820         (iconv_string): Don't guess a size-zero buffer, as that might cause
66821         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66822         result would be 'too large', where 'too large' is (heuristically)
66823         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66824         overflow concerns.  This will prevent some unwanted malloc failures
66825         when the inputs are very large.
66826
66827 2005-03-15  Karl Berry  <karl@gnu.org>
66828
66829         * config/srclist.txt (config.rpath): from gettext.
66830         * config/config.rpath: update.
66831
66832 2005-03-15  Bruno Haible  <bruno@clisp.org>
66833
66834         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66835         to 'negate'.
66836
66837         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66838         variable.
66839
66840         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66841         results.
66842
66843 2005-03-14  Simon Josefsson  <jas@extundo.com>
66844
66845         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66846         <fx@gnu.org>.
66847
66848 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66849
66850         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66851         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66852         intprops.h.
66853         * lib/strtol.c: Likewise.
66854
66855 2005-03-14  Jim Meyering  <jim@meyering.net>
66856
66857         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66858         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66859         to be nonzero so that we (and caller) can detect the difference
66860         between a valid zero-length expansion and an error return, even
66861         when the underlying strftime fails before writing anything into
66862         that location.
66863
66864 2005-03-14  Bruno Haible  <bruno@clisp.org>
66865
66866         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66867         Update from GNU gettext 0.14.3.
66868
66869 2005-03-10  Jim Meyering  <jim@meyering.net>
66870
66871         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66872
66873 2005-03-10  Jim Meyering  <jim@meyering.net>
66874
66875         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66876         so that this module works on systems without fchdir.
66877
66878 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         Factor int-properties macros into a single file, except for
66881         glibc-related files.
66882         * lib/intprops.h: New file.
66883         * lib/getloadavg.c: Include it instead of limits.h.
66884         (INT_STRLEN_BOUND): Remove.
66885         * lib/human.c: Include intprops.h.
66886         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66887         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66888         302/1000.
66889         * lib/inttostr.h: Include intprops.h instead of limits.h.
66890         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66891         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66892         for consistency with intprops.h.
66893         (time_t_is_integer, twos_complement_arithmetic): Use them.
66894         * lib/sig2str.h: Include <signal.h>, intprops.h.
66895         (INT_STRLEN_BOUND): Remove.
66896         * lib/strftime.c (TYPE_SIGNED): Remove.
66897         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66898         * lib/strtol.c: Adjust comments to match intprops.h.
66899         * lib/userspec.c: Include intprops.h.
66900         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66901         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66902         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66903         instead of rolling our own expressions.
66904         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66905
66906         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66907         instead of int.
66908         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66909         the right thing even if adding 1900 would overflow.  Similarly
66910         for tm_mon + 1 and tm_yday + 1.
66911         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66912         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66913         (DO_SIGNED_NUMBER): New macro.
66914         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66915
66916 2005-03-07  Bruno Haible  <bruno@clisp.org>
66917
66918         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66919
66920 2005-03-07  Bruno Haible  <bruno@clisp.org>
66921
66922         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66923
66924 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66925
66926         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66927         (func_import): Only replace files via --import when they have actually
66928         changed.
66929
66930 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66931
66932         * m4/mmap-anon.m4: New file.
66933         * m4/pagealign_alloc.m4: New file.
66934
66935 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66936             Bruno Haible  <bruno@clisp.org>
66937
66938         * modules/pagealign_alloc: New file.
66939         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66940
66941 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66942             Bruno Haible  <bruno@clisp.org>
66943
66944         * lib/pagealign_alloc.h: New file.
66945         * lib/pagealign_alloc.c: New file.
66946
66947 2005-03-03  Bruno Haible  <bruno@clisp.org>
66948
66949         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66950         Use an all-permissive copyright notice, recommended by RMS.
66951
66952 2005-03-02  Bruno Haible  <bruno@clisp.org>
66953
66954         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66955         of AIX, the replacement has to be done only after <string.h> is
66956         included, therefore not in config.h. stpncpy.h does the replacement,
66957         and stpncpy.c uses it.
66958
66959 2005-03-02  Bruno Haible  <bruno@clisp.org>
66960
66961         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66962         stpncpy.c uses it.
66963
66964 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66965
66966         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66967         The workaround isn't strictly needed for POSIX conformance, and
66968         it's too much of a pain to configure and maintain.  We'll ask
66969         people to fix their kernels instead.
66970         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66971         (NANOSLEEP_BUG_WORKAROUND): Remove.
66972         (xnanosleep): Remove the workaround.
66973
66974 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66975
66976         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66977         Reported by Derek Price.
66978         (Include): Add "timespec.h".
66979
66980         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66981
66982 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66983
66984         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66985         to detect nanosleep bug.
66986
66987 2005-03-01  Bruno Haible  <bruno@clisp.org>
66988
66989         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66990
66991 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66992
66993         * modules/gethrxtime: New file.
66994         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66995         (Depends-on): Add gethrxtime.
66996         (configure.ac): Add gl_XNANOSLEEP.
66997         (Makefile.am): Remove lib_SOURCES line.
66998
66999 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67000
67001         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67002         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67003
67004 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67005
67006         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67007         * lib/timespec.h (gettime): Return void, since it always
67008         succeeds now.  All uses changed.
67009         * lib/gettime.c (gettime) Likewise.
67010         [HAVE_NANOTIME]: Prefer nanotime.
67011         Assume gettimeofday succeeds, as POSIX requires.
67012         Assime time () succeeds, since other code already does.
67013         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67014         (timespec_subtract): Remove.
67015         (NANOSLEEP_BUG_WORKAROUND): New constant.
67016         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67017         things considerably.  Use it only on GNU/Linux hosts, since the
67018         workaround shouldn't be needed elsewhere.
67019
67020 2005-02-24  Bruno Haible  <bruno@clisp.org>
67021
67022         * modules/gettext (Files): Add m4/glibc2.m4.
67023
67024 2005-02-24  Bruno Haible  <bruno@clisp.org>
67025
67026         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67027         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67028         * m4/progtest.m4:
67029         Update from GNU gettext 0.14.2.
67030         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67031
67032 2005-02-24  Bruno Haible  <bruno@clisp.org>
67033
67034         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67035         * lib/config.charset: Update from GNU gettext 0.14.2.
67036
67037 2005-02-24  Bruno Haible  <bruno@clisp.org>
67038
67039         * lib/gettext.h: Update from GNU gettext 0.14.2.
67040
67041 2005-02-23  Simon Josefsson  <jas@extundo.com>
67042
67043         * m4/iconvme.m4: New file.
67044
67045 2005-02-23  Jim Meyering  <jim@meyering.net>
67046
67047         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67048         change.
67049         Thanks to Bruno Haible for catching it.
67050
67051 2005-02-22  Simon Josefsson  <jas@extundo.com>
67052
67053         * modules/iconvme: New file.
67054
67055         * MODULES.html.sh: Add iconvme.
67056
67057 2005-02-22  Simon Josefsson  <jas@extundo.com>
67058
67059         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67060
67061 2005-02-22  Simon Josefsson  <jas@extundo.com>
67062
67063         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67064
67065 2005-02-22  Jim Meyering  <jim@meyering.net>
67066
67067         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67068         s/ifndef/ifdef/.
67069
67070 2005-02-20  Neil Conway  <neilc@samurai.com>
67071
67072         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67073         returned by OSX/Darwin if the specified buffer is not large
67074         enough for the hostname.
67075
67076 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67077
67078         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67079         pass it to _help, otherwise the latter coredumps trying to
67080         dereference state.root_argp.
67081
67082 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         * modules/chdir-long (Depends-on): Add memrchr.
67085         * modules/memrchr (Files): Add lib/memrchr.h.
67086         (Include): "memrchr.h".
67087
67088 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67089
67090         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67091
67092 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67093
67094         * lib/memrchr.h: New file.
67095         * lib/chdir-long.c: Include it.
67096         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67097         Don't bother including stddef.h.
67098
67099 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67100
67101         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67102         inclusion.
67103         Include <sys/types.h>, for dev_t.
67104         (ME_DUMMY, ME_REMOTE): Move from here....
67105         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67106         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67107         Dmitry V. Levin.
67108         Include mountlist.h first, to test the interface.
67109
67110 2005-01-29  Bruno Haible  <bruno@clisp.org>
67111
67112         * lib/progname.c (program_name): Initialize.
67113         Needed when linking statically on MacOS X.
67114
67115 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67116
67117         Sync from coreutils.
67118         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67119         (Depends-on): Add c-strtod.
67120         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67121
67122 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67123
67124         Sync from coreutils.
67125         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67126
67127         Remove files that are specific to coreutils.
67128         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67129
67130 2005-01-28  Bruno Haible  <bruno@clisp.org>
67131
67132         * modules/javacomp: New file.
67133         * MODULES.html.sh (Java): Add javacomp.
67134
67135 2005-01-28  Bruno Haible  <bruno@clisp.org>
67136
67137         * m4/javacomp.m4: New file, from GNU gettext.
67138
67139 2005-01-28  Bruno Haible  <bruno@clisp.org>
67140
67141         * lib/javacomp.sh.in: New file, from GNU gettext.
67142         * lib/javacomp.h: New file, from GNU gettext.
67143         * lib/javacomp.c: New file, from GNU gettext.
67144
67145 2005-01-26  Simon Josefsson  <jas@extundo.com>
67146
67147         * lib/gai_strerror.c: Use GPL in header.
67148
67149 2005-01-26  Bruno Haible  <bruno@clisp.org>
67150
67151         * modules/javaexec: New file.
67152         * MODULES.html.sh (Java): Add javaexec.
67153
67154 2005-01-26  Bruno Haible  <bruno@clisp.org>
67155
67156         * m4/javaexec.m4: New file, from GNU gettext.
67157
67158 2005-01-26  Bruno Haible  <bruno@clisp.org>
67159
67160         * lib/javaexec.sh.in: New file, from GNU gettext.
67161         * lib/javaexec.h: New file, from GNU gettext.
67162         * lib/javaexec.c: New file, from GNU gettext.
67163
67164 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67165
67166         * modules/lchown (Depends-on): Remove lchown.h
67167
67168 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67169
67170         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67171         must be defined if the header file was not found, in order
67172         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67173
67174 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67175
67176         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67177         initializers for struct pentry_state.
67178         (__argp_error): Check return value of __asprintf
67179         (__argp_failure): Translate error message
67180
67181         * lib/argp-parse.c: Removed braces around the expansion of N_()
67182
67183 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67184
67185         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67186         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67187         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67188         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67189         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67190         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67191         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67192         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67193         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67194         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67195         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67196         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67197         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67198         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67199         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67200         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67201         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67202         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67203         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67204         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67205         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67206         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67207         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67208         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67209         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67210         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67211         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67212         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67213         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67214         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67215         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67216         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67217         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67218         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67219         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67220         Use an all-permissive copyright notice, recommended by RMS.
67221
67222 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67223
67224         * modules/chdir-long (Depends-on): Remove mempcpy.
67225
67226 2005-01-21  Jim Meyering  <jim@meyering.net>
67227
67228         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
67229         same value as for Solaris 9.
67230
67231         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
67232         component length.  This included changing the parameter to be
67233         of type `char *' rather than `char const *'.
67234         * lib/chdir-long.h (chdir_long): Update prototype.
67235
67236         * lib/openat.c (fdopendir, fstatat): New functions.
67237         * lib/openat.h: Include headers required for use of DIR and struct
67238         stat.
67239         [AT_SYMLINK_NOFOLLOW]: Define.
67240         (fdopendir, fstatat): Add prototypes.
67241
67242 2005-01-21  Bruno Haible  <bruno@clisp.org>
67243
67244         * modules/classpath: New file.
67245         * MODULES.html.sh (Java): Add classpath.
67246
67247 2005-01-21  Bruno Haible  <bruno@clisp.org>
67248
67249         * lib/classpath.h: New file, from GNU gettext.
67250         * lib/classpath.c: New file, from GNU gettext.
67251
67252 2005-01-20  Simon Josefsson  <jas@extundo.com>
67253
67254         * modules/version-etc-fsf: New file.
67255
67256 2005-01-20  Simon Josefsson  <jas@extundo.com>
67257
67258         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
67259         * lib/version-etc.c: Remove version_etc_copyright.
67260         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
67261         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
67262
67263 2005-01-20  Simon Josefsson  <jas@extundo.com>
67264
67265         * lib/base64.h (isbase64): Add.
67266
67267         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
67268         using a unsigned prototype, don't inline.
67269         (base64_decode): Use it.
67270
67271 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67272
67273         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
67274         it.
67275
67276 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67277
67278         * lib/save-cwd.c (save_cwd): Remove code to support the case
67279         where fchdir is missing or flaky.
67280
67281 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67282
67283         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
67284
67285 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67286
67287         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
67288         AC_LIBSOURCES now does this.
67289         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
67290         with new ullong_max module.
67291
67292 2005-01-19  Bruno Haible  <bruno@clisp.org>
67293
67294         * modules/sh-quote: New file.
67295         * MODULES.html.sh (Executing programs): Add sh-quote.
67296
67297 2005-01-19  Bruno Haible  <bruno@clisp.org>
67298
67299         * lib/sh-quote.h: New file, from GNU gettext.
67300         * lib/sh-quote.c: New file, from GNU gettext.
67301
67302 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         Merge from coreutils.
67305         * m4/ullong_max.m4: New file.
67306         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
67307         (gl_MACROS): Assume localeconv exists.
67308
67309 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67310
67311         Merge changes from coreutils, as described below in several
67312         changelogs dated today.
67313
67314         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
67315         (O_DIRECTORY): Remove; not needed here, since "." must be
67316         a directory.  All uses removed.
67317         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
67318         universal on Suns, and we also need to test for IRIX.
67319         Revamp code to use 'if' rather than '#if'.
67320         Avoid unnecessary comparison of cwd->desc to 0.
67321
67322         * lib/utimens.c (futimens): Robustify the previous patch, by checking
67323         for known valid error numbers rather than observed invalid ones.
67324
67325 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67326
67327         * modules/ullong_max: New file.
67328
67329         * modules/chdir-long, modules/openat: New files.
67330         * modules/save-cwd (Depends-on): Depend on chdir-long.
67331         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
67332
67333 2005-01-18  Jim Meyering  <jim@meyering.net>
67334
67335         Merge from coreutils.
67336         * m4/chdir-long.m4, m4/openat.m4: New files.
67337         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
67338         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
67339         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
67340         is sane and DOES follow symlinks.  Besides, testing 20 different
67341         systems found no broken chown implementations.
67342         Prompted by a change in rsync's copy of this macro.
67343         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
67344
67345         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
67346
67347         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
67348         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
67349         NULL-means-set-to-current-time semantics.
67350         Remove temporary file immediately, rather than waiting
67351         for configure's at-exit trap code to do it.
67352
67353 2005-01-18  Jim Meyering  <jim@meyering.net>
67354
67355         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67356
67357         * lib/utimens.c (futimens): Account for the fact that futimes
67358         can also fail with errno == ENOSYS or errno == ENOENT.
67359         Patch from Dmitry V. Levin.
67360
67361         Change the name of the robust chdir function from chdir to chdir_long.
67362         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
67363         (restore_cwd): Use chdir_long, not chdir.
67364         * lib/chdir-long.c: Renamed from chdir.c.
67365         * lib/chdir-long.h: Renamed from chdir.h.
67366         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
67367         Hurd.
67368
67369 2005-01-18  Bruno Haible  <bruno@clisp.org>
67370
67371         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
67372         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
67373         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
67374         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
67375         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
67376         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
67377         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
67378         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
67379         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
67380         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
67381         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
67382         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
67383         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
67384         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
67385         Use an all-permissive copyright notice, recommended by RMS.
67386
67387 2005-01-18  Bob Proulx  <bob@proulx.com>
67388
67389         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
67390         simplify offsetof() macro construct to avoid compile failure with
67391         native HP-UX 11.0 ANSI C compiler.
67392
67393 2005-01-17  Bruno Haible  <bruno@clisp.org>
67394
67395         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
67396         redundant because stpncpy.m4 takes care of it.
67397
67398 2005-01-17  Bruno Haible  <bruno@clisp.org>
67399
67400         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
67401
67402 2005-01-17  Bruno Haible  <bruno@clisp.org>
67403
67404         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
67405         used.
67406
67407 2005-01-17  Bruno Haible  <bruno@clisp.org>
67408
67409         * lib/fwriteerror.h (fwriteerror): Change specification to include
67410         fclose.
67411         * lib/fwriteerror.c: Include <stdbool.h>.
67412         (fwriteerror): At the end, close the file stream. Record whether
67413         stdout was already closed.
67414
67415 2005-01-17  Bruno Haible  <bruno@clisp.org>
67416
67417         * lib/execute.c (environ): Declare if needed.
67418         * lib/pipe.c (environ): Likewise.
67419         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
67420
67421 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67422
67423         * modules/argp: Depend on vsnprintf
67424
67425 2005-01-10  Jim Meyering  <jim@meyering.net>
67426
67427         * modules/closeout (Depends-on): Add atexit.
67428
67429 2005-01-06  Bruno Haible  <bruno@clisp.org>
67430
67431         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
67432
67433 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67434
67435         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
67436         definitions to be after all include files, to avoid collisions.
67437         Problem reported by Bob Proulx.
67438
67439 2005-01-04  Jim Meyering  <jim@meyering.net>
67440
67441         Changes imported from coreutils.
67442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
67443         as the mkstemp template, use a temporary directory and an
67444         8.3-friendly template to avoid trouble on systems like DJGPP.
67445         Reported by Juan M. Guerrero via Stepan Kasal.
67446         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
67447         close. Remove the temporary directory right away, rather than waiting
67448         for configure's at-exit trap code to do it.
67449         Suggestion from Stepan Kasal.
67450
67451 2005-01-01  Simon Josefsson  <jas@extundo.com>
67452
67453         * gnulib-tool: Print #include directives when --import'ing.
67454
67455 2004-12-28  Simon Josefsson  <jas@extundo.com>
67456
67457         * tests/test-base64.c: Include required header files.  Remove
67458         unused variables.
67459
67460 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67461
67462         * modules/error (Depends-on): Remove gettext.
67463
67464 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67465
67466         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
67467         not needed.  This removes a dependency on the gettext module.
67468         [defined _LIBC]: Do not include <libintl.h>; not needed.
67469
67470 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
67473         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
67474
67475 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67476
67477         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
67478         HAVE_DECL_STRTOLD.
67479
67480 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67481
67482         * modules/getdate (Depends-on): Remove alloca-opt.
67483
67484 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67485
67486         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
67487
67488 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67489
67490         * lib/argp-parse.c: Include <stddef.h>.
67491         (alignof, alignto): New macros.
67492         (parser_init): Don't assume that void * is aligned sufficiently
67493         for struct option.
67494
67495         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
67496         need to extend the stack.
67497         (YYINITDEPTH): New macro, so that the initial stack isn't overly
67498         large.
67499
67500 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67501
67502         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
67503
67504 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67505
67506         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
67507         (2004-10-24) change.  Apparently this was a false alarm.
67508
67509         * modules/getdate: Depend on alloca-opt, not alloca.
67510
67511 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
67514         Remove now-obsolete comment about AIX.
67515         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
67516         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
67517         (YYMAXDEPTH): New macro.
67518
67519 2004-12-18  Simon Josefsson  <jas@extundo.com>
67520
67521         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
67522
67523 2004-12-18  Bruno Haible  <bruno@clisp.org>
67524
67525         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
67526
67527 2004-12-18  Bruno Haible  <bruno@clisp.org>
67528
67529         * lib/fatal-signal.c (fatal_signals): Make non-const.
67530         (init_fatal_signals): New function.
67531         (uninstall_handlers, install_handlers): Ignore signals that were set to
67532         SIG_IGN.
67533         (at_fatal_signal): Call init_fatal_signals.
67534         (init_fatal_signal_set): Likewise. Ignore signals that were set to
67535         SIG_IGN.
67536         Reported by Paul Eggert.
67537
67538 2004-12-18  Bruno Haible  <bruno@clisp.org>
67539
67540         * doc/alloca.texi: New file.
67541         * doc/alloca-opt.texi: New file.
67542
67543 2004-12-17  Jim Meyering  <jim@meyering.net>
67544
67545         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
67546         Otherwise, install-sh could exit with improper exit status when
67547         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
67548
67549 2004-12-16  Simon Josefsson  <jas@extundo.com>
67550
67551         * tests/test-base64.c: Add license.
67552
67553 2004-12-15  Stepan Kasal  <address@hidden>
67554
67555         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
67556
67557 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67558
67559         * modules/getcwd (Files): Add m4/d-ino.m4.
67560         Suggested by Mark D. Baushke.
67561
67562 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67563
67564         * lib/getdate.y (textint): New member "negative".
67565         (time_zone_hhmm): New function.
67566         Expect 14 shift-reduce conflicts, not 13.
67567         (o_colon_minutes): New rule.
67568         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67569         (yylex): Set the "negative" member of signed numbers.
67570
67571 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67572
67573         * doc/getdate.texi (Time of day items, Time zone items):
67574         Describe new formats +00:00, UTC+00:00.
67575
67576 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67577
67578         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67579         spurious "-l"s.  Problem reported by Stepan Kasal.
67580
67581 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67582
67583         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67584         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67585
67586 2004-12-04  Simon Josefsson  <jas@extundo.com>
67587
67588         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67589         Vandoorselaere <yoann@prelude-ids.org>.
67590
67591 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67592
67593         Changes imported from coreutils.
67594         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67595         exist.
67596         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67597
67598 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67599
67600         Changes imported from coreutils.
67601         * lib/hard-locale.c: Assume <locale.h> exists.
67602         Include "strdup.h".
67603         (GLIBC_VERSION): New macro.
67604         (hard_locale): Assume setlocale exists.
67605         Rewrite to avoid #ifdef.
67606         Use strdup rather than malloc + strcpy.
67607         * lib/human.c: Assume <locale.h> exists.
67608         (human_readable): Assume localeconv exists.
67609
67610 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67611
67612         * modules/hard-locale (Depends-on): Add strdup.
67613
67614 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67615
67616         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67617         convert T2, not T.  (Imported from libc.)
67618
67619 2004-11-30  Simon Josefsson  <jas@extundo.com>
67620
67621         * modules/restrict (License): Change to LGPL.
67622
67623 2004-11-30  Simon Josefsson  <jas@extundo.com>
67624
67625         * m4/restrict.m4: Add copyright and copying conditions.
67626
67627 2004-11-30  Simon Josefsson  <jas@extundo.com>
67628
67629         * m4/base64.m4: New file.
67630
67631 2004-11-30  Simon Josefsson  <jas@extundo.com>
67632
67633         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67634         base64.
67635
67636         * tests/test-base64.c: New file.
67637
67638         * modules/base64: New file.
67639
67640 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67641
67642         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67643         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67644
67645         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67646
67647 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67648
67649         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67650         (__getcwd.c): Don't restore errno; glibc doesn't.
67651         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67652         first, falling back to our code only if its results look suspicious.
67653         Ensure that the resulting buffer is only as large as necessary.
67654
67655         * lib/readutmp.c: Include readutmp.h first.
67656         Include <errno.h>, since readutmp.h no longer does that.
67657         * lib/readutmp.h: Don't include <errno.h>,
67658         <sys/param.h>, <time.h>; not needed to establish interface.
67659         (errno): Remove decl.
67660         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67661         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67662         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67663
67664 2004-11-28  Simon Josefsson  <jas@extundo.com>
67665
67666         * lib/base64.h, base64.c: New file.
67667
67668 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67669
67670         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67671
67672 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67673
67674         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67675         (Depends-on): Remove pathmax, same.  Add mempcpy.
67676         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67677         (Makefile.am): Append getcwd.h to lib_SOURCES.
67678         (Include): Add getcwd.h.
67679         (Maintainer): Change from Jim Meyering to "all, glibc",
67680         since getdate now uses intended-for-glibc code.
67681         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67682         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67683
67684 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67687         HP's ANSI C compiler.
67688         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67689         Declaring int functions causes warnings on some modern systems and
67690         shouldn't be needed to compile on ancient ones.
67691         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67692         defined.
67693
67694         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67695         with the following changes.
67696         (__set_errno): Parenthesize properly.
67697         Include <stdbool.h>.
67698         (MIN, MAX, MATCHING_INO): New macros.
67699         (__getcwd): Define with prototype, not K&R form.
67700         Use heuristics to allocate default buffer on stack if possible.
67701         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67702         behavior, and to avoid the PATH_MAX limit when computing
67703         ../../../../...
67704         Use MATCHING_INO to compare inode number to file.
67705         Check for arithmetic overflow in size calculations.
67706         Fix bug in reallocation of dot array that caused getcwd to fail
67707         on directories nested deeper than 75.
67708         Be more careful about saving errno on error.
67709         Do not use realloc; use only free+malloc, as this is a bit
67710         more flexible and avoids a needless copy operation.
67711         Do not inspect st_dev and st_ino for symbolic links; POSIX
67712         doesn't specify the latter.
67713         Check for closedir errors.
67714         Avoid needless casts.
67715         Use "#ifdef weak_alias" around weak_alias, to be like other
67716         glibc code.
67717         The following changes to getcwd.c have effect only when used in
67718         gnulib; they have no effect inside glibc proper.
67719         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67720         as alloca isn't used.
67721         (alloca, __alloca): Likewise.
67722         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67723         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67724         unconditionally, as gnulib assumes C89 or better.
67725         Do not include <sys/param.h>.
67726         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67727         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67728         better.
67729         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67730         Include <dirent.h> in a way that is compatible with modern Autoconf.
67731         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67732         New macros, if not already defined.
67733         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67734         Use "_LIBC", not "defined _LIBC", for consistency.
67735         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67736         a mempcpy module.
67737         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67738         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67739         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67740         credit only to Jim Meyering and adjust the copyright dates.
67741         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67742         <stdlib.h>, <unistd.h>, "pathmax.h".
67743         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67744         (INITIAL_BUFFER_SIZE): Remove.
67745         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67746
67747 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67748
67749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67750         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67751         Use the _ONCE methods, for efficiency.
67752         Check for fcntl.h.  In test program, include <errno.h>
67753         and <fcntl.h> if available.  Remove old K&R cruft from
67754         test program.  Check for common errors in GNU/Linux,
67755         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67756         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67757         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67758         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67759         name accordingly.
67760         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67761         accommodate new getcwd.c.
67762         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67763         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67764         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67765         that's all we need now.
67766
67767 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67768
67769         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67770         argp-parse.c depends on getopt internals, that means we should
67771         always use our getopt, to be on the safe side.
67772         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67773         order not to spoil the result of an eventual previous invocation
67774         of gl_GETOPT_SUBSTITUTE.
67775
67776 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67777
67778         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67779         redefinition warnings. To avoid them, include the defines
67780         in `#if !defined __need_getopt ... #endif'. The only place
67781         where __getopt_argv_const is used is in definitions
67782         of getopt_long and getopt_long_only below, which are as well
67783         protected by `#ifndef __need_getopt'.
67784         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67785         __need_getopt after including <stdio.h> and <unistd.h> These
67786         headers might have defined it.
67787
67788 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67789
67790         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67791
67792 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67795         (futimens): New function, which uses futimes if available.
67796         (futimens, utimens): Support timespec==NULL, with same semantics
67797         as utime and utimens.
67798         * lib/utimens.h (futimens): New decl.
67799
67800 2004-11-23  Jim Meyering  <jim@meyering.net>
67801
67802         * lib/getopt_.h: Remove trailing blanks.
67803
67804 2004-11-23  Jim Meyering  <jim@meyering.net>
67805
67806         * lib/__fpending.c: Add comment.
67807
67808 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67809
67810         * modules/canonicalize (Depends-on): Add xreadlink.
67811         Problem reported by James Youngman.
67812
67813 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67814
67815         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67816         New macros.
67817         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67818         optopt): Use them instead of invoking ## directly; otherwise, the
67819         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67820
67821 2004-11-19  Bruno Haible  <bruno@clisp.org>
67822
67823         * lib/strtok_r.c: Move comments from here...
67824         * lib/strtok_r.h: ... to here.
67825
67826 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67829         implementations that mishandle size_t overflow.
67830
67831 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67832
67833         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67834         might fail.  Problem reported by Yoann Vandoorselaere.
67835         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67836         implementations that mishandle size_t overflow.
67837
67838 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67839
67840         * modules/canon-host (Depends-on): Add strdup.
67841
67842 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67843
67844         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67845
67846 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67847
67848         * lib/canon-host.c: Include "strdup.h".
67849         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67850         Use strdup instead of malloc/strcpy to duplicate strings.
67851
67852         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67853         (human_space_before_unit): New constant.
67854         * lib/human.c (human_readable): Support it.
67855
67856         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67857         (xgetcwd): Set errno correctly when failing.
67858         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67859         the failure is actually due to a PATH_MAX problem.
67860
67861         Further getopt changes to make it more likely that glibc will
67862         buy the changes back.
67863         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67864         (getopt): Use it, so to preserve glibc semantic
67865         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67866         when compiling for libc.
67867         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67868         (getopt_long, getopt_long_only): Use it.
67869
67870         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67871         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67872         (getopt): Argv is now char * const *, as per standard.
67873         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67874         not char *__getopt_argv_const *.
67875         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67876         _getopt_long_only_r): Likewise.
67877         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67878         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67879         _getopt_long_r, _getopt_long_only_r): Likewise.
67880         * lib/getopt_.h (__getopt_argv_const): Remove.
67881         (getopt): Argv is now char * const *, as per standard.
67882
67883         * lib/getdate.y (tORDINAL): New token.
67884         (day, relunit): Allow it for relative times.
67885         (relative_time_table): Use tORDINAL for ordinals.
67886
67887 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67888
67889         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67890         Document that "second" isn't allowed as an ordinal number.
67891
67892 2004-11-16  Jim Meyering  <jim@meyering.net>
67893
67894         * modules/closeout (Depends-on): Add fpending.
67895
67896 2004-11-15  Jim Meyering  <jim@meyering.net>
67897
67898         * lib/closeout.c: Include "__fpending.h" once again.
67899         Include <stdbool.h>.
67900         (close_stdout): Don't fail just because stdout was closed initially,
67901         since some programs don't write to stdout in the normal course of
67902         operation (other than --version and --help), and we don't want this
67903         function to make e.g. `touch file >&-' fail.
67904         But do fail if it was closed and someone has tried to write to it.
67905         E.g., `printf foo >&-' must fail.
67906
67907 2004-11-13  Jim Meyering  <jim@meyering.net>
67908
67909         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67910
67911 2004-11-12  Simon Josefsson  <jas@extundo.com>
67912
67913         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67914         small doc fix is still pending.
67915
67916 2004-11-11  Simon Josefsson  <jas@extundo.com>
67917
67918         * modules/strtok_r: New file.
67919
67920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67921         strtok_r.
67922
67923 2004-11-11  Simon Josefsson  <jas@extundo.com>
67924
67925         * m4/strtok_r.m4: New file.
67926
67927         * m4/getopt.m4: Replace opterr.
67928
67929 2004-11-11  Simon Josefsson  <jas@extundo.com>
67930
67931         * lib/strtok_r.h, strtok_r.c: New file.
67932
67933 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67934
67935         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
67936         of replacing opterr, getopt, etc.  This should handle the
67937         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67938
67939 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67940
67941         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67942         we can stop lying to compilers about the constness of argv when we
67943         are compiled outside glibc.
67944         (getopt, getopt_long, getopt_long_only): Use it.
67945         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67946         _getopt_internal, getopt): Likewise.
67947         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67948         _getopt_long_only_r): Likewise.
67949         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67950         _getopt_long_r, _getopt_long_only_r): Likewise.
67951
67952         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67953         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67954         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67955         the other external symbols.
67956         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67957         declaration, since the above renaming now works around collisions.
67958
67959 2004-11-11  Jim Meyering  <jim@meyering.net>
67960
67961         * lib/linebreak.c: Remove trailing blanks.
67962         * lib/alloca_.h: Likewise.
67963         * lib/acosl.c: Likewise.
67964         * lib/euidaccess.c: Likewise.
67965         * lib/allocsa.h: Likewise.
67966
67967 2004-11-10  Simon Josefsson  <jas@extundo.com>
67968
67969         * m4/getaddrinfo.m4: New file.
67970
67971 2004-11-10  Simon Josefsson  <jas@extundo.com>
67972
67973         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67974
67975 2004-11-10  Simon Josefsson  <jas@extundo.com>
67976
67977         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67978         getaddrinfo.
67979
67980         * modules/getaddrinfo: New file.
67981
67982 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67985
67986 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * lib/mktime.c (SHR): New macro, which is a portable
67989         substitute for >> that should work even on Crays.
67990         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67991         Problem reported by Mark D. Baushke in
67992         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67993         * lib/getdate.y (SHR): Likewise.
67994         (tm_diff): Use it.
67995         * lib/strftime.c (SHR): Likewise.
67996         (tm_diff): Use it.
67997         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67998         quote_these_too, so that right shifts are well defined.  All uses
67999         changed.
68000
68001 2004-11-10  Jim Meyering  <jim@meyering.net>
68002
68003         Ensure that no close failure goes unreported.
68004         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68005         return early when it seems there's nothing to flush.
68006         Don't include __fpending.h.
68007
68008 2004-11-10  Jim Meyering  <jim@meyering.net>
68009
68010         * modules/closeout (Depends-on): Remove fpending.
68011
68012 2004-11-10  Jim Meyering  <jim@meyering.net>
68013
68014         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68015
68016 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68017
68018         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68019         gl_FUNC_STRFTIME.
68020         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68021         and AC_REQUIRE when possible, to avoid duplicate checks.
68022         Check for <wchar.h>.
68023
68024 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68027
68028 2004-11-09  Bruno Haible  <bruno@clisp.org>
68029
68030         * m4/sockpfaf.m4: New file.
68031
68032 2004-11-05  Bruno Haible  <bruno@clisp.org>
68033
68034         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68035         Reported by Mark D. Baushke <mdb@cvshome.org>.
68036
68037 2004-11-04  Bruno Haible  <bruno@clisp.org>
68038
68039         2004-09-11  Bruno Haible  <bruno@clisp.org>
68040                 * allocsa.valgrind: New file.
68041         2004-02-06  Bruno Haible  <bruno@clisp.org>
68042                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68043                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68044                 Reported by Christopher Seip <chris.seip@hp.com>.
68045
68046 2004-11-04  Bruno Haible  <bruno@clisp.org>
68047
68048         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68049         (Makefile.am): Distribute it.
68050
68051 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68054         with errno == ERANGE if the buffer is too small.
68055         Problem reported by Mark D. Baushke.
68056
68057 2004-11-03  Albert Chin  <china@thewrittenword.com>
68058             Paul Eggert  <eggert@cs.ucla.edu>
68059
68060         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68061         equivalent, substitute $ac_type for equivalent type rather than
68062         blindly using uint32_t *always* which won't work if uint32_t is not
68063         available.  Define _UINT32_T to work around typedef of uint32_t if
68064         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68065         2.5.1.
68066
68067 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68068
68069         * m4/jm-macros.m4: Sync from coreutils.
68070         (gl_MACROS): Check for mbrlen, for pathchk.
68071         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68072
68073 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68074
68075         * lib/xreadlink.c (MAXSIZE): New macro.
68076         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68077         size does not exceed MAXSIZE.  Avoid cast.
68078         As suggested by Mark D. Baushke in
68079         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68080         if readlink fails with buffer size just under MAXSIZE, try again
68081         with MAXSIZE.
68082
68083 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68084
68085         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68086
68087 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68088         and  Paul Eggert  <eggert@cs.ucla.edu>
68089
68090         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68091         (get_date): Overparenthesize to avoid GCC warning.
68092
68093 2004-11-02  Bruno Haible  <bruno@clisp.org>
68094
68095         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68096         returns void.
68097
68098 2004-11-02  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68101         function returns void.
68102
68103 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68106         fflush_unlocked, flockfile, funlockfile, funlockfile,
68107         fputs_unlocked, putc_unlocked.
68108
68109 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68110
68111         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68112         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68113         already declared.
68114
68115 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68116
68117         * modules/getdate (Files): Add doc/getdate.texi.
68118         (Depends-on): Add setenv, xalloc.
68119
68120 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68121
68122         * lib/getdate.y: Add support for TZ="foo" within a date string.
68123         Fix some bugs near time_t boundaries.  Reject dates with
68124         out-of-range components, e.g., "Sept 31".
68125         Include <stdlib.h>, "setenv.h", "xalloc.h".
68126         (ISDIGIT_LOCALE): Remove; unused.
68127         Note that the TZ and time functions used here are not reentrant.
68128         (mktime_ok, get_tz): New functions.
68129         (TZBUFSIZE): New constant.
68130         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68131         This requires that we sometimes generate our own TZ="XXX..." setting.
68132
68133 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * doc/getdate.texi: New file, from coreutils with modifications for
68136         the new TZ parsing.
68137
68138 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68139
68140         * lib/mktime.c (not_equal_tm): Remove redundant check.
68141
68142 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68143
68144         * modules/regex (lib_SOURCES): Add regex.c.
68145         Reported by James Youngman in
68146         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68147
68148 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68149
68150         * lib/getdate.y: Use Bison 1.875 features, and some minor
68151         code cleanups.  This change does not affect semantics.
68152         Don't include <stdlib.h>; no longer needed.
68153         Don't include unlocked-io.h; only the "#if TEST" code uses
68154         stdio, and performance isn't crucial there.
68155         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68156         Bison 1.875 features as described below.
68157         All uses of "PC." replaced by "pc->".
68158         (YYSTYPE): Add a forward declaration.
68159         (yylex, yyerror): Use full prototypes in forward decls.
68160         Use "%pure-parser" rather than obsolescent "%pure_parser".
68161         Use %parse-param and %lex-param instead of obsolescent
68162         YYPARSE_PARAM and YYLEX_PARAM.
68163         (meridian_table, month_and_day_table, time_units_table,
68164         relative_time_table, time_zone_table, military_table,
68165         lookup_zone, lookup_word, get_date):
68166         Use NULL instead of 0 where appropriate.
68167         (to_hour): Avoid abort (), to avoid a dependency on
68168         stdlib.h.
68169         (yyerror, yylex): Now accepts parser_control * arg.
68170         (main) [TEST]: Use '\0' rather than 0 for char.
68171
68172 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68173
68174         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68175
68176 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68179         It's now the caller's responsibility to handle the case where
68180         !HAVE_GETPAGESIZE && !defined getpagesize.
68181
68182         * lib/mktime.c (leapyear): Arg is long int, not int.
68183
68184 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68185
68186         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68187
68188 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68189
68190         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68191         missing.  Problem reported by James Youngman.
68192
68193 2004-10-16  Simon Josefsson  <jas@extundo.com>
68194
68195         * gnulib-tool: Fix comments.  Fix parse problem.
68196         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68197
68198 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68201         implementation of getopt_long.  Problem reported by Alexander Taler in:
68202         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68203
68204 2004-10-15  Bruno Haible  <bruno@clisp.org>
68205
68206         * gnulib-tool: Untabify. Initialize supplied_libname.
68207         (func_usage): More homogenous output.
68208         (func_modules_transitive_closure, func_modules_to_filelist,
68209         func_emit_lib_Makefile_am): New functions.
68210         (func_import): New function, extracted from big case statement. Use
68211         func_get_license, func_modules_transitive_closure,
68212         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68213         opt_lgpl. Don't use test -a, as it's not portable.
68214         (func_create_testdir): Use func_modules_transitive_closure,
68215         func_modules_to_filelist, func_emit_lib_Makefile_am.
68216
68217 2004-10-15  Bruno Haible  <bruno@clisp.org>
68218
68219         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68220
68221 2004-10-15  Bruno Haible  <bruno@clisp.org>
68222
68223         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
68224         the portions belonging to each module.
68225         Suggested by Derek Robert Price <derek@ximbiot.com>.
68226
68227 2004-10-12  Simon Josefsson  <jas@extundo.com>
68228
68229         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68230         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
68231         to real functions.
68232
68233 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68234
68235         * modules/vsnprintf: New file.
68236
68237 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68238
68239         * m4/vsnprintf.m4: New file.
68240
68241 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68242
68243         * lib/vsnprintf.h: New file.
68244         * lib/vsnprintf.c: New file.
68245
68246 2004-10-11  Bruno Haible  <bruno@clisp.org>
68247
68248         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
68249         vsnprintf.
68250
68251 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68252
68253         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
68254
68255 2004-10-07  Bruno Haible  <bruno@clisp.org>
68256
68257         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
68258         fits into the provided buffer.
68259
68260 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68261
68262         * lib/diacrit.c, diacrit.h: Add GPL notice.
68263
68264         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
68265         notice.
68266         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
68267         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
68268         This avoids a potential constant-folding bug.
68269
68270 2004-10-05  Bruno Haible  <bruno@clisp.org>
68271
68272         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
68273         for the declaration of strsep.
68274
68275 2004-10-05  Bruno Haible  <bruno@clisp.org>
68276
68277         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
68278
68279 2004-10-04  Simon Josefsson  <jas@extundo.com>
68280
68281         * modules/memmem: New file.
68282         * tests/test-memmem.c: New file.
68283         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
68284
68285 2004-10-04  Simon Josefsson  <jas@extundo.com>
68286
68287         * m4/memmem.m4: New file.
68288
68289 2004-10-04  Simon Josefsson  <jas@extundo.com>
68290
68291         * lib/memmem.h: New file.
68292         * lib/memmem.c: New file, taken from glibc.
68293
68294 2004-10-04  Simon Josefsson  <jas@extundo.com>
68295
68296         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
68297         '#ifdef USE_UNLOCKED_IO'.
68298
68299 2004-10-04  Simon Josefsson  <jas@extundo.com>
68300
68301         * config/srclist.txt: Add memmem from glibc.
68302
68303 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68304
68305         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
68306
68307         * modules/argmatch, modules/argp, modules/closeout, modules/error,
68308         modules/exclude, modules/getdate, modules/getline,
68309         modules/getndelim2, modules/getpass, modules/getpass-gnu,
68310         modules/getusershell, modules/linebuffer, modules/md5,
68311         modules/mountlist, modules/posixtm, modules/readtokens,
68312         modules/readutmp, modules/regex, modules/sha1,
68313         modules/version-etc, modules/yesno:
68314         Remove dependency on unlocked-io.
68315
68316 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
68319
68320         * m4/unlocked-io.m4: Add copyright notice.
68321         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
68322
68323 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68324
68325         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
68326         * lib/xmalloc.c (xmemdup): Likewise.
68327         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
68328         XFREE): Remove these long-obsolescent macros.
68329         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
68330         * lib/xstrdup.c: Remove.
68331
68332         * lib/regex.c (re_comp): Cast gettext return value to char *,
68333         Problem reported by Martin Neitzel via Mark D. Baushke.
68334
68335 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68336
68337         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
68338         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
68339         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
68340         regex.c, sha1.c, version-etc.c, yesno.c:
68341         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
68342         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
68343         the includer's responsibility.
68344
68345         Sync from coreutils.
68346
68347         * lib/modechange.c (mode_compile): Don't decrement a pointer that
68348         points to the start of a string, as the C Standard says the
68349         resulting behavior is undefined.
68350
68351         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
68352         simple -> simple_backups, numbered_existing ->
68353         numbered_existing_backups, numbered -> numbered_backups
68354         to avoid shadowing problems.  All uses changed.
68355         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
68356         * lib/backupfile.c (check_extension, numbered_backup):
68357         Rename locals to avoid shadowing 'basename'.
68358         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
68359         once.
68360
68361         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
68362         * lib/.cvsignore: Add getopt.h.
68363
68364 2004-10-04  Bruno Haible  <bruno@clisp.org>
68365
68366         * modules/README: New file.
68367         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
68368         not a module.
68369
68370 2004-10-02  Jim Meyering  <jim@meyering.net>
68371
68372         * lib/dirfd.h, getpagesize.h: Add copyright notice.
68373
68374 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68375
68376         * modules/strsep: New file.
68377
68378 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68379
68380         * m4/strsep.m4: New file.
68381
68382 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68383
68384         * lib/strsep.h: New file.
68385         * lib/strsep.c: New file.
68386
68387 2004-10-01  Simon Josefsson  <jas@extundo.com>
68388
68389         * lib/snprintf.c (snprintf): Handle size==0.
68390
68391 2004-10-01  Simon Josefsson  <jas@extundo.com>
68392             Bruno Haible  <bruno@clisp.org>
68393
68394         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
68395         (snprintf): Declare 'args'.
68396
68397 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         * lib/snprintf.c: Remove comments as to why each header is needed.
68400
68401 2004-10-01  Bruno Haible  <bruno@clisp.org>
68402
68403         * MODULES.html.sh: Add strsep.
68404
68405 2004-09-30  Simon Josefsson  <jas@extundo.com>
68406
68407         * modules/snprintf: New file.
68408
68409 2004-09-30  Simon Josefsson  <jas@extundo.com>
68410
68411         * m4/snprintf.m4: New file.
68412
68413 2004-09-30  Simon Josefsson  <jas@extundo.com>
68414
68415         * lib/snprintf.h, lib/snprintf.c: New files.
68416
68417 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68418
68419         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
68420         (hol_entry_help): Never translate an empty string.
68421         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
68422         * lib/argp.h (OPTION_NO_TRANS): New option.
68423
68424 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         * modules/argp (Maintainer): Replace Simon Josefsson
68427         by Sergey Poznyakoff.
68428
68429 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
68432         changes merged back into glibc.
68433
68434 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68435
68436         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
68437
68438 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68439
68440         * lib/xvasprintf.c: Include xalloc.h.
68441         (xvasprintf): Use xalloc_die, not xmalloc_die.
68442
68443 2004-09-29  Bruno Haible  <bruno@clisp.org>
68444
68445         * modules/alloca-opt: New file, derived from modules/alloca.
68446         * modules/allocsa: Depend on alloca-opt instead of alloca.
68447         * modules/setenv: Likewise.
68448         * modules/vasnprintf: Likewise.
68449         * MODULES.html.sh: Add alloca-opt.
68450
68451 2004-09-28  Simon Josefsson  <jas@extundo.com>
68452
68453         * gnulib-tool: New parameter --lgpl, to asseert that modules are
68454         LGPL, and to replace license template from GPL to LGPL.
68455
68456 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68457
68458         * modules/dummy: Change license to LGPL.
68459
68460 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
68463
68464 2004-09-24  Simon Josefsson  <jas@extundo.com>
68465
68466         * modules/minmax (License): Change from GPL to LGPL.
68467
68468 2004-09-23  Simon Josefsson  <jas@extundo.com>
68469
68470         * gnulib-tool (--import): Typo.
68471
68472 2004-09-23  Simon Josefsson  <jas@extundo.com>
68473
68474         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
68475
68476 2004-09-22  Bruno Haible  <bruno@clisp.org>
68477
68478         * modules/*: Add 'License' field.
68479         * gnulib-tool: Accept --extract-license option.
68480         (func_get_license): New function.
68481
68482 2004-09-21  Bruno Haible  <bruno@clisp.org>
68483
68484         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
68485         Reported by Simon Josefsson.
68486
68487 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68488
68489         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
68490         gl_AC_TYPE_LONG_LONG.
68491
68492 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68493
68494         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
68495
68496 2004-09-18  Simon Josefsson  <jas@extundo.com>
68497         and  Paul Eggert  <eggert@cs.ucla.edu>
68498
68499         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
68500         calls with autoreconf.  Define GL_LIB.
68501
68502 2004-09-14  Karl Berry  <karl@gnu.org>
68503
68504         * config/srclist.txt: unsync setenv.c, sigh.
68505
68506 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68507
68508         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
68509         Problem reported by Bruno Haible in:
68510         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
68511
68512 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68513
68514         * config/srclist.txt: Comment out argp-pvh.c.
68515
68516 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
68517
68518         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
68519         in case some system header has #define'd it.  Problem reported by
68520         Soeren D. Schulze in
68521         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
68522
68523 2004-09-09  Karl Berry  <karl@gnu.org>
68524
68525         * regex.[ch]: delete from the root.  These were supposed to be
68526                 synced with emacs cvs, but this has not happened for about
68527                 a year, and anyway nothing else uses emacs regex.[ch].
68528                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
68529                 lib/regex[.ch] is untouched.
68530
68531 2004-09-09  Bruno Haible  <bruno@clisp.org>
68532
68533         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
68534
68535 2004-09-09  Bruno Haible  <bruno@clisp.org>
68536
68537         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
68538         modifications.
68539         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
68540
68541 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68542
68543         * modules/xvasprintf: New file.
68544         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
68545
68546 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68547
68548         * lib/xvasprintf.h: New file.
68549         * lib/xvasprintf.c: New file.
68550         * lib/xasprintf.c: New file.
68551
68552 2004-09-08  Bruno Haible  <bruno@clisp.org>
68553
68554         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
68555
68556 2004-09-08  Bruno Haible  <bruno@clisp.org>
68557
68558         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68559         length is > INT_MAX.
68560         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68561         more.
68562
68563 2004-09-08  Bruno Haible  <bruno@clisp.org>
68564
68565         * lib/stdint_.h: New file, taken from GNU clisp.
68566
68567 2004-09-08  Bruno Haible  <bruno@clisp.org>
68568             Oskar Liljeblad  <oskar@osk.mine.nu>
68569
68570         * modules/stdint: New file.
68571         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68572
68573 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68574
68575         Import from coreutils.
68576         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68577         strings on unbounded length.  alloca's performance benefits aren't
68578         that important here.
68579         (V_STRDUP): Remove.
68580         (parse_with_separator): New function, with most of the internals
68581         of the old parse_user_spec.  Allow user to omit both user and group,
68582         for compatibility with FreeBSD.
68583         Clone only the user name, not the entire spec.
68584         Do not set *uid, *gid unless entirely successful.
68585         Avoid memory leak in some failing cases.
68586         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68587         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68588         (parse_user_spec): Rewrite to use parse_with_separator.
68589
68590 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68591
68592         * modules/userspec: Don't depend on alloca.
68593
68594 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68595
68596         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68597
68598 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68601         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68602         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68603
68604 2004-08-16  Simon Josefsson  <jas@extundo.com>
68605
68606         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68607         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68608         Add --dry-run for --import.
68609         Let user provided command line parameters override configure.ac
68610         settings.
68611
68612 2004-08-12  Simon Josefsson  <jas@extundo.com>
68613
68614         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68615         as discussed with Paul Eggert in threads rooted at
68616         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68617         and
68618         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68619         Before, the test was empty, and relied on ELIDE_CODE in source
68620         code.)
68621         (gl_PREREQ_GETOPT): New macro.
68622         (gl_GETOPT): Use them.
68623
68624 2004-08-12  Simon Josefsson  <jas@extundo.com>
68625
68626         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68627         * lib/getopt_.h: Renamed from getopt.h.
68628
68629 2004-08-12  Simon Josefsson  <jas@extundo.com>
68630
68631         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68632         Change default library name from libfoo to libgnu.
68633         Now, if you have a configure.ac that says:
68634                 gl_SOURCE_BASE(gl)
68635                 gl_M4_BASE(gl/m4)
68636                 gl_MODULES(error getopt etcetera)
68637                 gl_INIT
68638         you can import all you need by running:
68639                 ../gnulib/gnulib-tool --import
68640
68641         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68642         (Makefile.am): Rewrite, use logic from argz.
68643         (Include): Use <getopt.h> instead of "getopt.h".
68644
68645 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * modules/argp (Files): Add m4/unlocked-io.m4.
68648         (Depends-on): Add extensions.
68649
68650 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68651
68652         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68653         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68654         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68655         Check for program_invocation_name, program_invocation_short_name,
68656         flockfile, funlockfile, features.h, _getopt_long_only_r.
68657
68658 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68659
68660         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68661         its complicated substitute.
68662         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68663         and program_invocation_name.
68664         (__argp_basename) [!_LIBC]: Remove; the only use was
68665         replaced by its body.
68666         (__argp_short_program_name): Change condition from
68667         !defined __argp_short_program_name to
68668         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68669         to match argp-namefrob.h.
68670         (__argp_failure): Don't assume strerror_r returns char *.
68671         * lib/argp-parse.c (N_): Define unconditionally.
68672         (argp_default_options): Fill out initializers with 0 to avoid
68673         gcc warnings.
68674
68675 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68676
68677         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68678         getopt1.c.
68679
68680 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         Merge from coreutils.
68683
68684         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68685
68686         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68687         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68688
68689 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68690
68691         Merge from coreutils.
68692
68693         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68694         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68695         for Reliant Unix 5.43.
68696
68697         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68698         (union fooround): Use uintmax_t, not long int.
68699         The rest is a merge from libc:
68700         [defined _LIBC]: Include <shlib-compat.h>.
68701         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68702
68703         * lib/settime.c (settime): Recode to avoid warning with
68704         Sun Forte C 6U2.
68705
68706         * lib/strverscmp.c: Convert to UTF-8.
68707
68708 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68709
68710         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68711         m4/uintmax_t.m4.
68712
68713 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68714
68715         * modules/xalloc-die: New file.
68716         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68717
68718         * modules/md5 (Files): Add m4/uint32_t.m4.
68719         * modules/sha1: Renamed from modules/sha.
68720         (Files):
68721         Rename lib/sha.h to lib/sha1.h.
68722         Rename lib/sha.c to lib/sha1.c.
68723         Rename m4/sha.m4 to m4/sha1.m4.
68724         (lib_SOURCES): Likewise.
68725         (configure.ac): Rename gl_SHA to gl_SHA1.
68726         (Include): sha.h -> sha1.h.
68727
68728 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68729
68730         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68731         * m4/sha1.m4: Renamed from sha.m4.
68732         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68733
68734 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         * lib/obstack.h (obstack_empty_p):
68737         Don't assume that chunk->contents is suitably aligned.
68738         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68739         Likewise. Problem reported by Benno in
68740         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68741
68742         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68743         readable.  This could be improved further but it'd take some work.
68744
68745 2004-08-08  Simon Josefsson  <jas@extundo.com>
68746
68747         * modules/xgethostname (Depends-on): Remove exit and error (not
68748         used).
68749
68750         * modules/getpass-gnu: Add getpass.h.
68751         (Depends-on): Add stdbool.
68752         * modules/getpass: Add getpass.h.
68753
68754 2004-08-08  Simon Josefsson  <jas@extundo.com>
68755
68756         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68757         Check getpass declaration.
68758
68759 2004-08-08  Simon Josefsson  <jas@extundo.com>
68760
68761         * lib/xgethostname.c: Don't include error.h (not used).
68762
68763         * lib/getpass.h: Add.
68764         * lib/getpass.c: Include getpass.h first.
68765
68766 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68767
68768         * lib/xalloc-die.c: New file.
68769         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68770         All uses removed.
68771         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68772         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68773         xalloc-die.c.
68774         (_, N_, xalloc_die): Move to xalloc-die.c.
68775         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68776         so that we needn't mess with xalloc_msg_memory_exhausted.
68777
68778         * lib/sha1.h: Renamed from sha.h.
68779         (SHA1_H): Renamed from _SHA_H.
68780         (sha1_ctx): Renamed from sha_ctx.
68781         (sha1_init_ctx): Renamed from sha_init_ctx.
68782         (sha1_process_block): Renamed from sha_process_block.
68783         (sha1_process_bytes): Renamed from sha_process_bytes.
68784         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68785         (sha1_read_ctx): Renamed from sha_read_ctx.
68786         (sha1_stream): Renamed from sha_stream.
68787         (sha1_buffer): Renamed from sha_buffer.
68788         * lib/sha1.c: Likewise; renamed from sha.c.
68789         Do not include <sys/types.h>.
68790         Include <stddef.h> rather than <stdlib.h>.
68791
68792 2004-08-08  Bruno Haible  <bruno@clisp.org>
68793
68794         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68795         FILESYSTEM_PREFIX_LEN.
68796         * lib/progreloc.c: Likewise.
68797         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68798
68799 2004-08-06  Simon Josefsson  <jas@extundo.com>
68800
68801         * modules/progname (Depends-on): Don't depend on stdbool.
68802
68803 2004-08-06  Simon Josefsson  <jas@extundo.com>
68804
68805         * modules/getsubopt: New file.
68806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68807         getsubopt.
68808
68809 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68810
68811         More merge from coreutils.
68812
68813         * m4/utimens.m4, m4/utimecmp.m4: New files.
68814         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68815         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68816         prereq.m4, sha.m4: Import changes from coreutils.
68817
68818 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         More merge from coreutils.
68821         * modules/raise, modules/readtokens0, modules/utimens:
68822         * modules/utimecmp, module/xnanosleep: New files.
68823         * modules/strftime: Add lib/strftime.h.
68824         Change include from <time.h> to "strftime.h".
68825         * modules/yesno: Add lib/yesno.h.
68826         * modules/backupfile: Remove lib/addext.c.
68827         * modules/euidaccess: Add stat-macros.h.
68828         * modules/canonicalize, modules/euidaccess,
68829         modules/filemode, modules/lchown, modules/makepath,
68830         modules/rmdir, modules/stat: Likewise.
68831
68832 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68833
68834         Merge from tar.
68835         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68836         SIZE_MAX is a valid preprocessor constant.
68837         (__argp_basename): Change from "#ifndef _LIBC"
68838         to "#ifndef __argp_short_program_name", so that
68839         we don't compile these functions for tar.
68840
68841         More merges from coreutils.
68842         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68843         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68844         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68845         * lib/addext.c: Remove; no longer needed.
68846         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68847         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68848         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68849         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68850         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68851         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68852         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68853         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68854         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68855         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68856         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68857         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68858         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68859         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68860         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68861         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68862         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68863         Import changes from coreutils.
68864
68865 2004-08-05  Simon Josefsson  <jas@extundo.com>
68866
68867         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68868
68869 2004-08-05  Simon Josefsson  <jas@extundo.com>
68870
68871         * m4/getsubopt.m4: New file.
68872
68873 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         Merge from coreutils.
68876
68877         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68878         * m4/getcwd-path-max.m4: New files.
68879
68880         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68881         FILESYSTEM_PREFIX_LEN ->
68882         FILE_SYSTEM_PREFIX_LEN.
68883         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68884         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68885         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68886         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68887
68888         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68889         prerequisite modules now handle the DOS stuff.
68890         Don't check for unistd.h.
68891
68892 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68893
68894         Merge from coreutils.
68895
68896         * lib/.gdb-history: Remove; this doesn't belong here.
68897
68898         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68899         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68900         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68901         * lib/getcwd.c: New files.
68902
68903         * lib/dirname.h: Include <stdbool.h>.
68904         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68905         for consistency with POSIX terminology.  All uses changed.
68906         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68907         (strip_trailing_slashes): Use bool for booleans.
68908         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68909
68910         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68911         sometimes returns a positive errno value even when it succeeds.
68912         (print_errno_message) [!LIBC]: Fall back on strerror if
68913         __strerror_r fails.
68914
68915         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68916         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68917         (longest_relative_suffix): New function.
68918         (path_concat): Use it.  Assume first argument is not NULL.
68919         Port to DOS.  Omit redundant separators.
68920         Report an error instead of returning NULL.
68921         Use mempcpy instead of memcpy.
68922         (xpath_concat): Remove: not declared or used.
68923
68924         * lib/same.h: Include <stdbool.h>
68925         (same_name): Return bool, not int.
68926         * lib/same.c (same_name): Likewise.
68927         (errno): Don't declare; we assume C89 or better now.
68928
68929         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68930         if not already defined.
68931
68932         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68933         * lib/dup-safer.c (errno): Likewise.
68934
68935 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         Merge from coreutils.
68938         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68939         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68940         * modules/path-concat: Don't depend on strdup.
68941
68942 2004-08-03  Simon Josefsson  <jas@extundo.com>
68943
68944         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68945         * lib/progname.h: Don't include stdbool.h.
68946
68947 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68950         * MODULES.html.sh (func_all_modules): Remove fatal.
68951
68952 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68953
68954         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68955
68956 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68957
68958         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68959         working.
68960
68961 2004-08-02  Simon Josefsson  <jas@extundo.com>
68962
68963         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68964         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68965         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68966
68967 2004-08-01  Simon Josefsson  <jas@extundo.com>
68968
68969         * lib/xgetdomainname.c: Include stdlib.h, for free().
68970
68971 2004-07-19  Bruno Haible  <bruno@clisp.org>
68972
68973         * MODULES.html.sh (func_all_modules): Add dummy.
68974
68975 2004-07-16  Simon Josefsson  <jas@extundo.com>
68976
68977         * modules/dummy: New file.
68978
68979 2004-07-16  Simon Josefsson  <jas@extundo.com>
68980
68981         * lib/dummy.c: New file.
68982
68983 2004-07-16  Bruno Haible  <bruno@clisp.org>
68984
68985         * lib/backupfile.h: Add extern "C" for C++.
68986         * lib/closeout.h: Likewise.
68987         * lib/copy-file.h: Likewise.
68988         * lib/findprog.h: Likewise.
68989         * lib/full-write.h: Likewise.
68990         * lib/pathname.h: Likewise.
68991         * lib/progname.h: Likewise.
68992         * lib/stpcpy.h: Likewise.
68993         * lib/stpncpy.h: Likewise.
68994         * lib/strcase.h: Likewise.
68995         * lib/strstr.h: Likewise.
68996         * lib/xalloc.h: Likewise.
68997
68998         * lib/mbswidth.h: Add extern "C" for C++.
68999         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69000
69001 2004-07-13  Robert Millan  <robertmh@gnu.org>
69002
69003         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69004
69005 2004-07-09  Simon Josefsson  <jas@extundo.com>
69006
69007         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69008         failed without this.)
69009
69010 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69011
69012         * modules/chown (Files): Add lib/fchown-stub.c, since
69013         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69014
69015 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         * lib/fchown-stub.c: New file.
69018
69019 2004-06-24  Jim Meyering  <jim@meyering.net>
69020
69021         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69022
69023 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69024
69025         * modules/argz: Omit "#include".
69026
69027         * MODULES.html.sh (func_all_modules): Add calloc, to match
69028         2004-06-01 addition of calloc module.
69029
69030 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69031
69032         * m4/argz.m4: New file, which is autoupdated from libtool.
69033
69034 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69037         libtool.
69038
69039 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         * config/srclist-update: Don't insist on "USA." before the
69042         close-comment, as libtool omits the period and puts the */ on a
69043         separate line.
69044         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69045         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69046
69047 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69048
69049         * modules/argz: New file.
69050         * MODULES.html.sh (func_all_modules): Add argz.
69051
69052 2004-06-12  Jim Meyering  <jim@meyering.net>
69053         and  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * modules/hash (Files): Add lib/xalloc.h.
69056         * modules/pipe (Depends-on): Add wait-process.
69057         * modules/stat (Depends-on): Add xalloc.
69058         * modules/userspec (Files): Add lib/userspec.h.
69059         * modules/xstrto
69060
69061         Upgrade from gettext-0.13.
69062         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69063         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69064         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69065
69066 2004-06-10  Jim Meyering  <jim@meyering.net>
69067
69068         * lib/calloc.c: New file.
69069
69070 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69071
69072         * lib/getdate.y (yylex): Allow space between sign and number.
69073         Problem reported by Dan Jacobson.
69074
69075 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         Merge from coreutils CVS.
69078
69079         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69080         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69081         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69082         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69083         xstrtol.m4: Fix copyright date and/or serial number.
69084
69085         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69086         See if we need an fchown replacement.
69087         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69088         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69089         and use the replacement function if we detect either defect.
69090
69091         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69092         gl_UTIMECMP.
69093
69094 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69095         and  Jim Meyering  <jim@meyering.net>
69096
69097         Merge from coreutils CVS.
69098
69099         * lib/stat-macros.h: New file, with contents from file-type.h
69100         and coreutils' system.h.
69101         * lib/file-type.c: Include "stat-macros.h".
69102         * lib/file-type.h (file_type): Move all macro definitions to new file,
69103         stat-macros.h.
69104
69105         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69106         Wrap old code with this conditional.
69107         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69108         function that does not dereference symlinks.
69109         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69110
69111         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69112         dependency problems.
69113         (xreadlink): Accept new arg SIZE, for efficiency.
69114         All decls and uses changed.
69115         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69116
69117         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69118         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69119
69120         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69121         sysexits.h.
69122
69123 2004-06-01  Jim Meyering  <jim@meyering.net>
69124
69125         * m4/calloc.m4: New file.
69126
69127 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69128
69129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69130         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69131         Also, fix a typo in a diagnostic.
69132
69133 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69134
69135         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69136         or AC_FUNC_REALLOC.
69137
69138 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69141         macros to be defined.
69142         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69143         the allocator returns NULL because the requested size is zero.
69144
69145 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69148         var.  Add comment explaining why libc still defines it.  This
69149         merges the following patch from glibc:
69150         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69151
69152 2004-05-20  Andreas Schwab  <schwab@suse.de>
69153
69154         * m4/free.m4: Replace free if it not known to work, not the other
69155         way round.
69156
69157 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69158
69159         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69160         present in glibc since revision 1.1 of this file.
69161         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69162         obstack_alignment_mask, obstack_alloc, obstack_base,
69163         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69164         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69165         obstack_grow0, obstack_init, obstack_int_grow,
69166         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69167         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69168         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69169         nonexistent functions.
69170
69171 2004-05-18  Karl Berry  <karl@gnu.org>
69172
69173         * config/srclist.txt: break link for vasnprintf.c.
69174
69175 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         Port obstack to the AS/400, where pointers are 16 bytes wide and
69178         you cannot cast an integer to a valid pointer.  This patch is
69179         currently waiting to be integrated into glibc; see
69180         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69181
69182         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69183         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69184         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69185         (struct obstack): temp member is now a union of a pointer and
69186         an integer, instead of an integer.  All integer uses changed.
69187         This does not affect the physical layout of struct obstack,
69188         except on hosts (like the AS/400) where the size or alignment of
69189         void * is greater than that of ptrdiff_t.
69190         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69191         __STDC__)]: Store temporary in pointer member of union, not
69192         integer member.
69193         * lib/obstack.c: Include <stddef.h>, for offsetof.
69194         (struct fooalign): Remove; it doesn't need a name.
69195         (union fooround): Change double to long double, and add void *.
69196         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69197         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69198         not a macro.  Hence the values are always int; so remove all
69199         casts-to-int in uses.
69200
69201 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69204         we can get this patch merged into glibc.
69205
69206 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69207             Paul Eggert  <eggert@cs.ucla.edu>
69208
69209         * m4/argp: Depend on alloca.
69210
69211 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69212             Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69215         freecoding.
69216
69217 2004-05-17  Bruno Haible  <bruno@clisp.org>
69218
69219         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69220         precision that consists of a '.' followed by an empty digit string.
69221         Patch by Tor Lillqvist <tml@iki.fi>.
69222
69223 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69224
69225         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
69226         for backward compatibility with older code.  We need our own
69227         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
69228         it under some other name, and our alloca.h will define it.
69229
69230 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69231             Derek Price  <derek@ximbiot.com>
69232
69233         * lib/alloca.c: Include <alloca.h>, to get our interface.
69234         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
69235         include <alloca.h> first.  Use C89 prototype for alloca; this
69236         requires including <stddef.h> for size_t.  Use extern "C" if C++.
69237         Use #elif for simplicity, since we can assume C89 now.
69238         Don't try to source the system alloca.h since it will not be found
69239         and to prevent recursively including its replacement.
69240         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
69241         * lib/regex.c: Likewise.
69242
69243 2004-05-16  Derek Price  <derek@ximbiot.com>
69244             Paul Eggert  <eggert@cs.ucla.edu>
69245
69246         getline cleanup.  This changes the getndelim2 API: both order of
69247         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
69248         no delimiter).
69249
69250         * lib/getline.c: Don't include stddef.h or stdio.h, since our
69251         interface does that.
69252         (getline): Always use getdelim, so that we don't have two
69253         copies of this code.
69254         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
69255         if available.
69256         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
69257         (GETNDELIM2_MAXIMUM): New macro.
69258         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
69259         instead of the old practice of delim2==0.  All callers changed.
69260         Return -1 on overflow, instead of returning junk.
69261         Do not set *linesize unless allocation succeeds.
69262         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
69263         that we include sys/types.h.
69264         * lib/getnline.h: Likewise.
69265         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
69266         (getndelim2): Reorder arguments.
69267         * lib/getnline.c (getnline, getndelim):
69268         Don't discard the NMAX argument.
69269         (getnline): Invoke getndelim, to avoid code duplication.
69270         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
69271         of (size_t) -1 by callers of the getnline family.
69272
69273 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
69276         Check for gettimeofday.
69277         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
69278         Check for settimeofday, stime.
69279
69280 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69281
69282         * lib/nanosleep.c (suspended): Change its type from int to
69283         sig_atomic_t volatile.
69284         (first_call): Make it private to rpl_nanosleep, and have it
69285         be zero initially as that's a bit faster.
69286         (my_usleep): Round up fractional times instead of truncating them,
69287         as this is the usual meaning for 'sleep'.
69288
69289         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
69290         doesn't work.
69291         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
69292         (ENOSYS): Define if not defined.
69293         (settime): Fall back on stime if it exists and settimeofday fails.
69294         But don't bother with fallbacks if a method fails with errno == EPERM.
69295
69296 2004-05-11  Jim Meyering  <jim@meyering.net>
69297
69298         Prior to this change, the save_cwd caller required read access to the
69299         current directory on most systems (ones with the fchdir function).
69300
69301         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
69302         fails, try write-only, and finally, resort to using xgetcwd.
69303
69304 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69305
69306         * lib/obstack.c, obstack.h: Import changes from libc.
69307
69308 2004-04-28  Bruno Haible  <bruno@clisp.org>
69309
69310         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
69311         also implicitly appends .exe to executables.
69312         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
69313         accepts Windows pathnames.
69314         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69315         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69316         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69317         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69318         Reported by Derek Robert Price <derek@ximbiot.com>.
69319
69320 2004-04-21  Karl Berry  <karl@gnu.org>
69321
69322         * config/srclist.txt (localcharset.c): break sync.
69323
69324 2004-04-20  Paul Eggert  <eggert@twinsun.com>
69325
69326         * m4/host-os.m4: Add a copyright notice.
69327
69328 2004-04-20  Jim Meyering  <jim@meyering.net>
69329
69330         Change UTILS_ to gl_ in AC_DEFINE'd names.
69331         Change utils_- and jm_-prefixed variables, too.
69332         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
69333         UTILS_FUNC_MKDIR_TRAILING_SLASH.
69334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
69335
69336         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
69337         Don't emit trailing blanks.
69338         Also rename jm_-prefixed variables to have gl_ prefix.
69339
69340         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
69341         Also rename jm_-prefixed variables to have gl_ prefix.
69342
69343         * m4/jm-macros.m4: Reflect the renamings.
69344         * m4/prereq.m4: Likewise.
69345
69346 2004-04-20  Jim Meyering  <jim@meyering.net>
69347
69348         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
69349         memory.
69350
69351 2004-04-20  Jim Meyering  <jim@meyering.net>
69352             Bruno Haible  <bruno@clisp.org>
69353
69354         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
69355         memory when realloc fails.
69356
69357 2004-04-19  Jim Meyering  <jim@meyering.net>
69358
69359         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
69360         now that readutmp.c may call `free (0)'.
69361
69362 2004-04-19  Bruno Haible  <bruno@clisp.org>
69363
69364         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
69365         * m4/inttypes_h.m4: Likewise.
69366         * m4/stdint_h.m4: Likewise.
69367         * m4/intmax_t.m4: Likewise.
69368         * m4/uintmax_t.m4: Likewise.
69369
69370 2004-04-18  Jim Meyering  <jim@meyering.net>
69371
69372         * m4/prereq.m4: Don't forbid jm_ prefix.
69373
69374         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
69375         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
69376         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
69377         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
69378         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
69379         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
69380         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
69381         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
69382         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
69383         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
69384         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
69385         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
69386         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
69387         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
69388         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
69389         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
69390         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
69391         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
69392         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
69393
69394 2004-04-18  Jim Meyering  <jim@meyering.net>
69395
69396         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
69397         failure, don't leak memory and do call END_UTMP_ENT.
69398
69399 2004-04-16  Jim Meyering  <jim@meyering.net>
69400
69401         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
69402         coreutils' stat program.
69403         (gl_PREREQ): Don't require jm_PREREQ_STAT.
69404
69405 2004-04-11  Paul Eggert  <eggert@twinsun.com>
69406
69407         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
69408         C89.
69409         (CHAR_BIT): Remove, since we assume C89.
69410         Include <stdint.h> if available, as per current Autoconf CVS advice.
69411
69412 2004-03-31  Jim Meyering  <jim@meyering.net>
69413
69414         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
69415         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
69416         * m4/xalloc.m4: Likewise.
69417
69418 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69419
69420         Merge from coreutils.
69421
69422         * m4/inttostr.m4: New file.
69423         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
69424         Require AM_STDBOOL_H and gl_TIMESPEC instead.
69425         Require gl_CLOCK_TIME.
69426         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
69427
69428 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69429
69430         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
69431         not bool, to be more consistent with Unix conventions.
69432         Suggested by Bruno Haible.
69433
69434         Merge from coreutils.
69435
69436         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
69437         * lib/umaxtostr.c: New files.
69438
69439         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
69440         the usual <time.h> dance.
69441         (get_date): Change signature to support fractional time stamps.
69442         All callers changed.
69443         * lib/getdate.y: Include "getdate.h" first, as we can now
69444         assume C89 and don't need to worry about 'const'.
69445         Similarly, include "unlocked-io.h" near start, not in middle.
69446         Include <limits.h>.
69447         (textint.value): Use long int rather than int.
69448         (textint.digits): Use size_t rather than int.
69449         (BILLION, LOG10_BILLION): New constants.
69450         (parser_control): New member rel_ns.  Members day_ordinal,
69451         time_zone, month, day, hour, minutes, rel_year, rel_month,
69452         rel_day, rel_hour, rel_minutes, rel_seconds
69453         are now long int, not int.  Member seconds is now struct timespec,
69454         not int.  New member timespec_seen.  Members dates_seen, days_seen,
69455         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
69456         not int.
69457         (%union.intval): Now long int, not int.
69458         New member timespec.
69459         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
69460         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
69461         (spec): Now is a timespec or an item list.
69462         (timespec, items): New nonterminals.
69463         (time, rel, relunit, number, get_date):
69464         Add support for fractional seconds.
69465         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
69466         (gmtime, localtime, mktime): Remove decls; not needed with C89.
69467         (to_hour): First arg is now long int, not int.
69468         (to_year): Returns long int, not int.
69469         Don't treat year -70 like 70.
69470         (tm_diff): Returns long int, not int.
69471         (lookup_word): Use bool instead of int when appropriate.
69472         (yylex): Use size_t for count, not int.
69473         Detect overflow when parsing large integer constants.
69474         Add support for fractions.
69475         (get_date): Make pointers 'const' if possible.
69476         Use more-portable code to detect integer overflow.
69477         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
69478         Don't use ctime; it's not reliable if the year has >4 digits.
69479
69480         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
69481         This is for compatibility with BSD.
69482
69483         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
69484         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
69485         From coreutils' system.h.
69486
69487         * lib/userspec.c: Don't include "posixver.h".
69488         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
69489         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
69490         compatible extension.  Simplify code by removing a boolean int
69491         that was always nonzero if a string was nonnull.
69492
69493 2004-03-30  Jim Meyering  <jim@meyering.net>
69494
69495         Merge from coreutils.
69496
69497         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
69498         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
69499         on some systems one must include <grp.h> before it.
69500         Reported by Christian Krackowizer.
69501
69502 2004-03-30  Jim Meyering  <jim@meyering.net>
69503
69504         Merge from coreutils.
69505
69506         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
69507
69508         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
69509         an empty input stream.
69510
69511         * lib/readtokens.c: Include <stdbool.h>.
69512         (readtoken): Use `size_t' rather than int/long.
69513         All callers adjusted.
69514         Use `bool' rather than `int' where appropriate.
69515         Use memset rather than an explicit loop.
69516         Use x2nrealloc rather than xrealloc.
69517         Allow the use of `\0' as a delimiter.
69518         (readtokens): Likewise.
69519         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
69520
69521 2004-03-30  Jim Meyering  <jim@meyering.net>
69522
69523         * m4/realloc.m4: Remove file, since now it does no more than
69524         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
69525         the `configure.ac' section of module/realloc.
69526         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
69527
69528 2004-03-30  Bruno Haible  <bruno@clisp.org>
69529
69530         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
69531         nonnull.
69532
69533 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69534
69535         Merge changes to getloadavg.c from coreutils and Emacs.
69536
69537         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
69538         Define to an expression, not to the empty string.
69539         Include cloexec.h and xalloc.h.
69540         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
69541         Use set_cloexec_flag rather than rolling our own.
69542         * lib/cloexec.c, lib/cloexec.h: New files.
69543
69544 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69545
69546         * m4/cloexec.m4: New file.
69547
69548 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69549
69550         * lib/getopt.h: Sync with libc CVS.
69551
69552 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69553             Bruno Haible  <bruno@clisp.org>
69554
69555         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
69556         mbswidth.
69557
69558 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69559             Bruno Haible  <bruno@clisp.org>
69560
69561         * lib/mbswidth.h: Include <wchar.h> only if
69562         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69563         <wchar.h>.
69564         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69565
69566 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69567
69568         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69569         Sync with libc CVS.
69570         * lib/getopt_int.h: New file, also synced from libc.
69571
69572 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69573
69574         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69575         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69576         Bring back getopt.c, getopt.h, getopt1.c.
69577
69578 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69579
69580         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69581         All uses changed.  Check for sa_sigaction member; this fixes
69582         a bug first reported by Jason Andrade in
69583         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69584
69585 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69586
69587         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69588         '#if' expressions.  Unlike the code it replaces, it does not
69589         depend on (defined _SC_PAGESIZE).  However, it does depend on
69590         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69591         first reported by Jason Andrade in
69592         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69593
69594 2004-02-25  Simon Josefsson  <jas@extundo.com>
69595
69596         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69597
69598 2004-02-25  Simon Josefsson  <jas@extundo.com>
69599
69600         * lib/strdup.h: New file.
69601         * lib/strdup.c: Include it.
69602         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69603         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69604
69605 2004-02-23  Karl Berry  <karl@gnu.org>
69606
69607         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69608         (from fencepost.gnu.org:/gd/gnuorg).
69609
69610 2004-02-23  Karl Berry  <karl@gnu.org>
69611
69612         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69613         * config/srclist.txt: add maintain/standards documents.
69614
69615 2004-02-18  Bruno Haible  <bruno@clisp.org>
69616
69617         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69618         Reported by Derek Robert Price <derek@ximbiot.com>.
69619
69620 2004-02-16  Karl Berry  <karl@gnu.org>
69621
69622         * config/mkinstalldirs, install-sh: update from automake.
69623
69624 2004-02-06  Karl Berry  <karl@gnu.org>
69625
69626         * m4/po.m4: update from gettext 0.14.1.
69627
69628 2004-02-06  Karl Berry  <karl@gnu.org>
69629
69630         * lib/config.charset: update from gettext 0.14.1.
69631
69632 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69633
69634         Add comments and code, prompted by suggestions from Bruno Haible
69635         for sh-quote.
69636         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69637         describing the enum quoting_style values.
69638         * lib/quotearg.c (quotearg_alloc): New function.
69639         (quotearg_buffer_restyled): Treat lone { and } as special.
69640         Treat = as special.  Work around bug with older shells
69641         that "see" a '\' that is really the 2nd byte of a multibyte char.
69642         Quote empty string with shell_quoting_style.
69643
69644 2004-02-03  Bruno Haible  <bruno@clisp.org>
69645
69646         * m4/pipe.m4: New file, from GNU gettext.
69647
69648 2004-02-03  Bruno Haible  <bruno@clisp.org>
69649
69650         * lib/pipe.h: New file, from GNU gettext.
69651         * lib/pipe.c: New file, from GNU gettext.
69652
69653 2004-01-27  Bruno Haible  <bruno@clisp.org>
69654
69655         * m4/execute.m4: New file, from GNU gettext.
69656
69657 2004-01-27  Bruno Haible  <bruno@clisp.org>
69658
69659         * lib/execute.h: New file, from GNU gettext.
69660         * lib/execute.c: New file, from GNU gettext.
69661         * lib/w32spawn.h: New file, from GNU gettext.
69662
69663 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69664
69665         Merge from diffutils.
69666
69667         * lib/file-type.c (file_type): Add typed memory objects.
69668         * lib/file-type.h (S_TYPEISTMO): New macro.
69669
69670         * lib/c-stack.h (c_stack_action): Remove argv argument.
69671         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69672         (die): Don't calculate message unless segv_action returns.
69673         (get_stack_location, min_address_from_argv, max_address_from_argv,
69674         volatile stack_base, volatile_stack_size): Remove.
69675         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69676         that every segmentation violation is a stack overflow.  (Ouch!)
69677         See Debian bug 136249 (still outstanding) for more info about why
69678         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69679
69680 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69681
69682         Exit-status fix from coreutils.
69683
69684         Use exit_failure consistently in place of EXIT_FAILURE,
69685         so that program exit statuses are consistent on failure.
69686
69687         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69688         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69689         * lib/argmatch.h: Comment fix to match the above.
69690         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69691         Now a macro referring to exit_failure, instead of a separate
69692         variable.  Include "exitfail.h" to get it.
69693         * lib/xstrtol.h: Include "exitfail.h".
69694         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69695
69696         * lib/long-options.c (parse_long_options): Use prototype
69697         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69698         for clarity.
69699
69700 2004-01-21  Jim Meyering  <jim@meyering.net>
69701
69702         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69703         so as not to conflict with a different-sized __mktime_internal
69704         function in GNU libc.
69705         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69706         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69707
69708 2004-01-20  Karl Berry  <karl@gnu.org>
69709
69710         * config/config.guess: update from config.
69711
69712         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69713
69714 2004-01-20  Bruno Haible  <bruno@clisp.org>
69715
69716         Safer stack allocation.
69717         * lib/setenv.c: Include allocsa.h.
69718         (alloca): Remove fallback definition.
69719         (freea): Remove macro.
69720         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69721         instead of freea.
69722
69723 2004-01-20  Bruno Haible  <bruno@clisp.org>
69724
69725         * m4/eealloc.m4: New file, from GNU gettext.
69726
69727 2004-01-20  Bruno Haible  <bruno@clisp.org>
69728
69729         * m4/allocsa.m4: New file, from GNU gettext.
69730
69731 2004-01-20  Bruno Haible  <bruno@clisp.org>
69732
69733         * lib/xallocsa.h: New file, from GNU gettext.
69734         * lib/xallocsa.c: New file, from GNU gettext.
69735
69736 2004-01-20  Bruno Haible  <bruno@clisp.org>
69737
69738         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69739
69740 2004-01-20  Bruno Haible  <bruno@clisp.org>
69741
69742         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69743         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69744         specially.
69745
69746 2004-01-20  Bruno Haible  <bruno@clisp.org>
69747
69748         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69749         patch.
69750
69751 2004-01-20  Bruno Haible  <bruno@clisp.org>
69752
69753         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69754
69755 2004-01-20  Bruno Haible  <bruno@clisp.org>
69756
69757         * lib/eealloc.h: New file.
69758
69759 2004-01-20  Bruno Haible  <bruno@clisp.org>
69760
69761         * lib/binary-io.h: Avoid warnings on Cygwin.
69762
69763 2004-01-20  Bruno Haible  <bruno@clisp.org>
69764
69765         * lib/allocsa.h: New file, from GNU gettext.
69766         * lib/allocsa.c: New file, from GNU gettext.
69767
69768 2004-01-18  Karl Berry  <karl@gnu.org>
69769
69770         * doc/gpl.texi, doc/lgpl.texi: new files.
69771
69772 2004-01-18  Karl Berry  <karl@gnu.org>
69773
69774         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69775         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69776
69777 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69778
69779         Merge from coreutils.
69780
69781         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69782         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69783         (gl_DEFAULT_POSIX2_VERSION): Move
69784         the documentation from 'configure' into 'config.hin',
69785         so that 'configure --help' isn't burdened by it and
69786         we don't have to worry about its formatting there.
69787         Reword the documentation so that it's more succinct
69788         and can be run together into a single paragraph.
69789         * m4/same.m4 (gl_SAME): Check for pathconf.
69790
69791 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69792
69793         Merge from coreutils.
69794
69795         * lib/posixver.c: Include posixver.h.
69796
69797         * lib/same.c: Include <stdbool.h>, <limits.h>.
69798         (_POSIX_NAME_MAX): Define if not defined.
69799         (MIN): New macro.
69800         (same_name): If file names are silently truncated, report
69801         that the file names are the same if they are the same after
69802         the silent truncation.
69803
69804         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69805         conversion function.
69806         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69807         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69808         longer needed.
69809
69810 2004-01-15  Jim Meyering  <jim@meyering.net>
69811
69812         Merge from coreutils.
69813
69814         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69815         if no library is required.
69816         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69817         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69818         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69819         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69820         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69821         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69822         value, $ac_cv_search_crypt, if it's "none required".
69823         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69824         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69825         not gl_FUNC_GETLOADAVG.
69826         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69827         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69828
69829 2004-01-15  Jim Meyering  <jim@meyering.net>
69830
69831         Merge from coreutils.
69832
69833         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69834         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69835         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69836
69837         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69838         optional configure-time default.
69839
69840         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69841
69842         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69843
69844 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69845
69846         Merge from coreutils.
69847
69848         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69849         value, $ac_cv_search_nanosleep, if it's "none required".
69850
69851 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69852
69853         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69854         with like-named macro in fnmatch.c.
69855         (EXT): Use an internal constant instead.
69856
69857         Merge fnmatch patches from glibc.
69858         * lib/fnmatch.c (mbsinit): Remove define.
69859         Add libc_hidden_ver (__fnmatch, fnmatch).
69860         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69861         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69862
69863 2004-01-14  Karl Berry  <karl@gnu.org>
69864
69865         * config/install-sh: update from automake.
69866
69867 2004-01-13  Karl Berry  <karl@gnu.org>
69868
69869         * config/install-sh: update from automake.
69870
69871 2004-01-09  Karl Berry  <karl@gnu.org>
69872
69873         * config/install-sh: update from automake.
69874
69875 2004-01-05  Karl Berry  <karl@gnu.org>
69876
69877         * config/config.{sub,guess}: update from config.
69878
69879 2003-12-31  Karl Berry  <karl@gnu.org>
69880
69881         * config/depcomp: update from automake.
69882
69883 2003-12-14  Karl Berry  <karl@gnu.org>
69884
69885         * lib/config.charset: update from gettext-runtime.
69886
69887 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69888
69889         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69890         Bug reported by Alfred M. Szmidt.
69891
69892 2003-12-03  Bruno Haible  <bruno@clisp.org>
69893
69894         * m4/gettext.m4: Upgrade from gettext-0.13.
69895         * m4/po.m4: Upgrade from gettext-0.13.
69896         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69897         * m4/intmax.m4: New file, from gettext-0.13.
69898         * m4/printf-posix.m4: New file, from gettext-0.13.
69899
69900 2003-11-29  Karl Berry  <karl@gnu.org>
69901
69902         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69903
69904 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69905             Bruno Haible  <bruno@clisp.org>
69906
69907         * lib/printf-parse.h: Don't include sys/types.h.
69908         (ARG_NONE): New macro.
69909         (char_directive): Change type of *arg_index fields to size_t.
69910         * lib/printf-parse.c: Don't include sys/types.h.
69911         (SSIZE_MAX): Remove macro.
69912         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69913         Remove unnecessary overflow check.
69914         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69915         fields.
69916
69917 2003-11-25  Bruno Haible  <bruno@clisp.org>
69918
69919         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69920
69921 2003-11-25  Bruno Haible  <bruno@clisp.org>
69922
69923         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69924         gt_TYPE_SSIZE_T.
69925
69926 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69927
69928         * modules/alloca: Remove dependency on xalloc.
69929
69930 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69931
69932         * lib/alloca.c: Remove dependency on xalloc module.
69933         (xalloc_die): Remove.
69934         (memory_full) [!defined emacs]: New macro.
69935         [!defined emacs]: Don't include xalloc.h.
69936         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69937         address arithmetic overflows.  Change datatypes a bit to avoid
69938         unnecessary casts.
69939
69940 2003-11-22  Jim Meyering  <jim@meyering.net>
69941
69942         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69943         s/size/size_t/.
69944
69945 2003-11-21  Karl Berry  <karl@gnu.org>
69946
69947         * config/config.{sub,guess}: update from config.
69948
69949 2003-11-18  Karl Berry  <karl@gnu.org>
69950
69951         * config/config.{sub,guess}: update from config.
69952
69953         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69954
69955 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69956
69957         * README: Mention that S+T cannot overflow if S is the size of
69958         an existing object and T is sufficiently small.
69959
69960 2003-11-17  Jim Meyering  <jim@meyering.net>
69961
69962         On systems without utime and without a utimes function capable of
69963         dealing with a NULL struct utimbuf* argument, this utime replacement
69964         could -- in unusual circumstances -- leak a file descriptor.
69965         * lib/utime.c: Include <unistd.h> and <errno.h>.
69966         (utime_null): Be sure to close `fd' and to preserve errno.
69967         Reported by Geoff Collyer via Arnold Robbins.
69968
69969 2003-11-17  Bruno Haible  <bruno@clisp.org>
69970
69971         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69972         (Depends-on): Add xsize.
69973
69974 2003-11-17  Bruno Haible  <bruno@clisp.org>
69975
69976         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69977
69978 2003-11-17  Bruno Haible  <bruno@clisp.org>
69979
69980         * lib/vasnprintf.c (alloca): Remove fallback definition.
69981         (freea): Remove definition.
69982         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69983         Reported by Paul Eggert.
69984
69985 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69986             Bruno Haible  <bruno@clisp.org>
69987
69988         Protect against address arithmetic overflow.
69989         * lib/printf-args.h: Include stddef.h.
69990         (arguments): Change type of field 'count' to size_t.
69991         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69992         'unsigned int' where appropriate.
69993         * lib/printf-parse.h: Include sys/types.h.
69994         (char_directive): Change type of *arg_index fields to ssize_t.
69995         (char_directives): Change type of fields 'count', max_*_length to
69996         size_t.
69997         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69998         (SSIZE_MAX): Define fallback value.
69999         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70000         instead of 'int' where appropriate. Check a_allocated, d_allocated
70001         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70002         * lib/vasnprintf.c: Include xsize.h.
70003         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70004         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70005         overflow. Avoid wraparound when converting a width or precision from
70006         decimal to binary.
70007
70008 2003-11-16  Bruno Haible  <bruno@clisp.org>
70009
70010         Update from GNU gettext.
70011         * lib/printf-parse.c: Generalize to it can be compiled for wide
70012         strings.
70013         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70014         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70015         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70016         SNPRINTF): New macros.
70017         Don't include <alloca.h> if the file is used inside libintl.
70018         (local_wcslen): New function, for Solaris 2.5.1.
70019         (VASNPRINTF): Use it instead of wcslen.
70020
70021 2003-11-16  Bruno Haible  <bruno@clisp.org>
70022
70023         * lib/xsize.h (xmax): New function.
70024         (xsum, xsum3, xsum4): Declare as "pure" functions.
70025
70026 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70027
70028         * modules/xalloc (Files): Undo latest change, since xalloc.h
70029         no longer needs SIZE_MAX or PTRDIFF_MAX.
70030
70031 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70032
70033         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70034         gl_PTRDIFF_MAX.
70035
70036 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70037
70038         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70039         "return", to pacify some unknown compiler.  Problem reported
70040         by Joerg Schilling.
70041
70042 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70043
70044         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70045         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70046         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70047         heuristic is just as accurate as far as we know, and it removes a
70048         dependency on size_max.m4 and ptrdiff_max.m4.
70049
70050 2003-11-11  Bruno Haible  <bruno@clisp.org>
70051
70052         * modules/xsize (Files): Add m4/size_max.m4.
70053         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70054
70055 2003-11-11  Bruno Haible  <bruno@clisp.org>
70056
70057         * m4/size_max.m4: New file.
70058         * m4/ptrdiff_max.m4: New file.
70059         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70060         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70061         (gl_XALLOC): Invoke it.
70062
70063 2003-11-11  Bruno Haible  <bruno@clisp.org>
70064
70065         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70066         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70067         defined.
70068
70069 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70070
70071         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70072         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70073         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70074         From Bruno Haible.
70075         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70076         not (size_t) -1, since it's defined here.
70077
70078 2003-11-09  Karl Berry  <karl@gnu.org>
70079
70080         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70081
70082 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70083
70084         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70085         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70086         Reject sizes of exactly SIZE_MAX bytes.
70087         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70088         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70089
70090 2003-11-05  Bruno Haible  <bruno@clisp.org>
70091
70092         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70093         SIZE_MAX defined in <limits.h> on Solaris.
70094
70095 2003-11-04  Jim Meyering  <jim@meyering.net>
70096
70097         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70098         variable names, rather than @VAR@.
70099         * modules/poll: Likewise.
70100
70101 2003-11-04  Bruno Haible  <bruno@clisp.org>
70102
70103         * modules/xsize: New file.
70104         * modules/linebreak: Depend on xsize.
70105         * MODULES.html.sh (func_all_modules): Add xsize.
70106
70107 2003-11-04  Bruno Haible  <bruno@clisp.org>
70108
70109         * m4/xsize.m4: New file.
70110
70111 2003-11-04  Bruno Haible  <bruno@clisp.org>
70112
70113         * lib/xsize.h: New file.
70114         * lib/linebreak.c: Include xsize.h.
70115         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70116         argument for overflow.
70117         Suggested by Paul Eggert.
70118
70119 2003-11-03  Karl Berry  <karl@gnu.org>
70120
70121         * config/config.{guess,sub}: update from config.
70122
70123 2003-11-03  Jim Meyering  <jim@meyering.net>
70124
70125         * modules/userspec (lib_SOURCES): Add userspec.h.
70126         (Include): Add "userspec.h".
70127         Improve description.
70128
70129 2003-11-03  Jim Meyering  <jim@meyering.net>
70130
70131         * lib/userspec.c: Include "userspec.h".
70132         * lib/userspec.h: New file.
70133
70134 2003-11-03  Bruno Haible  <bruno@clisp.org>
70135
70136         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70137
70138 2003-11-03  Bruno Haible  <bruno@clisp.org>
70139
70140         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70141         available, to avoid (extremely rare) race condition.
70142         Suggested by Paul Eggert.
70143
70144 2003-11-02  Karl Berry  <karl@gnu.org>
70145
70146         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70147
70148 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70149
70150         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70151         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70152         (read_filesystem_list): Set and use me_type_malloced.
70153         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70154         whatever the type happens to be), for brevity and consistency.
70155         Check for size calculation overflow on Alphas running OSF/1.
70156
70157 2003-10-31  Jim Meyering  <jim@meyering.net>
70158
70159         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70160
70161         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70162
70163 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70164             Bruno Haible  <bruno@clisp.org>
70165
70166         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70167         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70168
70169 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70170
70171         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70172         netbsd*-gnu*.  Suggested by Robert Millan.
70173
70174 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70175
70176         * modules/group-member: Depend on stdbool.
70177
70178 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70179
70180         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70181
70182 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70183
70184         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70185         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70186         after the 'gnu' in these cases.  This fixes some bugs in the
70187         previous change, and is based on suggestions by Robert Millan.
70188
70189 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70190
70191         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70192         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70193         no longer needed.
70194         * lib/quotearg.c (quotearg_n_options): Use it.
70195         * lib/group-member.c: Include <stdbool.h>.
70196         (free_group_info): Arg is now const *; don't free arg.
70197         (get_group_info): Now returns bool and accepts struct group_info *,
70198         rather than returning a malloc'ed struct group_info *.
70199         All uses changed.  Check for overflow in internal size calculation.
70200
70201         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70202         rather than xmalloc/xrealloc.
70203         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70204         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70205         conformance bug: the old code used a pointer after freeing the
70206         storage that it addressed.
70207         * lib/hash.c (hash_initialize): Simplify the code by using
70208         xalloc_oversized rather than doing it by hand.
70209         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70210         the buffer preserved.  Use free and xmalloc instead.
70211         * lib/quotearg.c (quotearg_n_options): Likewise.
70212         Use a simpler test for size overflow.  Don't use xalloc_oversized
70213         because unsigned int might be wider than size_t (!); this suggests
70214         that we should switch from unsigned int to size_t for slot numbers.
70215
70216 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70217
70218         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70219         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70220         NetBSD kernels.  Requested by Richard Stallman.
70221
70222 2003-10-27  Paul Eggert  <eggert@twinsun.com>
70223
70224         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
70225         to allocate the returned structure.  Do not allocate a subarray,
70226         as x2nrealloc will do that.
70227         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
70228         instead of xnrealloc.
70229         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
70230
70231 2003-10-27  Bruno Haible  <bruno@clisp.org>
70232
70233         * lib/stdbool_.h: Better support for BeOS.
70234
70235 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70236
70237         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
70238         now uses inline.
70239
70240 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70241
70242         * lib/xalloc.h (xalloc_oversized): New static inline function, for
70243         callers that want to do their own size-overflow checking.  Include
70244         <stdbool.h>, since xalloc_oversized returns bool.
70245         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
70246         to use xalloc_oversized.
70247
70248         Add two functions x2realloc, x2nrealloc, for programs that grow
70249         arrays dynamically by doubling their sizes.
70250         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
70251         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
70252         New functions.
70253
70254         Port to C99 semantics for 'inline' of external functions.
70255         Bug reported by Bruno Haible.
70256         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
70257         with the old contents of xnmalloc.
70258         (xnmalloc, xmalloc): Use it.
70259         (xnrealloc_inline): New static inline function,
70260         with the old contents of xnrealloc.
70261         (xnrealloc, xrealloc): Use it.
70262
70263         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
70264         that.
70265
70266 2003-10-26  Karl Berry  <karl@gnu.org>
70267
70268         * config/srclist.txt (COPYING.DOC): no longer available from
70269         /gd/gnuorg; don't know where the ultimate source is.
70270
70271 2003-10-25  Paul Eggert  <eggert@twinsun.com>
70272
70273         Fix several address-calculation bugs in the hash modules,
70274         plus some minor code cleanup.
70275
70276         * lib/hash.h: Include <stdbool.h>, for bool.
70277         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
70278         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
70279         hash_get_n_entries, hash_get_max_bucket_length,
70280         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
70281         hash_rehash): Use size_t rather than unsigned.
70282         * lib/hash.c (struct hash_table, hash_get_n_buckets,
70283         hash_get_n_buckets_used, hash_get_n_entries,
70284         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
70285         hash_get_entries, hash_do_for_each, hash_string, is_prime,
70286         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
70287         Likewise.
70288         (SIZE_MAX): Define if not defined.
70289         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
70290         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
70291         hash_print):
70292         Use const * when possible.
70293         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
70294         (check_tuning): Fix bug: if tuning parameters were very close to
70295         0 or 1, rounding errors could have caused subscript violations.
70296         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
70297         (hash_initialize): Add 'fail:' label
70298         to free table and return NULL, and use it to simplify code.
70299         Use calloc rather than clearing the storage ourself.
70300         (hash_initialize, hash_rehash): Check for arithmetic overflow in
70301         buffer size calculations.
70302         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
70303         Include <stddef.h>, for size_t.
70304         * lib/hash-pjw.c (hash_pjw): Likewise.
70305         Switch to method described by Bruno Haible.
70306         Include <limits.h>, for CHAR_BIT.
70307         (SIZE_BITS): New macro.
70308
70309 2003-10-23  Paul Eggert  <eggert@twinsun.com>
70310
70311         * m4/getline.m4 (AM_FUNC_GETLINE):
70312         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
70313         hosts.  Problem reported by Derek Robert Price in
70314         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
70315         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
70316         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
70317
70318 2003-10-21  Paul Eggert  <eggert@twinsun.com>
70319
70320         * lib/getndelim2.c (getndelim2): When size calculation overflows,
70321         ceiling the allocation at NMAX bytes rather than silently
70322         discarding input bytes before NMAX is reached.  This makes
70323         a difference only if NMAX exceeds SIZE_MAX / 2.
70324
70325         * lib/obstack.c: Merge from glibc.
70326         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
70327         Add libc_hidden_def (_obstack_newchunk).
70328         (_obstack_free) [! defined _LIBC]: Remove.
70329         [defined _LIBC]: Make a strong alias from obstack_free, rather than
70330         a clone of the function body.
70331         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
70332         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
70333
70334         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
70335         glibc.
70336         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
70337         arg to memcpy.
70338
70339         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
70340         (obstack_ptr_grow_fast, obstack_int_grow_fast):
70341         Don't use lvalue casts, as GCC plans to remove support for them
70342         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
70343         was also present in the non-GCC version, indicating that this
70344         code had always been buggy and had never been widely used.
70345         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
70346         Use the fast variant of each macro, rather than copying the
70347         definiens of the fast variant; that way, we'll be more likely to
70348         catch future bugs in the fast variants.
70349
70350 2003-10-20  Bruno Haible  <bruno@clisp.org>
70351
70352         * modules/wait-process: New file.
70353         * MODULES.html.sh (func_all_modules): Add wait-process.
70354
70355 2003-10-20  Bruno Haible  <bruno@clisp.org>
70356
70357         * m4/wait-process.m4: New file.
70358
70359 2003-10-20  Bruno Haible  <bruno@clisp.org>
70360
70361         * lib/wait-process.h: New file, from GNU gettext.
70362         * lib/wait-process.c: New file, from GNU gettext.
70363
70364 2003-10-19  Jim Meyering  <jim@meyering.net>
70365
70366         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
70367         HPUX 10.20.
70368
70369 2003-10-18  Karl Berry  <karl@gnu.org>
70370
70371         * config/config.guess: update from config.
70372
70373 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70374
70375         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
70376         (getgroups): First arg is int, not size_t.
70377         Don't let 'free' mangle errno.
70378
70379 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70380
70381         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
70382
70383 2003-10-16  Karl Berry  <karl@gnu.org>
70384
70385         * config/config.{guess,sub}: update from config.
70386
70387 2003-10-16  Jim Meyering  <jim@meyering.net>
70388
70389         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
70390         memcpy.
70391
70392 2003-10-15  Paul Eggert  <eggert@twinsun.com>
70393
70394         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
70395         (SIZE_MAX): Remove.
70396         (new_exclude, add_exclude_file): Initial size no longer needs to
70397         be a power of 2.
70398         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
70399         our own address arithmetic overflow checking.
70400
70401         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
70402         (fnmatch): Do not alloca more than 2000 wide characters;
70403         instead, use malloc for large buffers.
70404         Check for address arithmetic overflow, and return -1
70405         with errno set to ENOMEM in that case.
70406         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
70407         (NEW_PATTERN): Do not alloca more than 8000 bytes;
70408         instead, return -1.  Check for address arithmetic overflow.
70409
70410 2003-10-14  Paul Eggert  <eggert@twinsun.com>
70411
70412         Handle invalid suffixes and overflow independently, so that
70413         callers can treat them independently as needed.  Fix some bugs in
70414         suffix handling, e.g., "100k@" was not diagnosed as an invalid
70415         suffix for a human-readable blocksize.  The major caller-visible
70416         change is the addition of a new
70417         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
70418         that both overflow and suffix chars were found.
70419
70420         * lib/human.c (humblock): Don't check separately for invalid suffix
70421         char; that is xstrtoumax's job (now that its bug is fixed).
70422         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
70423         INTMAX_MAX]: New macros.
70424         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
70425         TYPE_MAXIMUM): New macros.
70426         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
70427         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
70428         if overflow occurs, as it's what __strtol does and it's more useful
70429         in practice.
70430         (__xstrtol): If __strtol reports some error other than ERANGE,
70431         reflect it to the caller as LONGINT_INVALID.  If it reports
70432         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
70433         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
70434         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
70435         value.
70436         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
70437         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
70438         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
70439         [defined UINTMAX_MAX]: New macros.
70440
70441 2003-10-14  Bruno Haible  <bruno@clisp.org>
70442
70443         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
70444
70445 2003-10-14  Bruno Haible  <bruno@clisp.org>
70446
70447         * m4/sig_atomic_t: New file, from GNU gettext.
70448         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
70449
70450 2003-10-14  Bruno Haible  <bruno@clisp.org>
70451
70452         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
70453         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
70454         Also use volatile where needed.
70455
70456 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70457
70458         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
70459         Change maintainer from Bruno Haible to 'all'.
70460
70461 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70462
70463         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
70464
70465 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70466
70467         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
70468         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
70469         and define in terms of the other primitives.
70470         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
70471         (SIZE_MAX): Define if not already defined.
70472         (array_size_overflow): New function.
70473         (xalloc_die): Abort instead of exiting if 'error' returns.
70474         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
70475         (xmalloc, xrealloc): Use them.
70476         (xcalloc): Check for address arithmetic overflow.
70477         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
70478         a bit faster than strcpy.
70479
70480 2003-10-10  Simon Josefsson  <jas@extundo.com>
70481
70482         * modules/argp (Depends-on): Add restrict and strcase.
70483
70484 2003-10-10  Simon Josefsson  <jas@extundo.com>
70485
70486         * m4/argp.m4: Add AC_C_INLINE.
70487
70488 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70489
70490         Merge getpass from libc, plus a few fixes.
70491
70492         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
70493         Include <stdbool.h>.
70494         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
70495         __fsetlocking to empty.
70496         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
70497         do include <bits/libc-lock.h>.
70498         Do not include <fcntl.h>; not needed.
70499         [_LIBC]: Include <wchar.h>.
70500         (NOTCANCEL_MODE): New macro.
70501         (flockfile, funlockfile) [_LIBC]: New macros.
70502         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
70503         [!_LIBC]: New macros.
70504         (call_fclose): New function.
70505         (getpass): Use it.  Save tty stream separately; this simplifies the
70506         code and makes it more reliable if stdin happens to equal stdout.
70507         Invoke __fsetlocking on tty.
70508         Handle thread cancellation if needed.
70509         Namespace cleanup (use __tcgetattr, __getline).
70510         Use bool for Booleans.
70511         [USE_IN_LIBIO]: Handle wide streams.
70512         [!_LIBC]: Unconditionally do the fseek, since we don't know what
70513         stream might go where.
70514
70515         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
70516         doesn't have to include <stdio.h> before us.
70517         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
70518         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
70519         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
70520         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
70521         if not declared, so that we can use getpass.c code from libc without
70522         rewriting it.
70523         (flockfile, ftrylockfile, funlockfile): New macros.
70524
70525 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70526
70527         * modules/getpass: Depend on stdbool.
70528
70529 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70530
70531         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
70532
70533 2003-10-07  Karl Berry  <karl@gnu.org>
70534
70535         * config/config.{guess,sub}: update from config.
70536
70537 2003-10-06  Jim Meyering  <jim@meyering.net>
70538             Bruno Haible  <bruno@clisp.org>
70539
70540         This lets translators provide better translations for the
70541         "Written by ..." part of --version output.
70542         * lib/version-etc.h: Include stdarg.h.
70543         (version_etc_copyright): Declare as readonly.
70544         (version_etc): Make this function variadic with a NULL-terminated list
70545         of author name strings.
70546         (version_etc_va): New declaration.
70547         * lib/version-etc.c: Include stdarg.h, stdlib.h.
70548         (version_etc_copyright): Declare as readonly.
70549         (version_etc_va): New function. Provide a different translatable string
70550         for each possible number of authors < 10. Abbreviate when there are 10
70551         authors or more.
70552         (version_etc): Make this function variadic. Call version_etc_va.
70553         Suggestion from Gary V. Vaughan.
70554
70555         * lib/long-options.h (parse_long_options): Change prototype: the
70556         authors string is moved to the end and becomes variadic.
70557         * lib/long-options.c: Include stdarg.h.
70558         (parse_long_options): Make this function variadic, too.
70559         Call version_etc_va, not version_etc.
70560
70561 2003-10-06  Bruno Haible  <bruno@clisp.org>
70562
70563         * modules/version-etc-2: Remove file.
70564         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70565
70566 2003-10-06  Bruno Haible  <bruno@clisp.org>
70567
70568         * modules/fatal-signal: New file.
70569         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70570
70571 2003-10-06  Bruno Haible  <bruno@clisp.org>
70572
70573         * m4/fatal-signal.m4: New file.
70574         * m4/signalblocking.m4: New file, from GNU gettext.
70575
70576 2003-10-06  Bruno Haible  <bruno@clisp.org>
70577
70578         * lib/version-etc-2.h: Remove file.
70579         * lib/version-etc-2.c: Remove file.
70580
70581 2003-10-06  Bruno Haible  <bruno@clisp.org>
70582
70583         * lib/fatal-signal.h: New file, from GNU gettext.
70584         * lib/fatal-signal.c: New file, from GNU gettext.
70585
70586 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70587
70588         * README: Rework advice for preventing empty .o files.
70589         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70590         not <sys/types.h>.
70591
70592 2003-10-04  Karl Berry  <karl@gnu.org>
70593
70594         * lib/argp*: update from libc.
70595
70596 2003-10-04  Karl Berry  <karl@gnu.org>
70597
70598         * config/config.{guess,sub}: update from config.
70599
70600 2003-10-02  Bruno Haible  <bruno@clisp.org>
70601
70602         * modules/lchown (Include): Add lchown.h.
70603         * modules/time_r (Include): Use "..." syntax.
70604         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70605
70606 2003-10-01  Simon Josefsson  <jas@extundo.com>
70607
70608         * MODULES.html.sh (func_all_modules): Move gethostname from section
70609         'based on' to section 'lacking' POSIX:2001.
70610
70611 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70612
70613         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70614         to output mode on the same stream.
70615
70616 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70617
70618         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70619         Fix arg typo in previous patch.
70620
70621 2003-09-28  Jim Meyering  <jim@meyering.net>
70622
70623         * lib/error.c: Correct cpp indentation.
70624
70625 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70626
70627         * modules/free: New file.
70628
70629 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70630
70631         * m4/free.m4: New file.
70632
70633 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70634
70635         * lib/minmax.h (MIN, MAX)
70636         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70637         Omit the special code that used __typeof__, since we worry that
70638         it could be more trouble than it's worth.  See:
70639         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70640         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70641
70642         * lib/free.c: New file.
70643
70644 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70645
70646         Trivial fixes to Makefile.am parts of module listings.
70647         * modules/strstr: Append strstr.h to lib_SOURCES.
70648         * modules/strcase: Likewise, for strcase.h.
70649
70650 2003-09-27  Karl Berry  <karl@gnu.org>
70651
70652         * config/mkinstalldirs: update from automake.
70653
70654 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70655
70656         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70657         (error_tail): Do not loop, reallocating temporary buffer, since
70658         the output cannot contain more wide characters than the input
70659         contains bytes, the size must be big enough already.  This avoids
70660         one potential size overflow calculation.  Check for size overflow
70661         when calculating temporary buffer size.  Free temporary buffer
70662         when done, if it was allocated with malloc; this plugs a memory
70663         leak.  Remove casts from void * to pointers, that are no longer
70664         needed now that we're assuming C89 or better.
70665
70666         Merge error changes from glibc.
70667
70668         * lib/error.c, error.h: Update copyright notice header to match glibc.
70669         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70670         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70671         Disable cancellation while printing error.
70672         * lib/error.h: Prepend __ to parameter names.
70673
70674 2003-09-26  Jim Meyering  <jim@meyering.net>
70675
70676         * lib/error.c (error_tail): Move some declarations
70677         into inner scope where the local variables are used.
70678
70679 2003-09-26  Bruno Haible  <bruno@clisp.org>
70680
70681         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70682         stpncpy().
70683         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70684
70685 2003-09-26  Bruno Haible  <bruno@clisp.org>
70686
70687         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70688         (stpncpy): Define as alias for gnu_stpncpy.
70689         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70690
70691 2003-09-25  Simon Josefsson  <jas@extundo.com>
70692
70693         * lib/xgetdomainname.h: New file.
70694         * lib/xgetdomainname.c: New file.
70695
70696 2003-09-25  Simon Josefsson  <jas@extundo.com>
70697             Bruno Haible  <bruno@clisp.org>
70698
70699         * modules/getdomainname: New file.
70700         * modules/xgetdomainname: New file.
70701         * MODULES.html.sh (func_all_modules): Add getdomainname,
70702         xgetdomainname.
70703
70704 2003-09-25  Simon Josefsson  <jas@extundo.com>
70705             Bruno Haible  <bruno@clisp.org>
70706
70707         * m4/getdomainname.m4: New file.
70708
70709 2003-09-25  Simon Josefsson  <jas@extundo.com>
70710             Bruno Haible  <bruno@clisp.org>
70711
70712         * lib/getdomainname.h: New file.
70713         * lib/getdomainname.c: New file.
70714
70715 2003-09-25  Karl Berry  <karl@gnu.org>
70716
70717         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70718
70719 2003-09-25  Karl Berry  <karl@gnu.org>
70720
70721         * config/install-sh: update from automake.
70722
70723 2003-09-25  Bruno Haible  <bruno@clisp.org>
70724
70725         * modules/version-etc-2: New file, from modules/version-etc with
70726         modifications.
70727         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70728
70729 2003-09-25  Bruno Haible  <bruno@clisp.org>
70730
70731         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70732         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70733
70734 2003-09-24  Simon Josefsson  <jas@extundo.com>
70735
70736         * modules/xgethostname: Add xgethostname.h.
70737
70738 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70739
70740         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70741         the buffer associated with the argument.  Bug reported by
70742         Simon Josefsson.
70743
70744 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70745
70746         * README: Document assumptions that 'int' is at least 32 bits
70747         wide, that integer arithmetic is 2's complement without overflow,
70748         that there are no holes in integer values, that adding sizes of
70749         two nonoverlapping objects can't overflow, and that all-bits-zero
70750         yields scalar zero.  Fix spelling and capitalization typos.
70751
70752 2003-09-19  Karl Berry  <karl@gnu.org>
70753
70754         * lib/argp.h: update from libc.
70755
70756 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70757
70758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70759         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70760         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70761
70762 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70763
70764         * gnulib-tool: Use "test -h", not "test -L", for portability
70765         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70766         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70767         (sed_extract_prog): Issue s commands one-by-one, rather than
70768         using \| in one s command.
70769
70770 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70771
70772         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70773         input error, instead of returning NULL the next time we are called
70774         (and therefore losing track of errno).
70775
70776 2003-09-16  Bruno Haible  <bruno@clisp.org>
70777
70778         * gnulib-tool (func_create_testdir): Warn about duplicated
70779         dependencies.
70780
70781 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70782
70783         * modules/argmatch, modules/fatal, modules/obstack,
70784         modules/xalloc, modules/xgethostname: Sort dependencies by
70785         importance, not alphabetically.
70786
70787 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70788
70789         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70790         fails, so that the caller gets the proper errno.
70791
70792         * lib/readutmp.c (read_utmp): Likewise.
70793         Check for fstat error.  Close stream and free storage
70794         when failing.
70795
70796 2003-09-14  Karl Berry  <karl@gnu.org>
70797
70798         * config/srclist.txt (strdup.c): disable for c89 changes.
70799
70800 2003-09-14  Jim Meyering  <jim@meyering.net>
70801
70802         * lib/getloadavg.c: Correct cpp indentation.
70803         * lib/strdup.c: Likewise.
70804         * lib/vasnprintf.c: Likewise.
70805
70806 2003-09-14  Bruno Haible  <bruno@clisp.org>
70807
70808         * modules/fwriteerror: New file.
70809         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70810
70811 2003-09-14  Bruno Haible  <bruno@clisp.org>
70812
70813         * lib/fwriteerror.h: New file.
70814         * lib/fwriteerror.c: New file.
70815
70816 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70817
70818         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70819         modules/xgethostname, modules/xalloc: Depend on exit.
70820
70821 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70822
70823         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70824
70825         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70826         and AC_MINIX, too, so that their extensions are available.
70827
70828         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70829         This macro has been superseded by gl_BACKUPFILE.
70830
70831         More patches to assume C89 or better.
70832
70833         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70834
70835         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70836         unconditionally.
70837         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70838         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70839         Include <string.h>, <stdlib.h> unconditionally.
70840         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70841         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70842         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70843         headers or for string.h.
70844         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70845         or strtoul.
70846
70847         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70848         headers.
70849         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70850         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70851         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70852         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70853         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70854         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70855         memcpy, memset.
70856         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70857         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70858         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70859         strtol.
70860         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70861         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70862         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70863         strtoul.
70864
70865 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70866
70867         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70868         * lib/obstack.c [!defined _LIBC]: Likewise.
70869         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70870         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70871         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70872
70873         More changes to assume C89 or better.
70874
70875         * lib/error.c (error_tail): Assume vprintf.
70876
70877         * lib/argmatch.c (getenv): Remove decl.
70878         * lib/progreloc.c (get_full_program_name): Define via prototype.
70879         * lib/setenv.c (clearenv): Likewise.
70880         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70881         needed.
70882         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70883         (malloc, memcpy): Remove decls.
70884         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70885         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70886         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70887         (memcpy): Remove macro.
70888         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70889         (__P): Remove.  All uses removed.
70890         (PTR): Remove.  All uses changed to void *.
70891         (CHAR_BIT, NULL): Remove.
70892         (spaces, zeros, memset_space, memset_zero)
70893         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70894         Remove.
70895         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70896         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70897         Define with prototype.
70898         Remove now-unnecessary prototype decl.
70899         (extra_args_spec): Assume ANSI C.  All uses changed.
70900         (extra_args_spec_iso): Remove.
70901         (my_strftime, emacs_strftimeu): Define via prototype.
70902         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70903         unconditionally.
70904         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70905         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70906         (strtoul, strtol): Remove decls.
70907         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70908         LONG_MAX): Remove.
70909         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70910         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70911         (LOCALE_PARAM_PROTO): New macro.
70912         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70913         (INTERNAL (strtol), strtol): Define with a prototype.
70914         (PARAMS): Remove.  All uses removed.
70915         * lib/tempname.c: Include <string.h> unconditionally.
70916         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70917         * lib/xgethostname.c (main): Define with a prototype.
70918         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70919         Include <stdlib.h> unconditionally.
70920         (calloc, malloc, realloc, free): Remove decls.
70921         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70922         Include <stdlib.h> unconditionally.  Sort include file names.
70923         (strtod): Remove.
70924         (xstrtod): Define with a prototype.
70925         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70926         (strtol, strtoul): Remove decls.
70927
70928 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70929
70930         More patches to assume C89 or better.
70931         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70932         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70933         string.h, memchr, STDC_HEADERS.
70934
70935 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70936
70937         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70938         Include <stdlib.h>, <string.h> unconditionally.
70939         Remove now-unnecessary cast to char *.
70940         * lib/strnlen.c: Include <string.h> unconditionally.
70941         * lib/yesno.c (yesno): Define with a prototype.
70942
70943 2003-09-11  Bruno Haible  <bruno@clisp.org>
70944
70945         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70946
70947 2003-09-10  Jim Meyering  <jim@meyering.net>
70948
70949         * lib/error.c: Correct indentation of cpp directives.
70950
70951 2003-09-10  Bruno Haible  <bruno@clisp.org>
70952
70953         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70954         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70955         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70956         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70957         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70958         <stdlib.h> and <string.h> checks.
70959         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70960         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70961
70962 2003-09-10  Bruno Haible  <bruno@clisp.org>
70963
70964         * lib/strcspn.c: Include <string.h> unconditionally.
70965         * lib/strpbrk.c: Include <string.h> unconditionally.
70966         * lib/strstr.c: Include <string.h> unconditionally.
70967         * lib/unicodeio.c: Include <string.h> unconditionally.
70968         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70969         * lib/unsetenv.c: Likewise.
70970         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70971         * lib/yesno.c: Include <stdlib.h> unconditionally.
70972         (rpmatch): Add prototype.
70973
70974 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70975
70976         More patches to assume C89 or better.
70977         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70978         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70979         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70980         or for string.h.
70981         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70982         stdlib.h.
70983         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70984         C headers.
70985         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70986         string.h.
70987         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70988         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70989         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70990         or for string.h.
70991         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70992         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70993         C headers.
70994         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70995         memcpy.
70996         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70997         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70998         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70999         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71000         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71001         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71002         string.h, free.
71003         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71004         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71005         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71006         C headers, or for string.h.
71007         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71008         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71009         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71010         headers, memory.h, stdlib.h, string.h, strings.h.
71011         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71012         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71013         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71014         strchr.
71015         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71016         headers, memory.h, string.h.
71017         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71018         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71019         free.
71020         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71021         headers.
71022         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71023         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71024         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71025         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71026         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71027
71028 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71029
71030         More K&R removal.
71031
71032         * lib/acosl.c (main): Use a prototype.
71033         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71034         tanl.c: Likewise.
71035
71036         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71037
71038         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71039         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71040         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71041         with a prototype.
71042         * lib/getopt.c (const): Remove macro.
71043         Include <string.h> unconditionally.
71044         (my_index): Remove; all uses changed to strchr.
71045         (strlen): Remove decl.
71046         (exchange): Remove forward decl; no longer needed.
71047         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71048         Define with prototype.
71049         * lib/getopt1.c (const): Remove macro.
71050         (getopt_long, getopt_long_only, main): Define with prototype.
71051
71052         * lib/getugroups.c: Include <string.h> unconditionally.
71053
71054         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71055         (getusershell, setusershell, endusershell, readname, main):
71056         Define with prototypes.
71057
71058         * lib/group-member.c: Include group-member.h first.
71059         Include <stdlib.h> unconditionally.
71060
71061         * lib/hard-locale.c: Include hard-locale.h first.
71062         Include <stdlib.h>, <string.h> unconditionally.
71063
71064         * lib/hash.c (free, malloc): Remove decls.
71065         Include <stdlib.h> unconditionally.
71066
71067         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71068         (getenv): Do not declare.
71069
71070         * lib/idcache.c: Include <string.h> unconditionally.
71071
71072         * lib/long-options.c: Include long-options.h first, to test interface.
71073         Include <stdlib.h> unconditionally.
71074
71075         * lib/makepath.c: Include makepath.h first, to test interface.
71076         Include <stdlib.h> and <string.h> unconditionally.
71077
71078         * lib/linebuffer.c: Include <stdlib.h>.
71079         (free): Remove decl.
71080
71081         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71082         stddef.h. rpl_malloc returns void *, not char *.
71083         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71084         prototype.
71085
71086         * lib/md5.h: Include <limits.h> unconditionally.
71087         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71088         (__P): Remove; all uses removed.
71089         * lib/md5.c: Include "md5.h" first.
71090         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71091         md5_buffer, md5_process_bytes, md5_process_block):
71092         Define with prototypes.
71093         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71094         * lib/sha.c: Include "sha.h" first.
71095         Include <stdlib.h>, <string.h> unconditionally.
71096
71097         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71098         * lib/memcmp.c (__ptr_t): Likewise.
71099         * lib/memrchr.c (__ptr_t): Likewise.
71100         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71101         Include <string.h> unconditionally.
71102         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71103         * lib/memchr.c: Include <stdlib.h> unconditionally.
71104         * lib/memchr.c (LONG_MAX): Remove.
71105         * lib/memrchr.c (LONG_MAX): Likewise.
71106         * lib/memchr.c (__memchr): Define via a prototype.
71107         * lib/memrchr.c (__memrchr): Likewise.
71108         * lib/memcmp.c (__P): Remove, and remove all uses.
71109         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71110         Remove forward decls; no longer needed.
71111         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71112         Use types required by C89 in prototype.
71113
71114         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71115         * lib/savedir.c: Likewise.
71116         * lib/mkdir.c (free): Remove decl.
71117         * lib/rmdir.c (rmdir): Define with a prototype.
71118         * lib/savedir.c: Include savedir.h first, to test interface.
71119
71120         * lib/mktime.c (STDC_HEADERS): Remove.
71121         Include <stdlib.h>, <string.h> unconditionally.
71122
71123         * lib/modechange.c: Include <stdlib.h> unconditionally.
71124         (malloc): Remove decl.
71125
71126         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71127         (free): Remove decl.
71128
71129         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71130         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71131         (This type really should be intptr_t, but that's a C99ism.)
71132         (_obstack_memcpy): Remove: all uses changed to memcpy.
71133         Include <string.h> unconditionally.
71134         (struct obstack): Assume __STDC__ for types of members
71135         chunkfun, freefun, extra_arg.
71136         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71137         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71138         obstack_begin, obstack_specify_allocation,
71139         obstack_specify_allocation_with_arg, obstack_chunkfun,
71140         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71141         Remove unprototyped decls and the macros that use them.
71142         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71143         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71144         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71145         (defined __STDC__ && __STDC__)]:
71146         Remove nonprototyped code.
71147         Include <stdlib.h> unconditionally.
71148         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71149         _obstack_allocated_p, _obstack_free, obstack_free,
71150         _obstack_memory_used, print_and_abort):
71151         Define using prototypes.
71152         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71153         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71154         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71155         obstack_next_free, obstack_object_size, obstack_room) [0]:
71156         Remove unused, unprototyped code.
71157
71158         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71159
71160         * lib/physmem.c (physmem_total, physmem_available, main): Define
71161         with prototypes.
71162
71163         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71164         (main): Define with a prototype.
71165
71166         * lib/posixver.c (getenv): Remove decl.
71167
71168         * lib/putenv.c (malloc): Returns void *, not char *.
71169         Include <string.h> unconditionally.
71170         (strchr, memcpy, NULL): Do not define.
71171
71172         * lib/readtokens.c: Include readtokens.h first, to test interface.
71173         Include <stdlib.h>, <string.h> unconditionally.
71174         (init_tokenbuffer): Define with a prototype.
71175
71176         * lib/regex.c (PARAMS): Remove.  All uses removed.
71177         All uses of _RE_ARGS removed, too.
71178         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71179         unconditionally.
71180         (bzero): Assume memset exists.
71181         (memcmp, memcpy, NULL): Remove.
71182         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71183         char, or assignments to local vars of type signed char.
71184         (init_syntax_once, PREFIX(extract_number_and_incr),
71185         PREFIX(print_partial_compiled_pattern),
71186         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71187         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71188         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71189         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71190         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71191         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71192         wcs_compile_range, byte_compile_range, truncate_wchar,
71193         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71194         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71195         count_mbs_length, wcs_re_match_2_internal,
71196         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71197         PREFIX(alt_match_null_string_p),
71198         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71199         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71200         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71201         now-unnecessary declaration, if any.
71202         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71203         regcomp, regexec):
71204         Remove now-unnecessary casts among pointer types.
71205         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71206
71207         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71208         (free): Remove decl.
71209
71210         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71211
71212         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71213         (free): Remove decl.
71214
71215         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71216         * lib/xgetcwd.c: Likewise.
71217
71218         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71219         (free): Remove decl.
71220
71221         * lib/strchrnul.c (strchrnul): Define with a prototype.
71222         Fix bug: c_in was not converted to char before searching.
71223
71224         The following changes are not K&R related:
71225
71226         * lib/group-member.h: Include <sys/types.h>, so that this file is
71227         self-contained.
71228         * lib/makepath.h: Likewise.
71229
71230         * lib/getusershell.c (readname, default_index, line_size, readname):
71231         Use size_t, not int, for sizes.
71232         (readname): If the size overflows, report an error instead of
71233         looping forever.
71234
71235 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71236
71237         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
71238         libc.
71239
71240 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71241
71242         * README: New section: portability guidelines.
71243
71244 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71245
71246         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
71247         C89 spec.
71248
71249 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71250
71251         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
71252
71253 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71254
71255         Assume C89 or better; remove K&R cruft.
71256         A few of these changes were first proposed by Derek Robert Price
71257         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
71258
71259         * lib/addext.c: Include <string.h> unconditionally.
71260         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
71261         Don't declare getenv or malloc.
71262
71263         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
71264         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
71265         (NULL): Remove.
71266         (find_stack_direction, alloca): Use prototypes.
71267
71268         * lib/atexit.c (atexit): Define using a prototype.
71269
71270         * lib/basename.c, dirname.c, stripslash.c:
71271         Include <string.h> unconditionally.
71272
71273         * lib/bcopy.c: Include <stddef.h>.
71274         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
71275
71276         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
71277
71278         * lib/error.h (error, error_at_line, error_print_progname)
71279         [! (defined (__STDC__) && __STDC__)]: Remove decls.
71280         * lib/error.c: Include error.h first, to check interface.
71281         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71282         (VA_START): Remove; all uses changeed to va_start.
71283         (exit, strerror): Remove decls.
71284         (error_print_progname): Prototype uncondionally.
71285         Don't include <errno.h>; no longer needed.
71286         (private_strerror): Remove.
71287         (error_tail): Always define.
71288         (error, error_at_line): Assume C89 or better; always use prototypes.
71289         * lib/fatal.c: Include "fatal.h" first, to test interface.
71290         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71291         (VA_START): Remove; all uses changed to va_start.
71292         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
71293         this case.
71294         (exit): Remove decl.
71295         (fatal): Prototype unconditionally.  Assume va_start works.
71296         Abort at end, to pacify gcc.
71297
71298         * lib/euidaccess.c (main): Define with a prototype.
71299
71300         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
71301
71302         * lib/exitfail.c: Include <stdlib.h> unconditionally.
71303
71304         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
71305         prototypes.
71306         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
71307         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
71308         (getenv): Remove decl.
71309         (fnmatch): Define using a prototype.
71310         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
71311         (FCT): Define using a prototype.
71312
71313         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
71314
71315         * lib/gethostname.c: Include <stddef.h>.
71316         (gethostname): Define with prototype.  Length is size_t, not int.
71317
71318 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71319
71320         Assume C89 or better; remove K&R cruft.
71321         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
71322         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
71323         string.h, getenv, malloc.
71324         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
71325         headers.
71326         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
71327         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
71328         do not check for strerror.
71329         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
71330         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
71331         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
71332         do not check for doprnt or vprintf.
71333         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
71334         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
71335
71336 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71337
71338         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
71339         getversion.c should have been removed then, but was accidentally
71340         preserved.
71341
71342         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
71343         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
71344
71345 2003-09-08  Karl Berry  <karl@gnu.org>
71346
71347         * config/config.sub, config.guess, srclistvars.sh: update from savannah
71348                 config, forget about prep.
71349
71350         * config/depcomp, missing: update from automake.
71351
71352 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71353
71354         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
71355         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71356
71357 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71358
71359         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
71360         copy_tm_result.  Bug reported by Simon Josefsson in
71361         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71362
71363 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71364
71365         * m4/time_r.m4: New file.
71366         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
71367         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
71368         is. Check for timegm declaration.
71369         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
71370         Do not check for gmtime_r.
71371         Replace mktime if __mktime_internal does not exist and if mktime
71372         hasn't been replaced already.
71373
71374 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71375
71376         * lib/time_r.c, lib/time_r.h: New files.
71377
71378         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
71379         __localtime_r.
71380         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
71381         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
71382
71383         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
71384         __gmtime_r.
71385         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
71386         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
71387         Include <time_r.h>.
71388
71389         * lib/timegm.c: Switch to glibc implementation, with the following
71390         changes:
71391         [defined HAVE_CONFIG_H]: Include <config.h>.
71392         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
71393         (__mktime_internal) [!defined _LIBC]: New decl.
71394         (__gmtime_r) [!defined _LIBC]: New macro and function.
71395         (timegm): Use a prototype, since gnulib assumes C89.
71396         Do not bother declaring tmp to be const, as it's not really usefu.
71397         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
71398         (timegm): Declare only if HAVE_DECL_TIMEGM.
71399
71400 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71401
71402         * MODULES.html.sh (func_all_modules): Add time_r.
71403         * modules/time_r: New file.
71404         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
71405         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
71406
71407 2003-09-03  Paul Eggert  <eggert@twinsun.com>
71408
71409         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
71410         Bug reported by Lute Kamstra in
71411         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
71412
71413         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
71414         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
71415         course with correspondingly smaller numbers for tomorrow and
71416         yesterday.  From Tadayoshi Funaba.  Originally installed into
71417         sh-utils on 1999-08-07, but the patch got lost (I guess during the
71418         coreutils merge?).
71419
71420 2003-08-31  Simon Josefsson  <jas@extundo.com>
71421
71422         * modules/timegm: New file.
71423         * MODULES.html.sh (func_all_modules): Add timegm.
71424
71425 2003-08-31  Simon Josefsson  <jas@extundo.com>
71426
71427         * m4/timegm.m4: New file.
71428
71429 2003-08-31  Simon Josefsson  <jas@extundo.com>
71430
71431         * lib/timegm.h: New file.
71432         * lib/timegm.c: New file.  Based on
71433         wget-1.8.2/src/http.c:mktime_from_utc.
71434
71435 2003-08-31  Karl Berry  <karl@gnu.org>
71436
71437         * lib/argp.h: update from libc.
71438
71439 2003-08-28  Bruno Haible  <bruno@clisp.org>
71440
71441         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
71442         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
71443         followed by '#define fnmatch fnmatch_posix' gives an error.
71444
71445 2003-08-28  Bruno Haible  <bruno@clisp.org>
71446
71447         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
71448         warning on QNX, which defines O_BINARY to 000000.
71449
71450 2003-08-27  Jim Meyering  <jim@meyering.net>
71451
71452         * m4/mkstemp.m4: Require that the system mkstemp be able to create
71453         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
71454         would fail after 32.  Reported by Danny Levinson.  Details here:
71455         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
71456
71457 2003-08-24  Bruno Haible  <bruno@clisp.org>
71458
71459         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
71460         MSVC7 <stdio.h> is included later.
71461
71462 2003-08-22  Simon Josefsson  <jas@extundo.com>
71463
71464         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
71465
71466 2003-08-20  Karl Berry  <karl@gnu.org>
71467
71468         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
71469
71470 2003-08-20  Bruno Haible  <bruno@clisp.org>
71471
71472         * modules/progname: New file.
71473         * MODULES.html.sh (func_all_modules): Add progname.
71474
71475 2003-08-20  Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/progname.h: New file, from GNU gettext.
71478         * lib/progname.c: New file, from GNU gettext.
71479         * lib/progreloc.c: New file, from GNU gettext.
71480
71481 2003-08-19  Jim Meyering  <jim@meyering.net>
71482
71483         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
71484         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
71485
71486 2003-08-19  Bruno Haible  <bruno@clisp.org>
71487
71488         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
71489         more.
71490
71491 2003-08-19  Bruno Haible  <bruno@clisp.org>
71492
71493         * lib/xstrdup.c: Assume <string.h> exists.
71494
71495 2003-08-18  Paul Eggert  <eggert@twinsun.com>
71496
71497         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
71498         in makefile rules.
71499
71500 2003-08-18  Jim Meyering  <jim@meyering.net>
71501
71502         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
71503         * m4/lib-ld.m4: Likewise.
71504
71505 2003-08-18  Jim Meyering  <jim@meyering.net>
71506
71507         * lib/setenv.h: Indent nested cpp directive.
71508         * lib/vasnprintf.c: Remove trailing blanks.
71509
71510 2003-08-17  Simon Josefsson  <jas@extundo.com>
71511
71512         * modules/xstrndup: New file.
71513         * MODULES.html.sh (func_all_modules): Add xstrndup.
71514
71515 2003-08-17  Simon Josefsson  <jas@extundo.com>
71516
71517         * modules/argp: Fix autoconf macro name. Add more dependencies.
71518
71519 2003-08-17  Simon Josefsson  <jas@extundo.com>
71520
71521         * m4/xstrndup.m4: New file.
71522
71523 2003-08-17  Simon Josefsson  <jas@extundo.com>
71524
71525         * m4/argp.m4: New file.
71526
71527 2003-08-17  Simon Josefsson  <jas@extundo.com>
71528             Bruno Haible  <bruno@clisp.org>
71529
71530         * lib/xstrndup.h: New file.
71531         * lib/xstrndup.c: New file.
71532
71533 2003-08-17  Bruno Haible  <bruno@clisp.org>
71534
71535         * modules/strndup (Files, Include): Add lib/strndup.h.
71536
71537 2003-08-17  Bruno Haible  <bruno@clisp.org>
71538
71539         * modules/euidaccess (Files): Add lib/euidaccess.h.
71540
71541 2003-08-17  Bruno Haible  <bruno@clisp.org>
71542
71543         * lib/strndup.h: New file.
71544
71545 2003-08-17  Bruno Haible  <bruno@clisp.org>
71546
71547         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
71548         like AC_GNU_SOURCE.
71549         * modules/extensions (configure.ac): Comment out the invocation of
71550         gl_USE_SYSTEM_EXTENSIONS.
71551
71552 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71553
71554         Merges from coreutils, etc.
71555         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
71556         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71557         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71558         fixing a typo.
71559         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71560         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71561
71562 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71563
71564         Document merge from coreutils.
71565         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71566         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71567         * modules/utime: Add m4/utimes-null.m4.
71568
71569 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71570
71571         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71572         space, undoing this 2003-08-12 change:
71573         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71574
71575 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71576
71577         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71578         strtoul.c from libc, undoing this 2003-08-12 change:
71579         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71580
71581 2003-08-16  Jim Meyering  <jim@meyering.net>
71582
71583         Merges from coreutils.
71584         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71585         prefix.  Adjust cache variables similarly.  Create 500 rather than
71586         just 300 files, to exercise bug on Darwin6.5, too.
71587         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71588         $missing_dir.
71589         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71590         AM_SYS_POSIX_TERMIOS.
71591         Reported by mkc@mathdogs.com.
71592         Also change use of $am_cv_sys_posix_termios
71593         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71594         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71595         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71596         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71597         in /proc/mounts until it finds one with matching device number.  This
71598         is unnecessary when the FILE argument *is* a mount point.  No stat call
71599         is necessary in that case.  So, disable the statvfs-testing code on
71600         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71601         as RedHat bug# 84846.
71602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71603         to 1MB, so as not to render systems with no stack size limit (e.g.,
71604         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71605         Include <unistd.h>.  On some systems,
71606         it is required for the definition of _SC_PAGESIZE.
71607
71608 2003-08-16  Jim Meyering  <jim@meyering.net>
71609
71610         Merge from coreutils.
71611         * lib/xstrtoimax.c: #else #if -> #elif.
71612         * lib/xstrtoumax.c: Likewise.
71613
71614 2003-08-16  Jim Meyering  <jim@meyering.net>
71615
71616         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71617         * m4/utimes.m4: Removed.
71618         * m4/utimes-null.m4: Renamed from utimes.m4.
71619
71620         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71621         to 1MB, so as not to render systems with no stack size limit (e.g.,
71622         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71623         Include <unistd.h>.  On some systems,
71624         it is required for the definition of _SC_PAGESIZE.
71625
71626 2003-08-16  Jim Meyering  <jim@meyering.net>
71627         and Paul Eggert  <eggert@cs.ucla.edu>
71628
71629         Merges from coreutils, etc.
71630
71631         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71632         using the latest version from cvs.  This avoids problems with #line
71633         directives using a vendor (Sun) compiler.
71634         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71635         Don't set GETGROUPS_LIB here; now it's
71636         done via getgroups.m4's wrapper function.
71637         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71638         rather than just in sh-util/configure.in, so that the
71639         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71640         same.
71641         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71642         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71643         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71644         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71645         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71646         Remove code that is now done by the newly-required macros.
71647         Append $(EXEEXT) to DF_PROG.
71648         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71649         Do not invoke or require the following here,
71650         since prereq.m4 or some gnulib .m4 now does this for us:
71651         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71652         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71653         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71654         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71655         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71656         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71657         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71658         AC_FUNC_OBSTACK.
71659         Do not replace the following functions, as this is now the job
71660         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71661         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71662         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71663         atexit getpass, strdup, getpagesize.
71664         Replace 'raise'.
71665         Do not check for the following functions, as this is now the job
71666         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71667         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71668         setregid.
71669         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71670         Check for sys/sysctl.h.
71671         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71672         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71673         of checking for ssize_t ourselves.
71674
71675         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71676         Require every macro that gnulib/modules/* suggests for us.
71677         (jm_PREREQ_ADDEXT): New macro.
71678         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71679         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71680
71681         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71682         (gl_PHYSMEM): Use it.
71683         Also check for `table' function.
71684         Check for new headers and functions.
71685         Add check for sys/sysmp.h.
71686         With suggestions from Kaveh Ghazi.
71687         Ignore headers that are present but cannot be compiled.  This
71688         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71689         C 5.4.
71690
71691 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71692
71693         Document merge from coreutils.
71694         * modules/userspec: Depend on posixver.
71695         * modules/strftime: Depend on tzset.
71696
71697 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71698
71699         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71700         rather than tab, after '#' in shell-script copyright notices.
71701         Suggested by Bruno Haible.
71702
71703 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71704
71705         * config/srclist-update: Use three spaces, rather than tab, after '#'
71706         in shell-script copyright notices.  Suggested by Bruno Haible.
71707         Remove unnecessary parenthesization in regular expression.
71708
71709 2003-08-15  Jim Meyering  <jim@meyering.net>
71710
71711         Merge from coreutils.
71712         * lib/xgethostname.c: Include <stdlib.h>.
71713         (xghostname): Don't exit for anything other than memory-related
71714         failure; just return NULL.
71715         * lib/userspec.c: Include "posixver.h".
71716         (parse_user_spec): Accept `.' as a separator only
71717         in pre-POSIX-200112 mode.
71718         * lib/strtoimax.c: Use #elif rather than #else #if.
71719         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71720         Remove function, now that we can rely on a working tzset function.
71721         [!_LIBC]: Ensure that the required autoconf test has been run.
71722         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71723         Use underlying_strftime for %r.
71724         * lib/sha.c: Merge in some clean-up and optimization changes from
71725         glibc.
71726         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71727         Ensure that it is a multiple of 64.
71728         Rearrange loop exit tests so as to avoid performing an
71729         additional fread after encountering an error or EOF.
71730         * lib/realloc.c: Update copyright date.
71731
71732 2003-08-15  Jim Meyering  <jim@meyering.net>
71733         and Paul Eggert  <eggert@twinsun.com>
71734
71735         Merge from coreutils.
71736         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71737         member but strut utmpx does not.  Needed for AIX 4.3.3.
71738         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71739
71740 2003-08-15  Jim Meyering  <jim@meyering.net>
71741         and Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         Merges from coreutils, etc.
71744         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71745         Require gl_FUNC_TZSET_CLOBBER.
71746         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71747         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71748         members.
71749
71750 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71751
71752         Help the merge from coreutils.
71753         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71754         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71755         * m4/tzset.m4: Use it too.
71756
71757 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71758
71759         * modules/tzset: New file.
71760
71761 2003-08-14  Jim Meyering  <jim@meyering.net>
71762
71763         Merges from coreutils.
71764         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71765         variable names, rather than @FNMATCH_H@.
71766         * modules/alloca: Likewise for $(ALLOCA_H).
71767
71768         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71769         the three copies of the literal target, `fnmatch.h'.
71770         * modules/alloca (alloca.h): Likewise.
71771
71772 2003-08-14  Jim Meyering  <jim@meyering.net>
71773
71774         Merge from coreutils.
71775         * m4/tzset.m4: New file.
71776         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71777         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71778         otherwise, AIX 5.1 systems would end up using the latter.
71779         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71780         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71781         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71782         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71783
71784 2003-08-14  Jim Meyering  <jim@meyering.net>
71785
71786         Merge from coreutils.
71787         * lib/obstack.h: Whitespace changes.
71788         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71789         and xcalloc return values.
71790         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71791         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71792         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71793         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71794         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71795         error from mntctl.
71796         Use mntctl's return value to drive the entry-processing loop, since
71797         we can't rely on the value of the vmt_length member in the last
71798         entry.  On some systems doing so could result in exhausting
71799         virtual memory.  Based in part on a patch from Mike Jetzer.
71800
71801 2003-08-14  Jim Meyering  <jim@meyering.net>
71802         and Paul Eggert  <eggert@twinsun.com>
71803
71804         Merges from coreutils, plus other fixes.
71805         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71806         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71807         for credits and details.  Thanks to Kaveh Ghazi for helping
71808         to keep these files in sync.
71809         (ARRAY_SIZE): Define it.
71810         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71811         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71812         (memcasecmp): Don't assume size_t fits in unsigned int.
71813         Remove casts and duplicate code.
71814         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71815         (memcpy): Remove definition.
71816         Merge in some clean-up and optimization changes from glibc.
71817         [BLOCKSIZE]: Move definition to top of file.
71818         Ensure that it is a multiple of 64.
71819         Rearrange loop exit tests so as to avoid performing an
71820         additional fread after encountering an error or EOF.
71821         * lib/md5.h (md5_uintptr): Define.
71822         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71823         return to the initial working directory.  Preserve errno
71824         for caller.
71825         * lib/idcache.c: Include "xalloc.h".
71826         (xmalloc, xrealloc): Remove decls.
71827         (getuser): Remove casts no longer required in C89.
71828         * lib/human.c: Include stdio.h, for sprintf.
71829         * lib/group-member.c: Include "xalloc.h".
71830         (xmalloc, xrealloc): Remove decls.
71831         (get_group_info): Remove casts no longer required in C89.
71832         * lib/getusershell.c (readname): Remove casts no longer required in
71833         C89.
71834         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71835         * lib/getline.c: Whitespace fix, from coreutils.
71836
71837 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71838
71839         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71840         Check for isascii.
71841
71842         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71843         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71844         Undo previous (whitespace-only) change.
71845
71846 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71847
71848         * lib/exclude.c: Include <ctype.h>
71849         (IN_CTYPE_DOMAIN): New macro.
71850         (is_space): New fn.
71851         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71852         and empty lines.
71853
71854         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71855         Undo previous (whitespace-only) change.
71856
71857 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71858
71859         * config/srclist-update: Change update back to the old behavior,
71860         leaving whitespace alone.  Use one 'sed' command rather than a
71861         pipeline.
71862         (fixlicense): Now a variable, not a function.
71863         (remove_trailing_blanks): Remove.
71864         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71865         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71866         Undo previous (whitespace-only) change.
71867
71868 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71869
71870         Merge from coreutils.
71871         * modules/euidaccess: Add lib_SOURCES, include for new
71872         file euidaccess.h
71873
71874 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71875
71876         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71877         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71878         Normalize leading white space and remove trailing white space.
71879
71880         Merge from coreutils
71881         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71882
71883         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71884         0.12.1.  These files are now being upgraded automatically by
71885         ../config/srclist-update.
71886
71887 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71888
71889         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71890         Normalize leading white space and remove trailing white space.
71891         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71892         notice, as per ../config/srclist-update.
71893
71894         Merge from coreutils.
71895         * lib/euidaccess.h: New file.
71896         * lib/euidaccess.c: Include it.
71897         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71898         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71899         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71900
71901 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71902
71903         * config/srclist-update: Add copyright notice.
71904         (remove_id_lines, remove_trailing_blanks): New constants.
71905         (fixfile): Use them to normalize spacing a bit in copied files.
71906         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71907         Normalize leading white space and remove trailing white space.
71908
71909         * config/texinfo.tex: Sync with texinfo.
71910
71911         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71912         strtoul.c from libc, to merge coreutils whitespace changes.
71913
71914         * config/srclist.txt: Get the following m4 files from gettext:
71915         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71916         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71917         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71918         wint_t.m4.
71919
71920 2003-08-12  Karl Berry  <karl@gnu.org>
71921
71922         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71923         been made.
71924
71925 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71926
71927         * modules/gnu-source, m4/gnu-source.m4:
71928         Remove; we're assuming Autoconf 2.54 or later now.
71929         Suggested by Bruno Haible.
71930         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71931
71932 2003-08-11  Bruno Haible  <bruno@clisp.org>
71933
71934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
71935
71936 2003-08-11  Bruno Haible  <bruno@clisp.org>
71937
71938         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71939         (vasnprintf): Use it instead of wcslen.
71940
71941 2003-08-11  Bruno Haible  <bruno@clisp.org>
71942
71943         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71944         value to ensure that _Bool promotes to int. Use #define for _Bool when
71945         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71946
71947 2003-08-10  Karl Berry  <karl@gnu.org>
71948
71949         * lib/regex.h: update from libc (whitespace fix).
71950
71951 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71952
71953         Merge some files from coreutils.  These changes were
71954         originally made by Jim Meyering.
71955         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71956         many older Unixes require this.
71957         * lib/alloca.c (alloca): Remove cast to argument of free;
71958         no longer needed in C89.
71959         * lib/alloca_.h, regex.h: Fix white space to match
71960         what GNU indent does.
71961
71962 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71963
71964         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71965         apparently Emacs's Unicode mode got confused before my 2003-08-05
71966         checkin.
71967
71968 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71969
71970         * m4/extensions.m4: New file.
71971         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71972         Require gl_USE_SYSTEM_EXTENSIONS.
71973         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71974         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71975
71976 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71977
71978         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71979         * modules/extensions, modules/gnu-source: New files.
71980         * modules/timespec, modules/unlocked-io: Depend on extensions.
71981
71982 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71983
71984         * modules/restrict: New file.
71985         * MODULES.html.sh (func_all_modules): Add restrict.
71986         * modules/regex: Depend on restrict.
71987
71988 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71989
71990         * m4/restrict.m4: New file.
71991         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71992
71993 2003-08-07  Bruno Haible  <bruno@clisp.org>
71994
71995         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71996         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71997
71998 2003-08-07  Bruno Haible  <bruno@clisp.org>
71999
72000         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72001         makes the module 'getndelim2' compatible with the module 'getline'.
72002
72003 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72004
72005         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72006         byte with "\201" to avoid glitches when editing that source file
72007         with multi-gnome-terminal.
72008
72009 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72010
72011         * lib/bumpalloc.h: Remove.
72012
72013 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72014
72015         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72016         * modules/bumpalloc: Remove.
72017
72018 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72019
72020         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72021         GNU coding style.
72022
72023         Merge from coreutils.
72024         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72025         1. From glibc.
72026         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72027         from Karl Berry, implemented by Jim Meyering.
72028         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72029         from Dmitry V. Levin.
72030         Remove anachronistic cast of xrealloc.
72031         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72032         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72033         type. Otherwise, it wouldn't compile with at least /bin/cc on
72034         ymp-cray-unicos9.0.2.X.
72035         Combine two mostly-identical uses of alloca into one.
72036         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72037
72038 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72039
72040         [From Emacs.]
72041
72042         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72043         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72044         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72045         obsolete NLIST_NAME_UNION.
72046         [__GNU__]: Undef BSD and FSCALE.
72047         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72048
72049 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72050
72051         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72052         an enum type, so that it's guaranteed to promote to int.  See:
72053         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72054
72055 2003-08-03  Karl Berry  <karl@gnu.org>
72056
72057         * config/depcomp: update from automake.
72058
72059 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72060
72061         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72062         (strerror): Don't assume that a printable int fits in 14 bytes.
72063
72064 2003-07-31  Bruno Haible  <bruno@clisp.org>
72065
72066         * modules/getpass-gnu: New file.
72067         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72068
72069 2003-07-31  Bruno Haible  <bruno@clisp.org>
72070
72071         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72072
72073 2003-07-24  Karl Berry  <karl@gnu.org>
72074
72075         * config/missing: update from automake.
72076
72077 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72078             Bruno Haible  <bruno@clisp.org>
72079
72080         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72081         * lib/getline.c (getline, getdelim): Likewise.
72082         Remove _GNU_SOURCE define; now it's defined in config.h through
72083         m4/getline.m4.
72084
72085 2003-07-23  Karl Berry  <karl@gnu.org>
72086
72087         * config/config.sub: update from prep.
72088
72089 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72090
72091         * modules/xalloc (Depends-on): Add exitfail.
72092         * modules/xmemcoll: Likewise.
72093
72094 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72095
72096         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72097         over-parenthesization in macros.
72098
72099         Sync with coreutils.
72100
72101         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72102         required by C99.
72103
72104         Use `exit_failure' for xalloc and xmemcoll instead of their own
72105         private exit-failure variables.
72106         * lib/xalloc.h (xalloc_exit_failure): Remove.
72107         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72108         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72109         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72110         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72111         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72112
72113 2003-07-20  Jim Meyering  <jim@meyering.net>
72114
72115         * modules/closeout (Depends-on): Add exitfail.
72116         Suggestion from Bruno Haible.
72117
72118 2003-07-19  Karl Berry  <karl@gnu.org>
72119
72120         * config/config.sub: update from prep.
72121
72122 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72123
72124         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72125         Remove.
72126         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72127         to test that it can stand by itself.  Include "exitfail.h".
72128         Clients should set exit_failure instead.
72129         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72130
72131 2003-07-18  Bruno Haible  <bruno@clisp.org>
72132
72133         * modules/getndelim2: New file.
72134         * modules/getline: Share files with module getndelim2.
72135         * modules/getnline: Depend on getndelim2 instead of sharing files with
72136         it. Add getnline.c to lib_SOURCES.
72137         * MODULES.html.sh (func_all_modules): Add getndelim2.
72138
72139 2003-07-18  Bruno Haible  <bruno@clisp.org>
72140
72141         * m4/getndelim2.m4: New file.
72142         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72143         invoke gl_PREREQ_GETNDELIM2.
72144         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72145         gl_PREREQ_GETNDELIM2.
72146         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72147         gl_GETNDELIM2.
72148
72149 2003-07-18  Bruno Haible  <bruno@clisp.org>
72150
72151         * lib/getndelim2.h: New file.
72152         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72153         getndelim2.h.
72154         (getndelim2): Make non-static. Change return type to ssize_t.
72155         * lib/getline.h: Change argument names.
72156         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72157         * lib/getnline.c: Include getndelim2.h.
72158
72159 2003-07-18  Andreas Schwab  <schwab@suse.de>
72160
72161         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72162
72163 2003-07-17  Karl Berry  <karl@gnu.org>
72164
72165         * config/config.sub: update from prep.
72166
72167 2003-07-17  Bruno Haible  <bruno@clisp.org>
72168
72169         * modules/getnline: New file.
72170         * modules/getline: Add lib/getndelim2.c to source file list.
72171         * MODULES.html.sh (func_all_modules): Add getnline.
72172
72173 2003-07-17  Bruno Haible  <bruno@clisp.org>
72174
72175         * m4/getnline.m4: New file.
72176
72177 2003-07-17  Bruno Haible  <bruno@clisp.org>
72178
72179         * m4/Makefile.am.in: Remove file.
72180         * m4/Makefile.am: Remove file.
72181         * m4/Makefile.in: Remove file.
72182
72183 2003-07-17  Bruno Haible  <bruno@clisp.org>
72184
72185         * lib/getnline.h: New file.
72186         * lib/getnline.c: New file.
72187         * lib/getndelim2.c: New file, extracted from getline.c.
72188         (getndelim2): Renamed from getdelim2, with added nmax argument.
72189         * lib/getline.c: Include getndelim2.c.
72190         (getdelim2): Moved out to getndelim2.c.
72191         (getline, getdelim): Update.
72192
72193 2003-07-17  Bruno Haible  <bruno@clisp.org>
72194
72195         * lib/Makefile.am: Remove file.
72196         * lib/Makefile.in: Remove file.
72197
72198 2003-07-17  Bruno Haible  <bruno@clisp.org>
72199
72200         * configure.in: Remove file.
72201         * Makefile.in: Remove file.
72202
72203 2003-07-17  Bruno Haible  <bruno@clisp.org>
72204
72205         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72206
72207 2003-07-16  Karl Berry  <karl@gnu.org>
72208
72209         * config/srclist-update: was running fixlicense twice, which caused
72210                 texinfo.tex to be nullified for some reason.  Simplify,
72211                 $gplsrc is no longer needed as far as I can see?
72212
72213 2003-07-16  Jim Meyering  <jim@meyering.net>
72214
72215         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72216
72217 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72218
72219         * config/srclist.txt: Get the following files from gettext-runtime/intl
72220         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
72221         ref-del.sin.  From Bruno Haible.
72222         * config/srclist-update (fixfile): Change grep pattern again, since the
72223         previous fix didn't work (there was another trailing $).  Use
72224         '[$]' to escape the $s.
72225
72226 2003-07-15  Karl Berry  <karl@gnu.org>
72227
72228         * lib/vasnprintf.c: update from gettext.
72229
72230 2003-07-15  Karl Berry  <karl@gnu.org>
72231
72232         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
72233         gets expanded when surrounded by '$'.
72234
72235 2003-07-15  Jim Meyering  <jim@meyering.net>
72236
72237         * modules/save-cwd: Don't depend on error.  From Derek Price.
72238
72239 2003-07-15  Jim Meyering  <jim@meyering.net>
72240
72241         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
72242
72243 2003-07-14  Simon Josefsson  <jas@extundo.com>
72244
72245         * modules/mempcpy: New file.
72246         * MODULES.html.sh (func_all_modules): Add mempcpy.
72247
72248 2003-07-14  Simon Josefsson  <jas@extundo.com>
72249
72250         * m4/mempcpy.m4: New file.
72251
72252 2003-07-14  Simon Josefsson  <jas@extundo.com>
72253
72254         * lib/mempcpy.h: New file.
72255         * lib/mempcpy.c: New file.
72256
72257 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72258
72259         * modules/getdate, modules/posixtm: Depend on mktime.
72260
72261 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72262
72263         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
72264         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
72265         unicodeio.c, unicodeio.h, unlocked-io.h:
72266         Switch from LGPL to GPL.
72267
72268 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72269
72270         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
72271         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
72272         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
72273         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
72274         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
72275         updated automatically by ../config/srclist-update.  This changes
72276         their license from LPGL to GPL.
72277
72278 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72279
72280         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
72281         assumed to refer to the root of the most recent stable gettext version.
72282         * config/srclistvars.sh: Add defaults for eggert.
72283         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
72284         Match "This program" as well as "The program".  This is needed
72285         for gettext.
72286
72287 2003-07-14  Jim Meyering  <jim@meyering.net>
72288
72289         Don't emit diagnostics.  Let callers do that.
72290         * lib/save-cwd.c: Don't include "error.h".
72291         (save_cwd): Don't call error.  Ensure that errno is valid
72292         when returning nonzero.
72293
72294         * lib/save-cwd.h (restore_cwd): Update prototype.
72295         * lib/save-cwd.c (restore_cwd): Remove two parameters.
72296         Simplify.  Don't call error upon failure.  Let callers do that.
72297         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
72298         when auditing is enabled.  But don't bother updating the #if.
72299
72300 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
72301
72302         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
72303         it breaks C++ compilation.
72304         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
72305
72306 2003-07-10  Simon Josefsson  <jas@extundo.com>
72307
72308         * modules/strchrnul (Makefile.am): Add strchrnul.h.
72309
72310 2003-07-10  Jim Meyering  <jim@meyering.net>
72311
72312         * m4/clock_time.m4: Remove trailing blank.
72313         * m4/intmax_t.m4: Likewise.
72314
72315 2003-07-10  Jim Meyering  <jim@meyering.net>
72316
72317         * lib/vasnprintf.c: Remove trailing blanks.
72318         Make cpp indentation consistent.
72319
72320 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72321
72322         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
72323         posixver.c, strftime.c, strnlen.c, strverscmp.c:
72324         Switch from LGPL to GPL.
72325
72326 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72327
72328         * config/srclist.txt: Sort sublists.  Add
72329         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
72330         that differ from gnulib for one reason or another; we'd like this list
72331         to be smaller but for now let's document what we have.
72332
72333 2003-07-08  Paul Eggert  <eggert@twinsun.com>
72334
72335         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
72336         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
72337         and sweeter "eval x=$x".
72338         * config/srclist.txt: Get lib/argp* from glibc.
72339
72340 2003-07-07  Paul Eggert  <eggert@twinsun.com>
72341
72342         * lib/mktime.c: Fix some boundary cases and remove need for floating
72343         point.
72344
72345         Issue a compile-time diagnostic if time_t is floating point, or if
72346         two's complement arithmetic is not in effect, or if arithmetic
72347         right shift does not propagate the sign.  These assumptions were
72348         all in the original code but they weren't checked.
72349
72350         (TIME_T_MIDPOINT, verify): New macros.
72351         (__isleap): Remove; it has integer overflow problems.
72352         (leapyear): New function, without those problems.
72353         (ydhms_tm_diff): Remove; splitting into two parts.
72354         (ydhms_diff): New function, containing the arithmetic part of
72355         the old ydhms_tm_diff function.  Issue a compile-time
72356         diagnostic if we are not using C99 integer division.
72357         Avoid casts when possible.
72358         (guess_time_tm): New function, containing the checking part of
72359         the old ydhms_tm_diff function.  Return the new value, rather than
72360         the difference between it and the old.  Accept a new argument T
72361         so that *T specifies the old value.  Check for overflow in the result.
72362
72363         (__mktime_internal): Use a time_t offset, not a long int offset.
72364         This undoes the 2003-06-04 change, which is no longer needed now
72365         that we have better overflow checking.
72366         (localtime_offset): Likewise.
72367
72368         (__mktime_internal): Avoid harmful overflow on hosts where time_t
72369         and long are 64-bit but int is only 32-bit.
72370         (ydhms_diff): Use long int to store year1 and yday1.
72371         Issue a compile-time diagnostic if long int is not wide enough.
72372
72373         (__mktime_internal): Use long int to store adjusted year and yday.
72374         Use plain C rather than preprocessor commands, if that doesn't
72375         affect efficiency.
72376         Check for overflow (and try to repair) after each probe
72377         rather than checking only at the very end.  This avoids some bugs
72378         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
72379         does not equal GMT offset at maximum time).
72380         Use integer to check for overflow rather than floating point; this
72381         is more portable to non-IEEE hosts, and is a tad faster.
72382         When we detect that we are oscillating between two values,
72383         don't check whether tm_isdst has the requested value, since
72384         we already know the answer.  When tm_isdst has the wrong value,
72385         use a different heuristic to find the right one, based on the
72386         extreme values actually observed in practice in tz2003a,
72387         rather than the (overly optimistic) "previous 3 calendar quarters".
72388
72389         (not_equal_tm, print_tm, check_result): Use "const T" rather than
72390         "T const" to accommodate glibc style.
72391         (check_result): Use less-confusing report format.  "long" -> "long int.
72392         (main): Likewise.
72393         Don't loop if the iteration overflows time_t.
72394         Allow a negative step in the iteration.
72395
72396 2003-07-06  Karl Berry  <karl@gnu.org>
72397
72398         * config/depcomp: update from automake.
72399         * config/config.sub: update from prep.
72400
72401 2003-07-03  Karl Berry  <karl@gnu.org>
72402
72403         * config/config.guess: update from prep.
72404
72405 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72406
72407         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
72408         xreadlink.c now includes it unconditionally.
72409
72410 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72411
72412         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
72413         having it depend on HAVE_SYS_TYPES_H.
72414
72415 2003-07-01  Bruno Haible  <bruno@clisp.org>
72416
72417         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
72418         <sys/types.h> should be sufficient.
72419         Reported by Paul Eggert.
72420
72421 2003-06-26  Karl Berry  <karl@gnu.org>
72422
72423         * config/depcomp: update from automake.
72424
72425 2003-06-26  Bruno Haible  <bruno@clisp.org>
72426
72427         * modules/human: Depend on module stdbool.
72428
72429 2003-06-25  Bruno Haible  <bruno@clisp.org>
72430
72431         * modules/readlink: New file.
72432         * modules/xreadlink: Depend on it.
72433         * MODULES.html.sh (func_all_modules): Add readlink.
72434
72435 2003-06-25  Bruno Haible  <bruno@clisp.org>
72436
72437         * m4/readlink.m4: New file.
72438
72439 2003-06-25  Bruno Haible  <bruno@clisp.org>
72440
72441         * lib/readlink.c: New file.
72442
72443 2003-06-22  Karl Berry  <karl@gnu.org>
72444
72445         * config/srclist.txt: update mkinstalldirs from automake.
72446         * config/mkinstalldirs: update.
72447
72448 2003-06-22  Bruno Haible  <bruno@clisp.org>
72449
72450         Portability to mingw32.
72451         * m4/ssize_t.m4: New file, from GNU gettext.
72452         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
72453         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
72454
72455 2003-06-22  Bruno Haible  <bruno@clisp.org>
72456
72457         * modules/safe-read: Add m4/ssize_t.m4.
72458         * modules/xreadlink: Add m4/ssize_t.m4.
72459
72460 2003-06-20  Bruno Haible  <bruno@clisp.org>
72461
72462         Assume C89, so PARAMS isn't needed.
72463         * lib/unicodeio.h (PARAMS): Remove.
72464         * lib/unicodeio.c: Don't use PARAMS.
72465
72466 2003-06-18  Karl Berry  <karl@gnu.org>
72467
72468         * config/config.{guess,sub}: update from prep.
72469
72470 2003-06-18  Jim Meyering  <jim@meyering.net>
72471
72472         Merge changes from coreutils.
72473         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
72474         Remove explicit declarations of xmalloc and realloc.
72475         Include xalloc.h.
72476         (read_utmp): Remove anachronistic cast of xmalloc.
72477
72478 2003-06-17  Paul Eggert  <eggert@twinsun.com>
72479
72480         Assume C89, so PARAMS isn't needed.
72481         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
72482         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
72483         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
72484         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
72485         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
72486         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
72487         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
72488         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
72489         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
72490         lib/xstrtod.h, lib/xstrtol.h: Likewise.
72491         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
72492         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
72493         no longer needed. Anyway, config.h should always be included before any
72494         other file.
72495
72496 2003-06-11  Simon Josefsson  <jas@extundo.com>
72497
72498         * modules/sysexits: New file.
72499         * MODULES.html.sh (func_all_modules): Add sysexits.
72500
72501 2003-06-11  Simon Josefsson  <jas@extundo.com>
72502
72503         * lib/sysexit_.h: New file.
72504
72505 2003-06-11  Derek Price  <derek@ximbiot.com>
72506
72507         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
72508         necessary.
72509
72510 2003-06-11  Bruno Haible  <bruno@clisp.org>
72511
72512         * m4/sysexits.m4: New file.
72513
72514 2003-06-10  Simon Josefsson  <jas@extundo.com>
72515
72516         * lib/argp.h: New file, from glibc.
72517         * lib/argp-ba.c: New file, from glibc.
72518         * lib/argp-eexst.c: New file, from glibc.
72519         * lib/argp-fmtstream.c: New file, from glibc.
72520         * lib/argp-fmtstream.h: New file, from glibc.
72521         * lib/argp-fs-xinl.c: New file, from glibc.
72522         * lib/argp-help.c: New file, from glibc.
72523         * lib/argp-namefrob.h: New file, from glibc.
72524         * lib/argp-parse.c: New file, from glibc.
72525         * lib/argp-pv.c: New file, from glibc.
72526         * lib/argp-pvh.c: New file, from glibc.
72527         * lib/argp-xinl.c: New file, from glibc.
72528
72529 2003-06-10  Simon Josefsson  <jas@extundo.com>
72530
72531         * modules/strchrnul: New file.
72532
72533 2003-06-10  Simon Josefsson  <jas@extundo.com>
72534
72535         * modules/argp: New file.
72536
72537 2003-06-10  Simon Josefsson  <jas@extundo.com>
72538
72539         * m4/strchrnul.m4: New file.
72540
72541 2003-06-10  Simon Josefsson  <jas@extundo.com>
72542
72543         * lib/strchrnul.h: New file.
72544         * lib/strchrnul.c: New file.
72545
72546 2003-06-10  Bruno Haible  <bruno@clisp.org>
72547
72548         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
72549
72550 2003-06-07  Karl Berry  <karl@gnu.org>
72551
72552         * config/config.{guess,sub}: update from prep.
72553
72554 2003-06-07  Jim Meyering  <jim@meyering.net>
72555
72556         * modules/strtod: Use $(...) notation, not @...@ for
72557         AC_REPLACE'd variables.
72558         * modules/localcharset: Likewise.
72559
72560 2003-06-07  Jim Meyering  <jim@meyering.net>
72561
72562         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72563         in place of my name in the copyright comment.
72564         Remove definition and uses of __P.
72565
72566         From coreutils.
72567         * lib/stat.c: Don't declare xmalloc explicitly.
72568         Instead, include "xalloc.h".
72569         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72570         xrealloc, and xcalloc return values.
72571         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72572         Improve comment.
72573         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72574
72575 2003-06-07  Bruno Haible  <bruno@clisp.org>
72576
72577         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72578         avoid AC_CONFIG_LINKS.
72579         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72580         fnmatch.h, to avoid AC_CONFIG_LINKS.
72581         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72582
72583 2003-06-07  Bruno Haible  <bruno@clisp.org>
72584
72585         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72586         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72587         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72588         directory.
72589         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72590         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72591         directory.
72592
72593 2003-06-06  Jim Meyering  <jim@meyering.net>
72594
72595         Merge from coreutils.
72596         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72597         Consolidate declarations and initializations of *_base* locals.
72598
72599         Merge from coreutils.
72600         This avoids a core dump on systems without GNU putenv,
72601         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72602         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72603         (unsetenv): New static function, from GNU libc.
72604         (rpl_putenv): Use it.
72605
72606         * lib/modechange.c: Remove trailing blanks.
72607
72608         Merge from coreutils.
72609         * lib/fsusage.c: Remove declaration of statfs.
72610         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72611
72612         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72613
72614 2003-06-06  Jim Meyering  <jim@meyering.net>
72615
72616         * lib/stdbool_.h: Renamed from stdbool.h.in.
72617
72618 2003-06-06  Jim Meyering  <jim@meyering.net>
72619             Bruno Haible  <bruno@clisp.org>
72620
72621         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72622         Adjust Makefile.am snippet not to redirect directly to target.
72623         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72624
72625 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72626
72627         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72628         mismatch, look in future quarters as well as past.  This fixes a
72629         bug when processing fall-backwards gaps immediately after a long
72630         period of daylight-saving time.
72631
72632         * lib/mktime.c: Assume freestanding C89 or better.
72633         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72634         (__P): Remove; not used.
72635         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72636         (mktime, not_equal_tm, print_tm, check_result,
72637         main): Use prototypes.  Use const * where appropriate.
72638         (main): Fix typo in testing code that uncovered by above changes.
72639         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72640
72641 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72642
72643         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72644         locale.h, localeconv.  This merges changes from coreutils.
72645
72646         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72647         It can be removed after the next Autoconf is released.
72648         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72649         needed.
72650
72651 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72652
72653         * lib/mktime.c: Fix Debian bug 177940
72654         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72655         (localtime_offset): Now long int, not time_t, because we want it
72656         to be guaranteed to be signed.  All uses changed.
72657         (__mktime_internal): If overflow would occur when adding offset,
72658         don't add it.
72659
72660         Merge 'human' changes from coreutils.  Rewrite to support
72661         locale-specific notations like thousands separators.
72662         * lib/human.c: Simplify authorship notice.
72663         Include human.h immediately after config.h.
72664         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72665         <limits.h>: Do not include, since human.h does.
72666         (SIZE_MAX, UINTMAX_MAX): New macros.
72667         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72668         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72669         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72670         (power_letter): Renamed from suffixes.
72671         (generate_suffix_backwards): Remove.
72672         (adjust_value): Now takes int style (because of human.h changes)
72673         and long double value (for greater precision on some platforms).
72674         (group_number): New function.
72675         (human_readable): Use it.  Use integer options, not enum.
72676         Put the options before the sizes in the arg list.
72677         Support all the new options.
72678         The old human_readable function has been removed;
72679         use inttostr.h instead.
72680         (human_readable, default_block_size, humblock):
72681         Use uintmax_t, not int, for block sizes.
72682         (human_readable_inexact, block_size_types): Remove.
72683         (block_size_opts): New constant.
72684         (human_options): Renamed from human_block_size, with new signature
72685         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72686         * lib/human.h: Add copyright and authorship notice.
72687         Include <limits.h> and <stdbool.h> unconditionally.
72688         (PARAMS): Remove.  All uses removed.
72689         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72690         (enum human_inexact_style): Remove tag; now a nameless enum.
72691         (human_floor, human_ceiling, human_round_to_even): Now have
72692         values 2, 0, 1 rather than -1, 1, 0.
72693         (human_group_digits, human_suppress_point_zero, human_autoscale,
72694         human_base_1024, human_SI, human_B): New constants.
72695         (human_readable_inexact, human_block_size): Remove.
72696         (human_readable): Size args are now uintmax_t, not int.
72697         (human_options): New decl.
72698
72699         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72700         unnecessary now that we assume C89 or better.  This change
72701         imported from coreutils.
72702
72703         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72704         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72705         in the 2003-05-30 sync from glibc.
72706
72707         .h files should stand alone, but we shouldn't include <sys/types.h>
72708         if we can get away with just <stddef.h>.
72709
72710         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72711         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72712         rather than <sys/types.h>, as we merely need size_t.
72713         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72714         to get size_t.
72715         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72716         Include <stdio.h>, to get FILE.
72717         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72718         memcasecmp.h has included <stddef.h> and all we need is size_t.
72719         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72720         our interface, instead of including <sys/types.h>
72721
72722 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72723
72724         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72725         now, as glibc mktime is buggy on non-glibc systems.
72726
72727 2003-06-03  Karl Berry  <karl@gnu.org>
72728
72729         * config/config.sub: update from prep.
72730
72731 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72732
72733         [from coreutils]
72734         Fix some minor time-related bugs with POSIX time arguments.
72735         Some valid time stamps were being rejected (notably -1, and
72736         time stamps before 1900 on 64-bit hosts).  And some invalid
72737         time stamps were being accepted, e.g. September 31.
72738
72739         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72740         that we can return (time_t) -1 successfully.
72741         * lib/posixtm.c: Likewise.
72742         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72743         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72744         (t): Remove static var.
72745         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72746         of static var.  All uses changed.
72747         (year): Do not reject years before 1900; they can occur with
72748         64-bit time_t.
72749         (posix_time_parse): Do not check for out-of-range components;
72750         that is now the caller's responsibility, since our checks were
72751         only approximations.
72752         (posixtime): Use mktime to check for out-of-range components,
72753         since it knows them exactly.
72754         If mktime returns (time_t) -1, check whether an error actually occurred
72755         by invoking localtime on -1.
72756         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72757         posixtime failures better.
72758         Improve the test data (in comments only).
72759
72760 2003-06-02  Karl Berry  <karl@gnu.org>
72761
72762         * config/mkinstalldirs (version): new variable.
72763         (--version): new option.
72764         (usage): improve message.
72765
72766 2003-05-30  Karl Berry  <karl@gnu.org>
72767
72768         * lib/mktime.c: update from libc.
72769
72770 2003-05-30  Bruno Haible  <bruno@clisp.org>
72771
72772         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72773         * config/config.rpath: Upgrade to gettext-0.12.1.
72774
72775 2003-05-30  Bruno Haible  <bruno@clisp.org>
72776
72777         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72778         * m4/nls.m4: New file, from gettext-0.12.1.
72779         * m4/po.m4: New file, from gettext-0.12.1.
72780         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72781
72782 2003-05-30  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72785         * lib/localcharset.h: Likewise.
72786         * lib/localcharset.c: Likewise.
72787
72788 2003-05-29  Karl Berry  <karl@gnu.org>
72789
72790         * config/config.rpath: update from gettext.
72791
72792 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72793
72794         Assume the headers required for C89 freestanding compilers.
72795         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72796         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72797         * m4/human.m4 (gl_HUMAN): Likewise.
72798         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72799         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72800         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72801         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72803         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72804
72805 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72806
72807         Assume the headers required for C89 freestanding compilers.
72808         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72809         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72810         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72811         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72812         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72813         define, since <limits.h> is guaranteed to do that.
72814         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72815         * lib/exclude.c: Include <stdbool.h> unconditionally.
72816         * lib/tempname.c: Include <stddef.h> unconditionally.
72817         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72818         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72819         <stddef.h> does that.
72820         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72821         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72822         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72823         needed.
72824         * lib/xstrtol.c: Likewise.
72825         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72826         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72827
72828         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72829         warnings on some platforms.
72830
72831         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72832         arbitrarily.
72833
72834 2003-05-26  Jim Meyering  <jim@meyering.net>
72835
72836         Merge in a change from coreutils:
72837         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72838         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72839         that condition, rather than `-1' which is slightly misleading.
72840         Change the name of the cache variable to have the gl_ prefix.
72841         Prompted by a patch from Richard Dawe for DJGPP.
72842
72843 2003-05-24  Karl Berry  <karl@gnu.org>
72844
72845         * config/config.guess: update from prep.
72846
72847 2003-05-22  Karl Berry  <karl@gnu.org>
72848
72849         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72850
72851 2003-05-20  Karl Berry  <karl@gnu.org>
72852
72853         * config/config.guess: update from prep.
72854
72855 2003-05-18  Karl Berry  <karl@gnu.org>
72856
72857         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72858         might actually be set by the user.
72859
72860         * config/depcomp, install-sh, mdate-sh: update from automake.
72861
72862 2003-05-17  Bruno Haible  <bruno@clisp.org>
72863
72864         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72865         invalid expansion for AC_EGREP_CPP.
72866         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72867         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72868         Suggested by Akim Demaille <akim@epita.fr> in
72869         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72870
72871 2003-05-12  Jim Meyering  <jim@meyering.net>
72872
72873         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72874         the space-padded-by-default conversion specifiers, %e, %k, %l.
72875
72876 2003-05-12  Bruno Haible  <bruno@clisp.org>
72877
72878         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72879         the string is longer than 4 KB.
72880
72881 2003-05-11  Karl Berry  <karl@gnu.org>
72882
72883         * config/config.{guess,sub}: update from prep.
72884
72885 2003-05-09  Bruno Haible  <bruno@clisp.org>
72886
72887         * modules/error: Add m4/strerror_r.m4 to file list.
72888
72889 2003-05-03  Bruno Haible  <bruno@clisp.org>
72890
72891         Upgrade to Unicode-4.0.
72892         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72893         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72894         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72895         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72896         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72897         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72898         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72899         Change width of U+E0100..U+E01EF from 1 to 0.
72900
72901 2003-04-25  Jim Meyering  <jim@meyering.net>
72902
72903         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72904         of type size_t, not int.
72905
72906 2003-04-25  Bruno Haible  <bruno@clisp.org>
72907
72908         * lib/copy-file.c: Include <stddef.h>, for size_t.
72909
72910 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72911
72912         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72913         code which expansion is under static control.  Patch imported from
72914         Akim Demaille's patch to Bison; see
72915         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72916
72917 2003-04-14  Bruno Haible  <bruno@clisp.org>
72918
72919         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72920
72921 2003-04-11  Jim Meyering  <jim@meyering.net>
72922
72923         Merge changes from Coreutils.
72924
72925         2003-03-22  Jim Meyering  <jim@meyering.net>
72926
72927         * lib/strftime.c (widen): Cast alloca return value to proper type.
72928
72929         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72930
72931         From GNU libc.
72932         * lib/strftime.c (my_strftime): Handle very large width
72933         specifications for numeric values correctly.  Improve checks for
72934         overflow.
72935
72936         2003-01-19  Jim Meyering  <jim@meyering.net>
72937
72938         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72939         definitions.
72940         (nl_get_alt_digit) [! defined my_strftime]: Define.
72941         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72942         _nl_get_alt_digit and _nl_get_walt_digit.
72943
72944         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72945         libc. These changes have no effect outside of _LIBC.
72946
72947 2003-04-10  Bruno Haible  <bruno@clisp.org>
72948
72949         * modules/findprog: New file.
72950         * MODULES.html.sh (func_all_modules): Add it.
72951
72952 2003-04-10  Bruno Haible  <bruno@clisp.org>
72953
72954         * m4/findprog.m4: New file.
72955         * m4/eaccess.m4: New file.
72956
72957 2003-04-10  Bruno Haible  <bruno@clisp.org>
72958
72959         * lib/findprog.h: New file, from GNU gettext.
72960         * lib/findprog.c: New file, from GNU gettext.
72961
72962 2003-04-05  Jim Meyering  <jim@meyering.net>
72963
72964         Merge changes from Coreutils.
72965
72966         * lib/exclude.h (PARAMS): Remove definition and uses.
72967         * lib/exclude.c: Remove uses of `PARAMS'.
72968
72969         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72970         Add test-cases for DOS filenames. Declare program_name.
72971         (main): Set up program_name.  Patch by Rich Dawe.
72972
72973         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72974         error from mntctl.
72975         Use mntctl's return value to drive the entry-processing loop, since
72976         we can't rely on the value of the vmt_length member in the last
72977         entry.  On some systems doing so could result in exhausting
72978         virtual memory.  Based in part on a patch from Mike Jetzer.
72979
72980 2003-04-04  Bruno Haible  <bruno@clisp.org>
72981
72982         * modules/linebreak: New file.
72983         * MODULES.html.sh (func_all_modules): Add it.
72984
72985 2003-04-04  Bruno Haible  <bruno@clisp.org>
72986
72987         * m4/linebreak.m4: New file.
72988
72989 2003-04-04  Bruno Haible  <bruno@clisp.org>
72990
72991         * lib/linebreak.h: New file, from GNU gettext.
72992         * lib/linebreak.c: New file, from GNU gettext with slight
72993         modifications.
72994         * lib/lbrkprop.h: New file, from GNU gettext.
72995
72996 2003-04-03  Bruno Haible  <bruno@clisp.org>
72997
72998         * modules/utf8-ucs4: New file.
72999         * modules/utf16-ucs4: New file.
73000         * modules/ucs4-utf8: New file.
73001         * modules/ucs4-utf16: New file.
73002         * MODULES.html.sh (func_all_modules): Add them.
73003
73004 2003-04-03  Bruno Haible  <bruno@clisp.org>
73005
73006         * m4/utf-ucs4.m4: New file.
73007         * m4/ucs4-utf.m4: New file.
73008
73009 2003-04-03  Bruno Haible  <bruno@clisp.org>
73010
73011         * lib/utf8-ucs4.h: New file, from GNU gettext.
73012         * lib/utf16-ucs4.h: New file, from GNU gettext.
73013         * lib/ucs4-utf8.h: New file, from GNU gettext.
73014         * lib/ucs4-utf16.h: New file, from GNU gettext.
73015
73016 2003-04-02  Bruno Haible  <bruno@clisp.org>
73017
73018         * modules/binary-io: New file.
73019         * MODULES.html.sh (func_all_modules): Add it.
73020
73021 2003-04-02  Bruno Haible  <bruno@clisp.org>
73022
73023         * lib/binary-io.h: New file, from GNU gettext.
73024
73025 2003-04-01  Bruno Haible  <bruno@clisp.org>
73026
73027         * modules/pathname: New file.
73028         * MODULES.html.sh (func_all_modules): Add it.
73029
73030 2003-04-01  Bruno Haible  <bruno@clisp.org>
73031
73032         * lib/pathname.h: New file, from GNU gettext.
73033         * lib/concatpath.c: New file, from GNU gettext.
73034
73035 2003-03-30  Bruno Haible  <bruno@clisp.org>
73036
73037         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73038
73039 2003-03-30  Bruno Haible  <bruno@clisp.org>
73040
73041         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73042         function chown() doesn't exist.
73043
73044 2003-03-28  Bruno Haible  <bruno@clisp.org>
73045
73046         * modules/copy-file: New file.
73047         * MODULES.html.sh (func_all_modules): Add it.
73048
73049 2003-03-28  Bruno Haible  <bruno@clisp.org>
73050
73051         * m4/copy-file.m4: New file.
73052
73053 2003-03-28  Bruno Haible  <bruno@clisp.org>
73054
73055         * lib/copy-file.h: New file, from GNU gettext.
73056         * lib/copy-file.c: New file, from GNU gettext.
73057
73058 2003-03-18  Jim Meyering  <jim@meyering.net>
73059
73060         * lib/quote.c (quote_n): Fix typo in comment.
73061
73062 2003-03-18  Bruno Haible  <bruno@clisp.org>
73063
73064         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73065         checking.
73066         * m4/onceonly_2_57.m4: Likewise.
73067
73068 2003-03-17  Bruno Haible  <bruno@clisp.org>
73069
73070         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73071         (m4_quote): Remove macro.
73072         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73073
73074 2003-03-14  Jim Meyering  <jim@meyering.net>
73075
73076         Merge changes from Coreutils.
73077         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73078         to be const, in order to avoid warnings.
73079         (obstack_room): Likewise.
73080         (obstack_empty_p): Likewise.
73081
73082 2003-03-14  Bruno Haible  <bruno@clisp.org>
73083
73084         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73085         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73086
73087 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73088
73089         Merge changes from Bison.
73090         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73091         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73092         when compiling Bison 1.875's `bitset bset = obstack_alloc
73093         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73094         * lib/hash.c: Include <stdbool.h> unconditionally.
73095
73096 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73097
73098         * m4/onceonly.m4 (m4_quote): New macro.
73099         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73100         Quote AC_FOREACH variable-expansions properly.
73101
73102 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73103
73104         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73105
73106 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73107
73108         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73109         Reported by Bruce Becker; see:
73110         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73111
73112 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73113             Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73116         Reported by John Hughes, see
73117         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73118
73119 2003-02-20  Bruno Haible  <bruno@clisp.org>
73120
73121         * MODULES.html.sh (func_all_modules): Add poll.
73122
73123 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73124
73125         * modules/poll: New file.
73126
73127 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73128
73129         * lib/poll_.h: New file.
73130         * lib/poll.c: New file.
73131
73132 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73133
73134         * m4/poll.m4: New file.
73135
73136 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73137
73138         * modules/mathl: New file.
73139
73140 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73141
73142         * lib/mathl.h: New file.
73143         * lib/acosl.c: New file.
73144         * lib/asinl.c: New file.
73145         * lib/atanl.c: New file.
73146         * lib/ceill.c: New file.
73147         * lib/cosl.c: New file.
73148         * lib/expl.c: New file.
73149         * lib/floorl.c: New file.
73150         * lib/frexpl.c: New file.
73151         * lib/ldexpl.c: New file.
73152         * lib/logl.c: New file.
73153         * lib/sincosl.c: New file.
73154         * lib/sinl.c: New file.
73155         * lib/sqrtl.c: New file.
73156         * lib/tanl.c: New file.
73157         * lib/trigl.c: New file.
73158         * lib/trigl.h: New file.
73159
73160 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73161
73162         * m4/mathl.m4: New file.
73163
73164 2003-02-18  Bruno Haible  <bruno@clisp.org>
73165
73166         * MODULES.html.sh (func_all_modules): Add mathl.
73167
73168 2003-02-17  Bruno Haible  <bruno@clisp.org>
73169
73170         * modules/mkdtemp: New module.
73171         * MODULES.html.sh (func_all_modules): Add it.
73172
73173 2003-02-17  Bruno Haible  <bruno@clisp.org>
73174
73175         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73176
73177 2003-02-17  Bruno Haible  <bruno@clisp.org>
73178
73179         * lib/mkdtemp.h: New file, from GNU gettext.
73180         * lib/mkdtemp.c: New file, from GNU gettext.
73181
73182 2003-02-02  Jim Meyering  <jim@meyering.net>
73183
73184         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73185         e.g. glibc-2.2.93.
73186
73187 2003-01-31  Bruno Haible  <bruno@clisp.org>
73188
73189         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73190         'rpl_rename'.
73191         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73192         'rpl_strnlen'.
73193         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73194         'rpl_strtod'.
73195         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73196         'rpl_utime'.
73197
73198 2003-01-31  Bruno Haible  <bruno@clisp.org>
73199
73200         * lib/rename.c: #undef rename before defining rpl_rename.
73201         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73202
73203 2003-01-30  Bruno Haible  <bruno@clisp.org>
73204
73205         * modules/vasnprintf, modules/vasprintf: New modules.
73206         * MODULES.html.sh (func_all_modules): Add them.
73207
73208 2003-01-30  Bruno Haible  <bruno@clisp.org>
73209
73210         * m4/signed.m4: New file, from GNU gettext.
73211         * m4/longdouble.m4: New file, from GNU gettext.
73212         * m4/wchar_t.m4: New file, from GNU gettext.
73213         * m4/wint_t.m4: New file, from GNU gettext.
73214         * m4/vasnprintf.m4: New file.
73215         * m4/vasprintf.m4: New file.
73216
73217 2003-01-30  Bruno Haible  <bruno@clisp.org>
73218
73219         * lib/printf-args.h: New file, from GNU gettext.
73220         * lib/printf-args.c: New file, from GNU gettext.
73221         * lib/printf-parse.h: New file, from GNU gettext.
73222         * lib/printf-parse.c: New file, from GNU gettext.
73223         * lib/vasnprintf.h: New file, from GNU gettext.
73224         * lib/vasnprintf.c: New file, from GNU gettext.
73225         * lib/asnprintf.c: New file, from GNU gettext.
73226         * lib/vasprintf.h: New file, from GNU gettext with modifications.
73227         * lib/vasprintf.c: New file, from GNU gettext.
73228         * lib/asprintf.c: New file, from GNU gettext.
73229
73230 2003-01-29  Bruno Haible  <bruno@clisp.org>
73231
73232         * modules/stpncpy: New module.
73233         * MODULES.html.sh (func_all_modules): Add it.
73234
73235 2003-01-29  Bruno Haible  <bruno@clisp.org>
73236
73237         * m4/stpncpy.m4: New file.
73238
73239 2003-01-29  Bruno Haible  <bruno@clisp.org>
73240
73241         * lib/stpncpy.h: New file, from GNU gettext with modifications.
73242         * lib/stpncpy.c: New file, from GNU gettext with modifications.
73243
73244 2003-01-28  Bruno Haible  <bruno@clisp.org>
73245
73246         * modules/c-ctype: New module.
73247         * MODULES.html.sh (func_all_modules): Add it.
73248
73249 2003-01-28  Bruno Haible  <bruno@clisp.org>
73250
73251         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
73252         Paul Eggert.
73253         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
73254         Paul Eggert.
73255
73256 2003-01-27  Bruno Haible  <bruno@clisp.org>
73257
73258         * modules/xsetenv: New module.
73259         * MODULES.html.sh (func_all_modules): Add it.
73260
73261 2003-01-27  Bruno Haible  <bruno@clisp.org>
73262
73263         * lib/xsetenv.h: New file, from GNU gettext.
73264         * lib/xsetenv.c: New file, from GNU gettext.
73265
73266 2003-01-23  Jim Meyering  <jim@meyering.net>
73267
73268         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
73269         from working on systems without dirfd (at least Irix and OSF1/Tru64).
73270
73271 2003-01-23  Bruno Haible  <bruno@clisp.org>
73272
73273         * modules/minmax: New module.
73274         * MODULES.html.sh (func_all_modules): Add it.
73275
73276 2003-01-23  Bruno Haible  <bruno@clisp.org>
73277
73278         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
73279         Eggert.
73280
73281 2003-01-22  Bruno Haible  <bruno@clisp.org>
73282
73283         * modules/exit: New module.
73284         * MODULES.html.sh (func_all_modules): Add it.
73285
73286 2003-01-22  Bruno Haible  <bruno@clisp.org>
73287
73288         * lib/exit.h: New file, from GNU gettext.
73289
73290 2003-01-19  Bruno Haible  <bruno@clisp.org>
73291
73292         * gnulib-tool: Recognize option --extract-maintainer.
73293         (func_get_maintainer): New function.
73294         * modules/*: Add Maintainer entry.
73295
73296 2003-01-16  Jim Meyering  <jim@meyering.net>
73297
73298         * m4/regex.m4: The `regex' struct is both input and output.
73299         Initialize it before each use.  Patch by Tim Waugh.
73300
73301 2003-01-16  Bruno Haible  <bruno@clisp.org>
73302
73303         * MODULES.html.sh: Add a table of contents. Add the module name as
73304         leftmost column. Add hyperlinks.
73305
73306 2003-01-15  Bruno Haible  <bruno@clisp.org>
73307
73308         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
73309
73310 2003-01-15  Bruno Haible  <bruno@clisp.org>
73311
73312         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
73313         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
73314         suffix.
73315
73316 2003-01-15  Bruno Haible  <bruno@clisp.org>
73317
73318         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
73319
73320 2003-01-15  Bruno Haible  <bruno@clisp.org>
73321
73322         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
73323         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
73324
73325 2003-01-14  Jim Meyering  <jim@meyering.net>
73326
73327         * lib/same.c (same_name): Tweak a comment.
73328
73329 2003-01-14  Bruno Haible  <bruno@clisp.org>
73330
73331         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
73332         when a string comparison is sufficient.
73333
73334 2003-01-14  Bruno Haible  <bruno@clisp.org>
73335
73336         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
73337         'unsigned int'.
73338
73339 2003-01-14  Bruno Haible  <bruno@clisp.org>
73340
73341         * lib/hash-pjw.c: Add comment about low quality of this function.
73342
73343 2003-01-13  Bruno Haible  <bruno@clisp.org>
73344
73345         * modules/stpcpy: Distribute lib/stpcpy.h.
73346         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
73347
73348 2003-01-13  Bruno Haible  <bruno@clisp.org>
73349
73350         * modules/*: Add a description.
73351         * modules/strpbrk: Fix Makefile.am snippet.
73352         * modules/strtoimax: Fix dependencies.
73353         * modules/strtoumax: Likewise.
73354
73355 2003-01-13  Bruno Haible  <bruno@clisp.org>
73356
73357         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
73358         * modules/alloca (Makefile.am): All object files depend on alloca.h.
73359         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
73360
73361 2003-01-13  Bruno Haible  <bruno@clisp.org>
73362
73363         * gnulib-tool (func_create_testdir): Store config/* files in the main
73364         directory.
73365         * config.rpath: Move to ...
73366         * config/config.rpath: ... here.
73367         * modules/gettext: Contains config/config.rpath, not config.rpath.
73368         * modules/iconv: Likewise.
73369
73370 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73371
73372         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73373         to avoid collisions with libcurses and libreadline.
73374
73375         * m4/getstr.m4: Remove.
73376         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
73377
73378 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73379
73380         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73381         to avoid collisions with libcurses and libreadline.
73382
73383         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
73384         * lib/getstr.h, getstr.c: Remove.
73385         * lib/getline.c: Include "getline.h", to check interface.
73386         Move body of old getstr.c here: this defines MIN_CHUNK and
73387         declares getdelim2, which is renamed from getstr.
73388         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
73389
73390         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
73391         All uses changed.
73392         * lib/linebuffer.h: Likewise.
73393         (readline): Remove backward-compatibility macro.
73394
73395 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73396
73397         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73398         to avoid collisions with libcurses and libreadline.
73399         * getstr: Remove.
73400         * MODULES.html.sh: Remove getstr.
73401         * modules/getline: Depend on unlocked-io, not getstr.
73402
73403 2003-01-12  Jim Meyering  <jim@meyering.net>
73404
73405         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
73406
73407 2003-01-10  Bruno Haible  <bruno@clisp.org>
73408
73409         * modules/alloca: Change Makefile.am requirements. Simplify Include
73410         requirements. Add lib/alloca_.h to file list.
73411
73412 2003-01-10  Bruno Haible  <bruno@clisp.org>
73413
73414         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
73415
73416 2003-01-10  Bruno Haible  <bruno@clisp.org>
73417
73418         * lib/alloca_.h: New file.
73419         * lib/getdate.y: Unconditionally include alloca.h.
73420         * lib/makepath.c: Likewise.
73421         * lib/setenv.c: Likewise.
73422         * lib/userspec.c: Likewise.
73423
73424 2003-01-09  Karl Berry  <karl@gnu.org>
73425
73426         * MODULES.html.sh: include `dirname $0` in PATH, to find
73427         gnulib-tool.
73428
73429 2003-01-09  Bruno Haible  <bruno@clisp.org>
73430
73431         * modules/stdbool: Change configure.ac, Makefile.am requirements.
73432         Simplify Include requirements. Add lib/stdbool.h.in to file list.
73433
73434 2003-01-09  Bruno Haible  <bruno@clisp.org>
73435
73436         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
73437
73438 2003-01-09  Bruno Haible  <bruno@clisp.org>
73439
73440         * lib/stdbool.h.in: New file.
73441
73442 2003-01-09  Bruno Haible  <bruno@clisp.org>
73443
73444         * gnulib-tool (func_all_modules): Ignore files ending in ~.
73445         * MODULES.html.sh: Likewise.
73446
73447 2003-01-08  Jim Meyering  <jim@meyering.net>
73448
73449         * lib/full-write.c: Undefine and define-away `const' after inclusion
73450         of errno.h, not before.  Suggestion from Bruno Haible.
73451
73452 2003-01-08  Bruno Haible  <bruno@clisp.org>
73453
73454         * modules/full-read: Depend on full-write.
73455
73456 2003-01-08  Bruno Haible  <bruno@clisp.org>
73457
73458         * lib/safe-read.c: Include specification header first, to ensure its
73459         selfcontainedness.
73460         * lib/full-write.c: Likewise.
73461
73462 2003-01-07  Jim Meyering  <jim@meyering.net>
73463
73464         * lib/full-write.c: Rework so that it may serve to define full_read,
73465         too.
73466         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
73467
73468 2003-01-07  Bruno Haible  <bruno@clisp.org>
73469
73470         * lib/strtoimax.c: Include <stdint.h> as an alternative to
73471         <inttypes.h>.
73472         * lib/xstrtol.h: Likewise.
73473         * lib/xstrtoimax.c: Likewise.
73474         * lib/xstrtoumax.c: Likewise.
73475         * lib/human.h: Likewise.
73476
73477         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
73478         on systems that have <inttypes.h> but not <stdint.h>.
73479
73480 2003-01-07  Bruno Haible  <bruno@clisp.org>
73481
73482         * MODULES.html.sh: Add copyright notice.
73483         (missed_files): Omit CVS directory entries.
73484         (func_module): Make it work with sed-3.02.
73485         * MODULES.txt: Remove file.
73486
73487 2003-01-06  Jim Meyering  <jim@meyering.net>
73488
73489         * lib/version-etc.c: Update year in translatable copyright string.
73490
73491 2003-01-03  Karl Berry  <karl@gnu.org>
73492
73493         * config/config.{guess,sub}: update from prep.
73494
73495 2003-01-02  Karl Berry  <karl@gnu.org>
73496
73497         * doc/COPYING.DOC: belatedly updated to 1.2.
73498
73499 2003-01-01  Karl Berry  <karl@gnu.org>
73500
73501         * gnulib-tool (func_verify_module): report module name $module in
73502         error message, not $1.
73503         * gnulib-tool (create-testdir): don't complain if destdir couldn't
73504         be created, only if it doesn't exist.
73505         * gnulib-tool (last_checkin_date): don't expand the $Date here.
73506
73507 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73508
73509         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
73510
73511 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73512
73513         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
73514         memcmp if strcoll doesn't work.
73515
73516 2002-12-31  Bruno Haible  <bruno@clisp.org>
73517
73518         * lib/utime.c (utime_null): No need to call ftruncate if the file was
73519         nonempty.
73520
73521 2002-12-31  Bruno Haible  <bruno@clisp.org>
73522
73523         * lib/memcoll.c (STRCOLL): New macro.
73524         (memcoll): Use it.
73525
73526 2002-12-31  Bruno Haible  <bruno@clisp.org>
73527
73528         * lib/localcharset.h: New file.
73529         * lib/localcharset.c: Include it.
73530         * lib/unicodeio.c: Likewise.
73531
73532 2002-12-31  Bruno Haible  <bruno@clisp.org>
73533
73534         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
73535         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
73536
73537 2002-12-31  Bruno Haible  <bruno@clisp.org>
73538
73539         * lib/getline.h: Include <stddef.h>, for size_t.
73540
73541         * lib/unicodeio.h: Include <stddef.h>, for size_t.
73542         * lib/unicodeio.c: Don't include <stddef.h>.
73543
73544 2002-12-31  Bruno Haible  <bruno@clisp.org>
73545
73546         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
73547         HAVE_TM_ZONE.
73548
73549 2002-12-24  Karl Berry  <karl@gnu.org>
73550
73551         * config/config.guess: update from prep.
73552
73553 2002-12-24  Bruno Haible  <bruno@clisp.org>
73554
73555         General infrasructure.
73556         * m4/README: Rewritten.
73557         * m4/onceonly.m4: New file.
73558         * m4/onceonly_2_57.m4: New file.
73559
73560         Module atexit.
73561         * m4/atexit.m4: New file.
73562
73563         Module strtod.
73564         * m4/strtod.m4: New file.
73565
73566         Module strtol.
73567         * m4/strtol.m4: New file.
73568
73569         Module strtoul.
73570         * m4/strtoul.m4: New file.
73571
73572         Module memchr.
73573         * m4/memchr.m4: New file.
73574
73575         Module memcmp.
73576         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73577         (jm_FUNC_MEMCMP): Invoke it.
73578
73579         Module memcpy.
73580         * m4/memcpy.m4: New file.
73581
73582         Module memmove.
73583         * m4/memmove.m4: New file.
73584
73585         Module memset.
73586         * m4/memset.m4: New file.
73587
73588         Module strcspn.
73589         * m4/strcspn.m4: New file.
73590
73591         Module strpbrk.
73592         * m4/strpbrk.m4: New file.
73593
73594         Module strstr.
73595         * m4/strstr.m4: New file.
73596
73597         Module strerror.
73598         * m4/strerror.m4: New file.
73599
73600         Module mktime.
73601         * m4/mktime.m4: Renamed from jm-mktime.m4.
73602         (gl_PREREQ_MKTIME): New macro.
73603         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73604
73605         Module malloc.
73606         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73607         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73608         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73609
73610         Module realloc.
73611         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73612         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73613         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73614
73615         Module strftime.
73616         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73617         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73618         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73619         gl_TM_GMTOFF.
73620         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73621
73622         Module xalloc.
73623         * m4/xalloc.m4: New file.
73624
73625         Module alloca.
73626         * m4/alloca.m4: New file.
73627
73628         Module putenv.
73629         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73630         (jm_FUNC_PUTENV): Invoke it.
73631
73632         Module setenv.
73633         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73634         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73635         when invoked twice.
73636         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73637         gt_FUNC_SETENV.
73638
73639         Module memrchr.
73640         * m4/memrchr.m4: New file.
73641
73642         Module stpcpy.
73643         * m4/stpcpy.m4: New file.
73644
73645         Module strcase.
73646         * m4/strcase.m4: New file.
73647
73648         Module strdup.
73649         * m4/strdup.m4: New file.
73650
73651         Module strnlen.
73652         * m4/strnlen.m4: New file.
73653
73654         Module strndup.
73655         * m4/strndup.m4: New file.
73656
73657         Module xstrtod.
73658         * m4/xstrtod.m4: New file.
73659
73660         Module xstrtol.
73661         * m4/xstrtol.m4: New file.
73662
73663         Module getdate.
73664         * m4/getdate.m4: New file.
73665
73666         Module unlocked-io.
73667         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73668         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73669         * m4/jm-glibc-io.m4n: Remove file.
73670
73671         Module long-options.
73672         * m4/long-options.m4: New file.
73673
73674         Module md5.
73675         * m4/md5.m4: New file.
73676
73677         Module sha.
73678         * m4/sha.m4: New file.
73679
73680         Module getstr.
73681         * m4/getstr.m4: New file.
73682
73683         Module getline.
73684         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73685         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73686         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73687         simply getline. Infoke gl_PREREQ_GETLINE.
73688
73689         Module obstack.
73690         * m4/obstack.m4: New file.
73691
73692         Module hash.
73693         * m4/hash.m4: New file.
73694
73695         Module readtokens.
73696         * m4/readtokens.m4: New file.
73697
73698         Module strverscmp.
73699         * m4/strverscmp.m4: New file.
73700
73701         Module stdbool.
73702         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73703         OSF/1.
73704
73705         Module strtoll.
73706         * m4/strtoll.m4: New file.
73707
73708         Module strtoull.
73709         * m4/strtoull.m4: New file.
73710
73711         Module strtoimax.
73712         * m4/strtoimax.m4: New file.
73713
73714         Module strtoumax.
73715         * m4/strtoumax.m4: New file.
73716
73717         Module xstrtoimax.
73718         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73719         jm_AC_PREREQ_XSTRTOIMAX.
73720         Moved the strtol prerequisites to strtol.m4.
73721         Moved the strtoll prerequisites to strtoll.m4.
73722         Moved the strtoimax prerequisites to strtoimax.m4.
73723
73724         Module xstrtoumax.
73725         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73726         jm_AC_PREREQ_XSTRTOUMAX.
73727         Moved the strtoul prerequisites to strtoul.m4.
73728         Moved the strtoull prerequisites to strtoull.m4.
73729         Moved the strtoumax prerequisites to strtoumax.m4.
73730
73731         Module chown.
73732         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73733         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73734
73735         Module dup2.
73736         * m4/dup2.m4: New file.
73737
73738         Module ftruncate.
73739         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73740         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73741
73742         Module getgroups.
73743         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73744         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73745
73746         Module gettimeofday.
73747         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73748         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73749         gl_PREREQ_GETTIMEOFDAY.
73750
73751         Module mkdir.
73752         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73753         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73754
73755         Module mkstemp.
73756         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73757         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73758         jm_AC_TYPE_UINTMAX_T.
73759         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73760
73761         Module stat.
73762         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73763         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73764
73765         Module lstat.
73766         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73767         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73768
73769         Module timespec.
73770         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73771         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73772         * m4/st_mtim.m4: Indentation.
73773
73774         Module nanosleep.
73775         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73776         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73777         gl_PREREQ_NANOSLEEP.
73778
73779         Module regex.
73780         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73781         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73782         (gl_REGEX): New macro.
73783
73784         Module rename.
73785         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73786         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73787
73788         Module rmdir.
73789         * m4/rmdir.m4: New file.
73790
73791         Module utime.
73792         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73793         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73794         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73795
73796         Module dirname.
73797         * m4/dirname.m4: New file.
73798
73799         Module getopt.
73800         * m4/getopt.m4: New file.
73801
73802         Module unistd-safer.
73803         * m4/unistd-safer.m4: New file.
73804
73805         Module fnmatch.
73806         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73807         declaration.
73808         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73809         (gl_FUNC_FNMATCH_POSIX): New macro.
73810         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73811         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73812         simply fnmatch.
73813
73814         Module exclude.
73815         * m4/exclude.m4: New file.
73816
73817         Module human.
73818         * m4/human.m4: New file.
73819
73820         Module acl.
73821         * m4/acl.m4: Nop.
73822
73823         Module backupfile.
73824         * m4/backupfile.m4: New file.
73825         * m4/d-ino.m4: Indentation.
73826
73827         Module fsusage.
73828         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73829         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73830         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73831
73832         Module dirfd.
73833         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73834         requirements.
73835
73836         Module euidaccess.
73837         * m4/euidaccess.m4: New file.
73838
73839         Module file-type.
73840         * m4/file-type.m4: New file.
73841
73842         Module fileblocks.
73843         * m4/fileblocks.m4: New file.
73844
73845         Module filemode.
73846         * m4/filemode.m4: New file.
73847
73848         Module isdir.
73849         * m4/isdir.m4: New file.
73850
73851         Module lchown.
73852         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73853         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73854
73855         Module makepath.
73856         * m4/makepath.m4: New file.
73857
73858         Module modechange.
73859         * m4/modechange.m4: New file.
73860
73861         Module mountlist.
73862         * m4/mountlist.m4: New file.
73863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73864         Indentation.
73865
73866         Module path-concat.
73867         * m4/path-concat.m4: New file.
73868
73869         Module pathmax.
73870         * m4/pathmax.m4: New file.
73871
73872         Module same.
73873         * m4/same.m4: New file.
73874
73875         Module save-cwd.
73876         * m4/save-cwd.m4: New file.
73877
73878         Module savedir.
73879         * m4/savedir.m4: New file.
73880
73881         Module xgetcwd.
73882         * m4/xgetcwd.m4: New file.
73883         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73884
73885         Module xreadlink.
73886         * m4/xreadlink.m4: New file.
73887
73888         Module safe-read.
73889         * m4/safe-read.m4: New file.
73890
73891         Module safe-write.
73892         * m4/safe-write.m4: New file.
73893
73894         Module closeout.
73895         * m4/closeout.m4: New file.
73896
73897         Module stdio-safer.
73898         * m4/stdio-safer.m4: New file.
73899
73900         Module getpass.
73901         * m4/getpass.m4: New file.
73902
73903         Module getugroups.
73904         * m4/getugroups.m4: New file.
73905
73906         Module group-member.
73907         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73908         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73909
73910         Module idcache.
73911         * m4/idcache.m4: New file.
73912
73913         Module userspec.
73914         * m4/userspec.m4: New file.
73915
73916         Module gettime.
73917         * m4/clock_time.m4: New file.
73918         * m4/gettime.m4: New file.
73919
73920         Module settime.
73921         * m4/settime.m4: New file.
73922
73923         Module posixtm.
73924         * m4/posixtm.m4: New file.
73925
73926         Module gethostname.
73927         * m4/gethostname.m4: New file.
73928
73929         Module canon-host.
73930         * m4/canon-host.m4: New file.
73931
73932         Module gettext.
73933         * m4/codeset.m4: New file, from gettext-0.11.5.
73934         * m4/gettext.m4: New file, from gettext-0.11.5.
73935         * m4/glibc21.m4: New file, from gettext-0.11.5.
73936         * m4/iconv.m4: New file, from gettext-0.11.5.
73937         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73938         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73939         * m4/inttypes.m4: New file, from gettext-0.11.5.
73940         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73941         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73942         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73943         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73944         * m4/lib-link.m4: New file, from gettext-0.11.5.
73945         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73946         * m4/progtest.m4: New file, from gettext-0.11.5.
73947         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73948         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73949         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73950
73951         Module localcharset.
73952         * m4/localcharset.m4: New file.
73953
73954         Module hard-locale.
73955         * m4/hard-locale.m4: New file.
73956
73957         Module mbswidth.
73958         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73959         onceonly macros.
73960         * m4/mbrtowc.m4: Add comment.
73961
73962         Module memcasecmp.
73963         * m4/memcasecmp.m4: New file.
73964
73965         Module memcoll.
73966         * m4/memcoll.m4: New file.
73967
73968         Module unicodeio.
73969         * m4/unicodeio.m4: New file.
73970
73971         Module rpmatch.
73972         * m4/rpmatch.m4: New file.
73973
73974         Module yesno.
73975         * m4/yesno.m4: New file.
73976
73977         Module exitfail.
73978         * m4/exitfail.m4: New file.
73979
73980         Module c-stack.
73981         * m4/c-stack.m4 (gl_C_STACK): New macro.
73982         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73983
73984         Module error.
73985         * m4/error.m4 (gl_ERROR): New macro.
73986         (jm_PREREQ_ERROR): Use onceonly macros.
73987
73988         Module fatal.
73989         * m4/fatal.m4: New file.
73990
73991         Module getloadavg.
73992         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73993         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73994
73995         Module getpagesize.
73996         * m4/getpagesize.m4: New file.
73997
73998         Module getusershell.
73999         * m4/getusershell.m4: New file.
74000
74001         Module physmem.
74002         * m4/physmem.m4: New file.
74003
74004         Module posixver.
74005         * m4/posixver.m4: New file.
74006
74007         Module quotearg.
74008         * m4/quotearg.m4: New file.
74009
74010         Module quote.
74011         * m4/quote.m4: New file.
74012
74013         Module readutmp.
74014         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74015
74016         Module sig2str.
74017         * m4/sig2str.m4: New file.
74018
74019         Other.
74020         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74021         ulonglong.m4.
74022         * m4/intmax_t.m4: New file.
74023         * m4/d-type.m4: Indentation.
74024         * m4/jm-macros.m4: Update.
74025         * m4/prereq.m4 (jm_PREREQ): Update.
74026         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74027         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74028         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74029         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74030         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74031         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74032         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74033         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74034         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74035         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74036         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74037         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74038         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74039         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74040         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74041         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74042         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74043         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74044         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74045
74046 2002-12-24  Bruno Haible  <bruno@clisp.org>
74047
74048         * MODULES.txt: Update according to m4/ changes.
74049
74050         Module gettext.
74051         * config.rpath: New file, from gettext-0.11.5.
74052
74053         * modules/*: New module descriptions.
74054         * gnulib-tool: New file.
74055         * MODULES.html.sh: New file.
74056
74057 2002-12-21  Karl Berry  <karl@gnu.org>
74058
74059         * doc/fdl.texi: update to version 1.2.
74060
74061 2002-12-19  Karl Berry  <karl@gnu.org>
74062
74063         * config/config.guess: update from prep.
74064
74065 2002-12-18  Bruno Haible  <bruno@clisp.org>
74066
74067         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74068         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74069
74070 2002-12-17  Bruno Haible  <bruno@clisp.org>
74071
74072         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74073         stdlib.h, string.h.
74074
74075 2002-12-17  Bruno Haible  <bruno@clisp.org>
74076
74077         * lib/canon-host.c (strdup): Remove unused declaration.
74078
74079         * lib/fsusage.c: Include full_read.h.
74080         (get_fs_usage): Use full_read instead of safe_read.
74081
74082         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74083
74084 2002-12-12  Karl Berry  <karl@gnu.org>
74085
74086         * config/config.guess: update from prep.
74087
74088 2002-12-11  Bruno Haible  <bruno@clisp.org>
74089
74090         * m4/setenv.m4: New file, from gettext-0.11.5.
74091
74092 2002-12-11  Bruno Haible  <bruno@clisp.org>
74093
74094         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74095         not unsetenv().
74096         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74097         modifications:
74098
74099         2002-12-11  Bruno Haible  <bruno@clisp.org>
74100
74101                 * setenv.c (alloca): Fall back to malloc.
74102                 (freea): New macro.
74103                 (setenv): Use freea() to free memory allocated with alloca().
74104
74105         2002-11-13  Bruno Haible  <bruno@clisp.org>
74106
74107                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74108                 function declarations.
74109                 * unsetenv.c (unsetenv): Likewise.
74110
74111         2002-03-04  Bruno Haible  <bruno@clisp.org>
74112
74113                 Portability to AIX 4.3.3.
74114                 * unsetenv.c: New file, extracted from setenv.c.
74115                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74116
74117         2001-12-20  Bruno Haible  <bruno@clisp.org>
74118
74119                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74120                 use malloc instead. For SunOS 4.
74121
74122         2001-12-11  Bruno Haible  <bruno@clisp.org>
74123
74124                 * setenv.c: Declare alloca.
74125                 (compar_fn_t): New typedef.
74126                 (KNOWN_VALUE, STORE_VALUE): Use it.
74127
74128         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74129         setenv.h.
74130
74131 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74132
74133         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74134         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74135         Choose values that are less likely to collide with system fnmatch
74136         options.
74137         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74138         defined (e.g., a pure POSIX system).
74139         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74140         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74141
74142 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74143
74144         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74145         a pain in practice to deal with generated m4 files.  This change
74146         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74147
74148         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74149         and jm-glibc-io.m4, as they are no longer a special case.
74150         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74151         kludge and the auto-generation stuff.  Check only whether the
74152         functions are declared, not whether they exist, since older hosts
74153         that don't declare the functions can't use the optimization anyway.
74154
74155 2002-12-06  Jim Meyering  <jim@meyering.net>
74156
74157         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74158
74159         Merge in changes from libc's misc/error.c, in preparation
74160         for the merge of gnulib's changes back into libc.
74161
74162         * lib/error.c (_): Define only if not already defined.
74163         Move definition to follow all #include directives.
74164         Include unlocked-io.h only if !_LIBC.
74165         [_LIBC]: Include <libio/libioP.h>.
74166         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74167         (fflush): Tweak definition to use INTUSE.
74168         (putc): Define.
74169
74170 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74171
74172         * lib/alloca.c [defined emacs]: Include "lisp.h".
74173         (xalloc_die) [defined emacs]: New macro.
74174         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74175         [! defined emacs]: Include <xalloc.h>.
74176         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74177         (pointer): Typedef to POINTER_TYPE *.
74178         (malloc): Remove decl; we now always use xmalloc.
74179         (alloca): Use old-style definition, since Emacs needs this.
74180         Check for arithmetic overflow when computing combined size.
74181
74182 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74183
74184         Do not generate unlocked-io.h automatically, since it's easier to
74185         maintain it by hand.
74186
74187         * lib/unlocked-io.h: New file, from GNU diffutils,
74188         but with proper copyright notice and attribution.
74189         * lib/gen-uio: Remove.
74190         * lib/Makefile.am: Add copyright notice.
74191         (libfetish_a_SOURCES): Add unlocked-io.h.
74192         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74193         (DISTCLEANFILES, io_functions): Remove macros.
74194         (EXTRA_DIST): Remove gen_uio.
74195         (unlocked-io.h): Remove rule.
74196
74197 2002-12-04  Jim Meyering  <jim@meyering.net>
74198
74199         Reflect the fact that stat.c and lstat.c are no longer generated.
74200         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74201         (DISTCLEANFILES): Likewise.
74202         (EXTRA_DIST): Likewise.
74203         (all_local): Don't depend on stat.c or lstat.c.
74204         (stat.c, lstat.c): Remove rules.
74205         (EXTRA_DIST): Remove xstat.in.
74206
74207         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74208         * lib/stat.c: New file.  Contents mostly from xstat.in.
74209         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74210         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74211
74212         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74213         too.
74214         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74215
74216 2002-12-03  Jim Meyering  <jim@meyering.net>
74217
74218         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74219         but not semantics, to minimize the differences between these two files.
74220         (safe_read): Change comment to mention SAFE_READ_ERROR.
74221
74222         * lib/safe-read.c (IS_EINTR): Define.
74223         (safe_read): Use IS_EINTR in place of in-function cpp directives.
74224
74225 2002-12-02  Jim Meyering  <jim@meyering.net>
74226
74227         * lib/safe-read.c (EINTR): Define.
74228         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74229         (INT_MAX): Provide fallback.
74230         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
74231
74232         * lib/safe-read.h (SAFE_READ_ERROR): Define.
74233
74234 2002-12-02  Bruno Haible  <bruno@clisp.org>
74235
74236         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
74237         Define, taken from safe-read.c.
74238         (INT_MAX): Provide fallback.
74239         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
74240         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
74241
74242         * lib/safe-read.c (EINTR): Remove definition.
74243         (safe_read): Don't use EINTR if it is absent.
74244
74245 2002-12-01  Jim Meyering  <jim@meyering.net>
74246
74247         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
74248         zero.
74249         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
74250
74251 2002-11-27  Paul Eggert  <eggert@twinsun.com>
74252
74253         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
74254         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
74255         with `if (! (value < limit)) abort ();', for readability.
74256
74257 2002-11-26  Karl Berry  <karl@gnu.org>
74258
74259         * lib/strdup.c: copy from libc again, with jim's ok.
74260         * lib/.cppi-disable: re-add strdup.c
74261
74262 2002-11-25  Karl Berry  <karl@gnu.org>
74263
74264         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
74265         instead of "strtol.c".
74266
74267 2002-11-25  Karl Berry  <karl@gnu.org>
74268
74269         * config/install-sh: update from automake for variable quoting, $0 in
74270         error msgs, etc.
74271
74272         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
74273         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
74274         entry.
74275
74276 2002-11-25  Jim Meyering  <jim@meyering.net>
74277
74278         * lib/mktime.c: Sync from libc, now that it has the latest fix.
74279
74280 2002-11-24  Karl Berry  <karl@gnu.org>
74281
74282         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
74283         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
74284
74285 2002-11-24  Jim Meyering  <jim@meyering.net>
74286
74287         Update from coreutils:
74288
74289         * lib/mktime.c: Merge in changes from libc.
74290
74291         Avoid a link-time failure on some Linux systems.
74292         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
74293         (otherwise).
74294         (__mon_yday): Declare with the STATIC attribute.
74295         (__mktime_internal): Likewise.
74296         Based on a report from Greg Schafer.
74297
74298 2002-11-23  Jim Meyering  <jim@meyering.net>
74299
74300         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
74301         Use `unsigned', not `int', as type of index.
74302
74303         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
74304
74305         * lib/fsusage.c: Remove unneeded parentheses around operands of
74306         `defined'.
74307
74308 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74309
74310         * lib/quotearg.h: Allow multiple inclusion by surrounding with
74311         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
74312         so that we can be included first.
74313         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
74314         * lib/quotearg.c: Include quotearg.h immediately after config.h.
74315         No need to include stddef.h or sys/types.h any more.
74316         Surround local include files with "", not "<>".
74317         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
74318         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
74319         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
74320         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
74321         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
74322         (ISPRINT): Remove; no longer needed now that we assume C89.
74323
74324         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
74325         Preserve errno.
74326
74327         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
74328         quotearg_char): Use SIZE_MAX rather than
74329         (size_t) -1 when we are talking about "infinity".
74330
74331         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
74332
74333 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74334
74335         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
74336         hint that one should use `if (! x) abort ();' rather than `assert
74337         (x);', and anyway it's one less thing to worry about configuring.
74338         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
74339         hash_rehash, hash_insert): Use abort rather than assert.
74340
74341 2002-11-22  Bruno Haible  <bruno@clisp.org>
74342
74343         * lib/safe-read.h: Assume C89. Add comments.
74344         (safe_read): Change return type to size_t.
74345         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
74346         byte counts > SSIZE_MAX correctly.
74347         * lib/safe-write.h: New file.
74348         * lib/safe-write.c: New file.
74349         * lib/full-read.h: New file.
74350         * lib/full-read.c: New file.
74351         * lib/full-write.h: Assume C89. Add comments.
74352         * lib/full-write.c: Include safe-write.h.
74353         (full_write): Rewritten to use safe_write.
74354         Suggested by Jim Meyering and Paul Eggert.
74355
74356 2002-11-21  Jim Meyering  <jim@meyering.net>
74357
74358         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
74359
74360         Merge in changes from the coreutils.
74361
74362         2002-09-25  Paul Eggert  <eggert@twinsun.com>
74363         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
74364         <stdint.h>.
74365         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
74366         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
74367         int.  Work more efficiently if X is the same width as uintmax_t.
74368         Do not compare X to -1, to avoid bogus compiler warning.
74369         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
74370         Don't assume that f_frsize and f_bsize are the same type.
74371
74372         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
74373         warning on FreeBSD.
74374
74375         * lib/makepath.c (make_path): Restore umask *before* creating the final
74376         component.
74377         (make_path): Minor reformatting.
74378
74379         * lib/xmalloc.c: Adjust to work with new autoconf macros,
74380         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
74381         HAVE_MALLOC/HAVE_REALLOC.
74382
74383         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
74384         dummy ones.  At least on GNU/Linux systems, `auto' means something
74385         else.
74386         From Michael Stone.
74387
74388 2002-11-21  Bruno Haible  <bruno@clisp.org>
74389
74390         Remove case insensitive option matching.
74391         * lib/argmatch.h (argcasematch): Remove declaration.
74392         (ARGCASEMATCH): Remove macro.
74393         (__xargmatch_internal): Remove case_sensitive argument.
74394         (XARGMATCH): Update.
74395         (XARGCASEMATCH): Remove macro.
74396         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
74397         case_sensitive argument.
74398         (argcasematch): Remove function.
74399         (__xargmatch_internal): Remove case_sensitive argument.
74400         (main): Use XARGMATCH instead of XARGCASEMATCH.
74401
74402         * lib/xmalloc.c: Change compile-time error message. Add comment about
74403         required autoconf version.
74404
74405 2002-11-20  Paul Eggert  <eggert@twinsun.com>
74406
74407         Merge argmatch cleanups from Bison.  Assume C89.
74408
74409         * lib/argmatch.c: Include config.h here, not in argmatch.h.
74410         Include stdlib.h, for EXIT_FAILURE.
74411         Always include <string.h>, since we assume C89.
74412         (EXIT_FAILURE): Remove pre-C89 bug workaround.
74413         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
74414         Include <stddef.h> instead, since it's all we need for size_t.
74415         (PARAMS): Remove.  All uses removed.
74416         (ARRAY_CARDINALITY): Do not bother to #undef.
74417         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
74418         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74419         Remove unnecessary parentheses.
74420         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74421         Insert necessary parentheses.
74422         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
74423         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
74424
74425 2002-11-19  Bruno Haible  <bruno@clisp.org>
74426
74427         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
74428         * lib/mbswidth.h: Include <stddef.h>, for size_t.
74429
74430         * lib/mbswidth.h (PARAMS): Remove macro.
74431         (mbswidth, mbsnwidth): Use ANSI C function declarations.
74432         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
74433
74434         * lib/gcd.h (PARAMS): Remove macro.
74435         (gcd): Use ANSI C function declarations.
74436         * lib/gcd.c (gcd): Likewise.
74437
74438 2002-11-15  Bruno Haible  <bruno@clisp.org>
74439
74440         * lib/strcspn.c: Include <stddef.h>.
74441         (strcspn): Use ANSI C function declaration. Change return type to
74442         size_t. Use NULL.
74443         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
74444         (strpbrk): Use NULL.
74445         * lib/strpbrk.h (PARAMS): Remove macro.
74446         (strpbrk): Use ANSI C function declaration.
74447         * lib/strstr.c: Don't include <sys/types.h>.
74448         * lib/strstr.h (PARAMS): Remove macro.
74449         (strstr): Use ANSI C function declarations.
74450
74451 2002-11-14  Karl Berry  <karl@gnu.org>
74452
74453         * config/mkinstalldirs: `do' on separate line, instead of
74454         `for var; do'.
74455
74456 2002-11-06  Bruno Haible  <bruno@clisp.org>
74457
74458         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
74459         * lib/gcd.c (gcd): Likewise.
74460
74461 2002-11-05  Bruno Haible  <bruno@clisp.org>
74462
74463         * lib/gcd.h: New file, from gettext-0.11.5.
74464         * lib/gcd.c: New file, from gettext-0.11.5.
74465
74466 2002-11-05  Bruno Haible  <bruno@clisp.org>
74467
74468         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74469         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74470         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74471         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74472
74473         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
74474         <libintl.h>.
74475         * lib/makepath.c: Include gettext.h instead of <locale.h> and
74476         <libintl.h>.
74477
74478         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
74479         * lib/human.c: Include gettext.h instead of <libintl.h>.
74480         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
74481         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
74482         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
74483         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
74484         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
74485         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
74486         (textdomain): Remove definition.
74487         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
74488
74489         * lib/long-options.c: Remove include of <libintl.h> and definition of
74490         _.
74491         * lib/same.c: Remove include of <libintl.h> and definition of _.
74492
74493 2002-11-04  Owen Taylor  <otaylor@redhat.com>
74494
74495         * lib/config.charset: A few additions for Solaris.
74496
74497 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74498
74499         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
74500         * lib/localcharset.c (locale_charset): Declare as extern "C".
74501
74502 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74503
74504         * lib/config.charset: msdos in uk_UA uses CP1125.
74505
74506 2002-11-04  Bruno Haible  <bruno@clisp.org>
74507
74508         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
74509         * lib/strcase.h: New file, from GNU gettext-0.11.5.
74510         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
74511         * lib/strstr.h: New file, from GNU gettext-0.11.5.
74512         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
74513
74514 2002-11-04  Bruno Haible  <bruno@clisp.org>
74515
74516         * lib/localcharset.c (locale_charset): Don't return an empty string.
74517
74518 2002-11-04  Bruno Haible  <bruno@clisp.org>
74519
74520         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
74521         aliases.
74522
74523 2002-11-04  Bruno Haible  <bruno@clisp.org>
74524
74525         * lib/config.charset: Update for newest glibc. Add canonical names
74526         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
74527
74528 2002-11-04  Bruno Haible  <bruno@clisp.org>
74529
74530         * lib/config.charset: Add support for NetBSD.
74531
74532 2002-11-04  Bruno Haible  <bruno@clisp.org>
74533
74534         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
74535
74536 2002-11-01  Bruno Haible  <bruno@clisp.org>
74537
74538         * configure.in: Add AC_CONFIG_AUX_DIR call.
74539         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
74540         test/Makefile.
74541         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
74542
74543 2002-09-28  Karl Berry  <karl@gnu.org>
74544
74545         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
74546         installed automake until the next release, since changes have been
74547         made.
74548
74549 2002-09-25  Karl Berry  <karl@gnu.org>
74550
74551         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
74552         * lib/getopt*: copy from libc/posix.
74553         * lib/gettext.h: copy from gettext.
74554         * lib/.cppi-disable: add strdup.c, gettext.h.
74555
74556 2002-09-25  Karl Berry  <karl@gnu.org>
74557
74558         * config/srclist.txt: enable gettext.h check.
74559         * config/config.{guess,sub}: update from prep.
74560         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74561                 from automake 1.6.3.
74562         See srclist*.
74563
74564 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74565
74566         * regex.c (PATFETCH): Remove the translating fetch.
74567         (PATFETCH_RAW): Rename to PATFETCH.
74568         (set_image_of_range): New fun.
74569         (SET_RANGE_TABLE_WORK_AREA): Use it.
74570         (regex_compile): Don't translate the pattern chars so eagerly.
74571         Only do it when inserting an `exactn' bytecode or when handling
74572         a char-range.
74573         (mutually_exclusive_p): Avoid empty statement.
74574
74575 2002-07-06  Jim Meyering  <meyering@lucent.com>
74576
74577         * m4/README: Don't mention Makefile.am.in.
74578         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74579
74580 2002-07-01  Jim Meyering  <meyering@lucent.com>
74581
74582         * lib/c-stack.c: Include sys/time.h.
74583         From Volker Borchert.
74584
74585 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74586
74587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74588
74589 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74590
74591         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74592         New macro.  Use it uniformly instead of
74593         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74594         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74595         reported by Vin Shelton.
74596
74597 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74598
74599         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74600         Do not assume SA_SIGINFO behavior.
74601         Bug reported by Jim Meyering on NetBSD 1.5.2.
74602
74603 2002-06-22  Jim Meyering  <meyering@lucent.com>
74604
74605         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74606         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74607
74608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74609         now that configure.ac uses AC_GNU_SOURCE.
74610         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74611         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74612
74613         Update to latest tools.  Suggestions from Paul Eggert.
74614         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74615         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74616         * m4/fnmatch.m4: Likewise.
74617         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74618         to AC_HEADER_STDBOOL
74619
74620 2002-06-22  Jim Meyering  <meyering@lucent.com>
74621
74622         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74623         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74624
74625 2002-06-22  Jim Meyering  <meyering@lucent.com>
74626
74627         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74628
74629         * lib/exitfail.c, exitfail.h: Likewise.
74630         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74631
74632         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74633         of fnmatch.h.
74634         (EXTRA_DIST): Add fnmatch_loop.c.
74635         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74636
74637         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74638         * lib/fnmatch.c: Update from diffutils-2.8.2.
74639         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74640         * lib/fnmatch.h: Remove file.
74641
74642 2002-06-21  Jim Meyering  <meyering@lucent.com>
74643
74644         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74645         * m4/mbrtowc.m4: Likewise.
74646
74647         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74648         * m4/mbswidth.m4: Reflect name change:
74649         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74650         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74651
74652         * m4/lib-link.m4: Update from gettext-0.11.2.
74653         * m4/gettext.m4: Likewise.
74654
74655         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74656         From Alfred M. Szmidt.
74657
74658 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74659
74660         * lib/file-type.h: Report an error if neither S_ISREG nor
74661         S_IFREG is defined, instead of using a test specific to glibc
74662         2.2.  This should be safe, since POSIX requires S_ISREG and
74663         Unix Version 7 had S_IFREG.  We don't need to check for
74664         <sys/types.h> since we don't use any symbols that it defines.
74665
74666 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74667
74668         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74669         $@-t, so that each temporary file name is unique and valid in the first
74670         8 characters, for operation under DOS.
74671
74672 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74673
74674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74675
74676 2002-06-15  Jim Meyering  <meyering@lucent.com>
74677
74678         Work even with DJGPP 2.03, which lacks support for symlinks.
74679         From Richard Dawe.
74680         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74681         is defined.
74682         * lib/lchown.c (S_ISLNK): Likewise.
74683
74684 2002-06-15  Jim Meyering  <meyering@lucent.com>
74685
74686         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74687         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74688         have been included before this file.
74689
74690 2002-06-14  Jim Meyering  <meyering@lucent.com>
74691
74692         * lib/file-type.h: Use the version from diffutils-2.8.2.
74693         * lib/file-type.c: Likewise.
74694
74695 2002-06-07  Jim Meyering  <meyering@lucent.com>
74696
74697         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74698         They're needed at least for NetBSD 1.5.2.
74699         ($statxfs_includes): Include those same headers.
74700         ($statxfs_includes): Include sys/vfs.h if available.
74701         ($statxfs_includes): Likewise for sys/statvfs.h.
74702         Check for the following members in both structs statfs and statvfs:
74703         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74704
74705 2002-06-01  Jim Meyering  <meyering@lucent.com>
74706
74707         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74708         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74709
74710 2002-05-28  Jim Meyering  <meyering@lucent.com>
74711
74712         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74713         Reported by Volker Borchert.
74714
74715 2002-05-27  Jim Meyering  <meyering@lucent.com>
74716
74717         Fix a problem seen only on nonconforming systems whereby ls.c's
74718         use of localtime, and then of gettimeofday would cause trouble:
74719         the localtime call used to initialize rpl_gettimeofday's save
74720         mechanism would clobber ls's current local time information so
74721         that in any long listing the first file would always be listed
74722         with date 1970-01-01.  Analysis by Volker Borchert.
74723
74724         * lib/gettimeofday.c (localtime): Undefine.
74725         (rpl_localtime): New function.
74726
74727 2002-05-27  Jim Meyering  <meyering@lucent.com>
74728
74729         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74730         localtime.
74731
74732         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74733         use the replacement function; it wouldn't resolve at link time.
74734         Reported by Volker Borchert.
74735
74736 2002-05-22  Jim Meyering  <meyering@lucent.com>
74737
74738         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74739         file-type.h.
74740         * lib/file-type.h: New file.
74741         * lib/file-type.c (file_type): New file/function.  Extracted from
74742         diffutils.
74743
74744 2002-04-30  Jim Meyering  <meyering@lucent.com>
74745
74746         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74747
74748 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74749
74750         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74751
74752 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74753
74754         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74755         Do not check for alloca.h (no longer used) or stdbool.h (was never
74756         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74757
74758 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74759
74760         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74761
74762 2002-04-29  Jim Meyering  <meyering@lucent.com>
74763
74764         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74765         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74766         Use AC_FUNC_STRNLEN here instead.
74767
74768         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74769         With autoconf-2.53a, it's part of AC_PROG_CC.
74770
74771 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74772
74773         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74774         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74775
74776 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74777
74778         * lib/sig2str.h, lib/sig2str.c: New files.
74779         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74780
74781 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74782
74783         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74784         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74785         of 127, since 64 is the largest conceivable number for ancient
74786         nonstandard hosts.
74787         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74788
74789 2002-04-28  Jim Meyering  <meyering@lucent.com>
74790
74791         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74792
74793 2002-04-24  Jim Meyering  <meyering@lucent.com>
74794
74795         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74796         (jm_PREREQ): Use it.
74797
74798         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74799         mach/mach.h fcntl.h.
74800         Check for this function: setlocale.
74801
74802 2002-04-24  Jim Meyering  <meyering@lucent.com>
74803
74804         * lib/gettext.h: New file, from Gettext.
74805         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74806         (libfetish_a_SOURCES): Add gettext.h.
74807
74808 2002-04-16  Jim Meyering  <meyering@lucent.com>
74809
74810         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74811         ut_pid, ut_id, ut_exit.
74812
74813 2002-04-16  Jim Meyering  <meyering@lucent.com>
74814
74815         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74816         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74817         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74818
74819 2002-04-12  Jim Meyering  <meyering@lucent.com>
74820
74821         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74822         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74823         existence of the getmntinfo function.  Needed for Darwin 5.3.
74824
74825         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74826         This is necessary at least on Darwin 5.3.
74827
74828         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74829         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74830         strnlen.o in the library, and that makes some versions of ranlib
74831         object.
74832
74833 2002-04-12  Jim Meyering  <meyering@lucent.com>
74834
74835         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74836
74837 2002-04-09  Jim Meyering  <meyering@lucent.com>
74838
74839         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74840         to be more precise.  Rather than saying we're checking whether the
74841         function `works', say what we're testing.
74842         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74843         Reported by Bruno Haible.
74844
74845 2002-03-10  Jim Meyering  <meyering@lucent.com>
74846
74847         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74848         Suggestion from Santiago Vila.
74849
74850 2002-03-08  Jim Meyering  <meyering@lucent.com>
74851
74852         * lib/rename.c: Mention that this wrapper is needed also on
74853         mips-dec-ultrix4.4 systems.
74854
74855 2002-03-02  Jim Meyering  <meyering@lucent.com>
74856
74857         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74858         not HAVE_CLOCK_SETTIME.
74859
74860 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74861
74862         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74863         Check for clock_settime.
74864
74865 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74866
74867         * lib/nanosleep.h: Rename to....
74868         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74869
74870         * lib/gettime.c: New file.
74871         * lib/settime.c: New file.
74872         * lib/stime.c: Remove.
74873
74874         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74875         timespec.h.  Remove nanosleep.h.
74876
74877 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74878
74879         * m4/acl.m4: New file.
74880         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74881         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74882
74883 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74884
74885         * lib/acl.c, lib/acl.h: New files.
74886         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74887
74888 2002-02-24  Jim Meyering  <meyering@lucent.com>
74889
74890         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74891         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74892         cause trouble.  Reported by Nelson Beebe.
74893
74894 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74895
74896         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74897         compilers that don't know that xalloc_die never returns.
74898
74899 2002-02-20  Jim Meyering  <meyering@lucent.com>
74900
74901         * lib/getdate.c: Regenerate using bison-1.33.
74902
74903 2002-02-17  Jim Meyering  <meyering@lucent.com>
74904
74905         * config/config.guess (main): Don't use `head -1'; it's no longer
74906         portable. Use `sed 1q' instead.
74907
74908 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74909
74910         * m4/codeset.m4: Upgrade to gettext-0.11.
74911         * m4/gettext.m4: Upgrade to gettext-0.11.
74912         * m4/glibc21.m4: Upgrade to gettext-0.11.
74913         * m4/iconv.m4: Upgrade to gettext-0.11.
74914         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74915         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74916         * m4/lib-ld.m4: New file, from gettext-0.11.
74917         * m4/lib-link.m4: New file, from gettext-0.11.
74918         * m4/lib-prefix.m4: New file, from gettext-0.11.
74919         * m4/progtest.m4: Upgrade to gettext-0.11.
74920
74921 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74922
74923         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74924         (jm_PREREQ): Use it.
74925
74926 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74927
74928         * lib/posixver.c, lib/posixver.h: New files.
74929         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74930
74931 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74932             Bruno Haible  <bruno@clisp.org>
74933
74934         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
74935         (fwrite_success_callback): New declaration.
74936         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74937         print_unicode_char. Call failure callback instead of error.
74938         (fwrite_success_callback): New function.
74939         (exit_failure_callback): New function.
74940         (fallback_failure_callback): New function.
74941         (print_unicode_char): Call unicode_to_mb.
74942
74943 2002-01-26  Jim Meyering  <meyering@lucent.com>
74944
74945         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74946         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74947
74948 2002-01-26  Jim Meyering  <meyering@lucent.com>
74949
74950         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74951
74952 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74953
74954         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74955
74956 2002-01-22  Jim Meyering  <meyering@lucent.com>
74957
74958         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74959         Otherwise, some versions of automake would omit the rule that makes
74960         Makefile from Makefile.in.
74961
74962 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74963
74964         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74965         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74966         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74967         (memcoll): Set errno to zero if there is no error.
74968
74969         * lib/quotearg.c (quotearg_buffer_restyled):
74970         Fix bug with quoting buffers containing NUL when backslashing escapes.
74971         This bug was exposed by the other changes in this patch.
74972         (quotearg_n_options): New arg ARGSIZE.
74973         All callers changed.
74974         (quoting_options_from_style): New function.
74975         (quotearg_n_style): Use it.
74976         (quotearg_n_style_mem): New function.
74977
74978         * lib/quotearg.h (quotearg_n_style_mem): New function.
74979
74980 2002-01-19  Jim Meyering  <meyering@lucent.com>
74981
74982         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74983         Remove useless quotes: DF_PROG="df".
74984         * m4/strnlen.m4: New file.
74985
74986 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74987
74988         * lib/backupfile.c (ISDIGIT): Comment fix.
74989         * lib/getdate.y (ISDIGIT): Likewise.
74990         * lib/posixtm.c (ISDIGIT, year): Likewise.
74991         * lib/strverscmp.c (ISDIGIT): Likewise.
74992         * lib/userspec.c (ISDIGIT): Likewise.
74993
74994 2002-01-16  Jim Meyering  <meyering@lucent.com>
74995
74996         * lib/getdate.y: Add three semicolons, each just before a closing
74997         brace. Bison (as of version 1.31) no longer papers over that mistake.
74998
74999 2002-01-05  Jim Meyering  <meyering@lucent.com>
75000
75001         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75002
75003 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75004
75005         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75006         not silently exit merely because the output buffer happens to
75007         have nothing pending.
75008
75009 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75010
75011         See the big note in ../ChangeLog.
75012         * lib/human.c (suffixes): Prefer K to k for 1024.
75013         (generate_suffix_backwards): New function.
75014         (human_readable_inexact): Use it.
75015         * lib/xstrtol.c (__xstrtol): If there is no number but there
75016         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75017         Accept 'K' as well as 'k'.
75018
75019 2001-12-15  Jim Meyering  <meyering@lucent.com>
75020
75021         * lib/regex.h (__restrict_arr): Update from libc.
75022
75023         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75024         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75025         (STREQ): Define.
75026
75027 2001-12-14  Jim Meyering  <meyering@lucent.com>
75028
75029         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75030         Suggestion from Bruno Haible.
75031
75032 2001-12-10  Jim Meyering  <meyering@lucent.com>
75033
75034         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75035         xrealloc, Instead, include "xalloc.h".
75036         (initbuffer): Don't cast xmalloc return value to char*.
75037         (readline): Reword comment.
75038         Don't cast xrealloc return value to char*
75039         Return NULL, not 0.
75040
75041 2001-12-09  Jim Meyering  <meyering@lucent.com>
75042
75043         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75044         about `signed and unsigned type in conditional expression'.
75045         * lib/posixtm.c (posix_time_parse): Likewise.
75046
75047         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75048
75049         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75050         to avoid a pedantic warning.
75051
75052         * lib/getstr.c: Don't include assert.h.
75053         (getstr): Remove warning-evoking assertions.
75054         Return -1 if offset parameter is out of bounds.
75055         Change the type of a local from int to size_t.
75056
75057         * lib/strftime.c (my_strftime_localtime_r): Include this function
75058         definition in the `#if ! HAVE_TM_GMTOFF' block.
75059
75060         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75061         Include xalloc.h instead.
75062
75063 2001-12-02  Jim Meyering  <meyering@lucent.com>
75064
75065         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75066         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75067         included.
75068
75069         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75070         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75071
75072 2001-11-30  Akim Demaille  <akim@epita.fr>
75073
75074         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75075         before being defined.
75076
75077 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75078
75079         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75080         First arg is int, not unsigned.
75081         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75082         (SIZE_MAX, UINT_MAX): New macros.
75083         (quotearg_n_options): Abort if N is negative.
75084         Avoid overflow check on hosts where size_t is 64 bits and int
75085         is 32 bits, as overflow is impossible there.
75086         Fix off-by-one typo that caused unnecessary reallocation.
75087
75088 2001-11-27  Jim Meyering  <meyering@lucent.com>
75089
75090         * lib/tempname.c: Merge with version from libc.
75091         * lib/regex.c: Likewise.
75092
75093         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75094         systems for which STDC_HEADERS is 0, it was not included, resulting in
75095         a warning about an integer-to-pointer conversion problem with getenv.
75096         Reported by Volker Borchert.
75097
75098 2001-11-26  Jim Meyering  <meyering@lucent.com>
75099
75100         * lib/gtod.h: Remove file.
75101         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75102         * lib/gettimeofday.c: Don't include gtod.h.
75103         (GTOD_init): Remove function.
75104         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75105         Suggestion from Volker Borchert.
75106
75107 2001-11-23  Jim Meyering  <meyering@lucent.com>
75108
75109         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75110         it.
75111         * lib/hash.c (struct hash_table): Define it here instead.
75112
75113 2001-11-22  Jim Meyering  <meyering@lucent.com>
75114
75115         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75116
75117 2001-11-20  Jim Meyering  <meyering@lucent.com>
75118
75119         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75120         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75121
75122 2001-11-19  Jim Meyering  <meyering@lucent.com>
75123
75124         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75125         directory.  Use "conftestXXXXXX" as the template.
75126         Suggestion from Paul Eggert.
75127
75128         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75129         immediately, so the test doesn't mistakenly hit the max-open-files
75130         limit.
75131
75132 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75133
75134         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75135         (TEMPORARIES): New macro.
75136         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75137         removes an artificial limitation (e.g. HP-UX 10.20, where
75138         TMP_MAX is 17576).
75139
75140 2001-11-18  Jim Meyering  <meyering@lucent.com>
75141
75142         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75143
75144 2001-11-18  Jim Meyering  <meyering@lucent.com>
75145
75146         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75147         on SunOS 4.
75148
75149         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75150         files will be created before anything else.
75151
75152 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75153
75154         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75155         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75156
75157 2001-11-17  Jim Meyering  <meyering@lucent.com>
75158
75159         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75160         Prompted by a report from Bob Proulx.
75161
75162         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75163         Instead, require UTILS_FUNC_MKSTEMP.
75164
75165 2001-11-17  Jim Meyering  <meyering@lucent.com>
75166
75167         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75168         Now, that's done as part of AC_FUNC_STRTOD.
75169
75170 2001-11-17  Jim Meyering  <meyering@lucent.com>
75171
75172         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75173         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75174         rather than group writable.  Patch by Juan F. Codagnone.
75175
75176         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75177         xrealloc, Instead, include "xalloc.h".
75178
75179         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75180         Remove explicit declarations of xmalloc, xrealloc,
75181         and xstrdup.  Instead, include "xalloc.h".
75182
75183         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75184         unlocked-io.h.
75185         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75186         Likewise.
75187         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75188
75189         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75190         Reported by Padraig Brady.
75191
75192         * lib/mkstemp.c: #undef mkstemp.
75193         Include config.h.
75194         (rpl_mkstemp): Rename from mkstemp.
75195         Protoize.
75196
75197 2001-11-16  Jim Meyering  <meyering@lucent.com>
75198
75199         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75200         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75201         determine the amount of total physical memory, use pstat_getstatic.
75202         HPUX-11 doesn't define _SC_PHYS_PAGES.
75203         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75204         If sysconf couldn't be used to determine the amount of available
75205         physical memory, use both pstat_getstatic and pstat_getdynamic.
75206         Based on a patch from Bob Proulx.
75207
75208 2001-11-10  Jim Meyering  <meyering@lucent.com>
75209
75210         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75211         (jm_PREREQ): Use it.
75212
75213 2001-11-09  Jim Meyering  <meyering@lucent.com>
75214
75215         * m4/jm-macros.m4: Require autoconf-2.52f.
75216         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75217         Use these AC_-prefixed names, not the AM_-prefixed ones.
75218
75219         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75220
75221 2001-11-05  Jim Meyering  <meyering@lucent.com>
75222
75223         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
75224
75225 2001-11-04  Jim Meyering  <meyering@lucent.com>
75226
75227         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
75228         $DEFS.
75229
75230 2001-11-03  Jim Meyering  <meyering@lucent.com>
75231
75232         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
75233         of AC_DEFUN.
75234
75235         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
75236         know the name of the variable in the macro definition.
75237
75238 2001-11-03  Jim Meyering  <meyering@lucent.com>
75239
75240         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
75241         in argmatch_to_argument call.
75242
75243         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
75244         argument.
75245
75246         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
75247         e.g., a fault due to an attempt to free a NULL pointer.
75248
75249 2001-11-01  Jim Meyering  <meyering@lucent.com>
75250
75251         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
75252         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
75253
75254 2001-11-01  Jim Meyering  <meyering@lucent.com>
75255
75256         * lib/dirfd.c, lib/dirfd.h: New files.
75257         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
75258
75259         * lib/hash.c (hash_print) [TESTING]: Clean up.
75260
75261 2001-10-22  Paul Eggert  <eggert@twinsun.com>
75262
75263         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
75264         to avoid a warning if -Wall.
75265
75266 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
75267
75268         * README: New file
75269         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
75270         (per RMS's instructions, this is now the canonical source)
75271         * lgpl/, gpl/: New directories.
75272
75273 2001-10-21  Paul Eggert  <eggert@twinsun.com>
75274
75275         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
75276
75277 2001-10-21  Jim Meyering  <meyering@lucent.com>
75278
75279         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
75280         this code would end up calling gettext even in packages built
75281         with --disable-nls.
75282         * lib/getopt.c (_): Likewise.
75283         * lib/regex.c (_): Likewise.
75284
75285 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75286
75287         * m4/error.m4 (jm_PREREQ_ERROR):
75288         Do not invoke AC_CHECK_FUNCS with strerror_r, as
75289         AC_FUNC_STRERROR_R does that.
75290         Check for strerror declaration.
75291
75292         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
75293         are supposed to have them these days.
75294         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
75295         Merge changes from latest Autoconf CVS.
75296         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
75297         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
75298         POSIX decided to standardize on the int flavor of strerror_r.
75299
75300 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75301
75302         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
75303         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
75304         Use strerror_r that is only a macro, even if it is not a function.
75305         (strerror): Check for HAVE_DECL_STRERROR before declaring.
75306         (private_strerror): Use prototypes, not old-style function definition.
75307         (print_errno_message): New function.
75308         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
75309         char*-flavored one.
75310         (error_tail, error, error_at_line): Use it.
75311
75312 2001-10-11  Jim Meyering  <meyering@lucent.com>
75313
75314         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
75315         and quote_n (1, ... to avoid clobbering a buffer.
75316
75317 2001-10-05  Jim Meyering  <meyering@lucent.com>
75318
75319         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
75320         hash-pjw.h.
75321         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
75322         * lib/hash-pjw.h: New file.
75323
75324 2001-09-30  Jim Meyering  <meyering@lucent.com>
75325
75326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
75327         `struct fsstat' has the `f_fstypename' member.
75328         Use that to define FS_TYPE, which is now used to make
75329         the getfsstat link test tighter.
75330
75331 2001-09-30  Jim Meyering  <meyering@lucent.com>
75332
75333         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
75334         Include <sys/ucred.h>, for Apple Darwin.
75335         Include sys/mount.h and sys/fs_types.h only if available.
75336         (FS_TYPE): Define.
75337         (read_filesystem_list): Use FS_TYPE.
75338
75339 2001-09-29  Paul Eggert  <eggert@twinsun.com>
75340
75341         * lib/exclude.c (excluded_filename): 0 -> false, since it's
75342         a boolean context.
75343
75344 2001-09-29  Jim Meyering  <meyering@lucent.com>
75345
75346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75347         [one-argument getmntent function]): Include stdio.h before mntent.h.
75348         SunOS 4.1.x needs it for the declaration of `FILE'.
75349         Patch by Volker Borchert.
75350
75351         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75352         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
75353         sys/fs_types.h, and make the link-test for getfsstat guard #include
75354         directives with appropriate #if HAVE_*_H tests so that we can
75355         detect getfsstat on Apple Darwin1.3.7 systems.
75356         Reported by Nelson Beebe.
75357         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
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         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75366         Check for strtoul and strtoumax,
75367         as those declarations are made even in the signed case.
75368         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
75369         Likewise, for strtol and strtoimax.
75370
75371 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75372
75373         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75374         #defines strtoimax.  Also treat the other strto* functions
75375         like strtoimax.
75376
75377         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
75378         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
75379         (strtoimax, strtoumax): Do not declare if already defined as a macro.
75380
75381 2001-09-26  Jim Meyering  <meyering@lucent.com>
75382
75383         Most macros in unlocked-io.h had the wrong number of arguments.
75384         * lib/gen-uio: New script.
75385         (USE_UNLOCKED_IO): Define to 1 if not already defined.
75386         * lib/unlocked-io.hin: Remove file.
75387         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
75388         rather than trying to embed it here.
75389         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
75390         Reported by Padraig Brady.
75391
75392 2001-09-25  Volker Borchert  <bt@teknon.de>
75393
75394         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
75395         `result'.
75396
75397 2001-09-24  Jim Meyering  <meyering@lucent.com>
75398
75399         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
75400
75401 2001-09-23  Jim Meyering  <meyering@lucent.com>
75402
75403         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
75404         instead of the mere test for existence of mntent.h.  The latter
75405         would get a false-positive on AIX 3.4 systems.
75406         In the outer getmntent if-block, don't die if neither of the getmntent
75407         tests succeeds.  Instead, just fall through and continue with the
75408         remaining tests.
75409
75410 2001-09-23  Jim Meyering  <meyering@lucent.com>
75411
75412         * lib/mountlist.c: Remove useless parentheses in #if directives.
75413         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
75414         the deprecated MOUNTED symbol is no longer defined in mntent.h.
75415
75416 2001-09-22  Jim Meyering  <meyering@lucent.com>
75417
75418         * m4/gettext.m4: New file.  From gettext.
75419         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
75420         * m4/progtest.m4: Likewise
75421         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
75422         * m4/glibc21.m4: Likewise.
75423
75424         * m4/libintl.m4: Remove.  No longer used.
75425
75426 2001-09-22  Jim Meyering  <meyering@lucent.com>
75427
75428         * lib/localcharset.c: Update from latest gettext.
75429         * lib/config.charset: Likewise.
75430
75431 2001-09-20  Jim Meyering  <meyering@lucent.com>
75432
75433         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
75434         strtoimax.
75435         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
75436         strtoumax.
75437
75438 2001-09-20  Jim Meyering  <meyering@lucent.com>
75439
75440         * lib/xstrtol.c (strtoimax): Guard declaration with
75441         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
75442         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
75443         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
75444         (strtoumax): Likewise, for completeness (it wasn't necessary).
75445
75446 2001-09-17  Paul Eggert  <eggert@twinsun.com>
75447
75448         * lib/strtoimax.c (HAVE_LONG_LONG):
75449         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
75450         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
75451         to work around bug in IBM C compiler.
75452
75453 2001-09-17  Jim Meyering  <meyering@lucent.com>
75454
75455         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
75456         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
75457         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
75458         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
75459         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
75460         whenever the right hand side need not be expanded by the shell.
75461
75462 2001-09-16  Paul Eggert  <eggert@twinsun.com>
75463
75464         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
75465         library.  It's not correct, as some older glibcs are buggy.
75466         fnmatch wasn't fixed until glibc 2.2.
75467
75468         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
75469         special shell magic here.
75470
75471 2001-09-16  Jim Meyering  <meyering@lucent.com>
75472
75473         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
75474         * m4/jm-macros.m4: Require it.
75475
75476 2001-09-16  Jim Meyering  <meyering@lucent.com>
75477
75478         * lib/mkdir.c: New file.
75479
75480 2001-09-15  Jim Meyering  <meyering@lucent.com>
75481
75482         * m4/jm-macros.m4: Check for help2man.
75483
75484 2001-09-11  Jim Meyering  <meyering@lucent.com>
75485
75486         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
75487         The body, by Paul Eggert, was moved here from configure.in.
75488         * m4/jm-macros.m4: Require UTILS_HOST_OS.
75489
75490 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75491
75492         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
75493         (jm_PREREQ): Use it.
75494
75495 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75496
75497         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
75498         Use ssize_t, not int, to store result of readlink.
75499         Check for ssize_t overflow as well as size_t overflow,
75500         as POSIX says the result of readlink is implementation-defined
75501         when ssize_t overflows.
75502         Remove unnecessary cast to char*.
75503         Use free+malloc instead of realloc, as the storage doesn't need
75504         to be preserved and it's clearer and can be more efficient that way.
75505         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
75506         * lib/xreadlink.h (xreadlink): Update prototype.
75507
75508 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75509
75510         * lib/xgetcwd.c: Revert some of the previous change; intead,
75511         fix the HAVE_GETCWD_NULL code to behave more like the
75512         !HAVE_GETCWD_NULL code used to.
75513
75514         Include "xalloc.h".
75515         (xgetcwd): Do not return NULL when memory is exhausted; instead,
75516         invoke xalloc_die.
75517
75518 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75519
75520         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
75521         sys/param.h, as pathmax.h includes them.
75522
75523 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75524
75525         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
75526         (jm_PREREQ_XGETCWD): New macro.
75527
75528         * m4/getcwd.m4: New file.
75529
75530 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75531
75532         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
75533         like the HAVE_GETCWD_NULL code.
75534         Include pathmax.h if not HAVE_GETCWD.
75535         Do not include xalloc.h.
75536         (INITIAL_BUFFER_SIZE): New symbol.
75537         Do not use xmalloc / xrealloc, since the caller is responsible for
75538         handling errors.  Preserve errno around `free' during failure.
75539         Do not overrun buffer when using getwd.
75540
75541 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75542
75543         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
75544         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
75545         getcwd (NULL, 0).
75546
75547 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75548
75549         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
75550         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
75551         spotted by Jim Meyering.
75552
75553 2001-09-03  Jim Meyering  <meyering@lucent.com>
75554
75555         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
75556         failure.
75557
75558 2001-09-02  Jim Meyering  <meyering@lucent.com>
75559
75560         * lib/error.c: Update from GNU libc.
75561
75562 2001-09-01  Jim Meyering  <meyering@lucent.com>
75563
75564         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75565         Used by df.
75566
75567 2001-09-01  Jim Meyering  <meyering@lucent.com>
75568
75569         * lib/xreadlink.c: New file.
75570         * lib/xreadlink.h: New file.
75571         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75572         xreadlink.h.
75573
75574         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75575         doesn't conflict with sparc Solaris 7's definition in
75576         /usr/include/sys/int_types.h.
75577
75578         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75579         files.
75580         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75581         and strncasecmp as r-values.  Unixware didn't have declarations.
75582
75583 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75584
75585         * lib/xstrtol.h: Add copyright notice.
75586         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75587         LONGINT_INVALID_SUFFIX_CHAR.
75588
75589 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75590
75591         * lib/xstrtol.c (strtoimax): New decl.
75592
75593 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75594
75595         * lib/xgetcwd.c: Don't include pathmax.h.
75596         Include stdlib.h and unistd.h if available.
75597         Include xalloc.h.
75598         (xmalloc, xstrdup, free): Remove decls.
75599         (xgetcwd): Don't assume sizes fit in unsigned.
75600         Check for overflow when computing sizes.
75601         Simplify reallocation code.
75602
75603 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75604
75605         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75606         a directory's st_size can have an arbitrary value, so the old
75607         usage could waste an arbitrary amount of memory.  All uses
75608         changed.
75609         * lib/savedir.h: Update prototype.
75610
75611 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75612
75613         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75614
75615         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75616         old strtoimax.c.
75617
75618         Also, make the following further changes to make this file's
75619         configuration more similar to that of strtol.c:
75620         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75621         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75622         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75623         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75624         changed to signed values.
75625
75626         And make the following changes as well:
75627         Fix copyright notice, as 1999 was missing.
75628         (verify): New macro.
75629         (strtoimax): Check sizes at compile-time, not run-time.
75630         Prefer strtol to strtoll if both work.
75631         (main): Remove; it was not that useful and was a pain to maintain.
75632
75633         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75634
75635 2001-08-31  Jim Meyering  <meyering@lucent.com>
75636
75637         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75638         Use an initial, malloc'd, buffer of length 128 rather than
75639         a statically allocated one of length 1024.
75640
75641 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75642
75643         Simplify code, partly by assuming autoconf 2.52 semantics.
75644
75645         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75646
75647         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75648         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75649         All uses removed.
75650         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75651         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75652         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75653         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75654         jm_AC_HEADER_INTTYPES_H.
75655         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75656
75657         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75658
75659         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75660         Quote first arg of AC_DEFUN.
75661         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75662         since they are needed to parse the include file even if we need
75663         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75664         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75665         but with opposite signedness.
75666
75667 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75668
75669         Merge 'exclude' changes from tar 1.13.22.
75670         This fixes one or two unlikely storage allocation overflow bugs,
75671         but doesn't change user-visible behavior otherwise.
75672
75673 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75674
75675         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75676         (jm_PREREQ_EXCLUDE): New macro.
75677
75678 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75679
75680         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75681         tm to be declared.
75682
75683 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75684
75685         * lib/hash.c: Remove '2001' from copyright notice.
75686
75687 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75688
75689         * lib/full-write.h: New file.
75690         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75691         * lib/full-write.c: Correct credits, as cccp.c no longer
75692         exists and anyway it was so heavily changed from the old cccp
75693         code as to be unrecognizable.  Include full-write.h.
75694         (full_write) Return size_t, with short writes meaning failure.
75695         All callers changed.  This fixes a bug with large buffers
75696         on 64-bit hosts.
75697         * lib/utime.c: Include full-write.h.
75698
75699 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75700
75701         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75702         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75703         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75704         Include if available.
75705         (<xalloc.h>): Include
75706         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75707         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75708         collide with FNM macros.
75709         (struct patopts): New struct.
75710         (struct exclude): Use it, as exclude patterns now come with options.
75711         (new_exclude): Support above changes.
75712         (new_exclude, add_exclude_file):
75713         Initial size must now be a power of two to simplify overflow checking.
75714         (free_exclude, fnmatch_no_wildcards): New function.
75715         (excluded_filename): No longer requires options arg, as the options
75716         are determined by add_exclude.  Now returns bool, not int.
75717         (excluded_filename, add_exclude):
75718         Add support for the fancy new exclusion options.
75719         (add_exclude, add_exclude_file): Now takes int options arg.
75720         Check for arithmetic overflow when computing sizes.
75721         (add_exclude_file): xrealloc might modify errno, so don't
75722         realloc until after errno might be used.
75723
75724         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75725         New macros.
75726         (free_exclude): New decl.
75727         (add_exclude, add_exclude_file): Now takes int options arg.
75728         (excluded_filename): No longer requires options arg, as the options
75729         are determined by add_exclude.  Now returns bool, not int.
75730
75731 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75732
75733         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75734
75735 2001-08-27  Jim Meyering  <meyering@lucent.com>
75736
75737         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75738
75739         * lib/version-etc.c (N_): Remove definition.
75740         Revert most of last change.
75741         Instead, simply don't mark the `Copyright...' string for translation.
75742         Based on advice from Paul Eggert.
75743
75744         * lib/strtoxmax.c: Tweak comment.
75745
75746 2001-08-26  Jim Meyering  <meyering@lucent.com>
75747
75748         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75749
75750         * m4/xstrtoimax.m4: New file.
75751         * m4/xstrtoumax.m4: Add comments explaining why we
75752         AC_REPLACE_FUNCS(strtol).
75753
75754 2001-08-26  Jim Meyering  <meyering@lucent.com>
75755
75756         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75757         of copyright with `%s' so translators don't get an untranslated
75758         message in 2002.
75759         (COPYRIGHT_YEAR): Define.
75760         (version_etc): Use fprintf rather than fputs.
75761         Suggestion from Ulrich Drepper.
75762
75763         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75764
75765         * lib/strtoll.c: New file, from GNU libc.
75766         * lib/xstrtoimax.c: New file.
75767
75768         * lib/xstrtol.h: Add xstrtoimax.
75769         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75770         * lib/strtoimax.c: New file.  Likewise, but first define
75771         STRTOUXMAX_SIGNED.
75772
75773         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75774         ...
75775         * lib/strtoxmax.c: ... then renamed to this.
75776
75777 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75778
75779         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75780         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75781         (jm_AC_TYPE_INTMAX_T): New macro.
75782         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75783
75784         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75785
75786         * m4/longlong.m4: Renamed from ulonglong.m4.
75787         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75788         * m4/uintmax_t.m4: Removed.
75789
75790 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75791
75792         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75793         Port to Solaris 8, where 'sed' requires a space after the 'r'
75794         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75795         Redirect output to $tmp just once.
75796
75797 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75798
75799         * lib/addext.c (<errno.h>): Include.
75800         (errno): Declare if not defined.
75801         (addext): Work correctly when pathconf returns -1 and leaves
75802         errno alone because there is no limit.  Also, work even if
75803         pathconf returns a value greater than SIZE_MAX.
75804
75805 2001-08-12  Jim Meyering  <meyering@lucent.com>
75806
75807         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75808         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75809         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75810         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75811         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75812         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75813         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75814         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75815         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75816         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75817         utime.m4, utimes.m4, xstrtoumax.m4:
75818         Quote the first argument in each use of AC_DEFUN.
75819
75820 2001-08-12  Jim Meyering  <meyering@lucent.com>
75821
75822         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75823         Simply `return getcwd (NULL, 0);'.
75824         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75825         Use 1300 as initial value for length, not PATH_MAX.
75826
75827         * lib/pathmax.h: Clean up cpp syntax.
75828
75829 2001-08-12  Jim Meyering  <meyering@lucent.com>
75830
75831         * lib/gettimeofday.c: New file.
75832         * lib/gtod.h: New file.
75833         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75834
75835 2001-08-05  Jim Meyering  <meyering@lucent.com>
75836
75837         * m4/jm-macros.m4: Require autoconf-2.52.
75838
75839 2001-08-04  Jim Meyering  <meyering@lucent.com>
75840
75841         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75842         stmt, to get in sync with glibc.
75843
75844 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75845
75846         The following changes are from gettext 0.10.39 as maintained by
75847         Bruno Haible.
75848
75849         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75850         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75851         with inverted sense.  All uses changed.
75852
75853         * lib/mbswidth.c: Don't include <limits.h>.
75854         Include <stdlib.h> and <string.h> unconditionally.
75855         (iswcntrl, mbsinit, ISCNTRL): New macros.
75856         (mbsnwidth): Use K&R style function declarations.
75857         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75858         can optimize it when MB_CUR_MAX == 1.
75859         The width of control characters is zero, not 1.
75860
75861 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75862
75863         The following changes are from gettext 0.10.39 as maintained by
75864         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75865
75866         * m4/codeset.m4: Upgrade to serial AM1.
75867         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75868         all uses changed.  Quote first arg of AC_DEFUN.
75869         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75870
75871         * m4/iconv.m4: Upgrade to serial AM2.
75872         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75873         Add --with-libconv-prefix.
75874         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75875         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75876         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75877         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75878         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75879
75880         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75881         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75882         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75883         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75884         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75885         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75886         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75887         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75888         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75889
75890         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75891         string.h any more.
75892
75893         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75894         not the default value.
75895
75896         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75897         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75898         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75899         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75900         Also check for iswcntrl, used for wcwidth fallback.
75901         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75902         to Autoconf 2.13.
75903
75904 2001-08-03  Jim Meyering  <meyering@lucent.com>
75905
75906         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75907         as it was in the original.  Reported by Paul Eggert.
75908
75909 2001-07-16  Jim Meyering  <meyering@lucent.com>
75910
75911         * m4/gettimeofday.m4: New file.
75912         Prompted by a report from Bernhard Baehr.
75913
75914 2001-07-15  Jim Meyering  <meyering@lucent.com>
75915
75916         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75917         stuff. Now it's in ../Makefile.cfg.
75918
75919 2001-07-15  Jim Meyering  <meyering@lucent.com>
75920
75921         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75922         (BUILT_SOURCES): Add unlocked-io.h.
75923         (io_functions): Define.
75924         (unlocked-io.h): New rule.
75925         (DISTCLEANFILES): Add unlocked-io.h.
75926         (all-local): Depend on unlocked-io.h, to ensure it is created.
75927
75928         * lib/unlocked-io.hin: New file
75929
75930         * lib/regex.c: Update from glibc.
75931
75932 2001-07-05  Jim Meyering  <meyering@lucent.com>
75933
75934         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
75935         recommendation.
75936         (libfetish_a_SOURCES): Put all .h files here instead.
75937         Remove a thus-exposed (better checks in automake) duplicate and
75938         two unnecessary .h files.
75939
75940 2001-07-04  Jim Meyering  <meyering@lucent.com>
75941
75942         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75943         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75944         distcheck failure.
75945
75946 2001-07-02  Jim Meyering  <meyering@lucent.com>
75947
75948         The following changes were prompted by suggestions from Bruno Haible.
75949
75950         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75951         is now generated.
75952         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75953         definition of EXTRA_DIST.
75954         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75955         ensure that the generated file is created/updated whenever the list
75956         of $(unlocked_functions) is changed.
75957         (jm-glibc-io.m4): New rule.
75958         (unlocked-io.h): New rule -- currently unused.
75959
75960 2001-06-24  Jim Meyering  <meyering@lucent.com>
75961
75962         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75963         unmatched right bracket, rather than kludging it with an extra,
75964         falsely-matching quote in a comment.  Patch by Akim Demaille.
75965
75966 2001-06-11  Jim Meyering  <meyering@lucent.com>
75967
75968         * lib/regex.c: Update from GNU libc.
75969
75970 2001-05-27  Jim Meyering  <meyering@lucent.com>
75971
75972         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75973         Check for ut_type in struct utmp.
75974
75975 2001-05-27  Jim Meyering  <meyering@lucent.com>
75976
75977         * lib/readutmp.h (UT_TYPE): Define.
75978
75979 2001-05-24  Jim Meyering  <meyering@lucent.com>
75980
75981         * lib/argmatch.c: Include "quote.h".
75982         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75983         quote function.  Reported by Göran Uddeborg.
75984
75985 2001-05-22  Jim Meyering  <meyering@lucent.com>
75986
75987         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75988         now that we use the package-supplied version unconditionally.
75989         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75990
75991 2001-05-21  Jim Meyering  <meyering@lucent.com>
75992
75993         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75994         shell syntax errors.
75995
75996 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75997
75998         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75999
76000 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76001
76002         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76003         Don't bother to check library strftime, since
76004         we'll be using our own my_strftime function anyway.
76005         Define my_strftime instead of strftime.
76006
76007 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76008
76009         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76010         which is not yet declared.
76011
76012 2001-05-15  Jim Meyering  <meyering@lucent.com>
76013
76014         * m4/regex.m4: Use proper quoting so brackets appear in the test
76015         program.
76016         Reported by, and with help from, Bruno Haible.
76017
76018 2001-05-13  Jim Meyering  <meyering@lucent.com>
76019
76020         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76021         undefined.
76022
76023 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76024
76025         dirname code cleanup.  base_name now behaves more compatibly
76026         with POSIX basename when given file names that have trailing
76027         slashes, and similarly for dir_name.  Add new primitives
76028         base_len and dir_len.  Put the directory-name-related decls
76029         into dirname.h.
76030
76031         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76032         * lib/backupfile.c (base_name): Likewise.
76033         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76034         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76035         * lib/makepath.c (strip_trailing_slashes): Likewise.
76036         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76037         ISSLASH): Likewise.
76038         * lib/rename.c (strip_trailing_slashes): Likewise.
76039         * lib/same.c (base_name): Likewise.
76040         * lib/stripslash.c (ISSLASH): Likewise.
76041
76042         * lib/addext.c: Include <dirname.h> after size_t is defined.
76043         * lib/backupfile.c: Likewise.
76044
76045         * lib/addext.c (addext): Use base_len to trim redundant
76046         trailing slashes instead of doing it ourselves.
76047         But do not trim the last slash if it is not redundant.
76048
76049         * lib/backupfile.c (find_backup_file_name,
76050         max_backup_version): Use base_len instead of rolling it ourselves.
76051         Handle the case of "" and (on DOS) "C:" correctly.
76052
76053         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76054         needed. Include <string.h>, <dirname.h>.
76055         (base_name): Allow file names ending in slashes, other than names
76056         that are all slashes.  In this case, return the basename followed
76057         by the slashes.  This is more general, and can be used in places
76058         where the original base_name purposely had an assertion failure.
76059         (base_len): New function.
76060
76061         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76062         Do not include <assert.h>; no longer needed.
76063         Include xalloc.h.
76064         (memrchr): Remove decl.
76065         (dir_name_r): Remove.
76066         (dir_len): Renamed from dirlen.  All callers changed.
76067         Rewrite in terms of base_name, for simplicity and consistency.
76068         (dir_name): Never return NULL.  All callers changed.
76069         Do not include <stdlib.h> in test program; no longer needed.
76070         return 0; is fine for test program.
76071
76072         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76073         New macros.
76074         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76075
76076         * lib/path-concat.c (path_concat): Use base_len to compute
76077         base length, not strlen; this means we cannot rely on memcpy
76078         to null-terminate.
76079
76080         * lib/same.c (STREQ): Remove.
76081         (same_name): Handle the case where the basename ends in trailing '/'.
76082
76083         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76084         a slash was stripped.  Do not strip the last slash after a
76085         file system prefix.
76086
76087 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76088
76089         * lib/Makefile.am (libfetish_a_SOURCES):
76090         Add strftime.c, since we now compile it on all hosts.
76091
76092         * lib/strftime.c (my_strftime):
76093         Define to nstrftime if emacs, but only if my_strftime is not defined.
76094         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76095         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76096         Add one more extra argument: a nanoseconds value.
76097         All uses changed.
76098         (ns): New macro.
76099         (my_strftime function): Add %N format.
76100         (emacs_strftimeu): Renamed from emacs_strftime,
76101         with extra ut argument.
76102
76103 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76104
76105         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76106
76107 2001-04-21  Jim Meyering  <meyering@lucent.com>
76108
76109         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76110         doesn't interfere.
76111
76112 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76113
76114         * m4/ftruncate.m4: Check for chsize.
76115         Link with ftruncate.o unconditionally if ftruncate is missing.
76116         This was required when cross-compiling to i586-mingw32msvc.
76117
76118 2001-04-08  Jim Meyering  <meyering@lucent.com>
76119
76120         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76121         recomputed; that's necessary when the offset spans a DST transition.
76122         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76123
76124 2001-04-02  Jim Meyering  <meyering@lucent.com>
76125
76126         * lib/regex.h, regex.c: Update from GNU libc.
76127
76128 2001-03-24  Jim Meyering  <meyering@lucent.com>
76129
76130         * m4/jm-macros.m4: Require autoconf-2.49d.
76131
76132 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76133
76134         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76135
76136 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76137
76138         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76139
76140 2001-03-17  Jim Meyering  <meyering@lucent.com>
76141
76142         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76143         now that the version in autoconf is equivalent.
76144         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76145
76146         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76147         Suggestion from Akim Demaille.
76148
76149         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76150         (jm_PREREQ_TEMPNAME): New function.
76151
76152 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76153
76154         * lib/tempname.c (uint64_t): Define to uintmax_t if
76155         not defined, and if UINT64_MAX is not defined.
76156         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76157         Reported by John David Anglin.
76158
76159 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76160
76161         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76162         resolve alias if codeset is empty.
76163         * lib/config.charset (BeOS): Use wildcard syntax.
76164
76165 2001-03-13  Jim Meyering  <meyering@lucent.com>
76166
76167         * lib/path-concat.c (path_concat)
76168         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76169         concatenating e.g., `C:' and `foo'.
76170         From Bruno Haible.
76171
76172 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76173
76174         * lib/localcharset.c (locale_charset): Don't use
76175         setlocale(LC_CTYPE,NULL). Don't return NULL.
76176         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76177
76178 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76179
76180         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76181         support for DOS/DJGPP.
76182
76183 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76184
76185         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76186         lacks mkstemp.  Compile our own tempname.c if we compile our own
76187         mkstemp.c, as mkstemp relies on tempname.
76188
76189 2001-03-01  Jim Meyering  <meyering@lucent.com>
76190
76191         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76192         AH_VERBATIM really does output its argument verbatim.
76193
76194 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76195
76196         * lib/Makefile.am (libfetish_a_SOURCES):
76197         Add dup-safer.c, fopen-safer.c.
76198         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76199
76200         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76201         * lib/unistd-safer.h: New files.
76202
76203 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76204
76205         The mkstemp replacement is taken from glibc 2.2.2, with some
76206         portability fixes for use outside glibc, as follows:
76207
76208         * lib/tempname.c (struct_stat64): New macro.
76209         (direxists, __gen_tempname): Use it.
76210         This avoids a portability problem with Solaris 8.
76211
76212         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76213         (<stddef.h>, <stdint.h>, <string.h>):
76214         Include only if STDC_HEADERS || _LIBC.
76215         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76216         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76217         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76218         (__set_errno): Define this macro if <errno.h> doesn't.
76219         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76220         Define these macros if <stdio.h> doesn't.
76221         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
76222         Define these macros if <sys/stat.h>
76223         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
76224         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76225         __xstat64): Define if not _LIBC.
76226         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
76227         (__gen_tempname): Invoke gettimeofday only if
76228         HAVE_GETTIMEOFDAY || _LIBC;
76229         otherwise, fall back on plain "time".
76230         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
76231
76232         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
76233
76234         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
76235
76236 2001-02-18  Paul Eggert  <eggert@twinsun.com>
76237
76238         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
76239
76240 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76241
76242         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
76243         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
76244         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
76245         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76246
76247 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76248
76249         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
76250         Remove workaround macros for hosts that have mbrtowc but not
76251         mbstate_t, as we now insist on proper declarations for both
76252         before using mbrtowc.
76253
76254 2001-02-17  Jim Meyering  <meyering@lucent.com>
76255
76256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
76257         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
76258         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
76259         UnixWare 7.1.1.
76260
76261         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
76262         rather than AC_CACHE_VAL.
76263
76264 2001-02-17  Jim Meyering  <meyering@lucent.com>
76265
76266         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
76267         around included file name.
76268
76269         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
76270
76271         * lib/strftime.c: Update from GNU libc (the only changes were to
76272         comments).
76273
76274 2001-02-17  Jim Meyering  <meyering@lucent.com>
76275
76276         * lib/regex.c: Update from libc.
76277
76278 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
76279
76280         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
76281         clash.
76282
76283 2001-02-16  Paul Eggert  <eggert@twinsun.com>
76284
76285         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
76286         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
76287         Reported by Mark Hounschell via Paul Eggert.
76288
76289 2001-02-07  Jim Meyering  <meyering@lucent.com>
76290
76291         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
76292
76293 2001-02-05  Jim Meyering  <meyering@lucent.com>
76294
76295         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
76296         it includes the patch required for `large file' support with at least
76297         HP-UX's 10.20 /bin/cc.
76298
76299 2001-02-03  Jim Meyering  <meyering@lucent.com>
76300
76301         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
76302         AS_IF, now that it works once again (mysteriously).
76303         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76304
76305 2001-01-30  Jim Meyering  <meyering@lucent.com>
76306
76307         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
76308         * m4/chown.m4: Rename conftestchown to conftest.chown.
76309         * m4/rename.m4: s/conftestdir/conftest.d1/ and
76310         s/conftestdir2/conftest.d2/.
76311         * m4/utimes.m4: s/conftestdata/conftest.data/
76312         Inspired by Pavel Roskin's change in autoconf.
76313
76314 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
76315
76316         * lib/config.charset: Update for FreeBSD 4.2.
76317
76318 2001-01-27  Jim Meyering  <meyering@lucent.com>
76319
76320         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
76321         a use of AS_IF.
76322         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76323
76324 2001-01-26  Jim Meyering  <meyering@lucent.com>
76325
76326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
76327         quotearg.c includes it.
76328
76329 2001-01-26  Jim Meyering  <meyering@lucent.com>
76330
76331         * lib/quotearg.c: Include stddef.h.
76332         * lib/quote.c: Include stddef.h.
76333         Reported by Axel Kittenberger.
76334
76335         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
76336         line in double quotes so that it evokes a better diagnostic.
76337         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
76338         Reported by Axel Kittenberger.
76339
76340 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
76341
76342         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
76343         as if it was a `charset'.
76344
76345 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76346
76347         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
76348         has const.
76349
76350 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76351
76352         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
76353         to avoid a warning.  Add back 'const' to inptr.
76354
76355 2001-01-20  Jim Meyering  <meyering@lucent.com>
76356
76357         Be sure that headers are checked before used in code compiled
76358         for the type checks.
76359         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
76360         In place of that, invoke jm_CHECK_ALL_TYPES.
76361         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
76362         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
76363         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
76364         The check for ssize_t was mistakenly run before the test for unistd.h.
76365
76366         The configure-time check for stdbool.h was missing.
76367         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
76368         (jm_PREREQ_HASH): New function.
76369
76370 2001-01-17  Jim Meyering  <meyering@lucent.com>
76371
76372         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
76373         for autoconf-2.49c.
76374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
76375
76376 2001-01-16  Jim Meyering  <meyering@lucent.com>
76377
76378         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
76379         From Bruno Haible.
76380
76381 2001-01-14  Jim Meyering  <meyering@lucent.com>
76382
76383         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
76384         foo and bar.  Create conftestdir/ in the script, not in the C code.
76385         Remove directories in the script, not in the C code.
76386         Remove conftestdir{,2} before trying to create the directory.
76387         Make the entire configure script fail if the mkdir fails.
76388
76389 2001-01-14  Jim Meyering  <meyering@lucent.com>
76390
76391         * lib/rename.c: New file.  From Volker Borchert.
76392         Include stdlib.h, string.h or strings.h, and xalloc.h.
76393         Use strip_trailing_slashes rather than open-coding it.
76394
76395 2001-01-03  Paul Eggert  <eggert@twinsun.com>
76396
76397         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
76398
76399 2001-01-03  Jim Meyering  <meyering@lucent.com>
76400
76401         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
76402         of local `inptr' to avoid warning with some system declarations of
76403         iconv.
76404
76405 2001-01-02  Volker Borchert  <bt@teknon.de>
76406
76407         * m4/rename.m4: New file.
76408         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
76409
76410 2001-01-01  Jim Meyering  <meyering@lucent.com>
76411
76412         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
76413         even on systems with utmpx.h.  It's necessary for the declaration of
76414         utmp's ut_user member.  Reported by Andreas Jaeger.
76415
76416         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
76417         available. They are required for the declarations of getgrgid and
76418         getpwuid resp.
76419         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
76420         Reported by Andreas Jaeger.
76421
76422 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
76423
76424         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
76425         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
76426         so `make install' also works in VPATH builds.
76427
76428 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
76429
76430         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
76431         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
76432         can be used in subdirectories.
76433
76434 2000-12-29  Paul Eggert  <eggert@twinsun.com>
76435
76436         * lib/modechange.c: Do not assume that mode_t uses the
76437         traditional octal encoding.  E.g. "chmod 1 FOO" should set
76438         the other-execute bit of FOO even if S_IXOTH != 1.
76439
76440         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
76441         WOTH, XOTH, ALLM): New macros.
76442         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
76443          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
76444         Use them.
76445         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
76446         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
76447         (mode_compile):
76448         No need to use uintmax_t; unsigned long is long enough.
76449         Don't bother to get suffix since we don't use it.
76450
76451 2000-12-26  Jim Meyering  <meyering@lucent.com>
76452
76453         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
76454         better with autoheader.
76455
76456 2000-12-24  Jim Meyering  <meyering@lucent.com>
76457
76458         * lib/hash.c (is_prime): Return explicit boolean values.
76459         (hash_get_first): Return NULL to appease Irix5.6's 89.
76460         Reported by Nelson Beebe.
76461
76462 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
76463
76464         * lib/localcharset.c (locale_charset): Add support for Win32.
76465
76466 2000-12-18  Paul Eggert  <eggert@twinsun.com>
76467
76468         * lib/physmem.h, lib/physmem.c: New files.
76469
76470         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
76471         (noinst_HEADERS): Add physmem.h.
76472
76473         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
76474         't' for compatibility with Solaris 8 sort.
76475
76476 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
76477
76478         * lib/config.charset: Add support for BeOS.
76479
76480 2000-12-17  Jim Meyering  <meyering@lucent.com>
76481
76482         * m4/dos.m4 (jm_AC_DOS): New file and macro.
76483         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
76484
76485 2000-12-16  Jim Meyering  <meyering@lucent.com>
76486
76487         This bug had a serious impact on chown: `chown N:M FILE' (for integer
76488         N and M) would have treated it like `chown N:N FILE'.
76489
76490         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
76491
76492 2000-12-16  Jim Meyering  <meyering@lucent.com>
76493
76494         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
76495         SHELLS_FILE to a file name that's useful on djgpp systems.
76496         Include stdlib.h.
76497         (ADDITIONAL_DEFAULT_SHELLS): Define.
76498         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
76499         Based mostly on a patch from Prashant TR.
76500
76501 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
76502
76503         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
76504         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
76505         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
76506
76507 2000-12-08  Andreas Schwab  <schwab@suse.de>
76508
76509         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
76510         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
76511
76512 2000-12-07  Jim Meyering  <meyering@lucent.com>
76513
76514         * lib/stripslash.c (ISSLASH): Define.
76515         (strip_trailing_slashes): Use ISSLASH rather than comparing against
76516         `/'.
76517         From Prashant TR.
76518
76519         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
76520         (dir_name_r): Declare this function as static.
76521         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
76522         manifest itself on a name containing a mix of slashes and
76523         backslashes.
76524         Make this function work with names starting with a DOS-style
76525         drive letter and colon prefix.
76526         (dir_name): Append `.' if necessary.
76527         Based mostly on patches from Prashant TR and Eli Zaretskii.
76528
76529         * lib/dirname.h (dir_name_r): Remove prototype.
76530
76531 2000-12-06  Paul Eggert  <eggert@twinsun.com>
76532
76533         * m4/off_t-format.m4: Remove this file.
76534         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
76535
76536 2000-12-06  Jim Meyering  <meyering@lucent.com>
76537
76538         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
76539         replacement strtoull, we may well need the replacement strtoul, too.
76540         Check for declarations of strtoul and strtoull.
76541         Check for strtol.  Mainly as a cue to cause automake to include
76542         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
76543         Check for limits.h -- strtol.c needs it.
76544
76545 2000-12-05  Jim Meyering  <meyering@lucent.com>
76546
76547         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
76548
76549 2000-12-04  Jim Meyering  <meyering@lucent.com>
76550
76551         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
76552         Also include memory.h, stdlib.h, unistd.h if appropriate.
76553         Reported by Andreas Jaeger (conflicting declaration of malloc).
76554
76555 2000-12-02  Jim Meyering  <meyering@lucent.com>
76556
76557         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76558         * m4/jm-macros.m4 (jm_MACROS): require it.
76559
76560 2000-12-02  Jim Meyering  <meyering@lucent.com>
76561
76562         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76563
76564 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76565
76566         * lib/memrchr.c: Include <config.h> before any system include file.
76567
76568 2000-11-30  Jim Meyering  <meyering@lucent.com>
76569
76570         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76571
76572 2000-11-30  Jim Meyering  <meyering@lucent.com>
76573
76574         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76575
76576 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76577
76578         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76579
76580 2000-11-26  Jim Meyering  <meyering@lucent.com>
76581
76582         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76583
76584 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76585
76586         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76587         size of (size_t) -1; it's not portable.
76588
76589 2000-11-17  Jim Meyering  <meyering@lucent.com>
76590
76591         * lib/strstr.c: Update from GNU libc.
76592
76593 2000-11-17  Akim Demaille  <akim@epita.fr>
76594
76595         * lib/obstack.h: Formatting changes.
76596         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76597         prevent type checking.
76598         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76599         cast the value to (void *): assigning a `foo *' to a `void *'
76600         variable is valid.
76601         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76602
76603 2000-11-16  Jim Meyering  <meyering@lucent.com>
76604
76605         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76606
76607 2000-11-11  Jim Meyering  <meyering@lucent.com>
76608
76609         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76610
76611 2000-11-10  Jim Meyering  <meyering@lucent.com>
76612
76613         * lib/obstack.h: Update from GNU libc.
76614         * lib/obstack.c: Likewise.
76615
76616 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76617
76618         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76619
76620 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76621
76622         * lib/getusershell.c (setusershell): Use rewind rather than
76623         fseek/fseeko, to avoid configuration hassles with fseeko.
76624         Don't bother opening SHELLS_FILE if shellstream is NULL;
76625         it's not necessary.
76626
76627 2000-11-05  Jim Meyering  <meyering@lucent.com>
76628
76629         * lib/makepath.h (make_dir): Declare.
76630         * lib/makepath.c (make_dir): Remove `static' attribute.
76631         Tweak a comment.
76632
76633 2000-11-04  Jim Meyering  <meyering@lucent.com>
76634
76635         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76636
76637 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76638
76639         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76640         last one in a bucket, advance to the next bucket.
76641
76642 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76643
76644         * lib/fnmatch.c: Do not comment out all the code if we are using
76645         the GNU C library, because in some cases we are replacing buggy
76646         code in the GNU C library itself.
76647
76648 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76649
76650         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76651         (regex_compile): Catch bogus \(\1\).
76652
76653 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76654
76655         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76656         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76657         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76658
76659 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76660
76661         * lib/error.h, getline.h, modechange.h:
76662         Remove "2000" from Copyright line, as the file hasn't been
76663         changed this year other than in the copyright notice.
76664
76665         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76666         was changed this year.
76667
76668 2000-10-29  Jim Meyering  <meyering@lucent.com>
76669
76670         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76671         renaming.
76672         * m4/ls-mntd-fs.m4: Likewise
76673
76674 2000-10-29  Jim Meyering  <meyering@lucent.com>
76675
76676         * lib/xstat.in: Fix grammar in comment.
76677
76678 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76679
76680         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76681         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76682         doesn't define __restrict_arr.
76683
76684 2000-10-28  Jim Meyering  <meyering@lucent.com>
76685
76686         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76687         (jm_PREREQ_MEMCHR): New function.
76688
76689 2000-10-28  Jim Meyering  <meyering@lucent.com>
76690
76691         * lib/memchr.c: Update from libc.
76692         Adjust for portability:
76693         [HAVE_STDLIB_H]: Include stdlib.h.
76694         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76695         Undef __memchr, too.
76696         [!weak_alias]: Define __memchr to memchr.
76697
76698         * lib/regex.c: Update from libc.
76699         * lib/regex.h: Likewise.
76700         * lib/getopt1.c: Likewise.
76701         * lib/memcmp.c: Likewise.
76702
76703         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76704         Avoid using fseek, when possible -- it's broken by design.
76705         Patch by Ulrich Drepper.
76706
76707 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76708
76709         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76710         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76711         Giving in to popular pressure to shut up the compiler with casts.
76712
76713 2000-10-26  Jim Meyering  <meyering@lucent.com>
76714
76715         * lib/strftime.c: Update from libc.
76716
76717 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76718
76719         * regex.c: More `unsigned char' -> `re_char' changes.
76720         Also change several `int' into `re_wchar_t'.
76721         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76722         (PUSH_FAILURE_POINTER): Don't cast any more.
76723         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76724         We want GCC to complain, since this piece of code makes
76725         re_match non-reentrant, which *should* be fixed.
76726         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76727         (EXTEND_BUFFER): Use RETALLOC.
76728         (SET_LIST_BIT): Don't cast.
76729         (re_wchar_t): New type.
76730         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76731         that those two functions will always properly return.
76732         (IMMEDIATE_QUIT_CHECK): Cast to void.
76733         (analyse_first): Use recursion rather than an explicit stack.
76734         (re_compile_fastmap): Can't fail anymore.
76735         (re_search_2): Don't check re_compile_fastmap for failure.
76736         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76737         Now also sets the new value (passed in a new argument).
76738         (re_match_2_internal): Use it.
76739         Also, use a new var `reg' of type size_t when looping through regs
76740         rather than reuse the inappropriate `mcnt'.
76741
76742 2000-10-25  Jim Meyering  <meyering@lucent.com>
76743
76744         * lib/obstack.c: Update from libc.
76745
76746 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76747
76748         * regex.c (regex_compile): Change the way of handling a range from
76749         a char less than 256 to a char not less than 256.
76750
76751 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76752
76753         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76754         NT-Emacs only.
76755         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76756         so that re_search functions only quit when callers expect them to.
76757
76758 2000-10-23  Jim Meyering  <meyering@lucent.com>
76759
76760         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76761         wrong.  That set_locale call must not have any side effects.
76762         From Paul Eggert.
76763
76764 2000-10-22  Jim Meyering  <meyering@lucent.com>
76765
76766         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76767         [CYCLIC]: Remove now-unused definition.
76768
76769         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76770         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76771         Suggestion from Ulrich Drepper.
76772
76773 2000-10-21  Jim Meyering  <meyering@lucent.com>
76774
76775         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76776         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76777         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76778
76779 2000-10-21  Jim Meyering  <meyering@lucent.com>
76780
76781         * lib/dirname.c (memrchr): Declare if necessary.
76782         (dir_name): Remove the restriction that there be no
76783         trailing slashes.  Now, this code skips past them, effectively
76784         ignoring them.
76785         [TEST_DIRNAME] (main): New unit tests.
76786
76787         * lib/memrchr.c: New file from GNU libc.
76788         Undef __memrchr, too.
76789         [!weak_alias]: Define __memrchr to memrchr.
76790         Guard weak_alias use with `#ifdef weak_alias'.
76791
76792 2000-10-21  Jim Meyering  <meyering@lucent.com>
76793
76794         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76795         (dir_name): Use dir_name_r.
76796         * lib/dirname.h (dir_name_r): Declare it.
76797
76798 2000-10-17  Jim Meyering  <meyering@lucent.com>
76799
76800         * lib/quote.h (PARAMS): Define and use.
76801         Reported by Akim Demaille.
76802
76803         * lib/getopt.c: Update from libc.
76804
76805 2000-10-16  Jim Meyering  <meyering@lucent.com>
76806
76807         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76808         setlocale.
76809         From Jan Fedak.
76810
76811 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76812
76813         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76814
76815 2000-09-25  Jim Meyering  <meyering@lucent.com>
76816
76817         * lib/md5.h (rol): Define (from GnuPG).
76818
76819         * lib/sha.c: Give credit (GnuPG) where due.
76820         (M): Use rol rather than open-coding it.
76821         Add a FIXME comment.
76822
76823 2000-09-21  Jim Meyering  <meyering@lucent.com>
76824
76825         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76826         Reported by Michael Stone.
76827
76828 2000-09-20  Jim Meyering  <meyering@lucent.com>
76829
76830         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76831         (noinst_HEADERS): Add sha.h.
76832         Based on code from Scott G. Miller and from GnuPG.
76833
76834 2000-09-18  Jim Meyering  <meyering@lucent.com>
76835
76836         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76837         LIBS. Otherwise, everyone ends up linking with -lelf for some
76838         configurations.
76839         Reported by Mike Stone.
76840
76841 2000-09-15  Jim Meyering  <meyering@lucent.com>
76842
76843         * lib/regex.c: Update from libc.
76844
76845 2000-09-10  Jim Meyering  <meyering@lucent.com>
76846
76847         * lib/getopt.c (_getopt_internal): Update from glibc.
76848
76849 2000-09-09  Jim Meyering  <meyering@lucent.com>
76850
76851         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76852         think it should be used as a general replacement for isascii.
76853         * lib/fnmatch.c: Likewise.
76854         * lib/mbswidth.c: Likewise
76855         * lib/regex.c: Likewise.
76856
76857         Don't use atoi.
76858         * lib/userspec.c: Include sys/param.h and limits.h.
76859         Include xstrtol.h.
76860         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76861         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76862         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76863         UID, GID.  Check range.
76864
76865 2000-09-06  Jim Meyering  <meyering@lucent.com>
76866
76867         * lib/getopt.c (_getopt_internal): Update from glibc.
76868
76869 2000-08-30  Jim Meyering  <meyering@lucent.com>
76870
76871         * lib/strftime.c: Merge in changes from GNU libc.
76872
76873 2000-08-26  Jim Meyering  <meyering@lucent.com>
76874
76875         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76876         * m4/fpending.m4: New file.
76877
76878 2000-08-26  Jim Meyering  <meyering@lucent.com>
76879
76880         * lib/closeout.c: Include "__fpending.h".
76881         (close_stdout_status): Return right away if there's nothing to flush.
76882
76883         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76884         * lib/__fpending.c: New file.
76885         * lib/__fpending.h: New file.
76886
76887 2000-08-20  Jim Meyering  <meyering@lucent.com>
76888
76889         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76890         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76891         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76892
76893 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76894
76895         Improve fileutils installation on systems where running
76896         programs (like install) can't be unlinked.
76897         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76898         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76899
76900 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76901
76902         Standardize on "memory exhausted" instead of "Memory exhausted"
76903         or "virtual memory exhausted".
76904         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76905         "virtual memory exhausted".
76906         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76907         our own message.
76908         * lib/userspec.c (parse_user_spec): Likewise.
76909         * lib/bumpalloc.h: comment fix
76910         * lib/same.c, userspec.c: Include xalloc.h.
76911
76912         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76913         not char *const and pointing to a constant array.
76914         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76915         (xrealloc): Comment fix.
76916
76917         * lib/userspec.c (parse_user_spec):
76918         Don't translate a message until just before returning,
76919         to avoid unnecessary translation.
76920
76921 2000-08-07  Jim Meyering  <meyering@lucent.com>
76922
76923         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76924         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76925         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76926         getgroups.c, gethostname.c, getopt.h, group-member.c,
76927         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76928         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76929         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76930         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76931         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76932         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76933         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
76934         yesno.c: Back out Copyright date changes for each file with no change
76935         this year.  This eases coordination with other programs using the same
76936         source code modules.  From Paul Eggert.
76937
76938 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76939
76940         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76941         not char, for compatibility with glibc 2.1.3 strftime.c.
76942
76943 2000-08-03  Greg McGary  <greg@mcgary.org>
76944
76945         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76946         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76947         (EXTEND_BUFFER): Use them.
76948
76949 2000-08-01  Jim Meyering  <meyering@lucent.com>
76950
76951         * lib/dirname.c (ISSLASH): Define.
76952         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76953         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76954         both `\' and `/' may be use as path separators.
76955         Based on a patch from Prashant TR.
76956
76957 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76958
76959         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76960         slot vector a constant, since it might get modified.
76961
76962 2000-07-31  Jim Meyering  <meyering@lucent.com>
76963
76964         * lib/xmalloc.c: Use `virtual memory exhausted', not
76965         `Memory exhausted'.
76966         * lib/obstack.c (print_and_abort): Likewise.
76967
76968 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76969
76970         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76971         buffer, so that the caller can always quote one small
76972         component of a "memory exhausted" message in slot 0.
76973         From a suggestion by Jim Meyering.
76974
76975 2000-07-30  Jim Meyering  <meyering@lucent.com>
76976
76977         * lib/makepath.c (make_path): Quote the other instance, too.
76978
76979         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76980         (STATIC_BUF_SIZE): Define.
76981         (quotearg_n_options): Use only statically allocated storage when
76982         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76983         than STATIC_BUF_SIZE.
76984
76985 2000-07-29  Jim Meyering  <meyering@lucent.com>
76986
76987         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76988         * lib/dirname.c (dir_name): Likewise.
76989
76990         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76991         `/'.
76992
76993         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76994         (dir_name): Assert that there are no trailing slashes.
76995
76996 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76997
76998         * lib/mbswidth.h (mbswidth): Add a flags argument.
76999         (mbswidth): New declaration.
77000         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77001         * lib/mbswidth.c (mbswidth): Add a flags argument.
77002         (mbsnwidth): New function.
77003
77004 2000-07-24  Jim Meyering  <meyering@lucent.com>
77005
77006         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77007
77008 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77009
77010         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77011
77012 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77013
77014         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77015         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77016         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77017         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77018         invoke multibyte primitives.
77019
77020 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77021
77022         * lib/quotearg.c:
77023         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77024         so that mbstate_t is always defined.
77025
77026         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77027         be 1 in at least one GCC installation, and this configuration
77028         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77029         performance on hosts that have mbrtowc but have only unibyte
77030         locales, but I assume these hosts are rare.
77031
77032 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77033
77034         * lib/mbswidth.c (_XOPEN_SOURCE):
77035         Don't define; this causes problems on Solaris 7.
77036         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77037
77038 2000-07-23  Jim Meyering  <meyering@lucent.com>
77039
77040         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77041         too: getgrgid, getpwuid, getuid.
77042
77043 2000-07-23  Jim Meyering  <meyering@lucent.com>
77044
77045         * lib/basename.c (base_name): Add an assertion.
77046
77047 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77048
77049         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77050         shadow its mbsinit function.
77051
77052 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77053
77054         * lib/mbswidth.h: New file.
77055         * lib/mbswidth.c: New file.
77056         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77057         (noinst_HEADERS): Add mbswidth.h.
77058
77059 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77060
77061         * lib/config.charset: Add support for FreeBSD. Improve support for
77062         HP-UX and IRIX 6.
77063
77064 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77065
77066         * m4/mbswidth.m4: New file.
77067         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77068
77069 2000-07-15  Jim Meyering  <meyering@lucent.com>
77070
77071         * lib/makepath.c: Include quote.h.
77072         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77073         corresponding argument in a `quote (...)' call.
77074         Give better diagnostics.
77075
77076         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77077         (noinst_HEADERS): Add quote.h.
77078
77079         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77080         from tar's src/misc.c.
77081         * lib/quote.h: New file.  Prototypes for same.
77082
77083 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77084
77085         From a suggestion by Bruno Haible.
77086         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77087         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77088         to decide whether to define the BeOS workaround macro;
77089         this adjusts to the change to AC_MBSTATE_T.
77090
77091 2000-07-14  Jim Meyering  <meyering@lucent.com>
77092
77093         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77094         jm_AC_TYPE_UINTMAX_T.
77095
77096 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77097
77098         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77099
77100         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77101         quotearg_buffer_restyled): Add support for
77102         clocale_quoting_style.  Undo previous change to
77103         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77104         and "{RIGHT QUOTATION MARK}" msgids.
77105
77106 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77107
77108         From a suggestion by Bruno Haible.
77109         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77110         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77111         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77112         and mbstate_t, to a single-part test that simply defines mbstate_t.
77113         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77114         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77115
77116 2000-07-10  Jim Meyering  <meyering@lucent.com>
77117
77118         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77119
77120         * m4/gnu-source.m4: Output to confdefs.h directly.
77121         Suggestion from Akim Demaille.
77122
77123 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77124
77125         The old behavior of quoting `like this' doesn't look good with
77126         newer, ISO-style fonts.  See:
77127         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77128
77129         Instead, quote "like this" by default.  Let the translator
77130         tailor the locale-specific quoting behavior by providing
77131         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77132
77133         * lib/quotearg.c (N_): New macro.
77134         (gettext_default): New function.
77135         (quotearg_buffer_restyled): Use
77136         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77137         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77138
77139 2000-07-09  Jim Meyering  <meyering@lucent.com>
77140
77141         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77142         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77143
77144         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77145         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77146
77147 2000-07-09  Jim Meyering  <meyering@lucent.com>
77148
77149         * lib/Most files: Update copyright dates to include 2000.
77150
77151 2000-07-08  Jim Meyering  <meyering@lucent.com>
77152
77153         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77154         if not defined.
77155         (xgethostname): Remove now-unnecessary #ifdef.
77156         Move declaration of `err' into loop where it's used.
77157
77158 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77159         and Bruno Haible  <haible@clisp.cons.org>
77160
77161         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77162         only if the test for an object-type mbstate_t fails.  This
77163         prevents us from mistakenly reporting that mbstate_t is a
77164         system object type after we "#define mbstate_t int" to work
77165         around its lack.
77166
77167 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77168         and Bruno Haible  <haible@clisp.cons.org>
77169
77170         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77171
77172 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77173
77174         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77175         to strerror_r.
77176         Include <ctype.h> for use of isalpha.
77177
77178 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77179
77180         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77181         by allocating a larger buffer. Test the gethostname return value for
77182         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77183         returns an error and ENAMETOOLONG isn't defined.
77184
77185 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77186
77187         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77188         dimension.
77189
77190 2000-07-04  Jim Meyering  <meyering@lucent.com>
77191
77192         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77193         of the deprecated AC_CHECKING.
77194
77195 2000-07-04  Jim Meyering  <meyering@lucent.com>
77196
77197         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77198         Reported by Bruno Haible.
77199
77200 2000-07-04  Jim Meyering  <meyering@lucent.com>
77201
77202         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77203         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77204         lacks mbrtowc.
77205
77206 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77207
77208         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77209         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77210
77211 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77212         and Bruno Haible  <haible@clisp.cons.org>
77213
77214         * lib/quotearg.c (mbrtowc):
77215         Assign to *pwc, and return 1 only if result is nonzero.
77216         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77217
77218 2000-07-03  Jim Meyering  <meyering@lucent.com>
77219
77220         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
77221
77222 2000-07-03  Jim Meyering  <meyering@lucent.com>
77223
77224         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
77225         This is necessary to get a definition of e.g., UTMP_FILE on
77226         HP-UX 10.20.
77227         From Bob Proulx.
77228
77229 2000-07-02  Jim Meyering  <meyering@lucent.com>
77230
77231         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
77232
77233         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
77234         AC_LIBOBJ(function_name).
77235         * m4/chown.m4: Likewise.
77236         * m4/fnmatch.m4: Likewise.
77237         * m4/ftruncate.m4: Likewise.
77238         * m4/getgroups.m4: Likewise.
77239         * m4/getline.m4: Likewise.
77240         * m4/group-member.m4: Likewise.
77241         * m4/jm-macros.m4: Likewise.
77242         * m4/lstat.m4: Likewise.
77243         * m4/malloc.m4: Likewise.
77244         * m4/memcmp.m4: Likewise.
77245         * m4/nanosleep.m4: Likewise.
77246         * m4/putenv.m4: Likewise.
77247         * m4/realloc.m4: Likewise.
77248         * m4/regex.m4: Likewise.
77249         * m4/stat.m4: Likewise.
77250         * m4/strftime.m4: Likewise.
77251
77252 2000-07-02  Jim Meyering  <meyering@lucent.com>
77253
77254         * lib/quotearg.c (mbstate_t): Don't define here.
77255
77256 2000-07-02  Jim Meyering  <meyering@lucent.com>
77257
77258         * lib/nanosleep.c (SIGCONT): Define if not already defined.
77259
77260 2000-07-01  Jim Meyering  <meyering@lucent.com>
77261
77262         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
77263
77264 2000-07-01  Jim Meyering  <meyering@lucent.com>
77265
77266         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
77267         problem.
77268
77269 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77270
77271         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
77272         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
77273
77274 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77275
77276         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
77277         per change in ../m4/ls-mntd-fs.m4.
77278         (read_filesystem_list): Ignore symbolic links.
77279
77280 2000-06-29  Jim Meyering  <meyering@lucent.com>
77281
77282         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
77283         for declaration of strcmp.
77284
77285         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
77286
77287         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
77288         Avoid warning by casting result to `char *' to remove `const'.
77289
77290 2000-06-28  Jim Meyering  <meyering@lucent.com>
77291
77292         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
77293         included by quotearg.c, for which we perform this test.  From
77294         Bruno Haible.
77295
77296 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77297
77298         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
77299         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
77300         <utmpx.h> exists, put readutmp.o into LIBOBJS.
77301
77302 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77303
77304         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
77305
77306 2000-06-26  Paul Eggert  <eggert@twinsun.com>
77307
77308         savedir now sets errno on failure and invokes xmalloc to get memory.
77309         Fix a couple of other minor bugs while we're at it.
77310
77311         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
77312         (NAMLEN): Remove macro.
77313         (malloc, realloc): Remove decls.
77314         (stpcpy): Likewise.
77315         ("xalloc.h"): Include.
77316         (NAME_SIZE_DEFAULT): New macro.
77317         (savedir): Use xmalloc / xrealloc to allocate memory.
77318         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
77319         Skip "" directory entries.
77320         Use strlen to calculate directory entry length, since the old method
77321         is rarely used these days and isn't worth supporting.
77322         Don't use a pointer after freeing it.
77323         Check for integer overflow when calculating allocation size.
77324         Use memcpy to copy entries, instead of stpcpy.
77325         Set errno properly when returning NULL.
77326         Check for readdir error.
77327
77328 2000-06-26  Jim Meyering  <meyering@lucent.com>
77329
77330         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
77331
77332 2000-06-25  Jim Meyering  <meyering@lucent.com>
77333
77334         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
77335         Linux header bug when _XOPEN_SOURCE is defined to 500.
77336
77337 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77338
77339         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
77340         deficiency.
77341
77342 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77343
77344         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
77345         Include xalloc.h.
77346         Don't include <stdlib.h>.  Don't declare malloc, realloc.
77347
77348 2000-06-24  Jim Meyering  <meyering@lucent.com>
77349
77350         * m4/strerror_r.m4: Revive this file -- to try out an experimental
77351         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
77352         for which strerror does return char*, but which lacks a conveniently
77353         accessible declaration of the function.  If the compile-test says
77354         strerror_r doesn't work, then resort to a `run'-test that works on
77355         BeOS and segfaults on DEC Unix.
77356
77357 2000-06-24  Jim Meyering  <meyering@lucent.com>
77358
77359         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
77360
77361 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77362
77363         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
77364         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
77365
77366 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77367
77368         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
77369         (mbrtowc, mbstate_t): Define substitutes if
77370         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
77371         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
77372         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
77373
77374 2000-06-23  Jim Meyering  <meyering@lucent.com>
77375
77376         * m4/afs.m4: Add missing AC_MSG_RESULT.
77377         Reported by Bruno Haible.
77378
77379         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
77380         Suggestion from Bruno Haible.
77381
77382 2000-06-23  Jim Meyering  <meyering@lucent.com>
77383
77384         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
77385
77386 2000-06-21  Jim Meyering  <meyering@lucent.com>
77387
77388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
77389
77390 2000-06-21  Jim Meyering  <meyering@lucent.com>
77391
77392         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
77393         (noinst_HEADERS): Add getstr.h.
77394
77395         * lib/getline.c (getstr): Move into a separate file.
77396         * lib/getstr.c (getstr): New file, extracted from getline.c, with
77397         the following changes: new parameter, delim2; both delim[12]
77398         parameters have type `int', not `char'.  The latter would lose
77399         with 8-bit delimiters.
77400         * lib/getstr.h: New file.
77401
77402 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77403
77404         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
77405         than 1024, return a memory chunk of least possible size, instead
77406         of size PATH_MAX + 2. In the loop, increment the size proportionally.
77407         Use free/xmalloc instead of xrealloc to avoid copying for very long
77408         paths.
77409
77410 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77411
77412         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
77413         the empty string.
77414
77415 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77416
77417         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
77418         address, not strdup.  Include <stdlib.h> and don't declare free().
77419
77420 2000-06-19  Jim Meyering  <meyering@lucent.com>
77421
77422         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
77423
77424 2000-06-18  Jim Meyering  <meyering@lucent.com>
77425
77426         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
77427
77428         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
77429         `checking whether...' message to be consistent with that of the
77430         lstat test.
77431
77432 2000-06-18  Jim Meyering  <meyering@lucent.com>
77433
77434         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
77435         Besides, these days every porting target provides a mkdir function.
77436
77437         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
77438         needed. (this snippet comes from src/system.h).
77439
77440 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
77441
77442         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
77443
77444 2000-06-15  Paul Eggert  <eggert@twinsun.com>
77445
77446         * lib/human.c (adjust_value): New function.
77447         (human_readable_inexact): Apply rounding style even when
77448         printing approximate values.
77449
77450 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77451
77452         * lib/human.c (human_readable_inexact): Allow an input block
77453         size that is not a multiple of the output block size, and vice versa.
77454         Reported by Piergiorgio Sartor.
77455
77456 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77457
77458         * lib/getdate.y (get_date): Apply relative times after time
77459         zone indicator, not before.  Reported by Todd A. Jacobs.
77460
77461 2000-06-13  Jim Meyering  <meyering@lucent.com>
77462
77463         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
77464
77465         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
77466
77467 2000-06-12  Paul Eggert  <eggert@twinsun.com>
77468
77469         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
77470
77471 2000-06-12  Jim Meyering  <meyering@lucent.com>
77472
77473         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
77474         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
77475         optional argument.
77476         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
77477         the optional argument, `lib'.
77478
77479 2000-06-08  Jim Meyering  <meyering@lucent.com>
77480
77481         * m4/largefile.m4: Remove file (now that it's part of autoconf).
77482
77483 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77484
77485         Rewrite largefile configuration so that we don't need to run
77486         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
77487         AC_CANONICAL_HOST in configure.in -- jmm]
77488
77489         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
77490         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
77491         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
77492         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
77493         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
77494         All uses changed.
77495         Instead of inspecting the output of getconf, try to compile the
77496         test program without and with the macro definition.
77497         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
77498         for getconf.  Instead, check for the needed flags by compiling
77499         test programs.
77500
77501 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77502
77503         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
77504
77505 2000-06-04  Jim Meyering  <meyering@lucent.com>
77506
77507         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
77508         SunOS 4.1.4 for which gid_t is an unsigned type.
77509
77510 2000-06-03  Jim Meyering  <meyering@lucent.com>
77511
77512         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
77513         now that autoconf requires that.
77514
77515         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
77516         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
77517         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
77518
77519 2000-06-03  Jim Meyering  <meyering@lucent.com>
77520
77521         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
77522
77523 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77524
77525         * m4/glibc21.m4: New file.
77526         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
77527
77528 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77529
77530         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
77531         newer, don't install charset.alias.
77532         * lib/config.charset: Change the Linux/glibc rules so they become empty
77533         on glibc-2.1 or newer.
77534
77535 2000-06-02  Jim Meyering  <meyering@lucent.com>
77536
77537         * lib/mountlist.c: Back out last change.  Instead, do this...
77538         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
77539         me_dummy member using the same `ignore'-testing code.
77540         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
77541         fs_type strings.
77542         From Mark D. Roth.
77543
77544 2000-05-29  Jim Meyering  <meyering@lucent.com>
77545
77546         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
77547         mounts with the `ignore' attribute.  Based on a patch from
77548         Mark D. Roth.
77549
77550 2000-05-28  Jim Meyering  <meyering@lucent.com>
77551
77552         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
77553         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77554         * m4/stat.m4: Likewise.
77555         * m4/lstat.m4: Likewise.
77556         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77557
77558         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77559         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77560
77561 2000-05-26  Jim Meyering  <meyering@lucent.com>
77562
77563         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77564
77565 2000-05-24  Jim Meyering  <meyering@lucent.com>
77566
77567         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77568         autoconf requires that.
77569         * m4/lib-check.m4: Likewise.
77570         * m4/jm-macros.m4: Likewise.
77571         * m4/strftime.m4: Likewise.
77572
77573         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77574         AC_CHECK_DECLS, now that autoconf requires that.
77575
77576 2000-05-22  Jim Meyering  <meyering@lucent.com>
77577
77578         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77579         * m4/lstat.m4: Likewise.
77580
77581 2000-05-22  Jim Meyering  <meyering@lucent.com>
77582
77583         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77584
77585 2000-05-20  Jim Meyering  <meyering@lucent.com>
77586
77587         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77588         (jm_PREREQ): Use it.
77589
77590 2000-05-18  Jim Meyering  <meyering@lucent.com>
77591
77592         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77593         back, too, since it may have been modified by allocate_entry.
77594         (hash_delete): Rewrite to use neither the assignment operator
77595         nor the comma operator in an if-expression.
77596
77597 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77598
77599         * lib/closeout.c:
77600         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77601         Remove; no longer needed.
77602         "quotearg.h": Add include.
77603         (file_name): Do not bother to explicitly initialize to NULL; it's less
77604         efficient on some hosts.
77605         (close_stdout_status): Remove test as to whether stdout was already
77606         closed; it breaks for the case "echo x | sort >&-".
77607         Quote file name colons.
77608         Do not assume that _("write error") lacks format strings.
77609
77610 2000-05-15  Jim Meyering  <meyering@lucent.com>
77611
77612         * lib/version-etc.c (version_etc_copyright): Update the copyright
77613         string used in all --version output.
77614
77615 2000-05-14  Jim Meyering  <meyering@lucent.com>
77616
77617         * lib/closeout.c (close_stdout_set_file_name): New function.
77618         (close_stdout_status): Use new file-scoped global.
77619         Return right away if fstat says the stdout file descriptor is invalid.
77620         * lib/closeout.h (close_stdout_set_file_name): Declare.
77621
77622 2000-05-10  Jim Meyering  <meyering@lucent.com>
77623
77624         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77625         (close_stdout_set_status): New function.
77626         * lib/closeout.h (close_stdout_set_status): Declare.
77627
77628 2000-05-09  Jim Meyering  <meyering@lucent.com>
77629
77630         * m4/gettext.m4: Rename this...
77631         * m4/libintl.m4: ...to this.
77632
77633 2000-05-08  Jim Meyering  <meyering@lucent.com>
77634
77635         * lib/long-options.c: Don't include closeout.h.
77636         (parse_long_options): Don't call close_stdout for --version.
77637
77638 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77639
77640         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77641         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77642         2.1.3 bug.  This avoids a clash when files like regex.c define
77643         _GNU_SOURCE.
77644
77645 2000-05-06  Jim Meyering  <meyering@lucent.com>
77646
77647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77648         (AC_REPLACE_FUNCS): Add strnlen.
77649
77650         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77651         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77652
77653         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77654         AC_SEARCH_LIBS call for nanosleep.
77655         (LIB_NANOSLEEP): Set and AC_SUBST.
77656
77657 2000-05-06  Jim Meyering  <meyering@lucent.com>
77658
77659         * lib/strnlen.c: Undefine __strnlen and strnlen.
77660         [!weak_alias]: Define __strnlen to strnlen.
77661
77662         * lib/atexit.c: New file, from libiberty.
77663
77664 2000-05-06  Jim Meyering  <meyering@lucent.com>
77665
77666         * lib/closeout.c (close_stdout_status): Also check for errors on the
77667         stderr stream.
77668
77669 2000-05-05  Jim Meyering  <meyering@lucent.com>
77670
77671         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77672         AC_SEARCH_LIBS call for clock_gettime.
77673         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77674
77675         * m4/search-libs.m4: Update from autoconf.
77676
77677         su doesn't work on Solaris 2.6.
77678         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77679         <shadow.h>.  Reported by Dragos Harabor.
77680
77681 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77682
77683         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77684         memcpy instead of xmalloc, xrealloc, path_concat.
77685         (locale_charset): Treat empty environment variables as absent.
77686         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77687
77688 2000-05-04  Jim Meyering  <meyering@lucent.com>
77689
77690         * lib/getopt.c: Update from glibc.
77691         * lib/obstack.c: Likewise.
77692         * lib/obstack.h: Likewise.
77693         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77694         file
77695
77696         * lib/regex.h: Likewise.
77697         * lib/strndup.c: Likewise.
77698         * lib/strnlen.c: New file, from glibc.
77699
77700 2000-05-03  Jim Meyering  <meyering@lucent.com>
77701
77702         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77703
77704 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77705
77706         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77707         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77708         compile-time test, rather than inspecting host and OS, to
77709         decide whether to define _LARGEFILE_SOURCE.
77710
77711 2000-05-01  Jim Meyering  <meyering@lucent.com>
77712
77713         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77714
77715         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77716         Based on a patch from Bruno Haible.
77717
77718 2000-05-01  Jim Meyering  <meyering@lucent.com>
77719
77720         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77721
77722 2000-04-29  Jim Meyering  <meyering@lucent.com>
77723
77724         * lib/path-concat.c: Declare strdup only if it's not defined.
77725         * lib/canon-host.c: Likewise.
77726
77727 2000-04-28  Jim Meyering  <meyering@lucent.com>
77728
77729         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77730         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77731         is included first, then limits.h is included by locale.h by libintl.h.
77732         From John David Anglin.
77733
77734 2000-04-25  Jim Meyering  <meyering@lucent.com>
77735
77736         * lib/makepath.c (S_IRWXUGO): Define.
77737         (make_path): Always perform explicit chmod if MODE specifies any
77738         of the `special' permission bits.  Prompted by a bug report against
77739         install from Mate Wierdl and Joost van Baal.
77740
77741 2000-04-18  Jim Meyering  <meyering@lucent.com>
77742
77743         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77744         (jm_PREREQ): Use it.
77745
77746 2000-04-18  Jim Meyering  <meyering@lucent.com>
77747
77748         * lib/README: New file.
77749
77750         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77751         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77752
77753 2000-04-17  Jim Meyering  <meyering@lucent.com>
77754
77755         Get it right :-)
77756         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77757         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77758         Suggestion from Akim Demaille.
77759
77760 2000-04-17  Jim Meyering  <meyering@lucent.com>
77761
77762         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77763         the definition of it to rpl_strftime also defined-away the system's
77764         declaration.
77765
77766 2000-04-15  Jim Meyering  <meyering@lucent.com>
77767
77768         Use `C' to denote so-called `contiguous' files, the same way
77769         that tar does.
77770         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77771         (ftypelet): Use S_ISCTG.
77772         From Michael Deutschmann.
77773
77774 2000-04-14  Jim Meyering  <meyering@lucent.com>
77775
77776         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77777         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77778         clobbered.
77779
77780 2000-04-14  Jim Meyering  <meyering@lucent.com>
77781
77782         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77783
77784 2000-04-13  Jim Meyering  <meyering@lucent.com>
77785
77786         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77787         AH_VERBATIM to insert required #ifndef into config.h.in.
77788         Suggestion from Akim Demaille.
77789
77790 2000-04-12  Jim Meyering  <meyering@lucent.com>
77791
77792         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77793         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77794         Christian Krackowizer.
77795
77796         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77797         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77798         (AC_SYS_LARGEFILE): Require.
77799         (AM_C_PROTOTYPES): Require.
77800
77801 2000-04-08  Jim Meyering  <meyering@lucent.com>
77802
77803         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77804         names don't conflict.  Reported by Eli Zaretskii.
77805
77806 2000-04-07  Jim Meyering  <meyering@lucent.com>
77807
77808         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77809         sys/types.h, to work around system header problems on AIX 3.2.5.
77810         From Bruno Haible.
77811
77812 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77813
77814         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77815         bug.  Deal with the different error behavior of Irix iconv.
77816
77817 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77818
77819         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77820         IRIX if the installer said otherwise.
77821
77822 2000-04-05  Jim Meyering  <meyering@lucent.com>
77823
77824         Portability tweaks required for ultrix4.3.
77825         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77826         (jm_CHECK_DECLS): Add getutent to the list of functions.
77827         (_jm_DECL_HEADERS): Add utmpx.h.
77828         From John David Anglin.
77829
77830         * m4/strftime.m4: Back out the 2000-04-02 change.
77831         Instead of that change, simply undefine putenv in the test program.
77832
77833 2000-04-05  Jim Meyering  <meyering@lucent.com>
77834
77835         Portability tweaks required for ultrix4.3.
77836         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77837         getutent.
77838         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77839         * lib/canon-host.c: Declare strdup.
77840         * lib/path-concat.c: Likewise.
77841         From John David Anglin.
77842
77843 2000-04-04  Jim Meyering  <meyering@lucent.com>
77844
77845         Be more DOS 8.3-friendly.
77846         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77847         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77848         * lib/Makefile.am: Reflect renaming.
77849         Reported by Eli Zaretskii.
77850
77851         Use a temporary file name that won't clash with `charset.alias'
77852         in the DOS 8.3 name space.
77853         * lib/Makefile.am (charset_tmp): Define.
77854         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77855         (uninstall-local): Likewise.
77856         Reported by Eli Zaretskii.
77857
77858 2000-04-03  Jim Meyering  <meyering@lucent.com>
77859
77860         * m4/gettext.m4: Fix typo in comment.
77861
77862         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77863         textutils/configure.in).  Suggestion from Paul Eggert.
77864         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77865
77866 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77867
77868         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77869         variable in the shell rather than using putenv, which isn't
77870         portable.  This avoids the configure-time inter-test dependency
77871         on the potentially-renamed putenv function.
77872
77873 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77874
77875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77876         before checking struct stat.st_blksize, so that
77877         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77878
77879 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77880
77881         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77882         since strftime.c uses HAVE_STRFTIME to decide whether to use
77883         the underlying strftime.
77884
77885 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77886
77887         * lib/time/strftime.c (my_strftime): Make sure we call the system
77888         strftime, not ourselves, when invoking the underlying strftime.
77889
77890 2000-03-24  Jim Meyering  <meyering@lucent.com>
77891
77892         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77893         (charset_alias): Define.
77894         (install-exec-local): Factor out common code.
77895         (uninstall-local): Split lines longer than 80.
77896         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77897         (SUFFIXES): Define.
77898         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77899         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77900
77901 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77902
77903         * lib/config.charset: Output a line containing "Packages using this
77904         file".
77905         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77906         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77907         ref-del.sed): New rules.
77908
77909 2000-03-17  Jim Meyering  <meyering@lucent.com>
77910
77911         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77912         Otherwise, include <strings.h>
77913
77914 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77915
77916         * lib/unicodeio.c (utf8_wctomb): New function.
77917         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77918         format instead of in UCS-4 with platform dependent endianness.
77919
77920 2000-03-10  Jim Meyering  <meyering@lucent.com>
77921
77922         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77923         From Marco Franzen.
77924
77925 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77926
77927         * lib/savedir.c (savedir): Work even if directory size is
77928         negative; this can happen with some screwy NFS configurations.
77929
77930 2000-03-06  Jim Meyering  <meyering@lucent.com>
77931
77932         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77933         if it's NULL (because we ran out of memory).  From Bruno Haible.
77934
77935 2000-03-05  Jim Meyering  <meyering@lucent.com>
77936
77937         * lib/localcharset.c ("path-concat.h"): Include.
77938         (get_charset_aliases): Use path_concat instead of ANSI string
77939         concatenation.
77940
77941         * lib/unicodeio.h (PARAMS): Define.
77942         Use it to guard prototype.
77943
77944 2000-03-04  Jim Meyering  <meyering@lucent.com>
77945
77946         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77947         for lib/localcharset.c.
77948
77949 2000-03-04  Jim Meyering  <meyering@lucent.com>
77950
77951         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77952         installing into it.
77953         (uninstall-local): Uncomment this rule so `make distcheck' works
77954         once again.
77955
77956         * lib/unicodeio.c (<errno.h>): Include it.
77957         (errno): Declare if not defined.
77958
77959         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77960
77961         * lib/config.charset: New version, incorporating remarks from a linux
77962         i18n mailing list.  From Bruno Haible.
77963
77964 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77965
77966         * m4/codeset.m4: New file.
77967         * m4/iconv.m4: New file.
77968         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77969
77970 2000-03-03  Jim Meyering  <meyering@lucent.com>
77971
77972         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77973
77974 2000-03-02  Jim Meyering  <meyering@lucent.com>
77975
77976         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77977         the messages come out on separate lines.
77978
77979         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77980         rather than jm_CHECK_DECLARATIONS.
77981         * m4/decl.m4: Remove now-unused file.
77982
77983         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77984         geteuid.
77985
77986 2000-03-02  Jim Meyering  <meyering@lucent.com>
77987
77988         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77989
77990 2000-03-01  Jim Meyering  <meyering@lucent.com>
77991
77992         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77993         * lib/unicodeio.c: Likewise.
77994
77995 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77996
77997         * lib/config.charset: New file.
77998         * lib/localcharset.c: New file.
77999         * lib/unicodeio.h, lib/unicodeio.c: New files.
78000         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78001         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78002         (noinst_HEADERS): Add unicodeio.h.
78003         (all-local, install-exec-local, charset.alias): New targets.
78004
78005 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78006
78007         * lib/quotearg.c (ALERT_CHAR): New macro.
78008         (quotearg_buffer_restyled): Use it.
78009
78010 2000-02-27  Jim Meyering  <meyering@lucent.com>
78011
78012         * m4/check-decl.m4: Add getenv to the list.
78013
78014 2000-02-27  Jim Meyering  <meyering@lucent.com>
78015
78016         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78017         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78018
78019         * lib/backupfile.c: Guard inclusion of stdlib.h with
78020         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78021         Declare malloc if needed.
78022
78023         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78024         `#ifndef HAVE_DECL..'
78025         now that autoconf always defines the HAVE_DECL_ symbols.
78026         * lib/human.c: Likewise.
78027         * lib/same.c: Likewise.
78028         * lib/strtoumax.c: Likewise.
78029
78030         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78031         declaration check was not run.
78032         * lib/hash.c: Likewise.
78033         * lib/human.c: Likewise.
78034         * lib/same.c: Likewise.
78035         * lib/strtoumax.c: Likewise.
78036
78037         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78038         `.', then first look up the entire `.'-containing string as a login
78039         name.
78040
78041 2000-02-23  Jim Meyering  <meyering@lucent.com>
78042
78043         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78044         in place of my hack.
78045
78046 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78047
78048         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78049         (textint): New typedef.
78050         (parser_control): Member year changed from int to textint.
78051         All uses changed.
78052         (YYSTYPE): Removed; replaced by %union with int and textint members.
78053         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78054         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78055         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78056         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78057         (date, number, to_year): Use width of number in digits, not its value,
78058         to determine whether it's a 2-digit year, or a 2-digit time.
78059         (yylex): Store number of digits of numeric tokens.
78060         Reported by John Kendall.
78061
78062         (parser_control): Changed from struct parser_control to typedef (for
78063         consistency).  All uses changed.
78064
78065         (tID): Removed; not used.
78066         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78067
78068 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78069
78070         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78071         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78072
78073 2000-02-12  Jim Meyering  <meyering@lucent.com>
78074
78075         * lib/userspec.c (ISDIGIT): Define it.
78076         (isdigit): Remove definition.
78077         (is_number): Use ISDIGIT, not isdigit.
78078         <libintl.h>: Include.
78079         (_ and N_): Define.
78080         (parse_user_spec): Mark translatable strings.
78081
78082 2000-02-10  Jim Meyering  <meyering@lucent.com>
78083
78084         With these changes, nanosleep.[ch] are finally enough like the other
78085         lib/* replacement files to compile on a few more losing systems.
78086
78087         * lib/nanosleep.h: Don't include config.h.
78088         Remove prototype from declaration of nanosleep.
78089         (PARAMS): Remove now-unneeded definition.
78090         * lib/nanosleep.c: #undef nanosleep.
78091         (rpl_nanosleep): Rename from nanosleep.
78092
78093 2000-02-10  Jim Meyering  <meyering@lucent.com>
78094
78095         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78096         gnu_nanosleep to rpl_nanosleep.
78097
78098 2000-02-09  Jim Meyering  <meyering@lucent.com>
78099
78100         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78101         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78102
78103 2000-02-08  Akim Demaille  <akim@epita.fr>
78104
78105         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78106         `[' and `]' and remove uses of `changequote'.
78107         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78108         (AC_SYS_LARGEFILE): Likewise.
78109         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78110         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78111         of changequote.
78112         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78113         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78114         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78115         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78116
78117 2000-02-05  Jim Meyering  <meyering@lucent.com>
78118
78119         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78120         Remove explicit use of AC_HEADER_TIME.  It is required by
78121         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78122         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78123         in autoconf whereby the expansion of the latter ended up preceding
78124         the expansion of its prerequisite, AC_HEADER_TIME.
78125         Reported by Volker Borchert.
78126
78127 2000-02-03  Jim Meyering  <meyering@lucent.com>
78128
78129         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78130
78131 2000-02-03  Jim Meyering  <meyering@lucent.com>
78132
78133         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78134         rather than with `#if HAVE_UTMPNAME'.
78135
78136 2000-02-02  Jim Meyering  <meyering@lucent.com>
78137
78138         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78139         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78140         Reported by Eli Zaretskii.
78141
78142 2000-02-01  Jim Meyering  <meyering@lucent.com>
78143
78144         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78145
78146 2000-01-31  Jim Meyering  <meyering@lucent.com>
78147
78148         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78149         functions.  Add the time.h and sys/time.h headers along with the
78150         AC_REQUIRE'ment of AC_HEADER_TIME.
78151
78152 2000-01-31  Jim Meyering  <meyering@lucent.com>
78153
78154         * lib/nanosleep.h (nanosleep): Guard declaration with
78155         `#if ! HAVE_DECL_NANOSLEEP'.
78156         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78157         the declaration in that vendor's sys/timers.h.
78158         Reported by Christian Krackowizer.
78159
78160         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78161         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78162         (ISPRINT): Likewise.
78163         Reported by Tom Tromey.
78164
78165 2000-01-30  Jim Meyering  <meyering@lucent.com>
78166
78167         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78168
78169         * m4/prereq.m4 (utmp_includes): Define.
78170         Check for ut_user and ut_name members in both struct utmpx
78171         and struct utmp.
78172
78173 2000-01-30  Jim Meyering  <meyering@lucent.com>
78174
78175         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78176         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78177         header files where only utmpx.ut_user is declared.
78178
78179         * lib/readutmp.h (UT_USER): Define.
78180
78181 2000-01-29  Jim Meyering  <meyering@lucent.com>
78182
78183         * m4/lib-check.m4: New file containing library-related checks from
78184         fileutils and sh-utils (textutils had none).
78185
78186 2000-01-28  Jim Meyering  <meyering@lucent.com>
78187
78188         * m4/perl.m4: Change format of warning message to look more like that
78189         from the missing script.  Suggestion from François Pinard.
78190
78191 2000-01-25  Jim Meyering  <meyering@lucent.com>
78192
78193         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78194         well as time.h in the compile check.
78195         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78196         Fix typo in cross-compiling case: s/yes/no/.
78197
78198 2000-01-23  Jim Meyering  <meyering@lucent.com>
78199
78200         * m4/jm-macros.m4: Move df-related tests here from
78201         fileutils/configure.in
78202
78203         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78204         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78205
78206         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78207         s/space/ac_fsusage_space/.
78208         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78209
78210         * m4/ftruncate.m4: New file (derived from part of
78211         fileutils/configure.in).
78212         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78213         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78214
78215         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78216         AC_SUBST these here, rather than just in sh-util/configure.in, so
78217         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78218         all the same.
78219         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78220         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
78221         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
78222         (AC_SUBST(POW_LIBM)): Likewise.
78223         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
78224
78225 2000-01-23  Jim Meyering  <meyering@lucent.com>
78226
78227         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
78228         obstack.c.
78229
78230 2000-01-22  Jim Meyering  <meyering@lucent.com>
78231
78232         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
78233
78234         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
78235
78236         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
78237         configure.in
78238         (AC_CHECK_HEADERS): Likewise for sh-utils.
78239         (AC_CHECK_HEADERS): Likewise for textutils.
78240         Merge the three lists of headers.
78241
78242         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
78243         from fileutils' configure.in.
78244
78245         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
78246         code. Moved tests into their own function (_jm_DECL_HEADERS) in
78247         check-decl.m4.
78248
78249         * m4/check-decl.m4: Use #if rather than #ifdef.
78250         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
78251         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
78252         (_jm_DECL_HEADERS): Define new function.
78253         (jm_CHECK_DECLARATIONS): Require it.
78254
78255 2000-01-22  Jim Meyering  <meyering@lucent.com>
78256
78257         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
78258         [! HAVE_DECL_STRTOULL]: Declare strtoull.
78259         Required for some AIX systems.  Reported by Christian Krackowizer.
78260         [TESTING] (main): New function.
78261
78262         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
78263         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
78264         letters.
78265
78266         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
78267         iswprint.
78268
78269         * lib/strverscmp.c (ISDIGIT): Define.
78270         (strverscmp): Use ISDIGIT, not isdigit.
78271
78272 2000-01-19  Jim Meyering  <meyering@lucent.com>
78273
78274         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
78275         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
78276         defines `struct timespec' in <sys/time.h>
78277
78278         * m4/c-bs-a.m4: Remove uses of changequote altogether.
78279         Thanks to Akim for explaining.
78280
78281 2000-01-17  Paul Eggert  <eggert@twinsun.com>
78282
78283         * lib/nanosleep.c (nanosleep):
78284         Don't use SA_INTERRUPT to decide whether to call sigaction, as
78285         POSIX.1 doesn't require SA_INTERRUPT and some systems
78286         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
78287         it's been part of POSIX.1 since day 1 (in 1988).
78288
78289 2000-01-17  Jim Meyering  <meyering@lucent.com>
78290
78291         * lib/interlock: Remove unused file.  Reported by François Pinard.
78292
78293 2000-01-16  Paul Eggert  <eggert@twinsun.com>
78294
78295         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
78296         alert, backslash, formfeed, and vertical tab unnecessarily in
78297         shell quoting style.
78298
78299 2000-01-16  Jim Meyering  <meyering@lucent.com>
78300
78301         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
78302         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
78303         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
78304         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
78305
78306 2000-01-16  Jim Meyering  <meyering@lucent.com>
78307
78308         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
78309         because the latter didn't work.
78310
78311 2000-01-15  Jim Meyering  <meyering@lucent.com>
78312
78313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
78314         (AC_REPLACE_FUNCS): Add memcpy and memset.
78315         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
78316         Add strpbrk.
78317         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
78318
78319 2000-01-12  Jim Meyering  <meyering@lucent.com>
78320
78321         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
78322         (jm_PREREQ): Use it.
78323         (jm_PREREQ_READUTMP): New macro.
78324         (jm_PREREQ): Use it.
78325
78326 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78327
78328         Quote multibyte characters correctly.
78329         * m4/c-bs-a.m4: New file.
78330         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
78331         (jm_PREREQ): Use it.
78332
78333 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78334
78335         * m4/uintmax_t.m4: Port to autoconf 2.13.
78336
78337 2000-01-08  Jim Meyering  <meyering@ascend.com>
78338
78339         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
78340         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
78341
78342 2000-01-04  Jim Meyering  <meyering@ascend.com>
78343
78344         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
78345         jm_STRUCT_DIRENT_D_TYPE.
78346         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
78347         jm_STRUCT_DIRENT_D_INO.
78348         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
78349         jm_STRUCT_UTIMBUF.
78350         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
78351         renamings.
78352         * m4/utime.m4: Likewise.
78353
78354         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
78355         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
78356
78357 2000-01-03  Paul Eggert  <eggert@twinsun.com>
78358
78359         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
78360         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
78361
78362 2000-01-02  Jim Meyering  <meyering@ascend.com>
78363
78364         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
78365         remember if this is necessary.
78366
78367 1999-12-26  Jim Meyering  <meyering@ascend.com>
78368
78369         * m4/jm-macros.m4: Use it here.
78370         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
78371
78372 1999-12-23  Jim Meyering  <meyering@ascend.com>
78373
78374         * m4/jm-macros.m4: Check for clock_gettime (moved from
78375         fileutils/configure.in)
78376         Check for gettimeofday.
78377
78378 1999-12-20  Jim Meyering  <meyering@ascend.com>
78379
78380         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
78381         autoconf-2.14a-1999-12-20.
78382
78383 1999-12-19  Jim Meyering  <meyering@ascend.com>
78384
78385         * m4/lstat-slash.m4: New file.
78386         * m4/jm-macros.m4: Use the new macro:
78387         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78388
78389 1999-12-07  Jim Meyering  <meyering@ascend.com>
78390
78391         * m4/perl.m4: Require that File::Compare be available, too.
78392         Too many systems seem to lack it.
78393
78394         * m4/strftime.m4: Add checks for most of the cpp macros tested in
78395         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
78396
78397 1999-11-18  Paul Eggert  <eggert@twinsun.com>
78398
78399         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
78400         problem with the QNX 4.25 shell, which doesn't propagate exit
78401         status of failed commands inside shell assignments.
78402
78403 1999-11-17  Jim Meyering  <meyering@ascend.com>
78404
78405         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
78406
78407 1999-11-07  Jim Meyering  <meyering@ascend.com>
78408
78409         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
78410
78411 1999-11-06  Jim Meyering  <meyering@ascend.com>
78412
78413         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
78414         * m4/jm-macros.m4 (jm_MACROS): Use it here.
78415
78416 1999-11-05  Jim Meyering  <meyering@ascend.com>
78417
78418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
78419         configure.in of textutils, fileutils, and sh-utils into this one
78420         (shared between those packages) file.
78421         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
78422         AC_STRUCT_ST_BLKSIZE.
78423
78424 1999-11-03  Jim Meyering  <meyering@ascend.com>
78425
78426         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
78427         of AC_CHECK_TYPE checks includes unistd.h.
78428         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
78429         Suggestion from Akim Demaille.
78430
78431 1999-10-30  Jim Meyering  <meyering@ascend.com>
78432
78433         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
78434         m4-quoted string.
78435         * m4/ls-mntd-fs.m4: Likewise.
78436         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
78437         * m4/jm-winsz1.m4: Likewise.
78438
78439         * m4/const.m4: Remove file, since the fix made it into the experimental
78440         version of autoconf.
78441         * m4/mktime.m4: Likewise.
78442
78443         * m4/check-type.m4: Remove file, now that the latest version of
78444         AC_CHECK_TYPE takes a third arg to specify additional #includes.
78445
78446         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
78447         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
78448         AC_CHECK_TYPE.
78449
78450 1999-10-04  Jim Meyering  <meyering@ascend.com>
78451
78452         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
78453
78454 1999-09-22  Paul Eggert  <eggert@twinsun.com>
78455
78456         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
78457         2.95.1 bug with HP-UX 10.20.
78458
78459 1999-09-17  Jim Meyering  <meyering@ascend.com>
78460
78461         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
78462         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
78463         due to missing strdup (against sh-utils-2.0).
78464
78465 1999-08-29  Jim Meyering  <meyering@ascend.com>
78466
78467         * m4/jm-macros.m4: Require jm_BISON.
78468         * m4/bison.m4: New file.
78469
78470 1999-08-17  Paul Eggert  <eggert@twinsun.com>
78471
78472         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
78473         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
78474
78475 1999-08-05  Jim Meyering  <meyering@ascend.com>
78476
78477         * m4/getline.m4: Rename test file from conftestdata to conftest.data
78478         to avoid conflicts with `conftest' on 8+3 filesystems.
78479         Suggestion from Eli Zaretskii.
78480
78481 1999-08-04  Jim Meyering  <meyering@ascend.com>
78482
78483         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
78484         fileutils and sh-utils (textutils's getline test was inadequate).
78485         (AM_FUNC_GETLINE): Run this test.
78486         (AC_CHECK_FUNCS): Check for getdelim.
78487         Reported by Bob Proulx.
78488
78489 1999-08-02  Jim Meyering  <meyering@ascend.com>
78490
78491         * m4/jm-macros.m4: Add a comment.
78492
78493 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78494
78495         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
78496         <inttypes.h> defines strtoumax as a macro (and not as a
78497         function).
78498
78499 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78500
78501         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
78502         that we can shift, multiply and divide unsigned long long
78503         values; Ultrix cc can't do it.
78504
78505 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78506
78507         * m4/mktime.m4: New file, which is a preview of what should appear
78508         in the next public autoconf release.
78509
78510 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78511
78512         * m4/lfs.m4: Remove this file.
78513         * m4/largefile.m4: New file.  It contains the old contents of
78514         lfs.m4, except that all names with prefix AC_LFS have been
78515         changed to use the prefix AC_SYS_LARGEFILE instead, to be
78516         compatible with future autoconf versions.  Also, some minor m4
78517         quoting problems have been fixed.
78518
78519 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78520
78521         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
78522         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
78523         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
78524         and simplify the shell code.
78525
78526 1999-08-01  Jim Meyering  <meyering@ascend.com>
78527
78528         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
78529         m4.
78530
78531 1999-07-20  Jim Meyering  <meyering@ascend.com>
78532
78533         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
78534
78535 1999-07-15  Jim Meyering  <meyering@ascend.com>
78536
78537         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
78538
78539 1999-05-22  Jim Meyering  <meyering@ascend.com>
78540
78541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
78542
78543 1999-05-20  Jim Meyering  <meyering@ascend.com>
78544
78545         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
78546         Add a colon after each `then' in case $4 is empty.
78547
78548 1999-05-16  Jim Meyering  <meyering@ascend.com>
78549
78550         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
78551
78552 1999-05-10  Jim Meyering  <meyering@ascend.com>
78553
78554         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
78555
78556         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78557         AC_FUNC_MKTIME.
78558
78559 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78560
78561         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78562
78563 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78564
78565         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78566         not CPPFLAGS, so that linking works correctly in IRIX.
78567
78568 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78569
78570         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78571
78572 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78573
78574         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78575         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78576         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78577         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78578         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78579
78580         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78581
78582 1999-04-20  Jim Meyering  <meyering@ascend.com>
78583
78584         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78585         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78586         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78587
78588 1999-04-18  Jim Meyering  <meyering@ascend.com>
78589
78590         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78591         * m4/jm-macros.m4: Use it.
78592
78593 1999-04-06  Jim Meyering  <meyering@ascend.com>
78594
78595         * m4/strftime.m4: Remove test for %f.
78596
78597 1999-03-29  Jim Meyering  <meyering@ascend.com>
78598
78599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78600         superset of the AC_TYPE_* checks in the textutils, fileutils,
78601         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78602         AC_TYPE_PID_T.
78603
78604 1999-03-28  Jim Meyering  <meyering@ascend.com>
78605
78606         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78607         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78608         replaced e.g., in the *.sh files of the sh-utils.
78609
78610 1999-03-20  Jim Meyering  <meyering@ascend.com>
78611
78612         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78613         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78614         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78615
78616 1999-03-19  Jim Meyering  <meyering@ascend.com>
78617
78618         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78619
78620 1999-03-12  Jim Meyering  <meyering@ascend.com>
78621
78622         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78623
78624 1999-03-07  Jim Meyering  <meyering@ascend.com>
78625
78626         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78627         declared.
78628
78629 1999-02-17  Jim Meyering  <meyering@ascend.com>
78630
78631         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78632         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78633
78634 1999-02-07  Jim Meyering  <meyering@ascend.com>
78635
78636         * m4/group-member.m4: New file -- extracted from sh-utils'
78637         configure.in.
78638
78639         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78640         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78641
78642 1999-02-06  Jim Meyering  <meyering@ascend.com>
78643
78644         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78645         * m4/fnmatch.m4: Likewise.
78646         * m4/getgroups.m4: Likewise.
78647         * m4/lstat.m4: Likewise.
78648         * m4/malloc.m4: Likewise.
78649         * m4/putenv.m4: Likewise.
78650         * m4/realloc.m4: Likewise.
78651         * m4/regex.m4: Likewise.
78652         * m4/stat.m4: Likewise.
78653         * m4/strftime.m4: Likewise.
78654         Suggestion from Alain Magloire.
78655
78656         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78657         * m4/fnmatch.m4: Likewise.
78658         * m4/getgroups.m4: Likewise.
78659         * m4/getline.m4: Likewise.
78660         * m4/lstat.m4: Likewise.
78661         * m4/malloc.m4: Likewise.
78662         * m4/memcmp.m4: Likewise.
78663         * m4/putenv.m4: Likewise.
78664         * m4/realloc.m4: Likewise.
78665         * m4/regex.m4: Likewise.
78666         * m4/stat.m4: Likewise.
78667         * m4/strftime.m4: Likewise.
78668         Suggestion from Alain Magloire.
78669
78670         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78671         an argument.
78672
78673         * m4/regex.m4: Add a run-time Test for proper operation of
78674         re_compile_pattern.
78675
78676 1999-01-31  Jim Meyering  <meyering@ascend.com>
78677
78678         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78679
78680 1999-01-30  Jim Meyering  <meyering@ascend.com>
78681
78682         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78683
78684         * m4/jm-mktime.m4: Make this a wrapper around the official
78685         AM_FUNC_MKTIME rather than my private copy, now that the official one
78686         is up to date.
78687         * m4/mktime.m4: Remove file.
78688
78689         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78690         * m4/uptime.m4: Likewise.
78691         * m4/uintmax_t.m4: Likewise.
78692
78693 1999-01-28  Jim Meyering  <meyering@ascend.com>
78694
78695         * m4/jm-macros.m4: Use jm_AFS.
78696         * m4/afs.m4: New file (from fileutils' configure.in).
78697
78698         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78699         * m4/chown.m4: Likewise.
78700         * m4/d-ino.m4: Likewise.
78701         * m4/d-type.m4: Likewise.
78702         * m4/fnmatch.m4: Likewise.
78703         * m4/getgroups.m4: Likewise.
78704         * m4/gettext.m4: Likewise.
78705         * m4/jm-mktime.m4: Likewise.
78706         * m4/jm-winsz2.m4: Likewise.
78707         * m4/lcmessage.m4: Likewise.
78708         * m4/ls-mntd-fs.m4: Likewise.
78709         * m4/malloc.m4: Likewise.
78710         * m4/memcmp.m4: Likewise.
78711         * m4/putenv.m4: Likewise.
78712         * m4/realloc.m4: Likewise.
78713         * m4/st_mtim.m4: Likewise.
78714         * m4/strftime.m4: Likewise.
78715
78716 1999-01-16  Jim Meyering  <meyering@ascend.com>
78717
78718         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78719         (ARGMATCH_DIE_DECL): Define.
78720
78721 1999-01-12  Jim Meyering  <meyering@ascend.com>
78722
78723         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78724         Reported by Lars Hecking.
78725
78726 1999-01-10  Jim Meyering  <meyering@ascend.com>
78727
78728         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78729         gross kludge.
78730         * m4/inttypes_h.m4: Likewise.
78731         * m4/lstat.m4: Likewise.
78732         * m4/malloc.m4: Likewise.
78733         * m4/readdir.m4: Likewise.
78734         * m4/realloc.m4: Likewise.
78735         * m4/st_dm_mode.m4: Likewise.
78736         * m4/stat.m4: Likewise.
78737         * m4/utimbuf.m4: Likewise.
78738         * m4/utimes.m4: Likewise.
78739
78740         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78741         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78742         comments in config.h.in are meaningful.
78743
78744         * m4/jm-macros.m4: Require autoconf-2.13 here.
78745
78746         * m4/regex.m4: By default, don't use the included regex.c on systems
78747         with glibc 2.  Suggestion from Uli Drepper.
78748
78749 1999-01-02  Jim Meyering  <meyering@ascend.com>
78750
78751         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78752
78753 1998-12-18  Jim Meyering  <meyering@ascend.com>
78754
78755         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78756         Based on a suggestion from Lars Hecking.
78757
78758 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78759
78760         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78761
78762 1998-11-16  Jim Meyering  <meyering@ascend.com>
78763
78764         * m4/lfs.m4: Double-quote the `uname...` expression.
78765
78766 1998-11-14  Jim Meyering  <meyering@ascend.com>
78767
78768         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78769         * m4/stat.m4: Likewise.
78770
78771 1998-11-03  Jim Meyering  <meyering@ascend.com>
78772
78773         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78774         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78775
78776 1998-10-18  Jim Meyering  <meyering@ascend.com>
78777
78778         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78779
78780 1998-10-17  Jim Meyering  <meyering@ascend.com>
78781
78782         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78783         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78784         calls for those previously hard-coded headers.  Instead, take a new
78785         parameter.
78786         (jm_CHECK_DECLARATIONS): Reflect interface change.
78787         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78788         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78789
78790         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78791
78792 1998-10-14  Jim Meyering  <meyering@ascend.com>
78793
78794         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78795         instead of "TZ=America/Vancouver".  From Paul Eggert.
78796
78797 1998-10-11  Jim Meyering  <meyering@ascend.com>
78798
78799         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78800         This adds a test for a recently added compatibility fix for mktime.c.
78801         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78802
78803 1998-09-27  Jim Meyering  <meyering@ascend.com>
78804
78805         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78806
78807         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78808         ../configure.in, including a change from Gordon Matzigkeit to allow
78809         cross-compiling for the Hurd.
78810
78811         * m4/glibc.m4: New file/macro to test for the GNU C Library
78812         versions 1 and 2.  From Gordon Matzigkeit.
78813         Indent.
78814
78815 1998-09-21  Jim Meyering  <meyering@ascend.com>
78816
78817         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78818
78819 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78820
78821         Port nanosecond-resolution times to UnixWare 2.1.2 and
78822         pedantic Solaris 2.6.
78823
78824         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78825         AC_STRUCT_ST_MTIM.
78826         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78827         Generate name of ns member, instead of just 1 or undef.
78828         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78829
78830 1998-08-15  Jim Meyering  <meyering@ascend.com>
78831
78832         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78833         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78834         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78835         instead of jm_TYPE_SSIZE_T.
78836
78837 1998-08-12  Jim Meyering  <meyering@ascend.com>
78838
78839         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78840
78841 1998-08-02  Jim Meyering  <meyering@ascend.com>
78842
78843         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78844         in acconfig.h manually.
78845
78846 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78847
78848         * m4/st_mtim.m4: New file.
78849
78850 1998-07-28  Jim Meyering  <meyering@ascend.com>
78851
78852         * m4/utimes.m4: Undef stat.
78853
78854 1998-07-25  Jim Meyering  <meyering@ascend.com>
78855
78856         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78857         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78858
78859 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78860
78861         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78862         uid and gid actually remain unchanged.
78863
78864 1998-07-07  Jim Meyering  <meyering@ascend.com>
78865
78866         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78867
78868 1998-07-04  Jim Meyering  <meyering@ascend.com>
78869
78870         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78871         to prove that this macro can be used in packages without regex.c.
78872
78873 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78874
78875         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78876         is to be used.
78877
78878 1998-07-03  Jim Meyering  <meyering@ascend.com>
78879
78880         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78881
78882         * m4/gettext.m4: New file -- from gettext-0.10.35.
78883         * m4/lcmessage.m4: Likewise.
78884         * m4/progtest.m4: Likewise.
78885
78886         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78887         * m4/jm-macros.m4: Require the new macro.
78888
78889 1998-06-29  Jim Meyering  <meyering@ascend.com>
78890
78891         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78892         for the definition of NGROUPS (used in a system header included
78893         by sys/mount.h).
78894
78895 1998-06-28  Jim Meyering  <meyering@ascend.com>
78896
78897         * m4/ls-mntd-fs.m4: New file.
78898         * m4/fstypename.m4: New file.
78899
78900         * m4/jm-macros.m4: Require the new macro.
78901         * m4/jm-glibc-io.m4: New file.
78902
78903 1998-05-19  Jim Meyering  <meyering@ascend.com>
78904
78905         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78906         * m4/lchown.m4: New file.
78907
78908         * m4/Makefile.am.in: New file.
78909         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78910
78911 1998-05-14  Jim Meyering  <meyering@ascend.com>
78912
78913         * m4/Makefile.am (EXTRA_DIST): Add them.
78914         * m4/jm-macros.m4: New file.
78915         * m4/utimbuf.m4: New file.
78916
78917 1998-05-12  Jim Meyering  <meyering@ascend.com>
78918
78919         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78920
78921 1998-05-11  Jim Meyering  <meyering@ascend.com>
78922
78923         * m4/isc-posix.m4: New file.
78924
78925 1998-05-10  Jim Meyering  <meyering@ascend.com>
78926
78927         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78928
78929 1998-05-09  Jim Meyering  <meyering@ascend.com>
78930
78931         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78932         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78933         with automake.
78934
78935         * m4/ssize_t.m4: New file.
78936         * m4/mktime.m4: Remove file -- the new automake has this now.
78937
78938 1998-04-26  Jim Meyering  <meyering@ascend.com>
78939
78940         * m4/assert.m4: New file.
78941         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78942
78943 1998-04-05  Jim Meyering  <meyering@ascend.com>
78944
78945         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78946         (jm_PREREQ): Use it here.
78947
78948 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78949
78950         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78951         in acconfig.h.
78952
78953 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78954
78955         * m4/prereq.m4: New file.
78956         * m4/error.m4: New file.
78957         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78958
78959 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78960
78961         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78962         cache-check for the same variable -- that defeated the purpose of
78963         the test; the test program was never run.  This was a problem only
78964         on systems with losing getline functions -- HP-UX 10.20 is one.
78965         Reported by Bjorn Helgaas.
78966
78967 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78968
78969         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78970
78971 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78972
78973         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78974
78975         * m4/const.m4: New file.  Use an initializer in this declaration
78976         typedef int charset[2]; const charset x;
78977         Reported by Bob Glickstein.
78978
78979 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78980
78981         * m4/chown.m4: Fix reversed types on -1 args to chown.
78982         From Kaveh Ghazi.
78983
78984 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78985
78986         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78987         Add lseek and memchr.
78988
78989         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78990         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78991         have a 20-character limit on names.
78992
78993 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78994
78995         * m4/inttypes_h.m4: New file.
78996         * m4/uintmax_t.m4: New file.
78997         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78998
78999
79000         -----
79001
79002         Local Variables:
79003         coding: utf-8
79004         End:
79005
79006         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79007
79008         Copying and distribution of this file, with or without
79009         modification, are permitted provided the copyright notice
79010         and this notice are preserved.